*{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}


/* Fase 4.5 — identidad visual definitiva: blanco + verde suave + azul gris */
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-soft:#f7faf9;
  --surface-green:#eef8f3;
  --text:#23364d;
  --text-soft:#607187;
  --line:#dbe4ea;
  --line-soft:#e9eef2;
  --primary:#25866d;
  --primary-hover:#1f725d;
  --primary-soft:#e7f4ee;
  --success:#2e8b70;
  --danger:#b85c5c;
  --warning:#a7793b;
}

html,body{background:var(--bg);color:var(--text)}
body{background-image:none}

.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 3px 14px rgba(35,54,77,.045);
}
.brand{color:var(--text)}
.nav nav a:not(.btn),.link-button{color:#415873}
.nav nav a:not(.btn):hover,.link-button:hover{color:var(--primary)}

.card{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 7px 22px rgba(35,54,77,.055);
}
.muted,.info-grid span,.stats .card span{color:var(--text-soft)}

.btn,.btn-accent{
  background:var(--primary);
  color:#fff;
  box-shadow:0 4px 10px rgba(37,134,109,.15);
}
.btn:hover,.btn-accent:hover{background:var(--primary-hover)}
.btn-secondary{background:#6f8194;box-shadow:none}
.btn-danger{background:var(--danger);box-shadow:none}

.marketplace-hero{
  background:linear-gradient(135deg,#fff 0,#f8fbfa 58%,#eef8f3 100%);
  border-color:var(--line);
}
.dashboard-hero{
  background:linear-gradient(135deg,#fff 0,#f4faf7 100%);
  border-color:var(--line);
}
.marketplace-hero:after,.dashboard-hero:after{background:rgba(37,134,109,.065)}
.eyebrow{color:var(--primary)}
.marketplace-hero h1{color:var(--text)}
.marketplace-hero p,.hero-panel span{color:var(--text-soft)}
.hero-panel{
  background:#fff;
  border:1px solid var(--line);
}
.hero-panel strong{color:var(--primary-hover)}

.seller-stats .card:nth-child(n){
  background:#fff;
  border-color:var(--line);
}
.seller-stats .card strong{color:var(--primary-hover)}
.dashboard-card{background:#fff}

.admin-table th{
  background:#f5f8fa;
  color:#586b80;
  border-bottom-color:var(--line);
}
.admin-table td{border-bottom-color:var(--line-soft)}
.badge{background:#eef2f5;color:#52657a}
.role-admin{background:#eef2f6;color:#435970}
.role-seller{background:var(--primary-soft);color:#236b58}
.role-customer{background:#f1f4f6;color:#586878}
.status-active{background:#e4f4ea;color:#347052}
.status-blocked{background:#f8e8e8;color:#995050}
.status-suspended{background:#f7f0e5;color:#87683c}
.protected-account{background:#f1f5f7;color:#52657a}

input,select,textarea{
  background:#fff;
  border:1px solid #ccd8e1;
  color:var(--text);
}
input:focus,select:focus,textarea:focus{
  border-color:#69a994;
  box-shadow:0 0 0 3px rgba(37,134,109,.09);
}

.info-grid div{background:#f7faf9}
.alert.success{background:#edf8f2;border-color:#cce8d9;color:#28664f}
.alert.error{background:#fbefef;border-color:#efcece;color:#8d4848}
.site-footer{background:#fff;border-top-color:var(--line);color:#8794a2}

/* Producto / catálogo: superficies limpias y acentos discretos */
.product-card,.product-form,.category-card{
  background:#fff;
  border-color:var(--line);
}
.product-price{color:var(--primary-hover)}


/* Fase 4.6 — detalle de producto */
.product-page{max-width:1120px;margin:0 auto}
.product-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);
  gap:18px;
  align-items:start;
}
.product-gallery-panel,.product-buy-panel{margin-top:16px}
.product-gallery-panel{padding:18px}
.product-gallery-shell{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:14px;
  min-height:470px;
}
.product-thumbs{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:470px;
  overflow-y:auto;
}
.product-thumb{
  display:block;
  width:68px;
  height:68px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}
.product-thumb.active{
  border-color:var(--primary);
  box-shadow:0 0 0 2px rgba(37,134,109,.11);
}
.product-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:6px;
  display:block;
}
.product-main-image-wrap{
  min-height:470px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fbfcfc;
  border:1px solid var(--line-soft);
  border-radius:12px;
  overflow:hidden;
}
.product-main-image{
  width:100%;
  height:470px;
  object-fit:contain;
  display:block;
}
.product-large-placeholder{
  min-height:470px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--line);
  border-radius:12px;
  color:var(--text-soft);
  background:#fafcfc;
}
.product-buy-panel{position:sticky;top:82px}
.product-meta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.product-condition{
  font-size:12px;
  color:var(--text-soft);
}
.product-buy-panel h1{
  margin:4px 0 8px;
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.product-short-description{
  color:var(--text-soft);
  margin:0 0 16px;
}
.product-price-block{margin:14px 0 18px}
.product-price{
  font-size:30px;
  font-weight:800;
  letter-spacing:-.02em;
}
.compare-price{
  margin-top:3px;
  color:#8a98a6;
  text-decoration:line-through;
  font-size:14px;
}
.stock-box{
  padding:12px 13px;
  border-radius:10px;
  background:var(--surface-green);
  border:1px solid #d7ebe2;
  margin-bottom:12px;
}
.stock-box strong,.stock-box span{display:block}
.stock-box strong{color:var(--primary-hover);margin-bottom:2px}
.stock-box span{font-size:12px;color:var(--text-soft)}
.seller-mini-card{
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  margin-bottom:12px;
}
.seller-mini-card span,.seller-mini-card strong,.seller-mini-card small{display:block}
.seller-mini-card span,.seller-mini-card small{color:var(--text-soft);font-size:12px}
.seller-mini-card strong{margin:2px 0}
.product-buy-button:disabled{
  opacity:.58;
  cursor:not-allowed;
  box-shadow:none;
}
.purchase-coming-soon{
  font-size:11px;
  color:var(--text-soft);
  line-height:1.45;
  text-align:center;
  margin:8px 0 0;
}
.product-description-card{padding:20px}
.section-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line-soft);
}
.section-title-row h2{margin:0;font-size:20px}
.product-description{
  padding-top:16px;
  line-height:1.7;
  color:#3f5064;
}
.product-info-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.product-fact-card{
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:12px;
  padding:15px;
}
.product-fact-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--primary-soft);
  color:var(--primary-hover);
  font-weight:800;
}
.product-fact-card strong,.product-fact-card div span{display:block}
.product-fact-card div span{font-size:12px;color:var(--text-soft);margin-top:2px}

@media(max-width:850px){
  .product-detail-layout{grid-template-columns:1fr}
  .product-buy-panel{position:static;margin-top:0}
  .product-gallery-shell{grid-template-columns:1fr;min-height:auto}
  .product-thumbs{
    order:2;
    flex-direction:row;
    max-height:none;
    overflow-x:auto;
  }
  .product-main-image-wrap{min-height:330px}
  .product-main-image{height:330px}
  .product-info-grid{grid-template-columns:1fr}
}


/* Fase 5.0 — carrito */
.cart-nav-link{display:inline-flex;align-items:center;gap:5px}
.cart-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:10px;
  font-weight:800;
}
.quantity-row{
  display:grid;
  grid-template-columns:auto 86px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0 0;
}
.quantity-row label{margin:0}
.quantity-row input{padding:8px 9px;text-align:center}
.add-cart-form .full{margin-top:11px}

.cart-heading{margin-top:8px}
.cart-heading .eyebrow{margin-bottom:2px}
.cart-clear-link{color:var(--danger)}
.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);
  gap:18px;
  align-items:start;
}
.cart-items{display:flex;flex-direction:column;gap:10px}
.cart-item{
  display:grid;
  grid-template-columns:100px minmax(0,1fr) auto;
  gap:15px;
  align-items:center;
  margin-top:0;
  padding:14px;
}
.cart-item-image{
  width:100px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line-soft);
  border-radius:10px;
  overflow:hidden;
  background:#f8faf9;
  color:var(--text-soft);
  font-size:11px;
}
.cart-item-image img{width:100%;height:100%;object-fit:cover;display:block}
.cart-item-main{min-width:0}
.cart-seller{
  display:block;
  color:var(--text-soft);
  font-size:11px;
  margin-bottom:3px;
}
.cart-item-title{
  display:block;
  color:var(--text);
  font-size:15px;
  font-weight:800;
  line-height:1.25;
}
.cart-unit-price{color:var(--text-soft);font-size:12px;margin-top:4px}
.cart-item-actions{
  display:flex;
  align-items:end;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}
.cart-quantity-form{
  display:flex;
  align-items:end;
  gap:7px;
}
.cart-quantity-form label{margin:0 0 7px;font-size:11px}
.cart-quantity-form input{width:70px;padding:7px 8px;text-align:center}
.cart-remove{color:var(--danger);font-size:12px;margin-bottom:7px}
.cart-line-total{
  align-self:start;
  font-size:16px;
  font-weight:800;
  color:var(--text);
  white-space:nowrap;
}
.cart-summary{
  position:sticky;
  top:82px;
  margin-top:0;
}
.cart-summary h2{margin:0 0 14px;font-size:19px}
.summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid var(--line-soft);
}
.summary-row.total{
  padding-top:14px;
  border-bottom:0;
  font-size:17px;
}
.summary-row.total strong{font-size:21px;color:var(--primary-hover)}
.multi-seller-note{
  margin-top:13px;
  padding:11px;
  border-radius:9px;
  background:var(--surface-green);
  border:1px solid #d8ebe3;
}
.multi-seller-note strong,.multi-seller-note span{display:block}
.multi-seller-note strong{font-size:12px;color:var(--primary-hover)}
.multi-seller-note span{font-size:11px;color:var(--text-soft);margin-top:2px}
.empty-cart{
  text-align:center;
  padding:42px 20px;
  max-width:660px;
  margin:30px auto 0;
}
.empty-cart-icon{font-size:38px;margin-bottom:8px}
.empty-cart h2{margin:4px 0 6px}

@media(max-width:850px){
  .cart-layout{grid-template-columns:1fr}
  .cart-summary{position:static}
}
@media(max-width:620px){
  .cart-item{
    grid-template-columns:78px minmax(0,1fr);
    align-items:start;
  }
  .cart-item-image{width:78px;height:78px}
  .cart-line-total{
    grid-column:2;
    margin-top:-3px;
  }
  .cart-quantity-form{flex-wrap:wrap}
}


/* Fase 5.2 — ventas y separación automática por vendedor */
.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sales-alerts{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.sale-notification{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:0;
  padding:13px 15px;
  background:var(--surface-green);
  border-color:#d8ebe3;
}
.sale-notification-dot{
  width:9px;height:9px;flex:0 0 9px;border-radius:50%;
  margin-top:5px;background:var(--primary);
}
.sale-notification strong{display:block;color:var(--primary-hover)}
.sale-notification p{margin:2px 0 0;color:var(--text-soft);font-size:12px}
.empty-sales{padding:28px;text-align:center}
.empty-sales strong{font-size:17px}
.order-status-paid,.order-status-completed{background:#e4f4ea;color:#347052}
.order-status-pending_payment{background:#eef2f6;color:#53677d}
.order-status-preparing{background:#e9f3f6;color:#416b79}
.order-status-shipped{background:#e9eff7;color:#4c6382}
.order-status-cancelled,.order-status-refunded{background:#f8e8e8;color:#995050}

.purchase-list{display:flex;flex-direction:column;gap:12px}
.purchase-card{margin-top:0}
.purchase-head{
  display:flex;justify-content:space-between;gap:20px;align-items:flex-start;
  padding-bottom:15px;border-bottom:1px solid var(--line-soft);
}
.purchase-head h2{margin:3px 0;font-size:18px}
.purchase-total{text-align:right}
.purchase-total>span,.purchase-total>strong{display:block}
.purchase-total>span:first-child{font-size:11px;color:var(--text-soft)}
.purchase-total>strong{font-size:22px;color:var(--primary-hover);margin:2px 0 5px}
.seller-split-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:9px;
  margin-top:13px;
}
.seller-split-card{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f9fbfa;
}
.seller-split-card>div:last-child{text-align:right}
.seller-split-card span,.seller-split-card strong,.seller-split-card small{display:block}
.seller-split-card span,.seller-split-card small{font-size:11px;color:var(--text-soft)}
.seller-split-card strong{margin:2px 0}

@media(max-width:650px){
  .purchase-head{display:block}
  .purchase-total{text-align:left;margin-top:10px}
  .seller-split-card{display:block}
  .seller-split-card>div:last-child{text-align:left;margin-top:9px}
}


/* Fase 5.3 — compra pendiente antes de Mercado Pago */
.pending-purchase-card{
  max-width:720px;
  margin:28px auto 0;
  padding:30px;
  text-align:center;
}
.pending-purchase-icon{
  width:54px;
  height:54px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--primary-soft);
  color:var(--primary-hover);
  font-size:24px;
  font-weight:900;
}
.pending-purchase-card h1{
  margin:5px 0 10px;
  font-size:27px;
}
.pending-purchase-card>p{
  color:var(--text-soft);
  line-height:1.6;
}
.pending-purchase-note{
  margin:18px auto;
  padding:14px 16px;
  max-width:590px;
  border:1px solid #d8ebe3;
  border-radius:10px;
  background:var(--surface-green);
  text-align:left;
}
.pending-purchase-note strong,
.pending-purchase-note span{display:block}
.pending-purchase-note strong{
  color:var(--primary-hover);
  margin-bottom:4px;
}
.pending-purchase-note span{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.55;
}
.pending-purchase-actions{
  display:flex;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
  margin-top:18px;
}


/* Fase 5.4 — Mis compras */
.buyer-purchase-list{display:flex;flex-direction:column;gap:10px}
.buyer-purchase-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-top:0;
  padding:16px 18px;
}
.buyer-purchase-main h2{margin:4px 0 6px;font-size:22px;color:var(--text)}
.buyer-purchase-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--text-soft);font-size:11px}
.buyer-purchase-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.empty-purchases{text-align:center;padding:40px 20px;max-width:680px;margin:28px auto 0}
.empty-purchases-icon{font-size:36px;margin-bottom:7px}
.empty-purchases h2{margin:4px 0 6px}

.buyer-order-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  padding:0;
  overflow:hidden;
}
.buyer-order-summary>div{padding:16px 18px;background:#fff}
.buyer-order-summary span,.buyer-order-summary strong{display:block}
.buyer-order-summary>div>span{font-size:11px;color:var(--text-soft);margin-bottom:4px}
.buyer-order-summary>div>strong{font-size:16px}
.purchase-payment-pending{
  margin:12px 0;
  background:#f5f8fa;
  border:1px solid var(--line);
  color:var(--text-soft);
}
.purchase-payment-pending strong{color:var(--text)}

.buyer-seller-orders{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.buyer-seller-order{margin-top:0}
.buyer-seller-order-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  padding-bottom:13px;
  border-bottom:1px solid var(--line-soft);
}
.buyer-seller-order-head h2{margin:3px 0 0;font-size:17px}
.buyer-seller-order-state{text-align:right}
.buyer-seller-order-state strong{display:block;margin-top:6px;font-size:18px;color:var(--primary-hover)}
.buyer-order-items{display:flex;flex-direction:column}
.buyer-order-item{
  display:grid;
  grid-template-columns:60px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line-soft);
}
.buyer-order-item:last-child{border-bottom:0;padding-bottom:0}
.buyer-order-item-image{
  width:60px;height:60px;border:1px solid var(--line-soft);border-radius:9px;
  overflow:hidden;background:#f8faf9;display:flex;align-items:center;justify-content:center;
  color:var(--text-soft);font-size:10px;
}
.buyer-order-item-image img{width:100%;height:100%;object-fit:cover}
.buyer-order-item-info strong,.buyer-order-item-info span,.buyer-order-item-info small{display:block}
.buyer-order-item-info span,.buyer-order-item-info small{color:var(--text-soft);font-size:11px;margin-top:2px}
.buyer-order-item-total{font-weight:800;white-space:nowrap}

@media(max-width:680px){
  .buyer-purchase-card{display:block}
  .buyer-purchase-actions{justify-content:flex-start;margin-top:10px}
  .buyer-order-summary{grid-template-columns:1fr}
  .buyer-seller-order-head{display:block}
  .buyer-seller-order-state{text-align:left;margin-top:9px}
  .buyer-order-item{grid-template-columns:52px minmax(0,1fr)}
  .buyer-order-item-image{width:52px;height:52px}
  .buyer-order-item-total{grid-column:2}
}

/* Fase 5.16 - Calificaciones y opiniones */
.product-reviews{margin-top:28px}
.reviews-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.reviews-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--text-soft)}
.review-stars{letter-spacing:1px;color:var(--primary);white-space:nowrap}
.review-form-card{margin-bottom:16px}
.review-form-card form{display:grid;gap:10px}
.reviews-list{display:grid;gap:12px}
.review-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px}
.review-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px}
.review-card p{margin:0 0 8px;line-height:1.5}


/* Fase 5.16.1 — portada: buscador simple + banner comercial */
.home-search{
  margin-top:16px;
  padding:16px 18px;
}
.home-search-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
}
.home-search-field{
  margin:0;
}
.home-search-field span{
  display:block;
  margin-bottom:5px;
  font-weight:700;
}
.home-search-field input{
  min-height:42px;
}
.home-search-button{
  min-height:42px;
  padding-left:20px;
  padding-right:20px;
  white-space:nowrap;
}

.home-marketplace-hero{
  margin-top:16px;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);
  min-height:290px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(110deg,#ffffff 0%,#f7faf9 48%,#eef8f3 100%);
  box-shadow:0 8px 24px rgba(35,54,77,.06);
}
.home-marketplace-copy{
  padding:34px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  z-index:1;
}
.home-marketplace-copy h1{
  margin:0 0 10px;
  max-width:560px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.025em;
  color:var(--text);
}
.home-marketplace-copy>p{
  margin:0;
  color:var(--text-soft);
  font-size:15px;
}
.home-hero-benefits{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
.home-hero-benefits span{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.86);
  color:var(--text-soft);
  font-size:11px;
  font-weight:700;
}
.home-marketplace-visual{
  min-width:0;
  position:relative;
  background:var(--surface-green);
}
.home-marketplace-visual:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.28) 18%,rgba(255,255,255,0) 42%);
  z-index:1;
  pointer-events:none;
}
.home-marketplace-visual img{
  width:100%;
  height:100%;
  min-height:290px;
  display:block;
  object-fit:cover;
  object-position:center;
}

@media(max-width:800px){
  .home-marketplace-hero{
    grid-template-columns:1fr;
  }
  .home-marketplace-copy{
    padding:24px 22px;
  }
  .home-marketplace-copy h1{
    font-size:28px;
  }
  .home-marketplace-visual{
    min-height:210px;
  }
  .home-marketplace-visual:before{
    background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,0) 38%);
  }
  .home-marketplace-visual img{
    min-height:210px;
  }
}

@media(max-width:520px){
  .home-search{
    padding:13px;
  }
  .home-search-form{
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
  }
  .home-search-button{
    padding-left:13px;
    padding-right:13px;
  }
  .home-marketplace-copy{
    padding:20px 18px;
  }
  .home-marketplace-copy h1{
    font-size:25px;
  }
  .home-hero-benefits{
    margin-top:16px;
  }
}


/* Fase 5.16.2 — banner elegido por el administrador */
.home-marketplace-hero.home-marketplace-hero-image{
  display:block;
  min-height:0;
  overflow:hidden;
  background:#fff;
}
.home-marketplace-hero-image img{
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  object-fit:contain;
}
@media(max-width:800px){
  .home-marketplace-hero.home-marketplace-hero-image,
  .home-marketplace-hero-image img{
    min-height:0;
  }
}


/* Fase 5.16.4 — banner compacto, imagen completa y sin caché antigua */
.home-marketplace-hero.home-marketplace-hero-image{
  display:block;
  height:auto;
  min-height:0;
  overflow:hidden;
  background:#fff;
  border-radius:14px;
}
.home-marketplace-hero-image img{
  display:block;
  width:100%;
  height:auto;
  max-height:245px;
  min-height:0;
  object-fit:contain;
  object-position:center;
  margin:0 auto;
}
@media(max-width:1000px){
  .home-marketplace-hero-image img{max-height:210px}
}
@media(max-width:700px){
  .home-marketplace-hero-image img{max-height:170px}
}
@media(max-width:480px){
  .home-marketplace-hero-image img{max-height:135px}
}


/* Fase 5.16.5 — buscador naranja aprobado */
.home-search{
  padding:14px;
  border:0;
  border-radius:16px;
  background:#f28c28;
  box-shadow:none;
}
.home-search-form{
  display:block;
}
.home-search-field{
  display:block;
  margin:0;
}
.home-search-field input{
  width:100%;
  min-height:52px;
  padding:0 20px;
  border:1px solid rgba(35,54,77,.12);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  font-size:18px;
  box-shadow:0 2px 8px rgba(35,54,77,.08);
}
.home-search-field input::placeholder{
  color:#72777d;
  opacity:1;
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
@media(max-width:520px){
  .home-search{
    padding:10px;
    border-radius:14px;
  }
  .home-search-field input{
    min-height:48px;
    padding:0 15px;
    border-radius:12px;
    font-size:16px;
  }
}


/* Fase 5.16.6 — mismo ancho, menor altura */
.home-search{
  width:100%;
  padding:7px 9px;
  border-radius:13px;
}
.home-search-field input{
  min-height:38px;
  height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:16px;
}
@media(max-width:520px){
  .home-search{
    padding:6px 7px;
    border-radius:11px;
  }
  .home-search-field input{
    min-height:36px;
    height:36px;
    padding:0 13px;
    border-radius:9px;
    font-size:15px;
  }
}


/* Fase 5.17.1.2 — formato para preguntas y respuestas */
.product-questions{
  margin-top:28px;
}
.product-questions .section-title{
  margin-bottom:14px;
}
.product-question-form{
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-soft);
  margin-bottom:18px;
}
.product-question-form textarea{
  width:100%;
  min-height:92px;
  resize:vertical;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--text);
}
.product-question-list{
  display:grid;
  gap:12px;
}
.product-question-card{
  padding:16px;
  border:1px solid var(--line-soft);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(35,54,77,.05);
}
.product-question-row,
.product-answer-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.product-question-icon,
.product-answer-icon{
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-weight:700;
  font-size:13px;
}
.product-question-icon{
  background:#f1f4f7;
  color:var(--text);
}
.product-answer-icon{
  background:var(--primary-soft);
  color:var(--primary);
}
.product-question-body,
.product-answer-body{
  min-width:0;
  flex:1;
}
.product-question-text,
.product-answer-text{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.5;
}
.product-question-meta,
.product-answer-meta{
  margin-top:5px;
  font-size:12px;
  color:var(--text-soft);
}
.product-answer-row{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line-soft);
}
.product-answer-empty{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed var(--line);
  color:var(--text-soft);
  font-size:14px;
}
.product-question-empty{
  padding:16px;
  border:1px dashed var(--line);
  border-radius:14px;
  background:var(--surface-soft);
  color:var(--text-soft);
}
@media(max-width:600px){
  .product-question-card,
  .product-question-form{
    padding:13px;
    border-radius:12px;
  }
  .product-question-icon,
  .product-answer-icon{
    flex-basis:28px;
    width:28px;
    height:28px;
  }
}


/* Fase 5.17.1.3 — estilos reales para el HTML de preguntas/respuestas */
.product-questions-card{
  margin-top:28px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(35,54,77,.05);
}

.question-section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.question-section-heading h2{
  margin:0 0 4px;
}

.question-count{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:13px;
  font-weight:700;
}

.product-question-form{
  display:grid;
  gap:10px;
  padding:16px;
  margin-bottom:20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-soft);
}

.product-question-form label{
  font-weight:700;
}

.product-question-form textarea{
  width:100%;
  min-height:90px;
  resize:vertical;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
}

.question-form-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.question-owner-note,
.question-login-box{
  padding:14px 16px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-soft);
}

.question-login-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.question-list{
  display:grid;
  gap:14px;
}

.question-item{
  padding:16px;
  border:1px solid var(--line-soft);
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 12px rgba(35,54,77,.04);
}

.question-line,
.answer-line{
  display:flex;
  align-items:flex-start;
  gap:11px;
}

.question-bubble-icon,
.answer-bubble-icon{
  flex:0 0 32px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-weight:800;
  line-height:1;
}

.question-bubble-icon{
  background:#f1f4f7;
  color:var(--text);
}

.answer-bubble-icon{
  background:var(--primary-soft);
  color:var(--primary);
}

.question-line > div,
.answer-line > div{
  min-width:0;
  flex:1;
}

.question-text{
  margin:1px 0 6px;
  color:var(--text);
  font-size:16px;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}

.answer-line{
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid var(--line-soft);
}

.answer-line strong{
  display:block;
  margin-bottom:5px;
  color:var(--text);
  font-size:14px;
}

.answer-text{
  margin-bottom:6px;
  color:var(--text);
  line-height:1.45;
  overflow-wrap:anywhere;
}

.question-pending-answer{
  margin-top:12px;
  padding:10px 12px;
  border-radius:10px;
  background:var(--surface-soft);
  color:var(--text-soft);
  font-size:14px;
}

.empty-questions{
  display:grid;
  gap:4px;
  padding:16px;
  border:1px dashed var(--line);
  border-radius:12px;
  background:var(--surface-soft);
}

@media(max-width:650px){
  .product-questions-card{
    padding:14px;
    border-radius:14px;
  }

  .question-section-heading,
  .question-form-footer,
  .question-login-box{
    align-items:stretch;
    flex-direction:column;
  }

  .question-count{
    align-self:flex-start;
  }

  .question-item{
    padding:13px;
  }

  .question-bubble-icon,
  .answer-bubble-icon{
    flex-basis:28px;
    width:28px;
    height:28px;
  }
}


/* Fase 5.17.3.3 — checkout con dirección compacta */
.checkout-saved-address{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:16px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--primary-soft);
}
.checkout-saved-address-copy{
  min-width:0;
}
.checkout-saved-address h2{
  margin:4px 0 12px;
  font-size:18px;
}
.checkout-saved-address-summary{
  display:grid;
  gap:3px;
}
.checkout-saved-address-summary strong{
  color:var(--text);
  font-size:16px;
}
.checkout-saved-address-summary span{
  color:var(--text-soft);
  overflow-wrap:anywhere;
}
.checkout-edit-address{
  flex:0 0 auto;
}
.checkout-address-fields{
  display:grid;
  gap:14px;
  margin-bottom:16px;
}
.checkout-address-fields.is-collapsed{
  display:none;
}
@media(max-width:650px){
  .checkout-saved-address{
    flex-direction:column;
  }
  .checkout-edit-address{
    width:100%;
  }
}


/* Fase 5.18.1 — restaura formato visual de la campanita */
/* Fase 5.14 — centro de notificaciones */
.nav-notification-link{position:relative;display:inline-flex!important;align-items:center;justify-content:center;min-width:32px}
.notification-bell{font-size:17px;line-height:1}
.nav-notification-link .nav-question-badge{position:absolute;top:-5px;right:-7px}
.notification-list{display:grid;gap:10px;margin-top:16px}
.notification-item{display:flex;gap:12px;align-items:flex-start;margin-top:0}
.notification-item.is-unread{border-color:var(--primary,#25866d);background:var(--surface-green,#eef8f3)}
.notification-icon{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--primary-soft,#e7f4ee);font-size:16px}
.notification-content{min-width:0;flex:1}
.notification-content p{margin:5px 0 6px;line-height:1.45}
.notification-title-row{display:flex;align-items:center;gap:7px}
.notification-new-dot{width:8px;height:8px;border-radius:50%;background:#c93f3f;display:inline-block}
.notification-open{display:inline-block;margin-top:7px;font-weight:700;color:var(--primary,#25866d)}
.notification-empty p{margin-bottom:0}

/* Fase 5.15 */
.notification-menu{position:relative;display:inline-flex;align-items:center}
.notification-menu-button{border:0;background:transparent;cursor:pointer;font:inherit}
.notification-dropdown{position:absolute;z-index:1200;right:0;top:calc(100% + 10px);width:min(390px,calc(100vw - 24px));background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 38px rgba(35,54,77,.16);overflow:hidden}
.notification-dropdown[hidden]{display:none!important}
.notification-dropdown-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}
.notification-dropdown-head button{border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:12px}
#notification-recent-list{max-height:390px;overflow:auto}
.notification-recent-item{display:block;padding:12px 16px;border-bottom:1px solid var(--line-soft);text-decoration:none;color:var(--text)}
.notification-recent-item:hover{background:var(--surface-soft)}
.notification-recent-item.is-unread{background:var(--surface-green)}
.notification-recent-item strong,.notification-recent-item span,.notification-recent-item small{display:block}
.notification-recent-item strong{font-size:14px;margin-bottom:4px}
.notification-recent-item span{font-size:13px;color:var(--text-soft);line-height:1.35}
.notification-recent-item small{font-size:11px;color:var(--text-soft);margin-top:6px}
.notification-empty{padding:22px 16px;text-align:center;color:var(--text-soft);font-size:13px}
.notification-view-all{display:block;padding:12px 16px;text-align:center;text-decoration:none;color:var(--primary);font-weight:600}
@media(max-width:640px){.notification-dropdown{position:fixed;top:70px;left:12px;right:12px;width:auto}}

/* Fase 5.15.3 - borrar aviso individual */
.notification-recent-row{position:relative;border-bottom:1px solid var(--line-soft)}
.notification-recent-row.is-unread{background:var(--surface-green)}
.notification-recent-row .notification-recent-item{border-bottom:0;padding-right:44px}
.notification-recent-row.is-unread .notification-recent-item{background:transparent}
.notification-delete{position:absolute;z-index:2;top:8px;right:9px;width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:var(--text-soft);font-size:20px;line-height:24px;cursor:pointer}
.notification-delete:hover{background:var(--surface-soft);color:var(--danger)}


/* Fase 5.19 — portada Mis Chacharas.com */
body{background:#fff;}
.site-header-market{
  background:#fff;
  border-bottom:1px solid var(--line-soft);
  position:relative;
  z-index:40;
}
.market-header-top{
  min-height:112px;
  display:grid;
  grid-template-columns:330px minmax(320px,1fr) auto;
  gap:28px;
  align-items:center;
}
.brand-logo{
  display:block;
  width:320px;
  max-width:100%;
}
.brand-logo img{
  display:block;
  width:100%;
  height:auto;
  max-height:105px;
  object-fit:contain;
  object-position:left center;
}
.market-global-search{
  display:flex;
  align-items:stretch;
  height:48px;
  border:1px solid #d9dfe5;
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 2px 8px rgba(35,54,77,.05);
}
.market-search-icon{
  display:grid;
  place-items:center;
  width:52px;
  font-size:29px;
  color:#23364d;
}
.market-global-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:0 10px 0 0;
  font-size:17px;
  color:var(--text);
  background:transparent;
}
.market-global-search button{
  border:0;
  min-width:130px;
  padding:0 24px;
  background:#ff6a00;
  color:#fff;
  font-size:17px;
  font-weight:800;
  cursor:pointer;
}
.market-header-actions{
  display:flex;
  align-items:center;
  gap:15px;
  white-space:nowrap;
}
.market-icon-button{
  position:relative;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:#17324d;
  font-size:26px;
  text-decoration:none;
  cursor:pointer;
}
.market-icon-button .notification-bell{font-size:23px;}
.market-line-icon{display:none;}
.market-account-link{
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}
.market-header-bottom{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.market-main-nav{
  display:flex;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}
.market-main-nav a,.market-user-side a,.market-user-side span{
  color:var(--text);
  text-decoration:none;
  font-weight:650;
}
.market-user-side{
  display:flex;
  gap:16px;
  align-items:center;
  white-space:nowrap;
}
.market-home-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:18px;
  margin-top:18px;
}
.market-category-panel{
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 4px 15px rgba(35,54,77,.04);
}
.market-category-title{
  display:flex;
  align-items:center;
  gap:12px;
  padding:17px 18px;
  background:#f7f9fb;
  font-size:17px;
  font-weight:800;
  color:var(--text);
  border-bottom:1px solid var(--line-soft);
}
.market-category-list{display:grid;}
.market-category-list a{
  display:grid;
  grid-template-columns:20px 1fr 18px;
  gap:10px;
  align-items:center;
  min-height:46px;
  padding:0 16px;
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid #f0f3f5;
}
.market-category-list a:last-child{border-bottom:0;}
.market-category-list a:hover{background:#f8fafb;}
.market-category-list strong{
  color:#9aa9b5;
  text-align:right;
  font-size:22px;
}
.category-dot{color:#17324d;font-size:20px;}
.market-hero-card{
  overflow:hidden;
  border-radius:10px;
  border:1px solid var(--line-soft);
  background:#fff;
}
.market-hero-card a,.market-hero-card img{display:block;width:100%;}
.market-hero-card img{
  aspect-ratio:1528/460;
  object-fit:cover;
  object-position:center;
}
.market-benefits{
  margin:0 0 30px 298px;
  min-height:65px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:center;
  border:1px solid var(--line-soft);
  border-top:0;
  border-radius:0 0 10px 10px;
  background:#fff;
}
.market-benefits div{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px;
  color:var(--text);
  border-right:1px solid var(--line-soft);
  text-align:center;
}
.market-benefits div:last-child{border-right:0;}
.market-benefits strong{font-size:21px;}
.catalog-section{scroll-margin-top:20px;}

@media(max-width:1050px){
  .market-header-top{
    grid-template-columns:230px 1fr auto;
    gap:14px;
  }
  .brand-logo{width:225px;}
  .market-account-link{display:none;}
  .market-home-layout{grid-template-columns:220px minmax(0,1fr);}
  .market-benefits{margin-left:238px;}
}
@media(max-width:800px){
  .market-header-top{
    grid-template-columns:1fr auto;
    min-height:auto;
    padding-top:10px;
    padding-bottom:10px;
  }
  .brand-logo{width:220px;}
  .market-global-search{
    grid-column:1/-1;
    grid-row:2;
  }
  .market-header-bottom{
    overflow-x:auto;
    padding-bottom:9px;
  }
  .market-user-side{display:none;}
  .market-main-nav{flex-wrap:nowrap;gap:20px;white-space:nowrap;}
  .market-home-layout{grid-template-columns:1fr;}
  .market-category-panel{display:none;}
  .market-benefits{
    margin-left:0;
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:520px){
  .brand-logo{width:190px;}
  .market-header-actions{gap:4px;}
  .market-icon-button{width:34px;height:34px;font-size:22px;}
  .market-global-search{height:44px;}
  .market-global-search button{min-width:86px;padding:0 13px;font-size:15px;}
  .market-search-icon{width:42px;}
  .market-hero-card img{
    aspect-ratio:auto;
    min-height:230px;
    object-fit:cover;
    object-position:center;
  }
  .market-benefits{grid-template-columns:1fr 1fr;}
  .market-benefits div{font-size:13px;padding:11px 7px;}
}

/* Fase 5.19.1 — diseño final aprobado */


/* =========================================================
   Fase 5.19.2 — estilo completo Mis Chacharas.com
   Aplica el lenguaje visual aprobado al resto del sitio.
   ========================================================= */

:root{
  --mc-orange:#ff6500;
  --mc-orange-dark:#e95700;
  --mc-blue:#123b5d;
  --mc-blue-soft:#edf5fa;
  --mc-green:#0b8a67;
  --mc-ink:#17324d;
  --mc-muted:#66798d;
  --mc-border:#dfe7ed;
  --mc-panel:#ffffff;
  --mc-bg:#f8fbfd;
}

body{
  background:linear-gradient(180deg,#fff 0,#fbfdfe 220px,#f8fbfd 100%);
  color:var(--mc-ink);
}

main.container{
  max-width:1500px;
  padding-top:22px;
  padding-bottom:50px;
}

/* Encabezados de páginas */
.page-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:22px;
  margin:10px 0 22px;
  padding-bottom:16px;
  border-bottom:1px solid var(--mc-border);
}
.page-heading h1{
  margin:4px 0 4px;
  font-size:30px;
  line-height:1.1;
  color:var(--mc-blue);
}
.eyebrow{
  color:var(--mc-orange);
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  font-size:12px;
}
.muted{color:var(--mc-muted);}

/* Botones */
.btn{
  border-radius:12px;
  background:var(--mc-orange);
  border-color:var(--mc-orange);
  box-shadow:none;
  font-weight:800;
}
.btn:hover{
  background:var(--mc-orange-dark);
  border-color:var(--mc-orange-dark);
}
.btn-secondary{
  background:#fff;
  color:var(--mc-blue);
  border:1px solid #cfdbe4;
}
.btn-secondary:hover{
  background:#f4f8fb;
  color:var(--mc-blue);
  border-color:#b9cbd8;
}

/* Tarjetas y paneles */
.card{
  border:1px solid var(--mc-border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 18px rgba(18,59,93,.055);
}

/* Catálogo y favoritos */
.catalog-section .table-heading h2,
.empty-favorites h2,
.empty-cart h2,
.empty-purchases h2{
  color:var(--mc-blue);
}
.product-grid{
  gap:16px;
}
.product-card{
  border:1px solid var(--mc-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 4px 14px rgba(18,59,93,.055);
  transition:transform .16s ease,box-shadow .16s ease;
}
.product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 9px 22px rgba(18,59,93,.09);
}
.product-card-image{
  background:#f5f7f8;
}
.product-card-body h3 a{
  color:var(--mc-ink);
  text-decoration:none;
}
.product-card-price{
  color:var(--mc-green);
  font-size:21px;
}
.favorite-button{
  background:#fff;
  border:1px solid #d7e2e9;
  color:var(--mc-blue);
  box-shadow:0 2px 8px rgba(18,59,93,.08);
}
.favorite-button.is-favorite{
  color:#ff4d22;
}

/* Página de producto */
.product-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);
  gap:24px;
  align-items:start;
}
.product-gallery-panel{
  padding:18px;
}
.product-gallery-shell{
  gap:14px;
}
.product-main-image-wrap{
  min-height:500px;
  background:#f5f7f8;
  border-radius:12px;
  border:1px solid #eef2f4;
}
.product-main-image{
  width:100%;
  height:500px;
  object-fit:contain;
}
.product-thumb{
  border:1px solid var(--mc-border);
  border-radius:9px;
  background:#fff;
}
.product-thumb.active{
  border-color:var(--mc-orange);
  box-shadow:0 0 0 2px rgba(255,101,0,.12);
}
.product-buy-panel{
  padding:24px;
  position:sticky;
  top:18px;
}
.product-buy-panel h1{
  color:var(--mc-blue);
  font-size:28px;
}
.product-price{
  color:var(--mc-green);
  font-size:34px;
  font-weight:900;
}
.product-buy-button{
  background:var(--mc-orange);
  border-radius:14px;
  min-height:50px;
  font-size:17px;
}
.stock-box{
  background:#f2faf7;
  border:1px solid #d7eee6;
  border-radius:12px;
}
.seller-mini-card{
  background:#f7fafc;
  border:1px solid var(--mc-border);
  border-radius:12px;
}
.favorite-detail-button{
  border:1px solid #cfdbe4;
  border-radius:12px;
}
.product-description-card,
.product-questions-card{
  margin-top:22px;
}
.section-title-row h2{
  color:var(--mc-blue);
}
.product-fact-card{
  border-radius:12px;
}
.product-fact-icon{
  color:var(--mc-orange);
}

/* Carrito */
.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:22px;
  align-items:start;
}
.cart-items{
  display:grid;
  gap:12px;
}
.cart-item{
  display:grid;
  grid-template-columns:110px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:14px;
}
.cart-item-image{
  width:110px;
  height:88px;
  border-radius:10px;
  overflow:hidden;
  background:#f4f7f8;
  display:grid;
  place-items:center;
}
.cart-item-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.cart-item-title{
  color:var(--mc-blue);
  font-weight:800;
  text-decoration:none;
}
.cart-seller{
  color:var(--mc-muted);
  font-size:12px;
}
.cart-line-total{
  color:var(--mc-blue);
  font-size:18px;
  font-weight:900;
}
.cart-summary{
  position:sticky;
  top:18px;
  padding:20px;
}
.cart-summary h2{
  color:var(--mc-blue);
  margin-top:0;
}
.summary-row.total{
  border-top:1px solid var(--mc-border);
  margin-top:10px;
  padding-top:14px;
}
.summary-row.total strong{
  color:var(--mc-green);
  font-size:24px;
}
.cart-quantity-select,
.cart-quantity-form input,
.cart-quantity-form select{
  border:1px solid #cfdbe4;
  border-radius:9px;
}
.multi-seller-note{
  background:#edf6fb;
  border:1px solid #d8e9f3;
  border-radius:11px;
}

/* Checkout */
.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:22px;
  align-items:start;
}
.checkout-address-card,
.checkout-summary{
  padding:22px;
}
.checkout-summary{
  position:sticky;
  top:18px;
}
.checkout-summary h2{
  color:var(--mc-blue);
}
.checkout-saved-address{
  background:#f4f9fc;
  border-color:#d8e5ed;
}
.checkout-saved-address h2{
  color:var(--mc-blue);
}

/* Mis compras */
.buyer-purchase-list{
  display:grid;
  gap:12px;
}
.buyer-purchase-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
}
.buyer-purchase-card h2{
  color:var(--mc-green);
  margin:6px 0;
}
.buyer-purchase-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  color:var(--mc-muted);
  font-size:13px;
}
.buyer-purchase-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.badge{
  border-radius:999px;
}
.order-status-paid,
.order-status-completed{
  background:#e5f6ef;
  color:#157455;
}
.order-status-pending_payment,
.order-status-preparing,
.order-status-shipped{
  background:#fff1df;
  color:#a55600;
}

/* Detalle de compra */
.buyer-order-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  overflow:hidden;
  padding:0;
}
.buyer-order-summary>div{
  padding:18px;
  background:#fff;
}
.buyer-order-summary span{
  color:var(--mc-muted);
}
.buyer-seller-order{
  margin-top:16px;
  overflow:hidden;
}
.buyer-seller-order-head{
  background:#f8fbfd;
  border-bottom:1px solid var(--mc-border);
}
.buyer-shipment-box{
  background:#f3f9fc;
  border:1px solid #dbe9f0;
  border-radius:11px;
}

/* Mi cuenta */
.mc-account-shell{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.mc-account-menu{
  padding:10px;
}
.mc-account-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 13px;
  border-radius:9px;
  color:var(--mc-ink);
  text-decoration:none;
  font-weight:700;
}
.mc-account-menu a:hover,
.mc-account-menu a.is-active{
  background:#edf4f8;
  color:var(--mc-blue);
}
.mc-account-profile{
  padding:24px;
}
.mc-profile-head{
  display:flex;
  align-items:center;
  gap:16px;
  padding-bottom:20px;
  margin-bottom:20px;
  border-bottom:1px solid var(--mc-border);
}
.mc-profile-avatar{
  width:72px;
  height:72px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e9f2f7;
  border:1px solid #cfdde6;
  font-size:34px;
  color:var(--mc-blue);
}
.mc-profile-head h2{
  margin:0 0 3px;
  color:var(--mc-blue);
}
.mc-profile-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.mc-profile-field{
  padding:14px;
  border:1px solid var(--mc-border);
  border-radius:10px;
  background:#fbfdfe;
}
.mc-profile-field span{
  display:block;
  color:var(--mc-muted);
  font-size:12px;
  margin-bottom:5px;
}
.mc-profile-field strong{
  color:var(--mc-ink);
  overflow-wrap:anywhere;
}

/* Formularios generales */
.field input,
.field select,
.field textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea{
  border-radius:10px;
}

/* Responsive */
@media(max-width:980px){
  .product-detail-layout,
  .cart-layout,
  .checkout-layout,
  .mc-account-shell{
    grid-template-columns:1fr;
  }
  .product-buy-panel,
  .cart-summary,
  .checkout-summary{
    position:static;
  }
  .buyer-order-summary{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:650px){
  main.container{
    padding-top:14px;
  }
  .page-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  .page-heading h1{
    font-size:25px;
  }
  .product-main-image-wrap,
  .product-main-image{
    min-height:330px;
    height:330px;
  }
  .cart-item{
    grid-template-columns:82px minmax(0,1fr);
  }
  .cart-item-image{
    width:82px;
    height:74px;
  }
  .cart-line-total{
    grid-column:2;
  }
  .buyer-purchase-card{
    align-items:flex-start;
    flex-direction:column;
  }
  .buyer-purchase-actions{
    width:100%;
    justify-content:space-between;
  }
  .buyer-order-summary,
  .mc-profile-details{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   Fase 5.19.3 — Portada exacta corregida
   ========================================================= */

.home-search,
.home-marketplace-hero,
.home-marketplace-hero-image{
  display:none !important;
}

.mc-home-shell{
  display:grid;
  grid-template-columns:285px minmax(0,1fr);
  gap:16px;
  margin-top:0;
  align-items:stretch;
}

.mc-home-categories{
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:11px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(18,59,93,.045);
}

.mc-home-categories-title{
  min-height:56px;
  padding:0 18px;
  display:flex;
  align-items:center;
  gap:14px;
  color:#17324d;
  background:#f6f9fb;
  border-bottom:1px solid #e6edf2;
  font-size:17px;
}

.mc-menu-icon{
  font-size:24px;
  line-height:1;
}

.mc-home-category-list{
  display:grid;
}

.mc-home-category-list a{
  min-height:48px;
  padding:0 16px;
  display:grid;
  grid-template-columns:26px minmax(0,1fr) 16px;
  gap:10px;
  align-items:center;
  color:#17324d;
  text-decoration:none;
  border-bottom:1px solid #f0f3f5;
  font-size:15px;
}

.mc-home-category-list a:last-child{
  border-bottom:0;
}

.mc-home-category-list a:hover{
  background:#f8fbfd;
}

.mc-home-category-list b{
  font-weight:600;
}

.mc-home-category-list em{
  font-style:normal;
  color:#9eb0bd;
  font-size:22px;
  text-align:right;
}

.mc-home-main{
  min-width:0;
}

.mc-final-hero{
  position:relative;
  min-height:405px;
  display:grid;
  grid-template-columns:minmax(360px,.85fr) minmax(450px,1.15fr);
  overflow:hidden;
  background:linear-gradient(90deg,#f7f2eb 0%,#faf4ec 38%,#f0dfc8 100%);
  border:1px solid #e7e4df;
  border-radius:11px 11px 0 0;
}

.mc-final-hero-copy{
  z-index:2;
  padding:40px 10px 34px 38px;
}

.mc-final-hero-copy h1{
  margin:0 0 20px;
  line-height:.95;
  letter-spacing:-.025em;
}

.mc-final-hero-copy h1 span{
  display:block;
  color:#173d5c;
  font-size:49px;
  font-weight:950;
  font-style:italic;
}

.mc-final-hero-copy h1 strong{
  display:block;
  margin-top:11px;
  color:#ff5f0a;
  font-size:56px;
  font-weight:950;
  font-style:italic;
}

.mc-final-hero-copy h1 strong::after{
  content:"";
  display:block;
  width:310px;
  height:7px;
  margin:10px 0 0 35px;
  border-radius:999px;
  background:#ff6500;
  transform:skewX(-20deg);
}

.mc-final-hero-copy p{
  margin:0 0 25px;
  color:#17324d;
  font-size:20px;
  line-height:1.38;
  font-weight:650;
}

.mc-hero-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 31px;
  border-radius:28px;
  background:#ff6500;
  color:#fff;
  text-decoration:none;
  font-weight:850;
  font-size:18px;
  box-shadow:0 5px 12px rgba(255,101,0,.16);
}

.mc-final-hero-image{
  position:relative;
  align-self:stretch;
  min-width:0;
}

.mc-final-hero-image img{
  width:100%;
  height:100%;
  min-height:405px;
  display:block;
  object-fit:cover;
  object-position:center;
}

.mc-final-hero-note{
  position:absolute;
  top:30px;
  right:0;
  width:330px;
  min-height:145px;
  padding:29px 28px 20px 70px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  background:#087a9b;
  clip-path:polygon(17% 8%,100% 0,100% 100%,4% 92%,12% 70%,0 52%,14% 34%);
  transform:rotate(-2deg);
  z-index:3;
}

.mc-final-hero-note span,
.mc-final-hero-note strong{
  font-size:27px;
  line-height:1.05;
  font-style:italic;
  font-weight:600;
}

.mc-final-hero-note i{
  margin-top:5px;
  color:#ff9b00;
  font-size:34px;
  font-style:normal;
}

.mc-home-benefits{
  min-height:68px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid #e3e9ee;
  border-top:0;
  border-radius:0 0 11px 11px;
  background:#fff;
}

.mc-home-benefits div{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 12px;
  color:#17324d;
  border-right:1px solid #e8edf1;
  font-size:14px;
}

.mc-home-benefits div:last-child{
  border-right:0;
}

.mc-home-benefits strong{
  color:#173d5c;
  font-size:23px;
}

#productos{
  scroll-margin-top:20px;
}

.catalog-section{
  margin-top:20px;
}

.catalog-section .table-heading h2{
  font-size:24px;
}

@media(max-width:1100px){
  .mc-home-shell{
    grid-template-columns:230px minmax(0,1fr);
  }
  .mc-final-hero{
    grid-template-columns:minmax(320px,.9fr) minmax(390px,1.1fr);
  }
  .mc-final-hero-copy h1 span{font-size:38px;}
  .mc-final-hero-copy h1 strong{font-size:43px;}
  .mc-final-hero-note{width:275px;}
  .mc-final-hero-note span,
  .mc-final-hero-note strong{font-size:22px;}
}

@media(max-width:820px){
  .mc-home-shell{
    grid-template-columns:1fr;
  }
  .mc-home-categories{
    display:none;
  }
  .mc-final-hero{
    grid-template-columns:1fr;
  }
  .mc-final-hero-copy{
    padding:28px 25px 20px;
  }
  .mc-final-hero-image{
    height:300px;
  }
  .mc-final-hero-image img{
    min-height:300px;
  }
  .mc-final-hero-note{
    top:auto;
    bottom:18px;
    right:0;
  }
  .mc-home-benefits{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:520px){
  .mc-final-hero-copy h1 span{font-size:31px;}
  .mc-final-hero-copy h1 strong{font-size:36px;}
  .mc-final-hero-copy h1 strong::after{
    width:220px;
    margin-left:15px;
  }
  .mc-final-hero-copy p{
    font-size:17px;
  }
  .mc-final-hero-note{
    width:235px;
    min-height:118px;
    padding-left:55px;
  }
  .mc-final-hero-note span,
  .mc-final-hero-note strong{
    font-size:18px;
  }
  .mc-home-benefits div{
    font-size:12px;
  }
}


/* =========================================================
   Fase 5.19.4 — ajuste visual fino de portada
   Compacta encabezado y acerca la portada al mockup aprobado.
   ========================================================= */

/* Encabezado más compacto */
.market-header-top{
  min-height:88px !important;
  grid-template-columns:300px minmax(360px,1fr) auto !important;
  gap:22px !important;
  padding-top:6px !important;
  padding-bottom:6px !important;
}
.brand-logo{
  width:285px !important;
}
.brand-logo img{
  max-height:82px !important;
}
.market-global-search{
  height:46px !important;
}
.market-header-bottom{
  min-height:46px !important;
}
.market-main-nav{
  gap:26px !important;
}
.market-main-nav a,
.market-user-side a,
.market-user-side span{
  font-size:15px !important;
}

/* Menos aire arriba de la portada */
main.container{
  padding-top:14px !important;
}
.mc-home-shell{
  margin-top:0 !important;
  grid-template-columns:265px minmax(0,1fr) !important;
  gap:14px !important;
}

/* Categorías más compactas */
.mc-home-categories-title{
  min-height:50px !important;
  padding:0 16px !important;
  font-size:16px !important;
}
.mc-home-category-list a{
  min-height:42px !important;
  padding:0 14px !important;
  font-size:14px !important;
}

/* Hero con proporciones del mockup */
.mc-final-hero{
  min-height:350px !important;
  grid-template-columns:48% 52% !important;
}
.mc-final-hero-copy{
  padding:34px 18px 26px 38px !important;
}
.mc-final-hero-copy h1{
  margin-bottom:16px !important;
}
.mc-final-hero-copy h1 span{
  font-size:42px !important;
  white-space:nowrap;
}
.mc-final-hero-copy h1 strong{
  font-size:46px !important;
  line-height:.98 !important;
  white-space:nowrap;
}
.mc-final-hero-copy h1 strong::after{
  width:285px !important;
  height:6px !important;
  margin:9px 0 0 28px !important;
}
.mc-final-hero-copy p{
  font-size:17px !important;
  line-height:1.35 !important;
  margin-bottom:20px !important;
}
.mc-hero-button{
  min-height:48px !important;
  padding:0 28px !important;
  font-size:17px !important;
}
.mc-final-hero-image img{
  min-height:350px !important;
  height:350px !important;
}
.mc-final-hero-note{
  top:22px !important;
  width:285px !important;
  min-height:128px !important;
  padding:24px 22px 18px 60px !important;
}
.mc-final-hero-note span,
.mc-final-hero-note strong{
  font-size:22px !important;
}
.mc-final-hero-note i{
  font-size:28px !important;
}

/* Beneficios más delgados */
.mc-home-benefits{
  min-height:58px !important;
}
.mc-home-benefits div{
  padding:10px 8px !important;
  font-size:13px !important;
}
.mc-home-benefits strong{
  font-size:20px !important;
}

/* Productos más cerca del hero */
.catalog-section{
  margin-top:16px !important;
}
.catalog-section .table-heading{
  margin-bottom:12px !important;
}

/* Corrige el contador pegado a "Mis preguntas" */
.nav-customer-question-link{
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
}

/* Desktop ancho: proporción similar a la referencia aprobada */
@media(min-width:1350px){
  main.container,
  .site-header .container{
    max-width:1500px !important;
  }
}

/* Laptop */
@media(max-width:1200px){
  .market-header-top{
    grid-template-columns:245px minmax(300px,1fr) auto !important;
  }
  .brand-logo{width:235px !important;}
  .mc-home-shell{
    grid-template-columns:225px minmax(0,1fr) !important;
  }
  .mc-final-hero-copy h1 span{font-size:34px !important;}
  .mc-final-hero-copy h1 strong{font-size:38px !important;}
  .mc-final-hero-copy h1 strong::after{width:235px !important;}
}

/* Tablet/móvil: permitir saltos de línea */
@media(max-width:820px){
  .mc-final-hero-copy h1 span,
  .mc-final-hero-copy h1 strong{
    white-space:normal;
  }
  .mc-final-hero-image img{
    min-height:290px !important;
    height:290px !important;
  }
}


/* Fase 5.19.5 — carrusel vertical y header compacto */
.market-header-actions{gap:7px !important;}
.market-icon-button{
  width:31px !important;
  height:31px !important;
  font-size:19px !important;
}
.market-icon-button .notification-bell{font-size:18px !important;}
.cart-count,
.notification-menu .nav-question-badge{
  font-size:10px !important;
  min-width:16px !important;
  height:16px !important;
  line-height:16px !important;
}
.market-account-link{font-size:14px !important;}

.mc-vertical-carousel{
  position:relative;
  height:350px;
  overflow:hidden;
  border:1px solid #e3e8ec;
  border-radius:11px 11px 0 0;
  background:#f6eee5;
}
.mc-carousel-track{
  width:100%;
  height:100%;
  transition:transform .72s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
.mc-carousel-slide{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}
.mc-carousel-slide>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.mc-carousel-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(250,245,238,.98) 0%,rgba(250,245,238,.93) 31%,rgba(250,245,238,.15) 57%,rgba(0,0,0,.02) 100%);
}
.mc-carousel-copy{
  position:relative;
  z-index:2;
  width:52%;
  padding:32px 18px 20px 36px;
  color:#173d5c;
}
.mc-carousel-copy h1,
.mc-carousel-copy h2{
  margin:0 0 17px;
  line-height:.96;
  font-style:italic;
}
.mc-carousel-copy h1 span,
.mc-carousel-copy h2 span{
  display:block;
  font-size:39px;
  font-weight:950;
  color:#173d5c;
}
.mc-carousel-copy h1 strong,
.mc-carousel-copy h2 strong{
  display:block;
  margin-top:9px;
  font-size:43px;
  font-weight:950;
  color:#ff5f0a;
  white-space:nowrap;
}
.mc-carousel-copy h1 strong::after,
.mc-carousel-copy h2 strong::after{
  content:"";
  display:block;
  width:290px;
  height:5px;
  margin:8px 0 0 20px;
  border-radius:999px;
  background:#ff6500;
  transform:skewX(-18deg);
}
.mc-carousel-copy p{
  margin:0 0 20px;
  font-size:17px;
  line-height:1.36;
  font-weight:650;
}
.mc-carousel-copy a{
  display:inline-flex;
  align-items:center;
  min-height:47px;
  padding:0 27px;
  border-radius:999px;
  background:#ff6500;
  color:#fff;
  text-decoration:none;
  font-weight:850;
  font-size:17px;
}
.mc-carousel-message{
  position:absolute;
  z-index:3;
  top:23px;
  right:0;
  width:280px;
  min-height:124px;
  padding:23px 24px 18px 57px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#087f9e;
  color:#fff;
  text-align:center;
  font-size:21px;
  font-weight:700;
  font-style:italic;
  clip-path:polygon(16% 8%,100% 0,100% 100%,4% 92%,12% 69%,0 52%,13% 34%);
}
.mc-carousel-message strong{font-size:23px;}
.mc-carousel-message i{
  color:#ffb000;
  font-size:27px;
  font-style:normal;
  margin-top:3px;
}
.mc-carousel-arrow{
  position:absolute;
  z-index:5;
  left:50%;
  transform:translateX(-50%);
  width:36px;
  height:28px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#173d5c;
  box-shadow:0 2px 9px rgba(18,59,93,.16);
  font-size:19px;
  cursor:pointer;
  opacity:0;
  transition:opacity .2s ease;
}
.mc-vertical-carousel:hover .mc-carousel-arrow{opacity:1;}
.mc-carousel-up{top:9px;}
.mc-carousel-down{bottom:9px;}
.mc-carousel-dots{
  position:absolute;
  z-index:5;
  bottom:9px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:7px;
}
.mc-carousel-dots button{
  width:10px;
  height:10px;
  padding:0;
  border:1px solid rgba(255,255,255,.8);
  border-radius:50%;
  background:rgba(255,255,255,.75);
  cursor:pointer;
}
.mc-carousel-dots button.is-active{background:#ff6500;border-color:#ff6500;}

@media(max-width:1100px){
  .mc-carousel-copy h1 span,.mc-carousel-copy h2 span{font-size:31px;}
  .mc-carousel-copy h1 strong,.mc-carousel-copy h2 strong{font-size:34px;}
  .mc-carousel-copy h1 strong::after,.mc-carousel-copy h2 strong::after{width:220px;}
  .mc-carousel-message{width:230px;font-size:17px;}
  .mc-carousel-message strong{font-size:19px;}
}
@media(max-width:820px){
  .mc-vertical-carousel{height:430px;}
  .mc-carousel-shade{
    background:linear-gradient(180deg,rgba(250,245,238,.98) 0%,rgba(250,245,238,.92) 45%,rgba(250,245,238,.12) 75%);
  }
  .mc-carousel-copy{width:100%;padding:25px 22px;}
  .mc-carousel-copy h1 strong,.mc-carousel-copy h2 strong{white-space:normal;}
  .mc-carousel-message{top:auto;bottom:25px;width:215px;}
}


/* Fase 5.19.6 — carrusel SOLO imágenes */
.mc-image-only-carousel{
  height:405px !important;
  background:#f4f4f4;
}
.mc-image-only-carousel .mc-carousel-slide>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.mc-image-only-carousel .mc-carousel-shade,
.mc-image-only-carousel .mc-carousel-copy,
.mc-image-only-carousel .mc-carousel-message{
  display:none !important;
}
.mc-image-only-carousel .mc-carousel-dots{
  right:17px;
  left:auto;
  top:50%;
  bottom:auto;
  transform:translateY(-50%);
  flex-direction:column;
}
.mc-image-only-carousel .mc-carousel-arrow{
  left:50%;
}
.mc-image-only-carousel .mc-carousel-up{top:10px;}
.mc-image-only-carousel .mc-carousel-down{bottom:10px;}

@media(max-width:820px){
  .mc-image-only-carousel{height:320px !important;}
}
@media(max-width:520px){
  .mc-image-only-carousel{height:245px !important;}
}


/* Fase 5.19.7 — leyendas horneadas dentro de cada imagen */
.mc-image-only-carousel{
  height:405px !important;
}
.mc-image-only-carousel .mc-carousel-slide>img{
  object-fit:cover !important;
  object-position:center !important;
}
.mc-image-only-carousel .mc-carousel-copy,
.mc-image-only-carousel .mc-carousel-message,
.mc-image-only-carousel .mc-carousel-shade{
  display:none !important;
}

/* Fase 5.19.8 — banner fijo final aprobado */
.mc-vertical-carousel,.mc-carousel-track,.mc-carousel-arrow,.mc-carousel-dots{display:none!important}
.mc-fixed-home-banner{
  width:100%;overflow:hidden;border:1px solid #e3e8ec;
  border-radius:11px 11px 0 0;background:#f7f3ed;line-height:0;
}
.mc-fixed-home-banner img{
  display:block;width:100%;height:auto;aspect-ratio:2.667/1;
  object-fit:cover;object-position:center;
}
@media(max-width:820px){.mc-fixed-home-banner img{aspect-ratio:2.15/1}}
@media(max-width:520px){.mc-fixed-home-banner img{aspect-ratio:1.75/1}}


/* =========================================================
   Fase 5.19.9 — corrección móvil de portada
   ========================================================= */
@media(max-width:820px){
  body{
    overflow-x:hidden;
  }

  .site-header-market{
    overflow:visible;
  }

  .market-header-top{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:10px !important;
    min-height:auto !important;
    padding:8px 14px 10px !important;
  }

  .brand-logo{
    width:220px !important;
    max-width:68vw !important;
    min-width:0 !important;
  }

  .brand-logo img{
    width:100% !important;
    max-height:none !important;
    height:auto !important;
    object-fit:contain !important;
    object-position:left center !important;
  }

  .market-header-actions{
    gap:4px !important;
    align-self:center !important;
  }

  .market-icon-button{
    width:30px !important;
    height:30px !important;
    font-size:18px !important;
  }

  .market-icon-button .notification-bell{
    font-size:17px !important;
  }

  .market-global-search{
    grid-column:1/-1 !important;
    grid-row:2 !important;
    width:100% !important;
    height:45px !important;
    margin:2px 0 0 !important;
    border-radius:24px !important;
  }

  .market-global-search input{
    font-size:16px !important;
    min-width:0 !important;
  }

  .market-global-search button{
    min-width:88px !important;
    padding:0 14px !important;
    font-size:14px !important;
  }

  .market-header-bottom{
    min-height:48px !important;
    padding:0 14px 8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .market-header-bottom::-webkit-scrollbar{
    display:none;
  }

  .market-main-nav{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:24px !important;
    white-space:nowrap !important;
    min-width:max-content !important;
  }

  .market-main-nav a{
    font-size:14px !important;
  }

  .market-user-side{
    display:none !important;
  }

  main.container{
    width:100% !important;
    max-width:100% !important;
    padding:12px 12px 34px !important;
    overflow:hidden;
  }

  .mc-home-shell{
    display:block !important;
    width:100% !important;
  }

  .mc-home-categories{
    display:none !important;
  }

  .mc-home-main{
    width:100% !important;
    min-width:0 !important;
  }

  .mc-fixed-home-banner{
    width:100% !important;
    border-radius:12px 12px 0 0 !important;
    overflow:hidden !important;
    background:#fff !important;
  }

  .mc-fixed-home-banner img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    object-position:center !important;
  }

  .mc-home-benefits{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:100% !important;
    min-height:0 !important;
    border-radius:0 0 12px 12px !important;
  }

  .mc-home-benefits div{
    min-width:0 !important;
    min-height:68px !important;
    padding:10px 8px !important;
    gap:8px !important;
    font-size:13px !important;
    line-height:1.25 !important;
    justify-content:flex-start !important;
    text-align:left !important;
  }

  .mc-home-benefits div:nth-child(2){
    border-right:0 !important;
  }

  .mc-home-benefits div:nth-child(-n+2){
    border-bottom:1px solid #e8edf1 !important;
  }

  .mc-home-benefits strong{
    flex:0 0 auto !important;
    font-size:18px !important;
  }

  .catalog-section{
    margin-top:18px !important;
  }

  .catalog-section .table-heading{
    align-items:flex-end !important;
    gap:10px !important;
  }

  .catalog-section .table-heading h2{
    font-size:25px !important;
    margin:0 !important;
  }

  .catalog-section .table-heading .muted{
    font-size:14px !important;
    white-space:nowrap !important;
  }

  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
}

@media(max-width:520px){
  .market-header-top{
    grid-template-columns:minmax(0,1fr) auto !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .brand-logo{
    width:205px !important;
    max-width:72vw !important;
  }

  .market-header-actions{
    gap:1px !important;
  }

  .market-icon-button{
    width:28px !important;
    height:28px !important;
    font-size:17px !important;
  }

  .market-account-link{
    display:none !important;
  }

  .market-global-search{
    height:43px !important;
  }

  .market-global-search button{
    display:none !important;
  }

  .market-search-icon{
    width:44px !important;
    font-size:22px !important;
  }

  .market-header-bottom{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  main.container{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .mc-home-benefits div{
    min-height:62px !important;
    font-size:12px !important;
  }

  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}


/* =========================================================
   Fase 5.19.10 — navegación móvil limpia + Crear cuenta arriba
   ========================================================= */
.market-create-account{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#23364d;
  text-decoration:none;
  font-weight:750;
  font-size:14px;
  white-space:nowrap;
}
.market-create-account-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  font-size:24px;
  line-height:1;
}

@media(max-width:820px){
  .mobile-hide-primary-nav{
    display:none !important;
  }

  .market-create-account{
    gap:4px !important;
    font-size:12px !important;
    line-height:1.05 !important;
  }

  .market-create-account span:last-child{
    max-width:48px;
    white-space:normal;
  }

  .market-create-account-icon{
    width:26px !important;
    height:26px !important;
    font-size:22px !important;
  }

  .market-login-link{
    display:none !important;
  }

  /* Si Productos/Categorías eran los únicos enlaces, no deja una franja vacía. */
  .market-header-bottom:has(.market-main-nav:empty){
    display:none !important;
  }
}

@media(max-width:520px){
  .market-create-account{
    font-size:11px !important;
  }
  .market-create-account-icon{
    width:24px !important;
    height:24px !important;
    font-size:20px !important;
  }
}


/* =========================================================
   Fase 5.19.11 — header limpio desktop + móvil
   ========================================================= */

/* Se eliminan definitivamente Productos y Categorías del header.
   Para visitantes no existe segunda barra, así no queda espacio vacío. */
.site-header-market{
  padding-bottom:0 !important;
}

@media(max-width:820px){
  .site-header-market{
    min-height:0 !important;
  }

  .market-header-top{
    margin-bottom:0 !important;
  }

  .market-header-bottom{
    margin:0 !important;
    min-height:0 !important;
  }

  main.container{
    padding-top:10px !important;
  }
}

/* En visitante: el banner queda inmediatamente después del buscador */
body:not(.logged-in) .site-header-market + main.container{
  padding-top:10px !important;
}


/* =========================================================
   Fase 5.19.12 — iconos Crear cuenta / Iniciar sesión
   ========================================================= */
.market-auth-icon{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#17324d;
  text-decoration:none;
  border-radius:10px;
  transition:background .15s ease, transform .15s ease;
}
.market-auth-icon:hover{
  background:#f2f7fa;
  transform:translateY(-1px);
}
.market-auth-icon svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.market-auth-register svg{
  width:28px;
  height:28px;
}
.market-auth-login svg{
  width:27px;
  height:27px;
}

@media(max-width:820px){
  .market-auth-icon{
    width:34px;
    height:34px;
  }
  .market-auth-icon svg{
    width:25px;
    height:25px;
  }
}

@media(max-width:520px){
  .market-auth-icon{
    width:32px;
    height:32px;
  }
  .market-auth-icon svg{
    width:24px;
    height:24px;
  }
}


/* Fase 5.19.13 — iniciar sesión = persona simple */
.market-auth-login svg{
  width:27px;
  height:27px;
}


/* =========================================================
   Fase 5.20.4 — Dashboard administrativo aislado
   Solo aplica a body.mc-admin-dashboard-page
   ========================================================= */
body.mc-admin-dashboard-page{background:#f8fbfe;color:#0d2d58;overflow-x:hidden}
body.mc-admin-dashboard-page .site-footer{display:none!important}
.mc-admin-topbar{height:76px;background:#fff;border-bottom:1px solid #e4ebf2;display:grid;grid-template-columns:235px minmax(320px,790px) 1fr;align-items:center;gap:24px;padding:0 28px;position:sticky;top:0;z-index:50}
.mc-admin-topbar-logo{display:flex;align-items:center;height:68px}
.mc-admin-topbar-logo img{display:block;width:205px;max-height:64px;object-fit:contain}
.mc-admin-search-top{height:44px;border:1px solid #cfdbe8;border-radius:23px;display:grid;grid-template-columns:42px minmax(0,1fr) 118px;overflow:hidden;background:#fff}
.mc-admin-search-top span{display:grid;place-items:center;font-size:25px;color:#0d376a}
.mc-admin-search-top input{border:0!important;outline:0!important;box-shadow:none!important;padding:0 10px!important;margin:0!important;font-size:15px!important;background:transparent!important;min-width:0}
.mc-admin-search-top button{border:0;background:#ff5b0b;color:#fff;font-weight:800;font-size:15px;cursor:pointer}
.mc-admin-profile{justify-self:end;display:flex;align-items:center;gap:14px;min-width:285px}
.mc-admin-bell{position:relative;color:#0d376a;font-size:26px;line-height:1;text-decoration:none}
.mc-admin-bell b{position:absolute;right:-8px;top:-9px;background:#ff4d18;color:#fff;border-radius:50%;font-size:10px;min-width:19px;height:19px;display:grid;place-items:center}
.mc-admin-profile-divider{height:40px;width:1px;background:#dce6ef}
.mc-admin-avatar{width:44px;height:44px;border-radius:50%;background:#0c4b87;color:#fff;display:grid;place-items:center;font-size:25px}
.mc-admin-profile-text{line-height:1.2}.mc-admin-profile-text strong{display:block;font-size:15px}.mc-admin-profile-text small{display:block;margin-top:4px;color:#47627f;font-size:12px}
.mc-admin-profile-arrow{font-size:20px;color:#0c376b;text-decoration:none}
.mc-admin-page-root{width:100%;padding:0!important;margin:0!important;max-width:none!important}
.mc-admin-shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:calc(100vh - 76px)}
.mc-admin-sidebar{background:#fff;border-right:1px solid #dfe8f0;padding:28px 12px 18px;display:flex;flex-direction:column;min-height:calc(100vh - 76px);position:sticky;top:76px;height:calc(100vh - 76px)}
.mc-admin-sidebar a{display:flex;align-items:center;gap:14px;min-height:51px;padding:0 15px;color:#0d315e;font-weight:800;border-bottom:1px solid #edf2f6;text-decoration:none;border-radius:0;font-size:15px}
.mc-admin-sidebar a .mc-side-icon{width:26px;text-align:center;font-size:21px}
.mc-admin-sidebar a .mc-side-arrow{margin-left:auto;color:#7ba1c8;font-size:20px}
.mc-admin-sidebar a.active{background:#0b4e8b;color:#fff;border-radius:6px;border-bottom-color:transparent;margin-bottom:2px}
.mc-admin-sidebar a b{margin-left:auto;background:#ff4c1a;color:#fff;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:11px}
.mc-admin-sidebar-spacer{flex:1}
.mc-admin-story{text-align:center;padding:22px 8px 24px;color:#0c4f91;font-style:italic;font-weight:800;font-size:15px;line-height:1.25}
.mc-admin-story .box{display:block;font-size:45px;font-style:normal;margin-bottom:5px}
.mc-admin-site-link{border:0!important;margin-top:8px;color:#0062c8!important}
.mc-admin-main{min-width:0;padding:12px 18px 22px;background:#fbfdff}
.mc-admin-hero{border:1px solid #dfe7ee;border-radius:10px;overflow:hidden;background:#fff;line-height:0}
.mc-admin-hero img{display:block;width:100%;height:auto;aspect-ratio:5.18/1;object-fit:cover}
.mc-admin-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:16px}
.mc-metric{border:1px solid #dfe7ef;border-radius:11px;min-height:138px;padding:17px 18px;display:block;text-decoration:none;color:#0c2e5a;overflow:hidden}
.mc-metric-top{display:flex;align-items:center;gap:12px;font-weight:800;font-size:15px;white-space:nowrap}.mc-metric-icon{font-size:28px;line-height:1}.mc-metric strong{display:block;font-size:31px;line-height:1.05;margin-top:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mc-metric small{display:block;font-size:11px;color:#536c87;margin-top:9px}.mc-metric small em{font-style:normal;color:#0aad32;font-weight:900;font-size:14px;margin-right:5px}.metric-blue{background:#f2f8ff}.metric-green{background:#effaf5}.metric-orange{background:#fff6ec}.metric-yellow{background:#fff9e9}.metric-red{background:#fff2f4}
.mc-admin-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(320px,1fr);gap:16px;margin-top:16px}.mc-admin-left-stack{display:grid;gap:16px;align-content:start}.mc-admin-right-stack{display:grid;gap:16px;align-content:start}
.mc-admin-box{background:#fff;border:1px solid #dde6ee;border-radius:10px;padding:14px 16px;box-shadow:0 2px 8px rgba(19,49,87,.02);margin:0}.mc-admin-box h2{margin:0;color:#0c2e5a;font-size:20px}.mc-box-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e7edf2;margin-bottom:10px}.mc-box-heading a{font-size:12px;font-weight:800;color:#0063c8}.mc-attention-total{background:#ff4d18;color:#fff;border-radius:999px;min-width:25px;height:25px;display:grid;place-items:center;font-weight:900;font-size:12px}
.mc-quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;text-align:center}.mc-quick-grid a{color:#0c2e5a;text-decoration:none;font-weight:700;font-size:12px;line-height:1.15;padding:3px}.mc-quick-grid i{display:grid;place-items:center;width:54px;height:54px;border-radius:11px;margin:0 auto 8px;background:#0875df;color:#fff;font-style:normal;font-size:24px}.mc-quick-grid a:nth-child(2) i{background:#ff650f}.mc-quick-grid a:nth-child(3) i{background:#7b45be}.mc-quick-grid a:nth-child(4) i{background:#078c98}.mc-quick-grid a:nth-child(5) i{background:#ffb000}.mc-quick-grid a:nth-child(6) i{background:#47586b}
.mc-attention>a{display:grid;grid-template-columns:27px 1fr auto 12px;align-items:center;gap:8px;min-height:39px;border-bottom:1px solid #e8edf2;color:#143760;text-decoration:none;font-weight:700;font-size:12px}.mc-attention>a:last-child{border-bottom:0}.mc-attention>a span:first-child{width:24px;height:24px;border-radius:6px;display:grid;place-items:center;color:#fff}.mc-attention>a b{background:#ff454d;color:#fff;border-radius:5px;padding:3px 6px;font-size:11px}.mc-attention>a .go{color:#6f96bd;background:none!important;width:auto!important}.att-red{background:#ff4e67}.att-orange{background:#ff6d0d}.att-yellow{background:#ffb000}.att-blue{background:#1976dc}.att-purple{background:#8147bd}
.mc-orders-table{width:100%;border-collapse:collapse;min-width:700px}.mc-orders-table th{background:#f6f8fa;text-align:left;padding:8px 7px;color:#263e5c;font-size:10px}.mc-orders-table td{padding:8px 7px;border-bottom:1px solid #e9eef3;color:#17395f;font-size:11px}.mc-orders-table tr:last-child td{border-bottom:0}.mc-order-status{display:inline-block;border-radius:6px;padding:5px 7px;font-weight:800;white-space:nowrap}.mc-order-status.pending{background:#ffe1b5;color:#dc4e00}.mc-order-status.preparing,.mc-order-status.processing{background:#fff0a9;color:#685200}.mc-order-status.shipped{background:#ccecff;color:#075aa0}.mc-order-status.completed,.mc-order-status.paid{background:#cef4dd;color:#17683b}.mc-order-status.cancelled{background:#ffe0e0;color:#a42323}.mc-view-order{background:#0a4c88;color:#fff;border-radius:5px;padding:5px 13px;text-decoration:none;font-weight:800;display:inline-block}
.mc-sales-chart{padding-bottom:12px}.mc-chart-wrap{height:155px;position:relative;padding:10px 8px 0 35px}.mc-chart-svg{width:100%;height:130px;overflow:visible}.mc-chart-grid{stroke:#dbe6ef;stroke-width:1}.mc-chart-line{fill:none;stroke:#0aa23a;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.mc-chart-area{fill:#e0f6e8;opacity:.75}.mc-chart-dot{fill:#0aa23a}.mc-chart-labels{display:flex;justify-content:space-between;color:#476584;font-size:10px;padding:2px 4px 0 34px}
.mc-users-modern,.mc-admin-security{margin-top:16px}.mc-admin-user-search{display:flex;gap:9px;margin:10px 0}.mc-admin-user-search input{margin:0}.mc-admin-user-search .btn{white-space:nowrap}.mc-users-modern{scroll-margin-top:90px}.mc-admin-security{scroll-margin-top:90px}
@media(max-width:1180px){.mc-admin-topbar{grid-template-columns:210px minmax(260px,1fr) auto;padding:0 16px;gap:14px}.mc-admin-profile-text{display:none}.mc-admin-profile{min-width:auto}.mc-admin-shell{grid-template-columns:205px minmax(0,1fr)}.mc-admin-sidebar{padding-left:8px;padding-right:8px}.mc-admin-metrics{grid-template-columns:repeat(3,1fr)}.mc-admin-grid{grid-template-columns:1fr}.mc-quick-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.mc-admin-topbar{height:auto;grid-template-columns:minmax(0,1fr) auto;padding:8px 10px}.mc-admin-topbar-logo img{width:170px}.mc-admin-search-top{grid-column:1/-1;grid-row:2;height:40px}.mc-admin-profile{grid-column:2;grid-row:1}.mc-admin-shell{display:block}.mc-admin-sidebar{position:static;height:auto;min-height:0;display:grid;grid-template-columns:repeat(4,1fr);padding:8px;border-right:0;border-bottom:1px solid #dfe8f0}.mc-admin-sidebar a{min-height:58px;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:5px;text-align:center;border:0;font-size:10px}.mc-admin-sidebar a .mc-side-arrow,.mc-admin-sidebar-spacer,.mc-admin-story{display:none}.mc-admin-site-link{margin:0!important}.mc-admin-main{padding:10px}.mc-admin-hero img{aspect-ratio:auto;min-height:115px;object-fit:cover;object-position:center}.mc-admin-metrics{grid-template-columns:repeat(2,1fr);gap:8px}.mc-metric{min-height:105px;padding:12px}.mc-metric strong{font-size:24px}.mc-quick-grid{grid-template-columns:repeat(3,1fr)}.mc-admin-user-search{flex-direction:column}.mc-admin-user-search .btn{width:100%}}


/* Fase 5.20.5 - layout administrativo para todo /admin/* */
body.mc-admin-dashboard-page .site-footer{display:none!important}
.mc-admin-shell-section .mc-admin-section-content{padding:24px 28px 36px;min-width:0}
.mc-admin-shell-section .mc-admin-section-content>.page-heading:first-child,
.mc-admin-shell-section .mc-admin-section-content>h1:first-child{margin-top:0}
.mc-admin-shell-section .card{margin-top:18px}
.mc-admin-shell-section .page-heading{padding-bottom:14px;border-bottom:1px solid #dfe8f0}
.mc-admin-shell-section .page-heading h1{font-size:28px;color:#0d315e}
.mc-admin-shell-section .admin-table{font-size:14px}
@media(max-width:900px){
 .mc-admin-shell-section{grid-template-columns:1fr!important}
 .mc-admin-shell-section .mc-admin-sidebar{position:static!important;height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px!important;border-right:0!important;border-bottom:1px solid #dfe8f0}
 .mc-admin-shell-section .mc-admin-sidebar a{min-height:42px!important;font-size:13px!important;border-bottom:0!important;border-radius:7px!important}
 .mc-admin-shell-section .mc-admin-sidebar-spacer,.mc-admin-shell-section .mc-admin-story,.mc-admin-shell-section .mc-admin-site-link{display:none!important}
 .mc-admin-shell-section .mc-admin-section-content{padding:16px 12px 28px!important}
}

/* === Fase 5.21: inventario + historial de ventas (admin) === */
body.mc-admin-dashboard-page .mc-admin-section-heading{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 16px;
}
body.mc-admin-dashboard-page .mc-admin-section-heading h1{margin:0 0 5px;font-size:28px;color:#19365d;line-height:1.15}
body.mc-admin-dashboard-page .mc-admin-section-heading p{margin:0;color:#6d7f95}
body.mc-admin-dashboard-page .mc-admin-products-tools{margin-bottom:16px}
body.mc-admin-dashboard-page .mc-admin-product-filters,
body.mc-admin-dashboard-page .mc-sales-history-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
body.mc-admin-dashboard-page .mc-admin-product-filters .field,
body.mc-admin-dashboard-page .mc-sales-history-filters .field{min-width:170px}
body.mc-admin-dashboard-page .mc-admin-product-filters .field.grow,
body.mc-admin-dashboard-page .mc-sales-history-filters .field.grow{flex:1 1 300px}
body.mc-admin-dashboard-page .mc-admin-product-filters label,
body.mc-admin-dashboard-page .mc-sales-history-filters label{display:block;margin:0 0 6px;font-size:13px;font-weight:700;color:#334b68}
body.mc-admin-dashboard-page .mc-admin-product-filters input,
body.mc-admin-dashboard-page .mc-admin-product-filters select,
body.mc-admin-dashboard-page .mc-sales-history-filters input,
body.mc-admin-dashboard-page .mc-sales-history-filters select{width:100%;min-height:40px;border:1px solid #d7e0e8;border-radius:9px;background:#fff;padding:8px 10px;color:#263a52}
body.mc-admin-dashboard-page .mc-admin-product-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #edf1f4}
body.mc-admin-dashboard-page .mc-admin-product-tabs a{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border-radius:999px;background:#f3f6f8;color:#52667b;font-size:13px;font-weight:700;text-decoration:none}
body.mc-admin-dashboard-page .mc-admin-product-tabs a.active{background:#e8f1ff;color:#1f5ea9}
body.mc-admin-dashboard-page .mc-admin-products-table td{vertical-align:middle}
body.mc-admin-dashboard-page .mc-admin-products-table tr.is-sold-out{background:#fffaf5}
body.mc-admin-dashboard-page .mc-stock-editor{display:flex;align-items:center;gap:6px;min-width:155px}
body.mc-admin-dashboard-page .mc-stock-editor input{width:68px;min-height:34px;border:1px solid #d7e0e8;border-radius:8px;padding:5px 7px}
body.mc-admin-dashboard-page .mc-stock-warning{display:block;max-width:185px;margin-top:5px;color:#b46624;line-height:1.25}
body.mc-admin-dashboard-page .mc-product-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
body.mc-admin-dashboard-page .mc-product-actions form{margin:0}
body.mc-admin-dashboard-page .mc-admin-sales-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
body.mc-admin-dashboard-page .mc-sales-overview-card{display:block;padding:15px 16px;border:1px solid #e2e8ee;border-radius:13px;background:#fff;text-decoration:none;box-shadow:0 4px 16px rgba(29,54,88,.04)}
body.mc-admin-dashboard-page .mc-sales-overview-card span{display:block;margin-bottom:7px;color:#64768b;font-size:13px;font-weight:700}
body.mc-admin-dashboard-page .mc-sales-overview-card strong{display:block;color:#17385f;font-size:23px;line-height:1.15}
body.mc-admin-dashboard-page .mc-sales-overview-card small{display:block;margin-top:6px;color:#7a8a9c;line-height:1.3}
body.mc-admin-dashboard-page .mc-sales-overview-card.is-stock strong{color:#b76422}
body.mc-admin-dashboard-page .mc-sales-history-filters-box{margin-bottom:16px}
body.mc-admin-dashboard-page .mc-history-total-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
body.mc-admin-dashboard-page .mc-history-total-card{padding:15px 16px;border:1px solid #e2e8ee;border-radius:13px;background:#fff}
body.mc-admin-dashboard-page .mc-history-total-card span{display:block;color:#66798f;font-size:13px;font-weight:700;margin-bottom:7px}
body.mc-admin-dashboard-page .mc-history-total-card strong{display:block;color:#17385f;font-size:23px}
body.mc-admin-dashboard-page .mc-sales-history-table td small,
body.mc-admin-dashboard-page .mc-sales-summary-table td small{display:block;color:#7e8d9d;margin-top:3px}
body.mc-admin-dashboard-page .mc-sales-history-table a{color:#265f9e;text-decoration:none}

@media (max-width:1180px){
  body.mc-admin-dashboard-page .mc-admin-sales-overview,
  body.mc-admin-dashboard-page .mc-history-total-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:780px){
  body.mc-admin-dashboard-page .mc-admin-section-heading{flex-direction:column}
  body.mc-admin-dashboard-page .mc-admin-product-filters,
  body.mc-admin-dashboard-page .mc-sales-history-filters{display:grid;grid-template-columns:1fr 1fr;width:100%}
  body.mc-admin-dashboard-page .mc-admin-product-filters .field,
  body.mc-admin-dashboard-page .mc-admin-product-filters .field.grow,
  body.mc-admin-dashboard-page .mc-sales-history-filters .field,
  body.mc-admin-dashboard-page .mc-sales-history-filters .field.grow{min-width:0;flex:none}
}
@media (max-width:520px){
  body.mc-admin-dashboard-page .mc-admin-sales-overview,
  body.mc-admin-dashboard-page .mc-history-total-grid,
  body.mc-admin-dashboard-page .mc-admin-product-filters,
  body.mc-admin-dashboard-page .mc-sales-history-filters{grid-template-columns:1fr}
}


/* Fase 5.21.1 - editar productos + pausados visibles */
body.mc-admin-dashboard-page .mc-admin-products-table tr.is-paused{
  background:#fff4f4;
}
body.mc-admin-dashboard-page .mc-admin-products-table tr.is-paused:hover{
  background:#ffeded;
}
body.mc-admin-dashboard-page .mc-admin-products-table .status-paused,
body.mc-admin-dashboard-page .badge.status-paused{
  background:#fde2e2 !important;
  color:#9b2c2c !important;
  border:1px solid #f5bcbc;
}
.mc-admin-product-edit-card{max-width:1050px}
.mc-admin-product-edit-meta{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 18px;
}
.mc-admin-product-edit-meta span{
  display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border-radius:999px;
  background:#f3f6f9;color:#536579;font-size:13px;
}
.mc-admin-product-edit-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.mc-admin-product-images-preview{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.mc-admin-product-images-preview img{
  width:88px;height:88px;object-fit:cover;border-radius:9px;border:1px solid #dfe6ec;background:#fff;
}
@media(max-width:700px){
 .mc-admin-product-edit-actions .btn{flex:1 1 auto;text-align:center}
}

/* Fase 5.21.6 — tarjetas realmente compactas, ancho maximo 220px */
.catalog-section .product-grid{
  display:grid !important;
  grid-template-columns:repeat(5,220px) !important;
  gap:14px !important;
  justify-content:start !important;
  align-items:start !important;
}

.catalog-section .product-card{
  width:220px !important;
  max-width:220px !important;
}

.catalog-section .product-card-image{
  width:100% !important;
  height:185px !important;
  min-height:185px !important;
  aspect-ratio:auto !important;
  overflow:hidden !important;
}

.catalog-section .product-card-image > a{
  display:flex !important;
  width:100% !important;
  height:185px !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#f7f9fa !important;
}

.catalog-section .product-card-image img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

.catalog-section .product-card-body{
  padding:9px 10px 10px !important;
}

.catalog-section .mc-product-title-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 28px !important;
  gap:6px !important;
  align-items:start !important;
  margin:4px 0 6px !important;
}

.catalog-section .mc-product-title-row h3{
  margin:0 !important;
  min-width:0 !important;
  font-size:13px !important;
  line-height:1.25 !important;
}

.catalog-section .mc-favorite-below-image{
  position:static !important;
  inset:auto !important;
  margin:0 !important;
  padding:0 !important;
  justify-self:end !important;
  align-self:start !important;
}

.catalog-section .mc-favorite-below-image .favorite-button{
  position:static !important;
  width:27px !important;
  height:27px !important;
  min-width:27px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:50% !important;
  font-size:18px !important;
  line-height:1 !important;
}

@media(max-width:1250px) and (min-width:901px){
  .catalog-section .product-grid{
    grid-template-columns:repeat(4,210px) !important;
  }
  .catalog-section .product-card{
    width:210px !important;
    max-width:210px !important;
  }
}

@media(max-width:900px) and (min-width:601px){
  .catalog-section .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .catalog-section .product-card{
    width:100% !important;
    max-width:none !important;
  }
  .catalog-section .product-card-image,
  .catalog-section .product-card-image > a{
    height:175px !important;
    min-height:175px !important;
  }
}

@media(max-width:600px){
  .catalog-section .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
  }
  .catalog-section .product-card{
    width:100% !important;
    max-width:none !important;
  }
  .catalog-section .product-card-image,
  .catalog-section .product-card-image > a{
    height:145px !important;
    min-height:145px !important;
  }
}

/* Fase 5.21.7 — contador rojo de Preguntas; oculto cuando esta en cero */
.market-main-nav .nav-question-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  margin-left:4px;
  border-radius:999px;
  background:#d93025;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:1;
  vertical-align:middle;
  box-shadow:0 1px 3px rgba(0,0,0,.12);
}

.market-main-nav .nav-question-badge.is-hidden{
  display:none !important;
}

/* También garantiza que cualquier badge marcado como oculto no enseñe el 0. */
.nav-question-badge.is-hidden{
  display:none !important;
}

/* =========================================================
   Fase 5.22.0 — favoritos, footer, quienes somos y compartir
   ========================================================= */

/* Favoritos: corazon debajo de la imagen, a la derecha del titulo */
.favorites-page .product-card-image .favorite-card-form{
  display:none !important;
}
.favorites-page .mc-product-title-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 30px !important;
  gap:6px !important;
  align-items:start !important;
  margin:4px 0 6px !important;
}
.favorites-page .mc-product-title-row h3{
  margin:0 !important;
  min-width:0 !important;
}
.favorites-page .mc-favorite-below-image{
  display:block !important;
  position:static !important;
  inset:auto !important;
  margin:0 !important;
  padding:0 !important;
  justify-self:end !important;
  align-self:start !important;
}
.favorites-page .mc-favorite-below-image .favorite-button{
  position:static !important;
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:50% !important;
  font-size:18px !important;
  line-height:1 !important;
}

/* Footer centrado */
.site-footer .mc-footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-align:center;
}
.mc-footer-brand{
  color:var(--text);
  font-size:15px;
  font-weight:800;
}
.mc-footer-links{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.mc-footer-links a{
  color:var(--text-soft);
  font-size:12px;
  font-weight:700;
}
.mc-footer-links a:hover{
  color:var(--primary);
}

/* Pagina publica Quienes somos */
.mc-about-page{
  max-width:850px;
  margin:0 auto;
}
.mc-about-hero{
  text-align:center;
  padding:30px 24px;
}
.mc-about-hero h1{
  margin:4px 0 8px;
  font-size:30px;
  color:var(--text);
}
.mc-about-content{
  font-size:15px;
  line-height:1.8;
  color:#41556c;
  white-space:normal;
}

/* Editor de Quienes somos en Admin */
.mc-admin-about-editor{
  max-width:900px;
}
.mc-admin-about-editor textarea{
  min-height:380px;
  line-height:1.65;
  resize:vertical;
}
.mc-admin-about-help{
  margin-top:8px;
  font-size:12px;
  color:var(--text-soft);
}

/* Compartir producto */
.product-share-box{
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--line-soft);
}
.product-share-box>span{
  display:block;
  margin-bottom:8px;
  color:var(--text-soft);
  font-size:11px;
  font-weight:700;
}
.product-share-links{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}
.product-share-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:31px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--text);
  font-size:11px;
  font-weight:800;
  transition:border-color .15s ease,background .15s ease;
}
.product-share-link:hover{
  border-color:#aebdca;
  background:#f7faf9;
  color:var(--text);
}

@media(max-width:600px){
  .mc-about-hero{padding:22px 16px}
  .mc-about-hero h1{font-size:25px}
  .product-share-links{gap:6px}
  .product-share-link{padding:6px 9px}
}

/* =========================================================
   Fase 5.23.0 — Admin, reportes y reputacion fija de vendedores
   ========================================================= */

/* Botones administrativos con acciones claramente diferenciadas */
.btn-product-pause{
  background:#8f4a36 !important;
  border-color:#8f4a36 !important;
  color:#fff !important;
}
.btn-product-pause:hover{background:#773b2c !important;border-color:#773b2c !important}
.btn-product-reactivate{
  background:#2d7d68 !important;
  border-color:#2d7d68 !important;
  color:#fff !important;
}
.btn-seller-grant{
  background:#2d7d68 !important;
  border-color:#2d7d68 !important;
  color:#fff !important;
}
.btn-user-block{
  background:#a94442 !important;
  border-color:#a94442 !important;
  color:#fff !important;
}
.btn-user-reactivate{
  background:#315d89 !important;
  border-color:#315d89 !important;
  color:#fff !important;
}

/* Modificar producto: alta, estado y visitas */
.mc-admin-product-meta-expanded{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.mc-product-meta-left{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.mc-product-created-date{
  margin-left:8px;
  padding-left:9px;
  border-left:1px solid #d9e1e8;
  color:#718096;
}
.mc-product-meta-visits{
  margin-left:auto;
  padding:7px 11px;
  border:1px solid #dce5ec;
  border-radius:8px;
  background:#f8fafb;
  color:#5c6d7d;
  white-space:nowrap;
}
.mc-product-meta-visits strong{color:#0c2e5a;font-size:16px}

/* Reputacion fija de los vendedores */
.mc-admin-seller-reputation,
.seller-reputation-card{
  display:flex;
  align-items:center;
  gap:11px;
  border:1px solid #ead9a2;
  border-radius:10px;
  background:#fffaf0;
}
.mc-admin-seller-reputation{
  margin:12px 0 18px;
  padding:12px 14px;
}
.seller-reputation-card{
  margin-top:10px;
  padding:11px 12px;
}
.mc-reputation-trophy,
.seller-reputation-trophy{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  background:#fff1bd;
  font-size:21px;
}
.mc-admin-seller-reputation div,
.seller-reputation-card div{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.mc-admin-seller-reputation small,
.seller-reputation-card small{
  color:#7b6a45;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mc-admin-seller-reputation strong,
.seller-reputation-card strong{
  color:#16395f;
  font-size:13px;
}
.mc-admin-seller-reputation span:not(.mc-reputation-trophy),
.seller-reputation-card span:not(.seller-reputation-trophy){
  color:#6f7881;
  font-size:11px;
}

/* Quienes somos ahora vive dentro de Configuracion */
.mc-config-quick-access{
  margin:16px 0 20px;
  padding:14px;
  border:1px solid #e1e8ee;
  border-radius:11px;
  background:#f8fafc;
}
.mc-config-quick-access h3{
  margin:0 0 10px;
  font-size:13px;
  color:#234461;
}
.mc-config-quick-card{
  display:flex;
  align-items:center;
  gap:11px;
  max-width:430px;
  padding:10px 12px;
  border:1px solid #dce6ed;
  border-radius:10px;
  background:#fff;
  color:#16395f;
  text-decoration:none;
}
.mc-config-quick-card:hover{border-color:#adc0cf;background:#fbfdfe}
.mc-config-quick-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:9px;
  background:#315d89;
  color:#fff;
  font-size:19px;
}
.mc-config-quick-card span:nth-child(2){display:flex;flex-direction:column;gap:2px}
.mc-config-quick-card small{color:#718096;font-size:11px;font-weight:500}
.mc-config-quick-card b{margin-left:auto;font-size:21px}
.mc-config-password-title{margin:6px 0 10px;font-size:14px;color:#234461}

/* Reportes */
.mc-live-sales-monitor,
.mc-sales-report{margin-bottom:16px}
.mc-live-dot{
  display:inline-block;
  width:9px;
  height:9px;
  margin-right:4px;
  border-radius:50%;
  background:#2d8a66;
  box-shadow:0 0 0 4px rgba(45,138,102,.11);
}
.mc-live-updated{
  color:#6b7b8b;
  font-size:11px;
  white-space:nowrap;
}
.mc-report-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:14px 0 18px;
}
.mc-report-kpis article{
  min-height:100px;
  padding:13px;
  border:1px solid #dfe7ee;
  border-radius:11px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.mc-report-kpis-live article:first-child{border-top:3px solid #2d7d68}
.mc-report-kpis article small{color:#708090;font-size:11px;font-weight:700}
.mc-report-kpis article strong{margin:5px 0 3px;color:#0c2e5a;font-size:22px}
.mc-report-kpis article span{color:#708090;font-size:10px}
.mc-report-kpis .is-positive{color:#2d7d68}
.mc-report-kpis .is-negative{color:#a94442}
.mc-live-sales-list h3,
.mc-report-summary-table h3{margin:8px 0 10px;color:#244763;font-size:14px}

.mc-report-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);
  gap:14px;
  margin-top:10px;
}
.mc-report-chart-card{
  min-width:0;
  padding:14px;
  border:1px solid #e0e7ed;
  border-radius:11px;
  background:#fff;
}
.mc-report-chart-head h3{margin:0;color:#183d61;font-size:14px}
.mc-report-chart-head p{margin:3px 0 0;color:#7a8895;font-size:10px}

/* 28 barras: etiquetas alternadas para mantener lectura compacta */
.mc-daily-bars{
  height:245px;
  display:flex;
  align-items:flex-end;
  gap:4px;
  margin-top:18px;
  padding:8px 2px 0;
  border-bottom:1px solid #dce5ec;
}
.mc-daily-bar-item{
  flex:1 1 0;
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  gap:5px;
}
.mc-daily-bar-track{
  width:100%;
  max-width:18px;
  height:205px;
  display:flex;
  align-items:flex-end;
  border-radius:5px 5px 0 0;
  background:#f0f4f7;
  overflow:hidden;
}
.mc-daily-bar-track span{
  display:block;
  width:100%;
  min-height:3px;
  background:#315d89;
  border-radius:5px 5px 0 0;
}
.mc-daily-bar-item small{
  height:22px;
  overflow:hidden;
  color:#7b8994;
  font-size:8px;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
}
.mc-daily-bar-item:nth-child(even) small{visibility:hidden}

.mc-weekly-bars{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.mc-week-row{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) 72px;
  align-items:center;
  gap:8px;
}
.mc-week-row small{font-size:9px;color:#71808c}
.mc-week-track{height:12px;border-radius:999px;background:#eef2f5;overflow:hidden}
.mc-week-track span{display:block;height:100%;min-width:2px;border-radius:999px;background:#2d7d68}
.mc-week-row strong{text-align:right;font-size:10px;color:#234461}
.mc-report-summary-table{margin-top:18px}

@media(max-width:980px){
  .mc-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-report-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .mc-admin-product-meta-expanded{align-items:flex-start}
  .mc-product-meta-left{display:grid;gap:7px}
  .mc-product-meta-visits{margin-left:0}
  .mc-report-kpis{grid-template-columns:1fr 1fr;gap:7px}
  .mc-report-kpis article{min-height:88px;padding:10px}
  .mc-report-kpis article strong{font-size:18px}
  .mc-daily-bars{gap:2px}
  .mc-daily-bar-item small{display:none}
  .mc-week-row{grid-template-columns:72px minmax(0,1fr) 62px}
}

/* =========================================================
   Fase 5.24.0 — Redes, Mi cuenta y Excel de productos
   ========================================================= */

/* Iconos oficiales simplificados para compartir */
.product-share-link{
  gap:7px;
}
.product-share-link svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
  fill:currentColor;
}
.product-share-link span{
  line-height:1;
}

/* Mi cuenta — estilo limpio alineado con Mischacharas */
.mc-account-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin:18px 0 14px;
  padding:24px 26px;
  border:1px solid #dfe7ed;
  border-radius:14px;
  background:linear-gradient(120deg,#fff 0%,#f8fafc 58%,#fff4e8 100%);
  box-shadow:0 5px 18px rgba(16,45,74,.05);
}
.mc-account-hero-copy h1{
  margin:3px 0 5px;
  color:#173b62;
  font-size:29px;
}
.mc-account-hero-copy p{
  max-width:670px;
  margin:0;
  color:#657689;
  font-size:13px;
}
.mc-account-hero-badge{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:230px;
  padding:10px 12px;
  border:1px solid #e0e7ec;
  border-radius:12px;
  background:#fff;
}
.mc-account-hero-badge>span,
.mc-account-avatar{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:#173b62;
  color:#fff;
  font-weight:900;
}
.mc-account-hero-badge div{display:flex;flex-direction:column;min-width:0}
.mc-account-hero-badge strong{color:#173b62;font-size:13px}
.mc-account-hero-badge small{color:#758596;font-size:10px}

.mc-account-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:14px;
  align-items:start;
  margin-bottom:24px;
}
.mc-account-nav-card,
.mc-account-profile-card,
.mc-account-shortcuts{
  border:1px solid #dfe7ed;
  border-radius:13px;
  background:#fff;
  box-shadow:0 4px 14px rgba(16,45,74,.04);
}
.mc-account-nav-card{overflow:hidden}
.mc-account-nav-title{
  padding:14px 15px 10px;
  color:#758596;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.mc-account-nav-card nav{display:flex;flex-direction:column;padding:0 8px 10px}
.mc-account-nav-card a{
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  border-radius:8px;
  color:#455d72;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.mc-account-nav-card a:hover{background:#f6f9fb;color:#173b62}
.mc-account-nav-card a.is-active{background:#edf3f8;color:#173b62}
.mc-account-nav-card a span{width:19px;text-align:center;color:#315d89}

.mc-account-content{min-width:0;display:flex;flex-direction:column;gap:14px}
.mc-account-profile-card{padding:18px}
.mc-account-profile-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:16px;
  border-bottom:1px solid #edf1f4;
}
.mc-account-profile-head>div:nth-child(2){min-width:0}
.mc-account-profile-head span:first-child{display:block;color:#84919e;font-size:9px;font-weight:800;text-transform:uppercase}
.mc-account-profile-head h2{margin:2px 0;color:#173b62;font-size:20px}
.mc-account-profile-head p{margin:0;color:#708091;font-size:11px}
.mc-account-status{
  margin-left:auto;
  padding:5px 9px;
  border-radius:999px;
  background:#eaf6ef;
  color:#28745d !important;
  font-size:10px !important;
  font-weight:800;
  text-transform:none !important;
}
.mc-account-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:15px;
}
.mc-account-info-item{
  min-width:0;
  padding:12px;
  border:1px solid #e5ebef;
  border-radius:10px;
  background:#fbfcfd;
}
.mc-account-info-item small{display:block;margin-bottom:4px;color:#82909c;font-size:9px;font-weight:800;text-transform:uppercase}
.mc-account-info-item strong{display:block;overflow-wrap:anywhere;color:#274963;font-size:12px}

.mc-account-shortcuts{padding:16px 18px}
.mc-account-shortcuts h2{margin:0 0 10px;color:#173b62;font-size:14px}
.mc-account-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mc-account-shortcut-grid a{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 14px;
  align-items:center;
  gap:9px;
  padding:10px;
  border:1px solid #e2e9ee;
  border-radius:10px;
  color:#274963;
  text-decoration:none;
}
.mc-account-shortcut-grid a:hover{border-color:#b9c8d3;background:#fbfdfe}
.mc-account-shortcut-grid>a>span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:8px;
  background:#edf3f8;
  color:#315d89;
}
.mc-account-shortcut-grid div{display:flex;flex-direction:column;min-width:0}
.mc-account-shortcut-grid strong{font-size:11px}
.mc-account-shortcut-grid small{color:#7c8b99;font-size:9px}
.mc-account-shortcut-grid b{font-size:17px;color:#91a0ac}

/* Excel y filtros de productos */
.mc-products-excel-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mc-excel-export-btn{
  background:#fff !important;
  color:#315d89 !important;
  border-color:#b8c8d4 !important;
}
.mc-excel-bulk-btn{
  background:#28745d !important;
  border-color:#28745d !important;
  color:#fff !important;
}
.mc-excel-import-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  padding:12px 13px;
  border:1px dashed #b8c8d4;
  border-radius:10px;
  background:#f8fbfc;
}
.mc-excel-import-panel>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.mc-excel-import-panel strong{color:#214765;font-size:12px}
.mc-excel-import-panel small{max-width:650px;color:#738493;font-size:10px}
.mc-excel-import-panel form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mc-excel-import-panel input[type=file]{
  max-width:280px;
  padding:6px;
  border:1px solid #d7e0e7;
  border-radius:8px;
  background:#fff;
  font-size:10px;
}
.mc-excel-import-btn{
  background:#315d89 !important;
  border-color:#315d89 !important;
  color:#fff !important;
}

@media(max-width:820px){
  .mc-account-hero{align-items:flex-start;flex-direction:column;padding:18px}
  .mc-account-hero-badge{min-width:0;width:100%}
  .mc-account-layout{grid-template-columns:1fr}
  .mc-account-nav-card nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-excel-import-panel{align-items:flex-start;flex-direction:column}
  .mc-excel-import-panel form{justify-content:flex-start;width:100%}
}
@media(max-width:560px){
  .mc-account-info-grid,
  .mc-account-shortcut-grid{grid-template-columns:1fr}
  .mc-account-nav-card nav{grid-template-columns:1fr 1fr}
  .mc-products-excel-actions{justify-content:flex-start}
}

/* =========================================================
   Fase 5.24.1 — Herramientas Excel agrupadas en un solo cuadro
   ========================================================= */

.mc-products-excel-actions{
  display:none !important;
}

.mc-excel-tools-card{
  margin-top:14px;
  padding:15px;
  border:1px solid #d9e3ea;
  border-radius:12px;
  background:#f8fbfc;
  box-shadow:0 3px 12px rgba(17,48,76,.04);
}

.mc-excel-tools-head{
  display:flex;
  align-items:center;
  gap:11px;
  padding-bottom:12px;
  border-bottom:1px solid #e4ebf0;
}

.mc-excel-tools-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:10px;
  background:#28745d;
  color:#fff;
  font-size:17px;
  font-weight:900;
}

.mc-excel-tools-head>div:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.mc-excel-tools-head strong{
  color:#173b62;
  font-size:14px;
}

.mc-excel-tools-head small{
  color:#748595;
  font-size:10px;
}

.mc-excel-tools-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.mc-excel-tool{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px;
  min-width:0;
  padding:12px;
  border:1px solid #e0e8ee;
  border-radius:10px;
  background:#fff;
}

.mc-excel-step{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:#edf3f8;
  color:#315d89;
  font-size:11px;
  font-weight:900;
}

.mc-excel-tool>div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.mc-excel-tool strong{
  color:#214765;
  font-size:12px;
}

.mc-excel-tool small{
  min-height:30px;
  color:#758594;
  font-size:9px;
  line-height:1.45;
}

.mc-excel-tool .btn{
  margin-top:auto;
}

.mc-excel-tool-import form{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  width:100%;
}

.mc-excel-tool-import input[type=file]{
  width:100%;
  max-width:100%;
  padding:7px;
  border:1px solid #d5dfe6;
  border-radius:8px;
  background:#fff;
  font-size:10px;
}

@media(max-width:980px){
  .mc-excel-tools-grid{
    grid-template-columns:1fr;
  }

  .mc-excel-tool small{
    min-height:0;
  }
}

/* =========================================================
   Fase 5.25.0 — Mi cuenta como panel de comprador
   ========================================================= */

.mc-buyer-dashboard{margin:18px 0 28px}
.mc-buyer-topbar{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:20px 22px;border:1px solid #dce5ec;border-radius:14px 14px 0 0;background:#fff;
}
.mc-buyer-eyebrow{
  display:block;margin-bottom:4px;color:#7a8a98;font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:.07em;
}
.mc-buyer-topbar h1{margin:0 0 4px;color:#173b62;font-size:26px}
.mc-buyer-topbar p{margin:0;color:#6e7f90;font-size:12px}
.mc-buyer-profile-chip{
  display:flex;align-items:center;gap:10px;min-width:220px;padding:9px 11px;
  border:1px solid #e1e8ee;border-radius:11px;background:#f9fbfc;
}
.mc-buyer-avatar{
  display:grid;place-items:center;width:42px;height:42px;border-radius:50%;
  background:#173b62;color:#fff;font-weight:900;
}
.mc-buyer-profile-chip div{display:flex;flex-direction:column}
.mc-buyer-profile-chip strong{color:#173b62;font-size:12px}
.mc-buyer-profile-chip small{color:#7b8a97;font-size:10px}

.mc-buyer-shell{
  display:grid;grid-template-columns:220px minmax(0,1fr);
  border:1px solid #dce5ec;border-top:0;border-radius:0 0 14px 14px;overflow:hidden;background:#f6f8fa;
}
.mc-buyer-sidebar{
  display:flex;flex-direction:column;min-height:560px;padding:16px 10px;
  border-right:1px solid #dfe6ec;background:#173b62;
}
.mc-buyer-sidebar-title{
  padding:0 10px 10px;color:#b8c8d8;font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:.07em;
}
.mc-buyer-sidebar nav{display:flex;flex-direction:column;gap:4px}
.mc-buyer-sidebar a{
  display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;
  color:#dce8f2;font-size:12px;font-weight:700;text-decoration:none;
}
.mc-buyer-sidebar a span{width:20px;text-align:center}
.mc-buyer-sidebar a:hover,.mc-buyer-sidebar a.active{background:rgba(255,255,255,.12);color:#fff}
.mc-buyer-sidebar-message{
  margin-top:auto;padding:13px 10px 4px;border-top:1px solid rgba(255,255,255,.13);
  color:#d7e2ec;text-align:center;
}
.mc-buyer-sidebar-message span{display:block;margin-bottom:5px;font-size:24px}
.mc-buyer-sidebar-message p{margin:0;font-size:9px;line-height:1.5}

.mc-buyer-main{min-width:0;padding:16px}
.mc-buyer-welcome-card,.mc-buyer-info-card,.mc-buyer-help-card{
  border:1px solid #dfe6ec;border-radius:12px;background:#fff;
  box-shadow:0 3px 10px rgba(19,55,86,.04);
}
.mc-buyer-welcome-card{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;
}
.mc-buyer-card-kicker{
  display:block;color:#8a97a3;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
}
.mc-buyer-welcome-card h2{margin:3px 0 4px;color:#173b62;font-size:18px}
.mc-buyer-welcome-card p{margin:0;color:#718191;font-size:11px}
.mc-buyer-status-pill{
  flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#eaf6ef;color:#2d7d68;
  font-size:10px;font-weight:800;
}

.mc-buyer-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.mc-buyer-quick-grid>a{
  display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:10px;
  padding:13px;border:1px solid #dfe6ec;border-radius:11px;background:#fff;
  color:#244965;text-decoration:none;box-shadow:0 3px 10px rgba(19,55,86,.035);
}
.mc-buyer-quick-grid>a:hover{border-color:#b9c8d5;transform:translateY(-1px)}
.mc-buyer-quick-icon{
  display:grid;place-items:center;width:42px;height:42px;border-radius:10px;
  background:#edf3f8;color:#315d89;font-size:20px;
}
.mc-buyer-quick-grid div{display:flex;flex-direction:column;min-width:0}
.mc-buyer-quick-grid small{color:#8a97a3;font-size:9px;text-transform:uppercase;font-weight:800}
.mc-buyer-quick-grid strong{margin:1px 0 2px;color:#173b62;font-size:12px}
.mc-buyer-quick-grid p{margin:0;color:#788895;font-size:9px}
.mc-buyer-quick-grid b{color:#9aabb8;font-size:19px}

.mc-buyer-info-card{padding:16px 18px}
.mc-buyer-section-head span{color:#8997a4;font-size:9px;font-weight:800;text-transform:uppercase}
.mc-buyer-section-head h2{margin:2px 0 10px;color:#173b62;font-size:15px}
.mc-buyer-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mc-buyer-info-grid>div{padding:11px 12px;border:1px solid #e4eaef;border-radius:9px;background:#fafcfd}
.mc-buyer-info-grid small{
  display:block;margin-bottom:3px;color:#8794a0;font-size:9px;font-weight:800;text-transform:uppercase;
}
.mc-buyer-info-grid strong{display:block;color:#294b64;font-size:11px;overflow-wrap:anywhere}

.mc-buyer-help-card{
  display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:13px 15px;
}
.mc-buyer-help-card>div{display:flex;align-items:center;gap:10px}
.mc-buyer-help-icon{
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  background:#fff1e5;color:#d77720;font-size:20px;
}
.mc-buyer-help-card strong{display:block;color:#173b62;font-size:11px}
.mc-buyer-help-card p{margin:2px 0 0;color:#788895;font-size:9px}
.mc-buyer-help-card>a{
  flex:0 0 auto;padding:8px 11px;border-radius:8px;background:#d97721;color:#fff;
  font-size:10px;font-weight:800;text-decoration:none;
}

@media(max-width:820px){
  .mc-buyer-topbar{align-items:flex-start;flex-direction:column}
  .mc-buyer-profile-chip{min-width:0;width:100%}
  .mc-buyer-shell{grid-template-columns:1fr}
  .mc-buyer-sidebar{min-height:0;border-right:0;border-bottom:1px solid #dfe6ec}
  .mc-buyer-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-buyer-sidebar-message{display:none}
}
@media(max-width:560px){
  .mc-buyer-main{padding:10px}
  .mc-buyer-welcome-card,.mc-buyer-help-card{align-items:flex-start;flex-direction:column}
  .mc-buyer-quick-grid,.mc-buyer-info-grid{grid-template-columns:1fr}
  .mc-buyer-sidebar nav{grid-template-columns:1fr 1fr}
}



/* Fase 5.25.1 — panel uniforme de Mi cuenta */
.mc-buyer-subpage{margin-top:18px}.mc-buyer-shell-standalone{border-top:1px solid #dce5ec;border-radius:14px}
.mc-buyer-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;padding:16px 18px;border:1px solid #dfe6ec;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(19,55,86,.04)}
.mc-buyer-page-heading h1{margin:2px 0 3px;color:#173b62;font-size:21px}.mc-buyer-page-heading p{margin:0;color:#718191;font-size:10px}
.mc-buyer-empty-card{padding:36px 20px;border:1px solid #dfe6ec;border-radius:12px;background:#fff;text-align:center;box-shadow:0 3px 10px rgba(19,55,86,.04)}
.mc-buyer-empty-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 10px;border-radius:50%;background:#edf3f8;color:#315d89;font-size:24px}
.mc-buyer-empty-card h2{margin:0 0 5px;color:#173b62;font-size:17px}.mc-buyer-empty-card p{margin:0 0 13px;color:#758594;font-size:10px}
.mc-favorites-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.mc-favorite-card{display:grid;grid-template-columns:145px minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid #dfe6ec;border-radius:12px;background:#fff;box-shadow:0 3px 11px rgba(19,55,86,.04)}
.mc-favorite-image{display:flex;align-items:center;justify-content:center;min-height:190px;background:#f4f6f7;overflow:hidden}.mc-favorite-image img{width:100%;height:100%;min-height:190px;object-fit:cover}.mc-favorite-image>span{color:#8b98a3;font-size:10px}
.mc-favorite-content{display:flex;flex-direction:column;min-width:0;padding:12px}.mc-favorite-topline{display:flex;align-items:center;justify-content:space-between;gap:8px}.mc-favorite-topline>span{color:#81909d;font-size:9px;font-weight:800;text-transform:uppercase}
.mc-favorite-topline form{margin:0}.mc-favorite-remove{display:grid;place-items:center;width:29px;height:29px;padding:0;border:1px solid #f0d4d4;border-radius:50%;background:#fff6f6;color:#b84e55;cursor:pointer;font-size:15px}.mc-favorite-remove:hover{background:#b84e55;color:#fff}
.mc-favorite-content h2{margin:5px 0 3px;font-size:14px;line-height:1.25}.mc-favorite-content h2 a{color:#173b62;text-decoration:none}.mc-favorite-price{color:#173b62;font-size:18px}
.mc-favorite-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px}.mc-favorite-meta span{padding:3px 6px;border-radius:999px;background:#f0f4f7;color:#65798a;font-size:8px;font-weight:700}
.mc-favorite-reputation{display:flex;align-items:center;gap:7px;margin-top:9px;padding:7px 8px;border:1px solid #efe2bf;border-radius:8px;background:#fffaf0}.mc-favorite-trophy{font-size:17px}.mc-favorite-reputation div{display:flex;flex-direction:column}.mc-favorite-reputation strong{color:#795d18;font-size:9px}.mc-favorite-reputation small{color:#9a854e;font-size:8px}
.mc-favorite-view{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:9px;color:#315d89;font-size:10px;font-weight:800;text-decoration:none}.mc-favorite-view span{font-size:17px}.mc-fav-empty-heart{background:#fff1f1;color:#b84e55}
.mc-buyer-main .buyer-purchase-card,.mc-buyer-main .notification-item,.mc-buyer-main .sales-alerts .card,.mc-buyer-main>section.card{border-color:#dfe6ec;box-shadow:0 3px 10px rgba(19,55,86,.04)}
@media(max-width:1050px){.mc-favorites-grid{grid-template-columns:1fr}}@media(max-width:820px){.mc-buyer-shell-standalone{border-radius:12px}}@media(max-width:620px){.mc-buyer-page-heading{align-items:flex-start;flex-direction:column}.mc-favorite-card{grid-template-columns:110px minmax(0,1fr)}.mc-favorite-image,.mc-favorite-image img{min-height:170px}}@media(max-width:430px){.mc-favorite-card{grid-template-columns:1fr}.mc-favorite-image,.mc-favorite-image img{height:185px;min-height:185px}}


/* Fase 5.25.2 — Favoritos: imagen uniforme y sin reputación */
.mc-favorite-image{
  height:180px;
  min-height:180px;
  padding:8px;
  background:#f7f8f9;
}
.mc-favorite-image img{
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  object-position:center;
}
.mc-favorite-content{
  min-height:175px;
}
@media(max-width:620px){
  .mc-favorite-image,
  .mc-favorite-image img{
    min-height:0;
  }
  .mc-favorite-image{height:165px}
}
@media(max-width:430px){
  .mc-favorite-image{height:190px;min-height:190px}
  .mc-favorite-image img{height:100%;min-height:0}
}


/* Fase 5.25.4 — Miniaturas debajo de la imagen principal */
.product-gallery-shell{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
}
.product-main-image-wrap{
  order:1;
  width:100%;
}
.product-thumbs{
  order:2;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:8px;
  width:100%;
  max-height:none;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 1px 5px;
  scrollbar-width:thin;
}
.product-thumb{
  flex:0 0 68px;
  width:68px;
  height:68px;
}
@media(max-width:850px){
  .product-gallery-shell{
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .product-thumbs{
    order:2;
    flex-direction:row;
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
  }
}


/* =========================================================
   Fase 5.26.1 — Administración de imágenes en Modificar producto
   ========================================================= */
.mc-admin-add-images{
  margin-top:8px;
  padding:13px;
  border:1px dashed #b9c9d5;
  border-radius:10px;
  background:#f8fbfc;
}
.mc-admin-add-images input[type=file]{
  display:block;
  width:100%;
  margin-top:6px;
  padding:8px;
  border:1px solid #d9e3ea;
  border-radius:8px;
  background:#fff;
}
.mc-admin-image-manager{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #e2e9ee;
}
.mc-admin-image-manager-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.mc-admin-image-manager-head h2{
  margin:0 0 3px;
  color:#173b62;
  font-size:16px;
}
.mc-admin-image-manager-head p{
  margin:0;
  color:#738493;
  font-size:10px;
}
.mc-admin-image-manager-head>span{
  padding:5px 8px;
  border-radius:999px;
  background:#edf3f8;
  color:#315d89;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}
.mc-admin-image-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
}
.mc-admin-image-card{
  overflow:hidden;
  border:1px solid #dfe7ed;
  border-radius:11px;
  background:#fff;
}
.mc-admin-image-card.is-primary{
  border-color:#91aac0;
  box-shadow:0 0 0 2px rgba(49,93,137,.07);
}
.mc-admin-image-preview{
  position:relative;
  height:180px;
  padding:8px;
  background:#f7f8f9;
}
.mc-admin-image-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.mc-admin-primary-badge{
  position:absolute;
  top:8px;
  left:8px;
  padding:4px 7px;
  border-radius:999px;
  background:#173b62;
  color:#fff;
  font-size:8px;
  font-weight:900;
}
.mc-admin-image-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:9px;
  border-top:1px solid #edf1f4;
}
.mc-admin-image-actions form{margin:0}
.mc-admin-image-empty{
  padding:22px;
  border:1px dashed #ccd8e0;
  border-radius:10px;
  color:#718292;
  background:#fafcfd;
  text-align:center;
  font-size:10px;
}
@media(max-width:980px){
  .mc-admin-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .mc-admin-image-grid{grid-template-columns:1fr}
  .mc-admin-image-manager-head{flex-direction:column}
}


/* =========================================================
   Fase 5.26.2 — Ordenar imágenes arrastrando + acciones abajo
   ========================================================= */
.mc-admin-image-card{
  cursor:grab;
  user-select:none;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.mc-admin-image-card:active{cursor:grabbing}
.mc-admin-image-card.is-dragging{
  opacity:.62;
  transform:scale(.98);
  box-shadow:0 8px 22px rgba(18,52,82,.16);
}
.mc-admin-image-position{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  border:1px solid #d7e1e8;
  color:#315d89;
  font-size:8px;
  font-weight:900;
}
.mc-admin-drag-handle{
  position:absolute;
  right:8px;
  bottom:8px;
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:8px;
  background:rgba(23,59,98,.9);
  color:#fff;
  font-size:15px;
  font-weight:900;
}
.mc-admin-image-card .mc-admin-primary-badge[hidden]{
  display:none !important;
}
.mc-admin-image-move-buttons{
  display:flex;
  gap:4px;
  margin-right:auto;
}
.mc-admin-image-move-buttons button{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid #cad7e1;
  border-radius:7px;
  background:#fff;
  color:#315d89;
  cursor:pointer;
  font-weight:900;
}
.mc-admin-image-move-buttons button:hover:not(:disabled){
  background:#edf3f8;
}
.mc-admin-image-move-buttons button:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.mc-admin-product-edit-actions-bottom{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #dfe7ed;
}
@media(max-width:620px){
  .mc-admin-product-edit-actions-bottom{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .mc-admin-product-edit-actions-bottom .btn{
    width:100%;
    text-align:center;
  }
}


/* =========================================================
   Fase 5.26.3 — Cuadros de imágenes más compactos
   ========================================================= */
.mc-admin-image-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.mc-admin-image-card{
  border-radius:9px;
}

.mc-admin-image-preview{
  height:125px;
  padding:6px;
}

.mc-admin-image-position{
  top:6px;
  right:6px;
  padding:3px 6px;
  font-size:7px;
}

.mc-admin-primary-badge{
  top:6px;
  left:6px;
  padding:3px 6px;
  font-size:7px;
}

.mc-admin-drag-handle{
  right:6px;
  bottom:6px;
  width:24px;
  height:24px;
  border-radius:6px;
  font-size:12px;
}

.mc-admin-image-actions{
  gap:4px;
  padding:7px;
}

.mc-admin-image-move-buttons{
  gap:3px;
}

.mc-admin-image-move-buttons button{
  width:26px;
  height:26px;
  border-radius:6px;
  font-size:11px;
}

.mc-admin-image-actions .btn{
  min-height:26px;
  padding:5px 7px;
  font-size:8px;
}

@media(max-width:1100px){
  .mc-admin-image-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:820px){
  .mc-admin-image-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:520px){
  .mc-admin-image-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  .mc-admin-image-preview{
    height:105px;
  }
  .mc-admin-image-actions{
    padding:6px;
  }
}


/* Fase 5.26.4 — Previsualizar fotos antes de guardar */
.mc-admin-image-card-new{border-style:dashed;border-color:#9fb6c8;background:#fbfdfe}
.mc-admin-new-badge{
  position:absolute;left:6px;bottom:6px;padding:3px 6px;border-radius:999px;
  background:#28745d;color:#fff;font-size:7px;font-weight:900;text-transform:uppercase
}
.mc-remove-new-image{
  margin-left:auto;background:#fff !important;border-color:#d9bcbc !important;color:#a44f4f !important
}
.mc-admin-image-empty[hidden]{display:none !important}


/* =========================================================
   Fase 5.26.5 — Agregar producto solo para vendedor/admin
   ========================================================= */
.market-main-nav .market-add-product-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:31px;
  padding:5px 12px;
  border-radius:8px;
  background:#fff4e8;
  border:1px solid #ef9a45;
  color:#9a5212;
  font-weight:800;
  text-decoration:none;
}
.market-main-nav .market-add-product-link:hover{
  background:#ffead3;
  border-color:#e5872d;
  color:#81420c;
}


/* =========================================================
   Fase 5.26.6 — Icono rojo Vender Productos junto a Favoritos
   ========================================================= */
.market-main-nav .market-add-product-link{
  display:none !important;
}

.market-sell-product-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  margin-left:5px;
  border:2px solid #c83232;
  border-radius:50%;
  background:#fff;
  color:#c83232 !important;
  font-size:25px;
  line-height:1;
  font-weight:900;
  text-decoration:none !important;
  box-shadow:0 2px 7px rgba(0,0,0,.10);
  transition:transform .15s ease, background .15s ease, color .15s ease;
}

.market-sell-product-icon:hover{
  background:#c83232;
  color:#fff !important;
  transform:scale(1.08);
}

.market-sell-product-icon:focus-visible{
  outline:3px solid rgba(200,50,50,.25);
  outline-offset:2px;
}


/* =========================================================
   Fase 5.26.7 — Nuevo Producto: previsualizar y ordenar fotos
   ========================================================= */
.mc-new-product-image-grid{
  margin-top:12px;
}
.mc-new-product-image-grid[hidden]{
  display:none !important;
}
.mc-new-product-image-grid .mc-admin-image-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
}


/* =========================================================
   Fase 5.27.0 — Usado crema + configuración de envíos
   ========================================================= */
.product-condition{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 11px;
  border:1px solid #ead08a;
  border-radius:10px;
  background:rgba(255,248,226,.72);
  color:#111 !important;
  font-weight:700;
  line-height:1.1;
}

.mc-package-fields{
  margin-top:4px;
  padding:14px;
  border:1px solid #e5ebef;
  border-radius:12px;
  background:#fbfcfd;
}
.mc-package-heading{margin-bottom:10px;color:#23364d}
.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}

.mc-shipping-method-list{display:grid;gap:14px}
.mc-shipping-method-card{
  padding:16px;border:1px solid #dfe7ed;border-radius:14px;background:#fff
}
.mc-shipping-method-title{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px
}
.mc-shipping-method-title>strong{font-size:17px;color:#23364d}
.mc-shipping-active{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700}

.checkout-shipping-methods{margin-top:18px;padding-top:18px;border-top:1px solid #e5ebef}
.checkout-shipping-heading h2{margin:3px 0 12px;font-size:20px}
.checkout-shipping-options{display:grid;gap:9px}
.checkout-shipping-option{
  position:relative;display:flex;align-items:center;gap:11px;padding:13px 14px;
  border:1px solid #dde6ec;border-radius:12px;background:#fff;cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease
}
.checkout-shipping-option:hover{border-color:#c6d5df;box-shadow:0 3px 10px rgba(35,54,77,.06)}
.checkout-shipping-option:has(input:checked){
  border-color:#d9c27f;background:rgba(255,248,226,.62)
}
.checkout-shipping-option input{position:absolute;opacity:0;pointer-events:none}
.checkout-shipping-radio{
  width:18px;height:18px;flex:0 0 18px;border:2px solid #9baab5;border-radius:50%;background:#fff
}
.checkout-shipping-option input:checked + .checkout-shipping-radio{border:5px solid #25866d}
.checkout-shipping-copy{display:flex;flex:1;flex-direction:column;gap:2px}
.checkout-shipping-copy strong{color:#23364d}
.checkout-shipping-copy small{color:#607187}
.checkout-shipping-option>b{color:#23364d;white-space:nowrap}

@media(max-width:760px){.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
  .form-grid.four{grid-template-columns:1fr}
  .checkout-shipping-option{align-items:flex-start}
}


/* =========================================================
   Fase 5.28.0 — Mis Compras, seguimiento y cancelación
   ========================================================= */
.mc-purchase-rich-card{
  display:grid;
  grid-template-columns:90px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
}
.mc-purchase-preview{
  width:90px;
  height:90px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #e1e8ed;
  border-radius:12px;
  background:#fff;
  color:#7b8994;
  font-size:11px;
}
.mc-purchase-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.mc-purchase-rich-card .buyer-purchase-main h2{
  margin:3px 0 7px;
  font-size:17px;
}
.mc-purchase-money{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:10px;
  font-size:12px;
  color:#607187;
}
.mc-purchase-money span{
  display:inline-flex;
  gap:5px;
}
.mc-purchase-money strong{
  color:#23364d;
}
.mc-purchase-total{
  padding-left:12px;
  border-left:1px solid #e0e7ec;
}
.mc-item-cancelled{
  display:inline-flex;
  width:max-content;
  margin-top:7px;
  padding:4px 8px;
  border-radius:8px;
  background:#fff1f1;
  border:1px solid #e6bcbc;
  color:#9a3d3d;
  font-size:11px;
  font-weight:800;
}
.mc-cancel-purchase-item{
  margin-top:9px;
}
.mc-cancel-purchase-item summary{
  width:max-content;
  cursor:pointer;
  color:#a24343;
  font-size:12px;
  font-weight:800;
}
.mc-cancel-purchase-item form{
  display:grid;
  gap:7px;
  max-width:420px;
  margin-top:8px;
  padding:10px;
  border:1px solid #ecd3d3;
  border-radius:10px;
  background:#fffafa;
}
.mc-cancel-purchase-item textarea{
  width:100%;
  resize:vertical;
}
.mc-shipment-state-only{
  align-items:center;
}
.buyer-seller-order-state small{
  display:block;
  margin-top:4px;
  color:#607187;
  font-size:11px;
}

@media(max-width:760px){
  .mc-purchase-rich-card{
    grid-template-columns:70px minmax(0,1fr);
  }
  .mc-purchase-preview{
    width:70px;
    height:70px;
  }
  .mc-purchase-rich-card .buyer-purchase-actions{
    grid-column:1 / -1;
  }
}

/* Fase 5.28.0.3 — seguimiento visual */
.buyer-order-timeline,
.buyer-order-progress,
.order-progress,
.order-timeline{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:8px !important;
  margin:14px 0 16px !important;
  padding:0 !important;
  list-style:none !important;
}
.buyer-order-timeline > *,
.buyer-order-progress > *,
.order-progress > *,
.order-timeline > *{
  min-width:0 !important;
  margin:0 !important;
  padding:10px 8px !important;
  border:1px solid #dfe7ec !important;
  border-radius:10px !important;
  background:#fff !important;
  text-align:center !important;
}
.buyer-order-timeline strong,
.buyer-order-progress strong,
.order-progress strong,
.order-timeline strong{
  display:block !important;
  margin:2px 0 !important;
  color:#193550 !important;
  font-size:12px !important;
  line-height:1.2 !important;
}
.buyer-order-timeline span,
.buyer-order-progress span,
.order-progress span,
.order-timeline span{
  display:block !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
.buyer-order-timeline small,
.buyer-order-progress small,
.order-progress small,
.order-timeline small{
  display:block !important;
  margin-top:3px !important;
  color:#718397 !important;
  font-size:10px !important;
  line-height:1.25 !important;
}
.buyer-shipment-box.mc-shipment-state-only{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:12px 14px !important;
  border-radius:12px !important;
}
.buyer-shipment-box.mc-shipment-state-only .eyebrow{
  font-size:10px !important;
}
.buyer-shipment-box.mc-shipment-state-only strong{
  font-size:15px !important;
}
@media(max-width:760px){
  .buyer-order-timeline,
  .buyer-order-progress,
  .order-progress,
  .order-timeline{
    grid-template-columns:1fr !important;
  }
  .buyer-order-timeline > *,
  .buyer-order-progress > *,
  .order-progress > *,
  .order-timeline > *{
    text-align:left !important;
  }
}


/* =========================================================
   Fase 5.29.0 — Mis Compras estilo pedido compacto
   ========================================================= */
.mc-purchase-filters{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
  padding:12px 14px;
  border:1px solid #dfe7ec;
  border-radius:12px;
  background:#fff;
}
.mc-purchase-filter-links{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}
.mc-purchase-filter-links a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border:1px solid #dce5ea;
  border-radius:9px;
  color:#23364d;
  background:#fff;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.mc-purchase-filter-links a.active{
  border-color:#25866d;
  background:#eef8f3;
  color:#1f725d;
}
.mc-purchase-year-form{
  display:flex;
  align-items:center;
  gap:7px;
}
.mc-purchase-year-form label{
  margin:0;
  color:#607187;
  font-size:12px;
  font-weight:700;
}
.mc-purchase-year-form select{
  min-height:34px;
  padding:6px 28px 6px 9px;
}
.mc-purchase-export{
  margin-left:auto;
}

.mc-amazon-purchase-list{
  display:grid;
  gap:16px;
}
.mc-amazon-purchase-card{
  overflow:hidden;
  border:1px solid #d7dfe4;
  border-radius:14px;
  background:#fff;
}
.mc-amazon-purchase-head{
  display:grid;
  grid-template-columns:180px 150px minmax(220px,1fr);
  gap:20px;
  align-items:center;
  padding:13px 18px;
  background:#f1f3f3;
  border-bottom:1px solid #e0e5e8;
}
.mc-amazon-purchase-head > div{
  display:grid;
  gap:2px;
}
.mc-amazon-purchase-head span{
  color:#667684;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mc-amazon-purchase-head strong{
  color:#23364d;
  font-size:13px;
}
.mc-amazon-order-code{
  justify-self:end;
  text-align:right;
}
.mc-amazon-purchase-body{
  display:grid;
  grid-template-columns:110px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:20px 18px;
}
.mc-amazon-product-image{
  width:110px;
  height:110px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #e3e9ed;
  border-radius:10px;
  background:#fff;
  color:#718397;
  font-size:11px;
}
.mc-amazon-product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.mc-amazon-product-copy h2{
  margin:5px 0 8px;
  color:#1d4f86;
  font-size:17px;
  line-height:1.3;
}
.mc-amazon-status{
  display:inline-flex;
  width:max-content;
  padding:4px 8px;
  border-radius:7px;
  background:#eef8f3;
  color:#1f725d;
  font-size:11px;
  font-weight:800;
}
.mc-amazon-prices{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  color:#607187;
  font-size:12px;
}
.mc-amazon-prices strong{
  color:#23364d;
}
.mc-amazon-purchase-action{
  align-self:center;
}
.mc-amazon-purchase-action .btn{
  min-width:110px;
}

/* Detalle limpio: sin barra de 5 pasos */
.mc-purchase-detail-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.mc-purchase-detail-top h1{
  margin:3px 0;
}
.mc-purchase-detail-top p{
  margin:0;
  color:#607187;
}
.mc-purchase-detail-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:16px;
  padding:15px 17px;
}
.mc-purchase-detail-summary > div{
  display:grid;
  gap:3px;
}
.mc-purchase-detail-summary span{
  color:#607187;
  font-size:11px;
}
.mc-purchase-detail-summary strong{
  color:#193550;
  font-size:17px;
}
.mc-purchase-detail-card{
  padding:18px;
}
.mc-purchase-detail-item{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:18px;
  align-items:start;
  padding-bottom:16px;
}
.mc-purchase-detail-image{
  width:120px;
  height:120px;
  display:grid;
  place-items:center;
  border:1px solid #e1e8ed;
  border-radius:11px;
  overflow:hidden;
  background:#fff;
  color:#718397;
  font-size:11px;
}
.mc-purchase-detail-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.mc-purchase-detail-copy h2{
  margin:0 0 7px;
  font-size:18px;
  color:#1d4f86;
}
.mc-purchase-detail-copy p{
  margin:0 0 6px;
  color:#607187;
}
.mc-purchase-detail-line-total{
  color:#193550;
  font-size:17px;
}
.mc-purchase-detail-shipping{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding-top:13px;
  border-top:1px solid #e7ecef;
}
.mc-purchase-detail-shipping span{
  color:#607187;
  font-size:12px;
}
.mc-purchase-detail-shipping strong{
  color:#193550;
  font-size:15px;
}
.mc-purchase-detail-shipping small{
  color:#718397;
}

@media(max-width:760px){
  .mc-purchase-export{
    margin-left:0;
  }
  .mc-amazon-purchase-head{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .mc-amazon-order-code{
    grid-column:1 / -1;
    justify-self:start;
    text-align:left;
  }
  .mc-amazon-purchase-body{
    grid-template-columns:82px minmax(0,1fr);
    gap:12px;
  }
  .mc-amazon-product-image{
    width:82px;
    height:82px;
  }
  .mc-amazon-purchase-action{
    grid-column:1 / -1;
  }
  .mc-purchase-detail-summary{
    grid-template-columns:1fr;
  }
  .mc-purchase-detail-item{
    grid-template-columns:88px minmax(0,1fr);
    gap:12px;
  }
  .mc-purchase-detail-image{
    width:88px;
    height:88px;
  }
}


/* Fase 5.29.1 — fecha, estado pendiente y botón Ver compra */
.mc-amazon-status-pending_payment{
  background:#fff0f0 !important;
  border:1px solid #efc2c2;
  color:#a33b3b !important;
}
.mc-view-purchase-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:118px !important;
  min-height:38px;
  padding:8px 15px !important;
  border:1px solid #d98a24 !important;
  border-radius:10px !important;
  background:#fff3df !important;
  color:#8a4b08 !important;
  font-weight:800 !important;
  text-align:center !important;
  text-decoration:none !important;
}
.mc-view-purchase-btn:hover{
  background:#ffe8c2 !important;
  border-color:#c97916 !important;
  color:#733b00 !important;
}


/* =========================================================
   Fase 5.29.2 — cancelar pendiente + búsqueda pedido + preguntas
   ========================================================= */
.mc-amazon-purchase-action{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  min-width:132px;
}
.mc-list-cancel-box{
  width:100%;
}
.mc-list-cancel-box > summary{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 12px;
  border:1px solid #e0aaaa;
  border-radius:10px;
  background:#fff6f6;
  color:#a13d3d;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  text-align:center;
  list-style:none;
}
.mc-list-cancel-box > summary::-webkit-details-marker{
  display:none;
}
.mc-list-cancel-box[open] > summary{
  background:#ffeded;
}
.mc-list-cancel-box form{
  position:absolute;
  z-index:20;
  right:18px;
  width:min(330px,calc(100vw - 40px));
  margin-top:7px;
  padding:12px;
  border:1px solid #e6c8c8;
  border-radius:11px;
  background:#fff;
  box-shadow:0 12px 30px rgba(28,47,66,.14);
}
.mc-list-cancel-box label{
  display:grid;
  gap:5px;
  margin-bottom:8px;
  color:#607187;
  font-size:11px;
  font-weight:700;
}
.mc-list-cancel-box textarea{
  width:100%;
  resize:vertical;
}
.mc-admin-box .mc-sales-history-filters input[type="search"]{
  min-width:240px;
}
.mc-buyer-main .page-heading{
  margin-top:0;
}
@media(max-width:760px){
  .mc-list-cancel-box form{
    right:12px;
    left:12px;
    width:auto;
  }
}


/* Fase 5.29.3 — menú Mi cuenta acorde al logo */
.mc-buyer-sidebar{
  background:linear-gradient(180deg,#f36a12 0%,#e85a08 100%) !important;
  border-color:#dc570b !important;
}
.mc-buyer-sidebar-title,
.mc-buyer-sidebar nav a,
.mc-buyer-sidebar-message{
  color:#fff !important;
}
.mc-buyer-sidebar nav a{
  border-color:rgba(255,255,255,.12) !important;
}
.mc-buyer-sidebar nav a:hover{
  background:rgba(255,255,255,.12) !important;
}
.mc-buyer-sidebar nav a.active{
  background:#fff !important;
  color:#c84d05 !important;
  box-shadow:0 4px 14px rgba(107,45,7,.12);
}
.mc-buyer-sidebar-message{
  background:rgba(255,255,255,.10) !important;
  border-color:rgba(255,255,255,.18) !important;
}


/* =========================================================
   Fase 5.29.4 — naranja suave + objetos flotando lentamente
   ========================================================= */
.mc-buyer-sidebar{
  position:relative;
  overflow:hidden;
  background:linear-gradient(
    180deg,
    rgba(244,145,72,.82) 0%,
    rgba(236,112,39,.78) 100%
  ) !important;
  border-color:rgba(208,94,22,.42) !important;
  box-shadow:0 10px 28px rgba(139,72,26,.10);
}

/* Mantener contenido por encima de la decoración */
.mc-buyer-sidebar > *{
  position:relative;
  z-index:2;
}

/* Objetos decorativos muy sutiles */
.mc-buyer-sidebar::before{
  content:"🧸   📷   📦   🕹️   🧩";
  position:absolute;
  z-index:1;
  left:-18px;
  bottom:8%;
  width:140%;
  color:rgba(255,255,255,.17);
  font-size:21px;
  letter-spacing:22px;
  white-space:nowrap;
  pointer-events:none;
  animation:mc-sidebar-float-a 28s ease-in-out infinite alternate;
}

.mc-buyer-sidebar::after{
  content:"🎧   ⌚   🎮   📚";
  position:absolute;
  z-index:1;
  right:-35px;
  top:10%;
  color:rgba(255,255,255,.13);
  font-size:17px;
  letter-spacing:18px;
  white-space:nowrap;
  pointer-events:none;
  transform:rotate(-8deg);
  animation:mc-sidebar-float-b 34s ease-in-out infinite alternate;
}

@keyframes mc-sidebar-float-a{
  0%{transform:translate3d(0,0,0) rotate(-4deg)}
  50%{transform:translate3d(14px,-18px,0) rotate(1deg)}
  100%{transform:translate3d(28px,-7px,0) rotate(4deg)}
}

@keyframes mc-sidebar-float-b{
  0%{transform:translate3d(0,0,0) rotate(-8deg)}
  50%{transform:translate3d(-12px,16px,0) rotate(-3deg)}
  100%{transform:translate3d(-25px,5px,0) rotate(2deg)}
}

.mc-buyer-sidebar nav a:hover{
  background:rgba(255,255,255,.14) !important;
}

.mc-buyer-sidebar nav a.active{
  background:rgba(255,255,255,.94) !important;
  color:#b94d0b !important;
}

/* Cancelada usa el mismo rojo suave que Pendiente */
.mc-amazon-status-cancelled{
  background:#fff0f0 !important;
  border:1px solid #efc2c2 !important;
  color:#a33b3b !important;
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce){
  .mc-buyer-sidebar::before,
  .mc-buyer-sidebar::after{
    animation:none !important;
  }
}


/* =========================================================
   Fase 5.29.5 — objetos retro más variados y movimiento ágil
   ========================================================= */
.mc-buyer-sidebar::before{
  content:"🕹️  🎮  📺  ⚽  🧸  ⌚  🛼  🎲  📻  🚗";
  left:-28px;
  bottom:7%;
  width:155%;
  font-size:22px;
  letter-spacing:19px;
  color:rgba(255,255,255,.19);
  animation:mc-sidebar-float-a 17s ease-in-out infinite alternate !important;
}

.mc-buyer-sidebar::after{
  content:"👾  🕹️  📼  🧩  🏀  🚂  ⏰  🎯  📺";
  right:-42px;
  top:9%;
  font-size:18px;
  letter-spacing:17px;
  color:rgba(255,255,255,.15);
  animation:mc-sidebar-float-b 21s ease-in-out infinite alternate !important;
}

@keyframes mc-sidebar-float-a{
  0%{transform:translate3d(0,0,0) rotate(-5deg)}
  25%{transform:translate3d(12px,-12px,0) rotate(-1deg)}
  50%{transform:translate3d(24px,-24px,0) rotate(2deg)}
  75%{transform:translate3d(38px,-12px,0) rotate(4deg)}
  100%{transform:translate3d(52px,-28px,0) rotate(6deg)}
}

@keyframes mc-sidebar-float-b{
  0%{transform:translate3d(0,0,0) rotate(-9deg)}
  25%{transform:translate3d(-10px,10px,0) rotate(-5deg)}
  50%{transform:translate3d(-22px,22px,0) rotate(-1deg)}
  75%{transform:translate3d(-34px,10px,0) rotate(2deg)}
  100%{transform:translate3d(-48px,24px,0) rotate(5deg)}
}


/* Fase 5.29.6 — objetos retro más grandes y movimiento más rápido */
.mc-buyer-sidebar::before{
  content:"🕹️   🎮   📺   ⚽   🧸   ⌚   🛼   🎲   📻   🚗";
  left:-45px;
  bottom:5%;
  width:175%;
  font-size:36px !important;
  line-height:1.7;
  letter-spacing:25px;
  color:rgba(255,255,255,.23) !important;
  animation:mc-sidebar-float-a 10s ease-in-out infinite alternate !important;
}

.mc-buyer-sidebar::after{
  content:"👾   🕹️   📼   🧩   🏀   🚂   ⏰   🎯   📺";
  right:-55px;
  top:7%;
  font-size:31px !important;
  line-height:1.8;
  letter-spacing:23px;
  color:rgba(255,255,255,.19) !important;
  animation:mc-sidebar-float-b 12s ease-in-out infinite alternate !important;
}

@keyframes mc-sidebar-float-a{
  0%{transform:translate3d(-8px,12px,0) rotate(-6deg)}
  25%{transform:translate3d(18px,-18px,0) rotate(-2deg)}
  50%{transform:translate3d(42px,-38px,0) rotate(3deg)}
  75%{transform:translate3d(68px,-15px,0) rotate(6deg)}
  100%{transform:translate3d(92px,-46px,0) rotate(9deg)}
}

@keyframes mc-sidebar-float-b{
  0%{transform:translate3d(10px,-8px,0) rotate(-10deg)}
  25%{transform:translate3d(-18px,18px,0) rotate(-5deg)}
  50%{transform:translate3d(-44px,42px,0) rotate(0deg)}
  75%{transform:translate3d(-70px,16px,0) rotate(5deg)}
  100%{transform:translate3d(-96px,48px,0) rotate(9deg)}
}


/* =========================================================
   Fase 5.29.7 — simulación visual de compra ya pagada
   ========================================================= */
.mc-simulate-paid-btn{
  background:#fff1df !important;
  border:1px solid #e8a458 !important;
  color:#9b4d0b !important;
  font-weight:800 !important;
}
.mc-simulate-paid-btn:hover{
  background:#ffe5c4 !important;
  border-color:#d98c35 !important;
  color:#7f3d07 !important;
}
.mc-paid-ready-note{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:14px 0;
  padding:10px 13px;
  border:1px solid #b9ddcb;
  border-radius:12px;
  background:#f1faf6;
  color:#24644f;
}
.mc-paid-ready-note > div{
  display:grid;
  gap:2px;
}
.mc-paid-ready-note small{
  color:#527565;
}
.mc-paid-ready-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#e5f5ed;
  color:#24765b;
  font-size:21px;
  font-weight:900;
}
.mc-admin-paid-ready,
.mc-seller-paid-ready{
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid #b9ddcb !important;
  background:linear-gradient(135deg,#f7fcf9,#eef9f4) !important;
}
.mc-admin-paid-ready h2,
.mc-seller-paid-ready h2{
  margin:3px 0 5px;
}
.mc-seller-paid-ready p{
  margin:0;
  color:#527065;
}


/* =========================================================
   Fase 5.29.8 — EN CAMINO / ENTREGADO en Mis compras
   ========================================================= */
.mc-buyer-route-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:36px;
  padding:8px 12px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.35px;
  text-align:center;
  cursor:default;
  user-select:none;
}
.mc-buyer-route-status-road{
  background:#eef5ff;
  border:1px solid #b8ccec;
  color:#315b91;
}
.mc-buyer-route-status-delivered{
  background:#eaf7ef;
  border:1px solid #b6dcc4;
  color:#246846;
}


/* =========================================================
   Fase 5.29.9 — fecha probable + soporte desde Mis compras
   ========================================================= */
.mc-buyer-route-box{
  display:grid;
  gap:7px;
  width:100%;
}
.mc-estimated-delivery{
  display:block;
  padding:7px 9px;
  border:1px solid #d8e0e7;
  border-radius:9px;
  background:#fbfcfd;
  color:#53677c;
  font-size:11px;
  line-height:1.35;
  text-align:center;
}
.mc-estimated-delivery strong{
  display:block;
  margin-top:2px;
  color:#273d54;
  font-size:12px;
}
.mc-support-request-box{
  width:100%;
}
.mc-support-request-box > summary{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 10px;
  border:1px solid #dfb980;
  border-radius:9px;
  background:#fff8ed;
  color:#925414;
  cursor:pointer;
  font-size:11px;
  font-weight:800;
  text-align:center;
  list-style:none;
}
.mc-support-request-box > summary::-webkit-details-marker{
  display:none;
}
.mc-support-request-box[open] > summary{
  background:#fff0da;
}
.mc-support-request-box form{
  position:absolute;
  z-index:30;
  right:18px;
  width:min(340px,calc(100vw - 40px));
  margin-top:7px;
  padding:13px;
  border:1px solid #e2d1b8;
  border-radius:11px;
  background:#fff;
  box-shadow:0 14px 34px rgba(30,45,60,.16);
}
.mc-support-request-box label{
  display:grid;
  gap:5px;
  margin-bottom:9px;
  color:#5d6e80;
  font-size:11px;
  font-weight:700;
}
.mc-support-request-box textarea{
  width:100%;
  resize:vertical;
}
.mc-admin-delivery-date{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:22px;
}
.mc-admin-delivery-date > div{
  flex:1 1 auto;
}
.mc-admin-delivery-date-form{
  display:flex;
  align-items:end;
  gap:10px;
  flex:0 0 auto;
}
.mc-admin-delivery-date-form label{
  display:grid;
  gap:5px;
  color:#607187;
  font-size:12px;
  font-weight:700;
}
.mc-admin-delivery-date-form input[type="date"]{
  min-width:180px;
}
@media(max-width:760px){
  .mc-support-request-box form{
    right:12px;
    left:12px;
    width:auto;
  }
  .mc-admin-delivery-date,
  .mc-admin-delivery-date-form{
    align-items:stretch;
    flex-direction:column;
  }
  .mc-admin-delivery-date-form input[type="date"]{
    width:100%;
  }
}

/* =========================================================
   Fase 5.30.0 — Explora Mis Chacharas
   Solo reemplaza el contenido del bloque lateral de portada.
   ========================================================= */
.mc-home-explore .mc-home-categories-title{
  white-space:nowrap;
}
.mc-home-explore-list a{
  transition:background .18s ease, transform .18s ease;
}
.mc-home-explore-list a:hover{
  background:#fff8f1;
}
.mc-home-explore-list .mc-explore-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  min-width:26px;
  height:26px;
  color:#17324d;
  font-size:18px;
  font-style:normal;
  line-height:1;
}
.mc-home-explore-list a:nth-child(1) .mc-explore-icon{color:#ff6a00}
.mc-home-explore-list a:nth-child(3) .mc-explore-icon{color:#f4b51f}
.mc-home-explore-list a:nth-child(4) .mc-explore-icon{color:#ef6a32}
.mc-home-explore-list a:nth-child(7) .mc-explore-icon{color:#e34e4e}
.mc-home-explore-list .mc-explore-new{
  width:30px;
  min-width:30px;
  height:20px;
  border-radius:4px;
  background:#2aa84a;
  color:#fff !important;
  font-size:9px;
  font-weight:900;
  letter-spacing:.02em;
}
.mc-home-explore-list b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* =========================================================
   Fase 5.30.3 — historial de ventas admin profesional
   ========================================================= */
body.mc-admin-dashboard-page .mc-admin-sales-panel{
  padding:0;
  overflow:hidden;
}
body.mc-admin-dashboard-page .mc-admin-sales-panel-heading{
  padding:18px 20px;
  margin:0;
  border-bottom:1px solid #e5ebf0;
  background:#fbfcfd;
}
.mc-admin-sale-list{
  display:grid;
}
.mc-admin-sale-card{
  display:grid;
  grid-template-columns:82px minmax(190px,1.35fr) minmax(165px,.9fr) minmax(150px,.8fr) minmax(125px,.65fr) 125px;
  gap:16px;
  align-items:center;
  min-height:112px;
  padding:14px 18px;
  border-bottom:1px solid #e8edf1;
  background:#fff;
}
.mc-admin-sale-card:last-child{
  border-bottom:0;
}
.mc-admin-sale-card:hover{
  background:#fbfdff;
}
.mc-admin-sale-image{
  width:74px;
  height:74px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #dde5eb;
  border-radius:10px;
  background:#fff;
  color:#8392a1;
  font-size:10px;
  text-align:center;
}
.mc-admin-sale-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.mc-admin-sale-product,
.mc-admin-sale-order,
.mc-admin-sale-people,
.mc-admin-sale-paid,
.mc-admin-sale-status{
  min-width:0;
}
.mc-admin-sale-product,
.mc-admin-sale-order,
.mc-admin-sale-people,
.mc-admin-sale-paid{
  display:grid;
  gap:3px;
}
.mc-admin-sale-label{
  color:#8391a0;
  font-size:10px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.mc-admin-sale-label-second{
  margin-top:6px;
}
.mc-admin-sale-product strong,
.mc-admin-sale-order strong,
.mc-admin-sale-people strong{
  color:#17385f;
  font-size:14px;
  overflow-wrap:anywhere;
}
.mc-admin-sale-product span,
.mc-admin-sale-order span,
.mc-admin-sale-people span{
  color:#6c7e91;
  font-size:12px;
}
.mc-admin-sale-paid strong{
  color:#17385f;
  font-size:20px;
  line-height:1.1;
}
.mc-admin-sale-paid span{
  color:#7b8b9a;
  font-size:11px;
}
.mc-admin-sale-status{
  display:grid;
  justify-items:stretch;
  gap:10px;
}
.mc-admin-sale-status .badge{
  justify-self:start;
}
.mc-admin-sale-detail-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:36px;
  width:100%;
  border:1px solid #d88a2d !important;
  background:#fff4e7 !important;
  color:#94500c !important;
  font-weight:800 !important;
  text-align:center;
}
.mc-admin-sale-detail-btn:hover{
  background:#ffe8cc !important;
  color:#773d06 !important;
}
.mc-admin-sales-empty{
  display:grid;
  gap:4px;
  padding:30px 20px;
  text-align:center;
}
.mc-admin-sales-empty strong{
  color:#17385f;
  font-size:17px;
}
.mc-admin-sales-empty span{
  color:#7a8998;
}

@media(max-width:1200px){
  .mc-admin-sale-card{
    grid-template-columns:74px minmax(190px,1.4fr) minmax(150px,1fr) minmax(120px,.7fr) 120px;
  }
  .mc-admin-sale-people{
    display:none;
  }
}
@media(max-width:850px){
  .mc-admin-sale-card{
    grid-template-columns:72px minmax(0,1fr) 130px;
    align-items:start;
  }
  .mc-admin-sale-order,
  .mc-admin-sale-paid{
    grid-column:2;
  }
  .mc-admin-sale-status{
    grid-column:3;
    grid-row:1 / span 3;
  }
}
@media(max-width:560px){
  .mc-admin-sale-card{
    grid-template-columns:66px minmax(0,1fr);
    gap:12px;
  }
  .mc-admin-sale-image{
    width:64px;
    height:64px;
  }
  .mc-admin-sale-status{
    grid-column:1 / -1;
    grid-row:auto;
    grid-template-columns:auto 1fr;
    align-items:center;
  }
}


/* =========================================================
   Fase 5.30.4 — Pedidos Admin: tarjetas profesionales
   ========================================================= */
.mc-admin-order-card{
  padding:0 !important;
  overflow:hidden;
  border:1px solid #dbe4eb !important;
  border-radius:16px !important;
  box-shadow:0 8px 28px rgba(21,51,78,.06) !important;
}
.mc-admin-order-top{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:20px 22px 17px;
  border-bottom:1px solid #e6edf2;
  background:linear-gradient(180deg,#fff,#fbfcfd);
}
.mc-admin-order-buyer h2{
  margin:6px 0 3px;
  color:#17385f;
  font-size:23px;
}
.mc-admin-order-buyer p,
.mc-admin-order-buyer small{
  margin:0;
  color:#718296;
}
.mc-admin-order-total{
  display:grid;
  justify-items:end;
  gap:6px;
  min-width:180px;
}
.mc-admin-order-total>span:first-child{
  color:#75869a;
  font-size:12px;
  font-weight:700;
}
.mc-admin-order-total>strong{
  color:#16735c;
  font-size:29px;
  line-height:1;
}
.mc-admin-order-products{
  display:grid;
  gap:0;
  padding:0 22px;
}
.mc-admin-order-product{
  display:grid;
  grid-template-columns:76px minmax(0,1fr) 130px;
  gap:14px;
  align-items:center;
  min-height:102px;
  padding:14px 0;
  border-bottom:1px solid #edf1f4;
}
.mc-admin-order-product:last-child{
  border-bottom:0;
}
.mc-admin-order-product.is-cancelled{
  opacity:.65;
}
.mc-admin-order-thumb{
  width:70px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #dfe7ed;
  border-radius:10px;
  background:#fff;
  color:#8a98a6;
  font-size:10px;
  text-align:center;
}
.mc-admin-order-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.mc-admin-order-product-info{
  display:grid;
  gap:3px;
}
.mc-admin-order-product-info strong{
  color:#17385f;
  font-size:15px;
}
.mc-admin-order-product-info span,
.mc-admin-order-product-info small{
  color:#718296;
  font-size:12px;
}
.mc-admin-order-product-info em{
  color:#a33b3b;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.mc-admin-order-product-price{
  display:grid;
  justify-items:end;
  gap:3px;
}
.mc-admin-order-product-price span{
  color:#7d8c9b;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mc-admin-order-product-price strong{
  color:#17385f;
  font-size:19px;
}
.mc-admin-order-meta-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  border-top:1px solid #e7edf2;
  border-bottom:1px solid #e7edf2;
  background:#e7edf2;
}
.mc-admin-order-meta-row>div{
  display:grid;
  gap:3px;
  padding:12px 16px;
  background:#f8fafc;
}
.mc-admin-order-meta-row span{
  color:#8190a0;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mc-admin-order-meta-row strong{
  color:#17385f;
  font-size:15px;
}
.mc-admin-order-payment-test,
.mc-admin-order-actions{
  padding:15px 22px 0;
}
.mc-admin-order-payment-test{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.mc-admin-order-payment-test small{
  color:#75869a;
}
.mc-admin-order-detail-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 18px !important;
  border:1px solid #d98a2b !important;
  border-radius:10px !important;
  background:#fff4e7 !important;
  color:#92500d !important;
  font-weight:850 !important;
  text-align:center;
}
.mc-admin-order-detail-btn:hover{
  background:#ffe6c7 !important;
  color:#763d08 !important;
}
.mc-admin-order-sellers{
  display:grid;
  gap:8px;
  padding:16px 22px 20px;
}
.mc-admin-order-seller{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 14px;
  border:1px solid #dfe7ed;
  border-radius:11px;
  background:#fbfcfd;
}
.mc-admin-order-seller>div{
  display:grid;
  gap:2px;
}
.mc-admin-order-seller span,
.mc-admin-order-seller small{
  color:#718296;
  font-size:11px;
}
.mc-admin-order-seller strong{
  color:#17385f;
}
.mc-admin-order-seller-total{
  justify-items:end;
}
@media(max-width:760px){
  .mc-admin-order-top{
    flex-direction:column;
  }
  .mc-admin-order-total{
    justify-items:start;
  }
  .mc-admin-order-product{
    grid-template-columns:64px minmax(0,1fr);
  }
  .mc-admin-order-product-price{
    grid-column:2;
    justify-items:start;
  }
  .mc-admin-order-meta-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mc-admin-order-seller{
    align-items:flex-start;
    flex-direction:column;
  }
  .mc-admin-order-seller-total{
    justify-items:start;
  }
}


/* =========================================================
   Fase 5.30.5 — Pedidos Admin más claros, sin precios repetidos
   ========================================================= */
.mc-admin-order-card{
  border-radius:14px !important;
}
.mc-admin-order-top{
  padding:18px 20px !important;
}
.mc-admin-order-total>span:first-child{
  font-size:11px !important;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mc-admin-order-product{
  grid-template-columns:76px minmax(0,1fr) 175px !important;
}
.mc-admin-order-product-price{
  justify-items:end;
}
.mc-admin-order-product-price strong{
  font-size:18px !important;
}
.mc-admin-order-product-price small{
  margin-top:2px;
  color:#718296;
  font-size:11px;
  text-align:right;
}
.mc-admin-order-info-strip{
  display:flex;
  align-items:center;
  gap:10px 20px;
  flex-wrap:wrap;
  padding:11px 20px;
  border-top:1px solid #e7edf2;
  border-bottom:1px solid #e7edf2;
  background:#f8fafc;
  color:#6d7f92;
  font-size:12px;
}
.mc-admin-order-info-strip span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.mc-admin-order-info-strip strong{
  color:#17385f;
}
.mc-admin-order-sellers{
  padding-top:12px !important;
}
.mc-admin-order-seller{
  background:#fafcfd !important;
}
.mc-admin-order-seller-total strong{
  display:none !important;
}
@media(max-width:760px){
  .mc-admin-order-product{
    grid-template-columns:64px minmax(0,1fr) !important;
  }
  .mc-admin-order-product-price{
    grid-column:2;
    justify-items:start !important;
  }
  .mc-admin-order-product-price small{
    text-align:left;
  }
}


/* =========================================================
   Fase 5.30.6 — Pedidos Admin simplificados
   ========================================================= */
.mc-admin-order-card-simple{
  padding:0 !important;
}
.mc-admin-order-simple-main{
  display:grid;
  grid-template-columns:92px minmax(0,1fr) minmax(250px,320px);
  gap:18px;
  align-items:center;
  padding:18px 20px;
}
.mc-admin-order-simple-thumb{
  width:86px;
  height:86px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #dfe7ed;
  border-radius:12px;
  background:#fff;
  color:#8b99a7;
  font-size:10px;
  text-align:center;
}
.mc-admin-order-simple-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.mc-admin-order-simple-info{
  min-width:0;
}
.mc-admin-order-simple-info h2{
  margin:5px 0 4px;
  color:#17385f;
  font-size:21px;
}
.mc-admin-order-simple-product{
  margin:0 0 6px;
  color:#2f4d6d;
  font-size:15px;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.mc-admin-order-simple-info small{
  color:#7a8998;
}
.mc-admin-order-simple-right{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  justify-items:stretch;
}
.mc-admin-order-simple-total{
  display:grid;
  justify-items:end;
  gap:4px;
}
.mc-admin-order-simple-total>span:first-child{
  color:#7b8997;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.mc-admin-order-simple-total>strong{
  color:#16735c;
  font-size:28px;
  line-height:1;
}
.mc-admin-order-simple-total small{
  color:#7a8998;
  font-size:11px;
}
.mc-admin-order-simple-total .badge{
  margin-top:4px;
}
.mc-admin-order-simple-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.mc-admin-order-simple-actions form{
  margin:0;
}
.mc-admin-order-simple-actions .btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.mc-admin-order-simple-actions .mc-simulate-paid-btn{
  padding:8px 13px !important;
}
.mc-admin-order-simple-actions .mc-admin-order-detail-btn{
  padding:8px 14px !important;
}

@media(max-width:850px){
  .mc-admin-order-simple-main{
    grid-template-columns:78px minmax(0,1fr);
  }
  .mc-admin-order-simple-thumb{
    width:74px;
    height:74px;
  }
  .mc-admin-order-simple-right{
    grid-column:1 / -1;
    grid-template-columns:1fr auto;
    align-items:end;
  }
  .mc-admin-order-simple-total{
    justify-items:start;
  }
}
@media(max-width:580px){
  .mc-admin-order-simple-main{
    grid-template-columns:68px minmax(0,1fr);
    padding:14px;
  }
  .mc-admin-order-simple-thumb{
    width:64px;
    height:64px;
  }
  .mc-admin-order-simple-right{
    grid-template-columns:1fr;
  }
  .mc-admin-order-simple-actions{
    justify-content:stretch;
    flex-direction:column;
  }
  .mc-admin-order-simple-actions .btn,
  .mc-admin-order-simple-actions form,
  .mc-admin-order-simple-actions form .btn{
    width:100%;
  }
}


/* =========================================================
   Fase 5.30.7 — fecha clara + fecha probable + botones distintos
   ========================================================= */
.mc-admin-order-delivery-date-inline{
  display:grid;
  gap:5px;
  padding:10px 12px;
  border:1px solid #dfe7ed;
  border-radius:10px;
  background:#f8fafc;
}
.mc-admin-order-delivery-date-inline form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  align-items:end;
  margin:0;
}
.mc-admin-order-delivery-date-inline label{
  display:grid;
  gap:4px;
  margin:0;
}
.mc-admin-order-delivery-date-inline label span{
  color:#708195;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.mc-admin-order-delivery-date-inline input[type="date"]{
  min-height:36px;
  padding:7px 9px;
  border-radius:8px;
  font-size:12px;
}
.mc-admin-save-date-btn{
  min-height:36px !important;
  padding:7px 10px !important;
  background:#edf6f1 !important;
  border:1px solid #a9d4bf !important;
  color:#21694f !important;
  font-weight:800 !important;
}
.mc-admin-delivery-current{
  color:#607187;
  font-size:10px;
}
.mc-simulate-paid-blue{
  background:#eaf3ff !important;
  border:1px solid #9dbde4 !important;
  color:#245a92 !important;
}
.mc-simulate-paid-blue:hover{
  background:#dcecff !important;
  color:#174c82 !important;
}
.mc-order-detail-orange{
  background:#fff1df !important;
  border:1px solid #e2a05a !important;
  color:#954e08 !important;
}
.mc-order-detail-orange:hover{
  background:#ffe2bd !important;
  color:#753b04 !important;
}
@media(max-width:580px){
  .mc-admin-order-delivery-date-inline form{
    grid-template-columns:1fr;
  }
}

/* Fase 5.31.0 — soporte privado cliente/admin */
.mc-admin-support-card{margin-top:18px;padding:0!important;overflow:hidden}
.mc-admin-support-heading{display:flex;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #e5ebf0;background:#fbfcfd}
.mc-admin-support-heading h2{margin:4px 0 3px;color:#17385f}
.mc-admin-support-alert{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid #f2b7b7;border-radius:999px;background:#fff0f0;color:#a23c3c;font-size:11px;font-weight:850;white-space:nowrap}
.mc-admin-support-empty{display:grid;gap:4px;padding:24px 20px;color:#718296}
.mc-admin-support-empty strong{color:#17385f}
.mc-support-thread{display:grid;gap:10px;max-height:430px;overflow:auto;padding:18px 20px;background:#f7fafc}
.mc-support-message{max-width:78%;padding:11px 13px;border-radius:13px;box-shadow:0 2px 8px rgba(23,56,95,.04)}
.mc-support-message.is-customer{justify-self:start;border:1px solid #e1e7ed;background:#fff}
.mc-support-message.is-admin{justify-self:end;border:1px solid #c8dff7;background:#eef6ff}
.mc-support-message-meta{display:flex;justify-content:space-between;gap:14px;margin-bottom:5px}
.mc-support-message-meta strong{color:#17385f;font-size:12px}
.mc-support-message-meta span{color:#8795a4;font-size:10px}
.mc-support-message p{margin:0;color:#415873;line-height:1.45;overflow-wrap:anywhere}
.mc-admin-support-reply{display:grid;gap:8px;padding:16px 20px 20px;border-top:1px solid #e5ebf0;background:#fff}
.mc-admin-support-reply label{margin:0;color:#334b68;font-size:12px;font-weight:800}
.mc-admin-support-reply textarea{width:100%;resize:vertical}
.mc-admin-support-reply>div{display:flex;align-items:center;gap:12px}
.mc-admin-support-reply small{color:#718296}
@media(max-width:650px){.mc-admin-support-heading{flex-direction:column}.mc-support-message{max-width:92%}.mc-admin-support-reply>div{align-items:stretch;flex-direction:column}}


/* =========================================================
   Fase 5.31.1 — Ver pedido compacto + soporte por turnos
   ========================================================= */
.mc-admin-order-detail-compact{max-width:1060px;margin:0 auto}
.mc-admin-order-detail-back{margin:0 0 8px}
.mc-admin-order-detail-back a{color:#47627f;font-size:12px;font-weight:800;text-decoration:none}
.mc-admin-order-detail-box{padding:0!important;overflow:hidden}
.mc-admin-order-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:15px 18px 12px;border-bottom:1px solid #e5ebf0}
.mc-admin-order-detail-top h1{margin:3px 0 2px;color:#17385f;font-size:20px}
.mc-admin-order-detail-top p{margin:0;font-size:11px}
.mc-admin-order-detail-status{display:grid;justify-items:end;gap:4px}
.mc-admin-order-detail-status>span{color:#77879a;font-size:9px;font-weight:850;text-transform:uppercase}
.mc-admin-order-detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #e5ebf0;background:#fafcfd}
.mc-admin-order-detail-meta>div{display:grid;gap:3px;padding:10px 18px;border-right:1px solid #e5ebf0}
.mc-admin-order-detail-meta>div:last-child{border-right:0}
.mc-admin-order-detail-meta span{color:#77879a;font-size:9px;font-weight:850;text-transform:uppercase}
.mc-admin-order-detail-meta strong{color:#17385f;font-size:13px}
.mc-admin-order-detail-product{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 18px;border-bottom:1px solid #eef2f5}
.mc-admin-order-detail-product:last-child{border-bottom:0}
.mc-admin-order-detail-product-img{width:58px;height:58px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #e0e7ed;border-radius:9px;background:#fff;color:#8492a1;font-size:9px}
.mc-admin-order-detail-product-img img{width:100%;height:100%;object-fit:contain}
.mc-admin-order-detail-product-info{display:grid;gap:2px;min-width:0}
.mc-admin-order-detail-product-info strong{color:#243e5c;font-size:13px}
.mc-admin-order-detail-product-info span{color:#7a8998;font-size:10px}
.mc-admin-order-detail-product-total{color:#16735c;font-size:15px;font-weight:900;white-space:nowrap}
.mc-item-cancelled{color:#a23c3c!important;font-weight:800}
.mc-admin-order-detail-date-form{display:flex;align-items:end;justify-content:flex-end;gap:7px;padding:10px 18px 12px;border-top:1px solid #e5ebf0;background:#fbfcfd}
.mc-admin-order-detail-date-form label{display:grid;gap:3px;margin:0}
.mc-admin-order-detail-date-form label span{color:#708195;font-size:9px;font-weight:850;text-transform:uppercase}
.mc-admin-order-detail-date-form input[type=date]{min-height:34px;min-width:175px;padding:6px 8px}
.mc-admin-order-detail-date-form .btn{min-height:34px;padding:6px 10px!important}
.mc-admin-order-detail-compact .mc-admin-support-card{max-width:none;margin:10px 0 0}
.mc-admin-order-detail-compact .mc-admin-support-heading{padding:12px 16px}
.mc-admin-order-detail-compact .mc-admin-support-heading h2{font-size:17px;margin:3px 0 0}
.mc-admin-order-detail-compact .mc-support-thread{max-height:280px;padding:12px 16px}
.mc-admin-order-detail-compact .mc-admin-support-reply{padding:12px 16px 14px}
.mc-admin-order-detail-compact .mc-admin-support-reply textarea{min-height:74px}
@media(max-width:700px){
  .mc-admin-order-detail-top{flex-direction:column}
  .mc-admin-order-detail-status{justify-items:start}
  .mc-admin-order-detail-meta{grid-template-columns:1fr}
  .mc-admin-order-detail-meta>div{border-right:0;border-bottom:1px solid #e5ebf0}
  .mc-admin-order-detail-meta>div:last-child{border-bottom:0}
  .mc-admin-order-detail-product{grid-template-columns:54px minmax(0,1fr)}
  .mc-admin-order-detail-product-img{width:50px;height:50px}
  .mc-admin-order-detail-product-total{grid-column:2}
  .mc-admin-order-detail-date-form{align-items:stretch;flex-direction:column}
  .mc-admin-order-detail-date-form input[type=date],.mc-admin-order-detail-date-form .btn{width:100%}
}


/* =========================================================
   Fase 5.31.2 — soporte pendiente: aviso visible 5 segundos
   ========================================================= */
.mc-support-blocked-wrap{
  display:grid;
  gap:7px;
  justify-items:start;
}
.mc-support-waiting-alert{
  margin:0;
  max-width:560px;
  transition:opacity .3s ease, transform .3s ease;
}
.mc-support-waiting-alert.is-hiding,
.mc-support-alert-fade{
  opacity:0 !important;
  transform:translateY(-3px);
}

/* Fase 5.31.2.2 — aviso de soporte arriba de Mis compras */
.mc-support-global-warning{
  margin:0 0 12px;
  transition:opacity .3s ease,transform .3s ease;
  scroll-margin-top:90px;
}


/* =========================================================
   Fase 5.31.3 — conversación de soporte visible al cliente
   ========================================================= */
.mc-buyer-support-thread{
  margin:0 14px 14px;
  border:1px solid #e2e8ee;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.mc-buyer-support-thread>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  list-style:none;
  color:#27425f;
  font-size:12px;
  font-weight:850;
  background:#f8fafb;
}
.mc-buyer-support-thread>summary::-webkit-details-marker{display:none}
.mc-buyer-support-thread>summary span{
  min-width:21px;
  height:21px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  background:#edf2f6;
  color:#566b80;
  font-size:10px;
}
.mc-buyer-support-thread-body{
  display:grid;
  gap:8px;
  padding:11px 12px 12px;
}
.mc-buyer-support-message{
  max-width:78%;
  padding:8px 10px;
  border:1px solid #e3e9ee;
  border-radius:10px;
}
.mc-buyer-support-message.is-customer{
  justify-self:end;
  background:#fff7ef;
}
.mc-buyer-support-message.is-admin{
  justify-self:start;
  background:#f0f7ff;
}
.mc-buyer-support-message-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:4px;
  font-size:9px;
  color:#7a8898;
}
.mc-buyer-support-message-meta strong{
  color:#314c69;
  font-size:10px;
}
.mc-buyer-support-message p{
  margin:0;
  color:#334b64;
  font-size:11px;
  line-height:1.45;
}
.mc-buyer-support-ready,
.mc-buyer-support-waiting{
  padding:8px 10px;
  border-radius:8px;
  font-size:10px;
  font-weight:750;
}
.mc-buyer-support-ready{
  background:#eef8f3;
  color:#236b58;
}
.mc-buyer-support-waiting{
  background:#fff3f1;
  color:#a14b42;
}
@media(max-width:700px){
  .mc-buyer-support-message{max-width:92%}
}


/* =========================================================
   Fase 5.31.4 — campanita con movimiento solo si hay avisos
   ========================================================= */
.notification-bell.has-new-notifications,
.mc-admin-bell.has-new-notifications{
  transform-origin:50% 10%;
  animation:mc-notification-bell-ring 1.65s ease-in-out infinite;
}

@keyframes mc-notification-bell-ring{
  0%, 55%, 100%{transform:rotate(0deg)}
  62%{transform:rotate(10deg)}
  70%{transform:rotate(-9deg)}
  78%{transform:rotate(7deg)}
  86%{transform:rotate(-5deg)}
  93%{transform:rotate(2deg)}
}

@media (prefers-reduced-motion: reduce){
  .notification-bell.has-new-notifications,
  .mc-admin-bell.has-new-notifications{
    animation:none;
  }
}


/* =========================================================
   Fase 5.31.4.1 — contador rojo superpuesto en la campanita
   ========================================================= */
.notification-link,
.mc-notification-link,
.mc-admin-bell{
  position:relative;
}

.notification-link .notification-count,
.notification-link .notification-badge,
.notification-link b,
.mc-notification-link .notification-count,
.mc-notification-link .notification-badge,
.mc-notification-link b,
.mc-admin-bell>b{
  position:absolute !important;
  top:-7px !important;
  right:-8px !important;
  z-index:5;
  min-width:19px;
  height:19px;
  padding:0 5px;
  display:grid !important;
  place-items:center;
  border-radius:999px;
  background:#ff4d18 !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:900;
  line-height:1;
  box-shadow:0 0 0 2px #fff;
}

/* El movimiento se aplica al dibujo de la campana, nunca al número. */
.mc-admin-bell.has-new-notifications{
  animation:none !important;
}
.mc-admin-bell-icon{
  display:inline-block;
}
.mc-admin-bell-icon.has-new-notifications{
  transform-origin:50% 10%;
  animation:mc-notification-bell-ring 1.65s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce){
  .mc-admin-bell-icon.has-new-notifications{
    animation:none;
  }
}


/* =========================================================
   Fase 5.31.4.2 — FIX REAL contador de campanita pública
   ========================================================= */
.notification-menu-button{
  position:relative !important;
  overflow:visible !important;
}

.notification-menu-button #notification-center-badge.nav-question-badge{
  position:absolute !important;
  top:-5px !important;
  right:-7px !important;
  left:auto !important;
  bottom:auto !important;

  min-width:19px !important;
  width:auto !important;
  height:19px !important;
  padding:0 5px !important;
  margin:0 !important;

  display:grid !important;
  place-items:center !important;

  border:0 !important;
  border-radius:999px !important;
  background:#ff4d18 !important;
  color:#fff !important;
  box-shadow:0 0 0 2px #fff !important;

  font-size:10px !important;
  font-weight:900 !important;
  line-height:19px !important;
  text-align:center !important;

  z-index:20 !important;
  pointer-events:none;
}

.notification-menu-button #notification-center-badge.nav-question-badge.is-hidden{
  display:none !important;
}

/* La campana se mueve, el número no. */
.notification-menu-button .notification-bell{
  display:inline-block;
  position:relative;
  z-index:2;
}

.notification-menu-button .notification-bell.has-new-notifications{
  transform-origin:50% 10%;
  animation:mc-notification-bell-ring 1.65s ease-in-out infinite;
}


/* =========================================================
   Fase 5.31.5 — suspensión administrativa de vendedores
   ========================================================= */
.btn-seller-suspend{
  background:#fff0ee !important;
  border-color:#efb5ad !important;
  color:#a43e34 !important;
}
.btn-seller-suspend:hover{
  background:#ffe3df !important;
  border-color:#e99d93 !important;
  color:#8e3028 !important;
}
.status-suspended{
  background:#fff0ee !important;
  color:#a43e34 !important;
  border:1px solid #efc1ba;
}


/* =========================================================
   Fase 5.31.6 — productos por vendedor en Admin
   ========================================================= */
.btn-seller-products{
  background:#eef5ff !important;
  border-color:#bfd2eb !important;
  color:#28547f !important;
  text-decoration:none;
}
.mc-admin-seller-products-page{
  max-width:1120px;
  margin:0 auto;
}
.mc-admin-seller-products-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
  margin-bottom:12px;
}
.mc-admin-seller-products-head h1{
  margin:4px 0 2px;
  color:#17385f;
}
.mc-admin-seller-products-head p{
  margin:0;
  color:#75869a;
  font-size:12px;
}
.mc-admin-back-link{
  display:inline-block;
  margin-bottom:10px;
  color:#526d88;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.mc-admin-seller-account-state{
  display:grid;
  justify-items:end;
  gap:5px;
}
.mc-admin-seller-account-state>span{
  font-size:9px;
  color:#7b8998;
  font-weight:850;
  text-transform:uppercase;
}
.mc-admin-seller-product-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.mc-admin-seller-product-stats>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid #e1e8ee;
  border-radius:9px;
  background:#fff;
}
.mc-admin-seller-product-stats span{
  color:#77879a;
  font-size:10px;
  font-weight:800;
}
.mc-admin-seller-product-stats strong{
  color:#17385f;
  font-size:17px;
}
.mc-admin-seller-products-box{
  padding:0!important;
  overflow:hidden;
}
.mc-admin-seller-product-row{
  display:grid;
  grid-template-columns:66px minmax(220px,1fr) 100px 75px 105px auto;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-bottom:1px solid #edf1f4;
}
.mc-admin-seller-product-row:last-child{
  border-bottom:0;
}
.mc-admin-seller-product-image{
  width:60px;
  height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #e1e7ec;
  border-radius:9px;
  background:#fff;
  color:#8997a5;
  font-size:9px;
}
.mc-admin-seller-product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.mc-admin-seller-product-main{
  display:grid;
  gap:2px;
  min-width:0;
}
.mc-admin-seller-product-main strong{
  color:#263f5a;
  font-size:13px;
}
.mc-admin-seller-product-main span,
.mc-admin-seller-product-main small{
  color:#7a8999;
  font-size:10px;
}
.mc-admin-seller-product-data{
  display:grid;
  gap:2px;
}
.mc-admin-seller-product-data span{
  color:#8997a5;
  font-size:9px;
  text-transform:uppercase;
  font-weight:800;
}
.mc-admin-seller-product-data strong{
  color:#29465f;
  font-size:12px;
}
.mc-admin-seller-product-actions{
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:flex-end;
}
.mc-admin-seller-product-actions form{
  margin:0;
}
.btn-product-pause{
  background:#fff3ed!important;
  border-color:#efc2ad!important;
  color:#9c4b2d!important;
}
.btn-product-activate{
  background:#eef8f3!important;
  border-color:#b8dacd!important;
  color:#246a57!important;
}
.mc-admin-empty-seller-products{
  padding:20px;
  text-align:center;
}
@media(max-width:900px){
  .mc-admin-seller-product-row{
    grid-template-columns:60px minmax(0,1fr) auto;
  }
  .mc-admin-seller-product-data,
  .mc-admin-seller-product-status{
    grid-column:2;
  }
  .mc-admin-seller-product-actions{
    grid-column:2 / -1;
    justify-content:flex-start;
  }
}
@media(max-width:650px){
  .mc-admin-seller-products-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .mc-admin-seller-account-state{
    justify-items:start;
  }
  .mc-admin-seller-product-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* Fase 5.31.6.2 — campanita real en encabezado Admin */
.mc-admin-bell-icon{
  display:inline-block;
  font-family:inherit !important;
  font-size:22px;
  line-height:1;
}


/* =========================================================
   Fase 5.31.7 — reorganización completa del panel Admin
   ========================================================= */
.mc-admin-order-top-status{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  margin:0 0 8px 0;
}
.mc-admin-order-top-status .badge{
  margin:0 !important;
}
.mc-sales-summary-heading{
  align-items:center;
  gap:14px;
}
.mc-sales-excel-btn{
  margin-left:auto;
  white-space:nowrap;
}
.mc-report-dashboard-hero{
  margin-bottom:14px;
}
.mc-report-dashboard-grid{
  margin-bottom:18px;
}
@media(max-width:700px){
  .mc-sales-summary-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  .mc-sales-excel-btn{
    margin-left:0;
  }
}


/* =========================================================
   Fase 5.31.7.1 — menú desplegable de campanita en Admin
   ========================================================= */
.mc-admin-notification-menu{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.mc-admin-notification-menu .mc-admin-bell{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:#0d376a;
  cursor:pointer;
  overflow:visible;
}

.mc-admin-notification-menu .mc-admin-bell:hover{
  background:#f3f7fb;
  border-radius:50%;
}

.mc-admin-notification-menu .mc-admin-notification-dropdown{
  right:0;
  left:auto;
  top:calc(100% + 10px);
  text-align:left;
}

.mc-admin-notification-menu #notification-center-badge{
  position:absolute !important;
  top:0 !important;
  right:-1px !important;
  left:auto !important;
  min-width:19px !important;
  height:19px !important;
  padding:0 5px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:999px !important;
  background:#ff4d18 !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:900 !important;
  line-height:19px !important;
  z-index:4;
  box-shadow:0 0 0 2px #fff;
}

.mc-admin-notification-menu #notification-center-badge.is-hidden{
  display:none !important;
}

@media(max-width:640px){
  .mc-admin-notification-menu .mc-admin-notification-dropdown{
    position:fixed;
    top:72px;
    left:12px;
    right:12px;
    width:auto;
  }
}


/* =========================================================
   Fase 5.31.7.2 — Pedidos Admin, boceto C aplicado
   ========================================================= */
.mc-admin-order-card-option-c{
  padding:0 !important;
  overflow:hidden;
  border-radius:14px !important;
}
.mc-order-c-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 16px;
  border-bottom:1px solid #e7edf2;
  background:#fbfcfd;
}
.mc-order-c-ident{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.mc-order-c-ident>strong{
  color:#f26a12;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}
.mc-order-c-head time{
  color:#78899c;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}
.mc-order-c-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  padding:15px 16px;
}
.mc-order-c-product{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.mc-order-c-thumb{
  width:68px;
  height:68px;
  flex:0 0 68px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #dfe7ed;
  border-radius:11px;
  background:#fff;
  color:#8b98a6;
  font-size:9px;
}
.mc-order-c-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.mc-order-c-product-info{
  display:grid;
  gap:4px;
  min-width:0;
}
.mc-order-c-product-info>strong{
  color:#29445f;
  font-size:14px;
  line-height:1.25;
}
.mc-order-c-product-info span{
  color:#74869a;
  font-size:11px;
}
.mc-order-c-product-info span b{
  color:#3a526a;
}
.mc-order-c-product-info small{
  color:#8b99a7;
  font-size:10px;
}
.mc-order-c-total{
  min-width:190px;
  display:grid;
  justify-items:end;
  gap:1px;
  text-align:right;
}
.mc-order-c-total>span{
  color:#7a8999;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mc-order-c-total>strong{
  color:#14755e;
  font-size:25px;
  line-height:1.15;
}
.mc-order-c-total>small{
  color:#8190a0;
  font-size:10px;
}
.mc-order-c-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 16px;
  border-top:1px solid #e7edf2;
  background:#fbfcfd;
}
.mc-order-c-delivery{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
}
.mc-order-c-delivery label{
  color:#6f8194;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  white-space:nowrap;
}
.mc-order-c-delivery input[type="date"]{
  width:145px;
  min-height:34px;
  padding:5px 9px;
  border:1px solid #cfdae4;
  border-radius:8px;
  background:#fff;
  color:#29445f;
  font-size:11px;
}
.mc-order-c-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.mc-order-c-actions form{
  margin:0;
}
.mc-order-c-view{
  background:#fff3e8 !important;
  border-color:#f4ad70 !important;
  color:#96500f !important;
  text-decoration:none;
}
@media(max-width:760px){
  .mc-order-c-head,
  .mc-order-c-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .mc-order-c-body{
    grid-template-columns:1fr;
  }
  .mc-order-c-total{
    justify-items:start;
    text-align:left;
  }
  .mc-order-c-delivery{
    flex-wrap:wrap;
  }
  .mc-order-c-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}
