*{box-sizing:border-box}
body{font-family:Arial,sans-serif;margin:0;background:#f4f6f8;color:#1e293b}
a{color:#1457d9;text-decoration:none}
.container{max-width:1180px;margin:auto;padding:20px}
.site-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:10}
.nav{display:flex;align-items:center;justify-content:space-between;gap:20px}
.nav nav{display:flex;align-items:center;gap:16px}
.brand{font-size:24px;font-weight:800;color:#0f2747}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:24px;margin-top:24px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.hero{padding:48px}.hero h1{font-size:38px;margin:0 0 10px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.stats .card strong{font-size:30px;display:block;margin-top:8px}
.stats .card span,.info-grid span{color:#64748b}
.btn{display:inline-block;background:#1457d9;color:#fff;border:none;border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer}
.btn-small{padding:9px 13px}.btn-secondary{background:#64748b}.btn-danger{background:#b42318}.full{width:100%;margin-top:18px}
.auth-wrap{display:flex;justify-content:center}.auth-card{width:min(100%,480px)}
label{display:block;margin:16px 0 6px;font-weight:700}
input{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:8px;font-size:16px}
.alert{padding:14px 16px;border-radius:8px;margin-top:20px}.alert.success{background:#ecfdf5;border:1px solid #a7f3d0}.alert.error{background:#fef2f2;border:1px solid #fecaca}
.inline-form{display:inline}.link-button{border:0;background:none;color:#1457d9;cursor:pointer;font:inherit;padding:0}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}.info-grid div{background:#f8fafc;border-radius:8px;padding:16px}.info-grid strong{display:block;margin-top:6px}
.muted{color:#64748b}.site-footer{margin-top:50px;padding:28px 0;border-top:1px solid #e2e8f0;background:#fff;color:#64748b}
.page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.page-heading h1{margin-bottom:6px}
.admin-search{display:flex;align-items:end;gap:12px}.admin-search>div{flex:1}.admin-search label{margin-top:0}
.table-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.table-heading h2{margin:0}.table-scroll{overflow-x:auto;margin-top:18px}
.admin-table{width:100%;border-collapse:collapse;min-width:980px}.admin-table th,.admin-table td{text-align:left;padding:14px 12px;border-bottom:1px solid #e2e8f0;vertical-align:middle}.admin-table th{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#64748b;background:#f8fafc}.admin-table td small{display:block;color:#64748b;margin-top:4px}
.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;background:#eef2f7}.role-admin{background:#f3e8ff;color:#6b21a8}.role-seller{background:#dbeafe;color:#1d4ed8}.role-customer{background:#f1f5f9;color:#475569}.status-active{background:#dcfce7;color:#166534}.status-blocked{background:#fee2e2;color:#991b1b}.status-suspended{background:#fef3c7;color:#92400e}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-actions form{margin:0}.admin-actions .btn{white-space:nowrap}
@media(max-width:800px){.grid,.info-grid{grid-template-columns:1fr}.nav{align-items:flex-start}.nav nav{flex-wrap:wrap;justify-content:flex-end}.hero{padding:28px}.hero h1{font-size:30px}.admin-search{align-items:stretch;flex-direction:column}.page-heading{align-items:flex-start;flex-direction:column}}

/* Ajustes Fase 3.1 */
.admin-table th,.admin-table td{white-space:nowrap}
.admin-table td:first-child{white-space:normal;min-width:210px}
.admin-table td:last-child{min-width:260px}
.admin-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.admin-actions .btn{font-size:13px;padding:8px 10px}
.protected-account{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;font-weight:700;color:#475569;background:#f1f5f9;border-radius:999px;padding:7px 10px}
.password-form{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr)) auto;gap:12px;align-items:end;margin-top:8px}
.password-form label{margin-top:0}
.password-form .btn{margin-bottom:0;white-space:nowrap}
@media(max-width:900px){.password-form{grid-template-columns:1fr}.password-form .btn{width:100%}}


/* Fase 3.2 — escala global compacta */
html{font-size:14px}
body{font-size:14px;line-height:1.45}
.container{max-width:1120px;padding:14px 16px}
.nav{gap:14px}
.nav nav{gap:12px}
.brand{font-size:20px}
.card{border-radius:10px;padding:17px 18px;margin-top:16px}
.hero{padding:30px}
.hero h1{font-size:30px;margin-bottom:7px}
.stats .card strong{font-size:24px}
.btn{border-radius:7px;padding:9px 13px;font-size:13px}
.btn-small{padding:7px 10px;font-size:12px}
.full{margin-top:14px}
label{margin:11px 0 5px;font-size:13px}
input{padding:9px 10px;border-radius:7px;font-size:14px}
.alert{padding:10px 12px;margin-top:14px}
.info-grid{gap:12px;margin-top:14px}
.info-grid div{padding:12px}
.site-footer{margin-top:32px;padding:20px 0}
.page-heading{gap:14px}
.page-heading h1{font-size:26px;margin:0 0 4px}
.admin-search{gap:9px}
.table-scroll{margin-top:12px}
.admin-table{min-width:820px}
.admin-table th,.admin-table td{padding:9px 8px}
.admin-table th{font-size:11px}
.admin-table td{font-size:13px}
.admin-table td:first-child{min-width:175px}
.admin-table td:last-child{min-width:215px}
.admin-table td small{margin-top:2px}
.badge{padding:4px 7px;font-size:11px}
.admin-actions{gap:5px}
.admin-actions .btn{font-size:11px;padding:6px 8px}
.protected-account{font-size:11px;padding:5px 7px}
.password-form{grid-template-columns:repeat(3,minmax(160px,1fr)) auto;gap:9px}
.password-form input{font-size:13px;padding:8px 9px}

@media(max-width:800px){
  html{font-size:13px}
  .container{padding:10px 12px}
  .card{padding:14px;margin-top:12px}
  .hero{padding:20px}
  .hero h1{font-size:25px}
  .page-heading h1{font-size:23px}
  .brand{font-size:18px}
  .nav{gap:9px}
  .nav nav{gap:8px}
  .btn{padding:8px 11px}
  .admin-table{min-width:760px}
}

/* Fase 4 — catálogo, productos y administración */
select,textarea{width:100%;padding:9px 10px;border:1px solid #cbd5e1;border-radius:7px;font:inherit;background:#fff;color:#1e293b}
textarea{resize:vertical}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.span-2{grid-column:span 2}.product-form .btn{margin-top:14px}
.product-table{min-width:850px}.product-cell{display:flex;align-items:center;gap:10px}.product-cell img{width:48px;height:48px;border-radius:8px;object-fit:cover;background:#f1f5f9}
.status-published{background:#dcfce7;color:#166534}.status-paused{background:#fef3c7;color:#92400e}.status-sold_out{background:#f1f5f9;color:#475569}.status-active{background:#dcfce7;color:#166534}.status-inactive{background:#f1f5f9;color:#64748b}
.image-manager{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.image-item{border:1px solid #e2e8f0;border-radius:9px;padding:8px}.image-item img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px;margin-bottom:8px}
.admin-nav{display:flex;gap:8px;flex-wrap:wrap}.admin-split{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1.5fr);gap:16px}.admin-split>.card{align-self:start}
.category-chips{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.category-chips span{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px 10px;font-size:12px}
.catalog-section{margin-top:18px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:12px}.product-card{display:block;background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;color:#1e293b;transition:transform .12s ease,box-shadow .12s ease}.product-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.08)}.product-card-image{aspect-ratio:1/1;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#94a3b8}.product-card-image img{width:100%;height:100%;object-fit:cover}.product-card-body{padding:11px}.product-card-body small,.product-card-body span{display:block;color:#64748b;font-size:11px}.product-card-body h3{font-size:14px;line-height:1.3;margin:5px 0 8px}.product-card-body strong{display:block;font-size:17px;margin-bottom:6px;color:#0f172a}
.product-detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:24px}.product-main-image{width:100%;max-height:620px;object-fit:contain;border-radius:9px;background:#f8fafc}.image-placeholder{aspect-ratio:1/1;background:#f1f5f9;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#94a3b8}.product-info h1{font-size:26px;margin:10px 0}.product-price{font-size:28px;font-weight:800;margin:12px 0 2px}.compare-price{text-decoration:line-through;color:#94a3b8}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-split{grid-template-columns:1fr}.product-detail{grid-template-columns:1fr}}
@media(max-width:650px){.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-info h1{font-size:22px}.product-price{font-size:24px}}


/* Fase 4.1 — identidad cálida beige + terracota */
:root{
  --ink:#3f342f;
  --muted:#7a6a62;
  --line:#e3d8cf;
  --surface:#fffaf5;
  --surface-soft:#f5eee7;
  --surface-warm:#f3e3d7;
  --brand:#b7674f;
  --brand-dark:#8f4939;
  --brand-soft:#efd4c6;
  --sand:#d9c3ad;
}
body{
  background:
    radial-gradient(circle at top left,rgba(183,103,79,.08),transparent 28%),
    linear-gradient(180deg,#f3ece5 0,#f8f4ef 240px,#f6f2ed 100%);
  color:var(--ink);
}
.site-header{
  background:rgba(255,250,245,.95);
  border-bottom:1px solid rgba(220,205,194,.9);
  box-shadow:0 5px 18px rgba(87,63,50,.05);
  backdrop-filter:blur(10px);
}
.brand{color:var(--brand-dark);letter-spacing:-.02em}
.nav nav a:not(.btn),.link-button{color:#66564e}
.nav nav a:not(.btn):hover,.link-button:hover{color:var(--brand)}
.card{
  background:rgba(255,250,245,.96);
  border-color:#e5d9cf;
  box-shadow:0 8px 24px rgba(87,63,50,.055);
}
.btn,.btn-accent{
  background:linear-gradient(180deg,#c8755b,#b7674f);
  color:#fff;
  box-shadow:0 5px 12px rgba(183,103,79,.18);
}
.btn:hover,.btn-accent:hover{background:linear-gradient(180deg,#bd6d55,#a95844)}
.btn-secondary{background:#8c7a70;box-shadow:none}
.btn-danger{background:#9f4338;box-shadow:none}
.muted{color:var(--muted)}

.marketplace-hero,.dashboard-hero{
  margin-top:16px;
  border:1px solid #e3d5ca;
  border-radius:16px;
  overflow:hidden;
  position:relative;
  box-shadow:0 16px 36px rgba(87,63,50,.07);
}
.marketplace-hero{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(260px,.7fr);
  gap:26px;
  padding:34px;
  background:linear-gradient(120deg,rgba(255,250,245,.98),rgba(244,229,216,.96));
}
.dashboard-hero{
  padding:22px 24px;
  background:linear-gradient(120deg,#fffaf5,#f4e5d9);
}
.marketplace-hero:after,.dashboard-hero:after{
  content:"";
  position:absolute;
  width:220px;height:220px;border-radius:50%;
  right:-90px;top:-100px;
  background:rgba(183,103,79,.08);
}
.hero-copy,.hero-panel,.dashboard-hero .page-heading{position:relative;z-index:1}
.eyebrow{
  display:inline-block;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  font-size:10px;
  color:var(--brand);
  margin-bottom:7px;
}
.marketplace-hero h1{
  font-size:32px;
  line-height:1.08;
  margin:0 0 9px;
  letter-spacing:-.025em;
  color:#4a382f;
}
.marketplace-hero p{
  max-width:590px;
  color:#75645b;
  margin:0 0 17px;
}
.hero-panel{
  align-self:stretch;
  padding:18px;
  border-radius:12px;
  background:rgba(255,248,241,.78);
  border:1px solid rgba(213,190,172,.88);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-panel strong{font-size:16px;margin-bottom:6px;color:#744735}
.hero-panel span{color:#7a6a62;font-size:12px;line-height:1.5}

.seller-stats .card{
  background:linear-gradient(180deg,#fffaf5,#f8efe7);
}
.seller-stats .card strong{color:#8f4939}
.dashboard-card{background:#fffaf5}
.admin-table th{background:#f4ebe4;color:#746158}
.badge{background:#eee3db}
.role-admin{background:#ead9ea;color:#6f4b6e}
.role-seller{background:#f1d9cc;color:#8f4939}
.role-customer{background:#eee7df;color:#66564e}
.status-active{background:#dde9dc;color:#476446}
.status-blocked{background:#f0d8d3;color:#8f3f36}
.status-suspended{background:#efe2c6;color:#805f28}

input,select,textarea{
  background:#fffdf9;
  border-color:#d9c9bd;
  color:#473a34;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:#c98770;
  box-shadow:0 0 0 3px rgba(183,103,79,.10);
}

@media(max-width:800px){
  .marketplace-hero{grid-template-columns:1fr;padding:22px}
  .marketplace-hero h1{font-size:26px}
  .dashboard-hero{padding:17px}
}


/* Fase 4.2 — rojo cálido suave + amarillo claro + verde claro */
:root{
  --ink:#403a36;
  --muted:#756e68;
  --line:#e7ddd2;
  --surface:#fffdf8;
  --surface-soft:#faf5ea;
  --surface-warm:#fff2cf;
  --brand:#b85c54;
  --brand-dark:#934840;
  --brand-soft:#f2d8d3;
  --yellow:#f6e7a8;
  --yellow-soft:#fff6d7;
  --green:#9fbd91;
  --green-dark:#58764f;
  --green-soft:#e5f0df;
}
body{
  background:
    radial-gradient(circle at top left,rgba(246,231,168,.28),transparent 28%),
    radial-gradient(circle at top right,rgba(159,189,145,.13),transparent 25%),
    linear-gradient(180deg,#fbf7ee 0,#fffdf8 280px,#f8f5ef 100%);
  color:var(--ink);
}
.site-header{
  background:rgba(255,253,248,.96);
  border-bottom-color:#eadfce;
  box-shadow:0 5px 18px rgba(85,70,58,.05);
}
.brand{color:var(--brand-dark)}
.nav nav a:not(.btn),.link-button{color:#655d57}
.nav nav a:not(.btn):hover,.link-button:hover{color:var(--brand)}
.card{
  background:rgba(255,253,248,.97);
  border-color:#e8ded3;
  box-shadow:0 8px 24px rgba(85,70,58,.055);
}
.btn,.btn-accent{
  background:linear-gradient(180deg,#c76860,#b85c54);
  color:#fff;
  box-shadow:0 5px 12px rgba(184,92,84,.16);
}
.btn:hover,.btn-accent:hover{background:linear-gradient(180deg,#b95d55,#a65049)}
.btn-secondary{background:#7e9274;box-shadow:none}
.btn-danger{background:#a84f48;box-shadow:none}

.marketplace-hero{
  background:linear-gradient(120deg,#fffdf8 0,#fff3d5 58%,#edf4e8 100%);
  border-color:#e9ddc8;
}
.dashboard-hero{
  background:linear-gradient(120deg,#fffdf8,#fff2d0 68%,#eaf3e5);
  border-color:#e7dcc9;
}
.marketplace-hero:after,.dashboard-hero:after{background:rgba(159,189,145,.14)}
.eyebrow{color:var(--brand)}
.marketplace-hero h1{color:#57443e}
.marketplace-hero p,.hero-panel span{color:#756d66}
.hero-panel{
  background:rgba(255,253,244,.82);
  border-color:#ead9a8;
}
.hero-panel strong{color:var(--brand-dark)}

.seller-stats .card:nth-child(3n+1){background:linear-gradient(180deg,#fffdf8,#fff4d7)}
.seller-stats .card:nth-child(3n+2){background:linear-gradient(180deg,#fffdf8,#eaf3e5)}
.seller-stats .card:nth-child(3n+3){background:linear-gradient(180deg,#fffdf8,#f4dfdb)}
.seller-stats .card strong{color:var(--brand-dark)}
.dashboard-card{background:#fffdf8}
.admin-table th{background:#f8f0df;color:#71675e}

.role-admin{background:#f2ded9;color:#8e4942}
.role-seller{background:#e5f0df;color:#58764f}
.role-customer{background:#fff0bd;color:#776223}
.status-active{background:#e2efdc;color:#4f7048}
.status-blocked{background:#f2d9d5;color:#934840}
.status-suspended{background:#fff0bd;color:#786322}

input,select,textarea{
  background:#fffefb;
  border-color:#ddd2c6;
  color:#473f3a;
}
input:focus,select:focus,textarea:focus{
  border-color:#c97770;
  box-shadow:0 0 0 3px rgba(184,92,84,.09);
}


/* Fase 4.3 — prueba: rojo pálido principal + naranja pálido de acento */
:root{
  --brand:#d98278;
  --brand-dark:#ad5f58;
  --brand-soft:#f4d6d2;
  --orange:#efb47f;
  --orange-soft:#fae2c9;
  --yellow:#f5e6a9;
  --yellow-soft:#fff5cf;
  --green:#b5cfa8;
  --green-dark:#5e7955;
  --green-soft:#e6f0e0;
  --surface:#fffaf3;
  --surface-soft:#f8f1e8;
  --ink:#443b37;
}
body{
  background:
    radial-gradient(circle at 8% 0,rgba(239,180,127,.18),transparent 26%),
    radial-gradient(circle at 94% 4%,rgba(181,207,168,.15),transparent 24%),
    linear-gradient(180deg,#fff8ef 0,#fffdf8 280px,#f8f4ee 100%);
}
.site-header{background:rgba(255,250,243,.96)}
.brand{color:#a95851}
.btn,.btn-accent{
  background:linear-gradient(180deg,#df8c82,#d17a70);
  box-shadow:0 5px 12px rgba(209,122,112,.17);
}
.btn:hover,.btn-accent:hover{background:linear-gradient(180deg,#d47f75,#c66f66)}
.btn-secondary{background:#9cb68f}
.marketplace-hero{
  background:linear-gradient(120deg,#fffaf3 0,#fae2c9 46%,#fff2c7 72%,#eaf2e4 100%);
}
.dashboard-hero{
  background:linear-gradient(120deg,#fffaf3 0,#f7ddd8 38%,#fae4cd 68%,#e8f1e2 100%);
}
.marketplace-hero:after,.dashboard-hero:after{background:rgba(217,130,120,.10)}
.hero-panel{background:rgba(255,250,240,.83);border-color:#edcba8}
.hero-panel strong,.eyebrow,.seller-stats .card strong{color:#a95851}
.seller-stats .card:nth-child(3n+1){background:linear-gradient(180deg,#fffdf9,#f8ddd8)}
.seller-stats .card:nth-child(3n+2){background:linear-gradient(180deg,#fffdf9,#fae3cb)}
.seller-stats .card:nth-child(3n+3){background:linear-gradient(180deg,#fffdf9,#e7f0e1)}
.admin-table th{background:#fae8d5}
.role-admin{background:#f5d9d5;color:#99534d}
.role-seller{background:#e4efdf;color:#58734f}
.role-customer{background:#fae2c9;color:#7d5a39}
.status-active{background:#e3efdd;color:#506d49}
.status-suspended{background:#fff0c4;color:#7b6529}
input:focus,select:focus,textarea:focus{
  border-color:#db9188;
  box-shadow:0 0 0 3px rgba(217,130,120,.10);
}


/* Fase 4.4 — fondo blanco + tarjetas rojo cálido muy suave */
:root{
  --brand:#b85f59;
  --brand-dark:#934943;
  --brand-soft:#f7e7e5;
  --red-card:#fdf4f3;
  --red-card-strong:#fae9e7;
  --green-soft:#eaf3e7;
  --green-dark:#587252;
  --ink:#3f3a38;
  --muted:#746d69;
  --line:#eadfdd;
}
html,body{background:#fff;color:var(--ink)}
body{background-image:none}
.site-header{
  background:#fff;
  border-bottom:1px solid #eee5e3;
  box-shadow:0 3px 14px rgba(78,55,51,.045);
}
.brand{color:var(--brand-dark)}
.card{
  background:var(--red-card);
  border:1px solid #efdeda;
  box-shadow:0 7px 20px rgba(110,68,62,.055);
}
.btn,.btn-accent{
  background:#b85f59;
  color:#fff;
  box-shadow:0 4px 10px rgba(184,95,89,.16);
}
.btn:hover,.btn-accent:hover{background:#a9514c}
.btn-secondary{background:#778a72}
.marketplace-hero{
  background:linear-gradient(135deg,#fff 0,#fdf4f3 58%,#fae9e7 100%);
  border-color:#efdeda;
}
.dashboard-hero{
  background:linear-gradient(135deg,#fff 0,#fdf4f3 100%);
  border-color:#efdeda;
}
.marketplace-hero:after,.dashboard-hero:after{background:rgba(184,95,89,.07)}
.hero-panel{
  background:#fff;
  border-color:#eddad7;
}
.hero-panel strong,.eyebrow,.seller-stats .card strong{color:var(--brand-dark)}
.seller-stats .card:nth-child(n){
  background:linear-gradient(180deg,#fff,#fdf4f3);
  border-color:#efdeda;
}
.dashboard-card{background:#fff}
.admin-table th{background:#f9efed;color:#6d625f}
.role-admin{background:#f5e2df;color:#934943}
.role-seller{background:#eaf3e7;color:#587252}
.role-customer{background:#f2efed;color:#665f5b}
.status-active{background:#eaf3e7;color:#587252}
.status-blocked{background:#f5e2df;color:#934943}
.status-suspended{background:#f4eee8;color:#765f50}
input,select,textarea{background:#fff;border-color:#ddd4d1}
input:focus,select:focus,textarea:focus{
  border-color:#c87a74;
  box-shadow:0 0 0 3px rgba(184,95,89,.08);
}
.site-footer{background:#fff;border-top-color:#eee5e3}
