/* ODÍN Mayorista · Identidad visual v2.0
   Paleta: Azul ODÍN #2A4C9B · Celeste #9CB7E1 · Azul noche #10213C · Blanco frío #F4F7FB
   Tipografías: Poppins (títulos) + Inter (textos) */

:root {
  --azul: #2A4C9B;
  --azul-700: #213E80;
  --azul-50: #E8EEF8;
  --celeste: #9CB7E1;
  --celeste-100: #DFE8F6;
  --noche: #10213C;
  --blanco: #F4F7FB;
  --white: #ffffff;
  --muted: #5B6B85;
  --borde: #D9E2EF;
  --hogar: #15A6A0;
  --textil: #7B61B5;
  --industrial: #D88728;
  --perfumeria: #BC5E89;
  --piscina: #249BC8;
  --ok: #15A6A0;
  --warn: #D88728;
  --err: #C2413A;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 33, 60, .06), 0 8px 24px rgba(16, 33, 60, .06);
  --f-title: 'Poppins', Arial, sans-serif;
  --f-text: 'Inter', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-text); font-size: 16px; line-height: 1.6; color: var(--noche); background: var(--blanco); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
h1, h2, h3, h4 { font-family: var(--f-title); line-height: 1.15; margin: 0 0 .5em; color: var(--noche); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.hidden, [hidden] { display: none !important; }

/* Barra de acento (azul / turquesa / violeta) como en las piezas de marca */
.accent-bar { display: flex; gap: 6px; margin: 14px 0 22px; }
.accent-bar span { height: 5px; border-radius: 3px; background: var(--azul); width: 64px; }
.accent-bar span:nth-child(2) { background: var(--hogar); width: 26px; }
.accent-bar span:nth-child(3) { background: var(--textil); width: 26px; }
.on-dark .accent-bar span:first-child, .site-footer .accent-bar span:first-child { background: var(--celeste); }
.center .accent-bar, .accent-bar.center { justify-content: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 600; font-size: .9rem; color: var(--azul); text-transform: none; }
.eyebrow::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--celeste); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-title); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--radius-sm); border: 2px solid var(--azul); background: var(--azul); color: var(--white); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { background: var(--azul-700); border-color: var(--azul-700); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
.btn-outline { background: transparent; color: var(--azul); }
.btn-outline:hover { background: var(--azul-50); color: var(--azul); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--azul); }
.btn-light:hover { background: var(--celeste-100); border-color: var(--celeste-100); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #a3342e; border-color: #a3342e; }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-xs { padding: 7px 11px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--azul); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Topbar / header ---------- */
.topbar { background: var(--noche); color: var(--celeste-100); font-size: .84rem; padding: 9px 0; text-align: center; }
.topbar strong { color: var(--white); }
.topbar em { font-style: normal; color: var(--celeste); }
/* Marca Blanca */
.mb-card { display: flex; flex-direction: column; gap: 6px; }
.mb-card h3 { margin: 6px 0 0; }
.mb-label { display: flex; gap: 8px; align-items: flex-end; height: 92px; padding: 10px; background: var(--azul-50); border-radius: 10px; }
.mb-label span { display: block; background: var(--white); border: 2px dashed var(--celeste, #9CB7E1); border-radius: 6px; }
.mb-label-chica span { width: 47px; height: 66px; }
.mb-label-grande span, .mb-label-doble span { width: 50px; height: 71px; }
.mb-price { margin-top: auto; font-family: var(--f-title); font-weight: 700; font-size: 1.3rem; color: var(--azul); }
.mb-price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.mb-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0; border-left: 4px solid var(--azul); }
.mb-cond ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.mb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mb-opts .radio-card { margin: 0; }
.mb-estimado { margin-top: 14px; background: var(--azul-50); border-radius: 12px; padding: 14px 16px; }
.mb-estimado:empty { display: none; }
.mb-estimado strong { font-family: var(--f-title); color: var(--azul); }
@media (max-width: 760px) { .mb-opts { grid-template-columns: 1fr; } }
.vac-bar { background: var(--azul-50, #F4F7FB); color: var(--azul-900, #10213C); font-size: .9rem; padding: 10px 0; border-bottom: 1px solid #9CB7E1; text-align: center; }
.vac-bar.is-on { background: #9CB7E1; font-weight: 600; }
.notice-bar { background: #FDF1E4; color: #7A4A10; font-size: .9rem; padding: 10px 0; border-bottom: 1px solid #F3D9B9; }
.site-header { background: var(--white); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { flex: none; } /* el logo nunca se achica aunque el menú sea largo */
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; font-family: var(--f-title); font-weight: 500; font-size: .84rem; }
.main-nav a { color: var(--noche); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--azul); }
.main-nav a.is-active { box-shadow: inset 0 -3px 0 var(--azul); }
.main-nav .btn { color: var(--white); padding: 10px 12px; }
.nav-sep { width: 1px; height: 22px; background: var(--borde); }
.cart-link { position: relative; display: inline-flex; color: var(--azul) !important; }
.cart-count { position: absolute; top: -4px; right: -10px; background: var(--hogar); color: var(--white); font-size: .7rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--noche); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--borde); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--blanco); }
  .main-nav a.is-active { box-shadow: none; }
  .main-nav .btn { margin-top: 12px; }
  .nav-sep { display: none; }
  .cart-link { padding: 13px 0 !important; }
  .cart-count { position: static; margin-left: 8px; }
  .topbar em { display: block; }
}

/* ---------- Alertas ---------- */
.flashes { padding-top: 18px; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .95rem; border: 1px solid; }
.alert-success { background: #E3F5F4; border-color: #A8DEDB; color: #0B5E5A; }
.alert-error { background: #FBEAE9; border-color: #F0C2BF; color: #8A2620; }
.alert-info { background: var(--azul-50); border-color: var(--celeste); color: var(--azul-700); }
.alert-warn { background: #FDF1E4; border-color: #F3D9B9; color: #7A4A10; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--azul); color: var(--white); }
.hero .wrap { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 96px; }
.hero h1 { color: var(--white); max-width: 680px; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; color: var(--celeste-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.motif { position: absolute; pointer-events: none; z-index: 1; }
.hero .motif { right: -120px; top: -40px; width: 620px; opacity: .95; }
@media (max-width: 760px) { .hero .motif { width: 380px; right: -170px; top: auto; bottom: -120px; opacity: .55; } .hero .wrap { padding-top: 56px; padding-bottom: 72px; } }

.page-hero { background: var(--white); border-bottom: 1px solid var(--borde); position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: 46px; padding-bottom: 38px; position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .2em; }
.page-hero .motif { right: -80px; top: -60px; width: 340px; opacity: .55; }
.page-hero.dark { background: var(--azul); border: 0; }
.page-hero.dark h1, .page-hero.dark p { color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding: 76px 0; }
.section-sm { padding: 44px 0; }
.wrap.section, .wrap.section-sm { padding-left: 20px; padding-right: 20px; }
.section-white { background: var(--white); }
.section-dark { background: var(--noche); color: var(--celeste-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 36px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { font-family: var(--f-title); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--noche); }
.value small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .95rem; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.grid { display: grid; gap: 22px; }
.grid > *, .cart-layout > *, .catalog-layout > *, .product-layout > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .values { grid-template-columns: 1fr; } .section { padding: 54px 0; } }

.card { background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); padding: 26px; }
.card-tight { padding: 18px; }
.card h3 { margin-bottom: .35em; }

.type-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 36px 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--white); background: var(--azul); transition: transform .2s; }
.type-card:hover { transform: translateY(-3px); }
.type-card.alt { background: var(--noche); }
.type-card.alt2 { background: var(--celeste); }
.type-card.alt2 h3, .type-card.alt2 .go { color: var(--noche); }
.type-card.alt2 p { color: var(--noche); opacity: .85; }
.types-3 .type-card { padding: 30px 26px; }
.types-3 .type-card h3 { font-size: 1.45rem; }
.types-3 .type-card { min-height: 300px; }
.types-3 .type-card .motif { width: 170px; right: -48px; top: -48px; opacity: .55; }
@media (max-width: 980px) and (min-width: 641px) { .types-3 .type-card:last-child { grid-column: 1 / -1; min-height: 220px; } }
.type-card h3 { color: var(--white); font-size: 1.7rem; font-weight: 700; }
.type-card p { color: var(--celeste-100); max-width: 380px; }
.type-card .go { font-family: var(--f-title); font-weight: 600; color: var(--celeste); }
.type-card .motif { right: -70px; top: -70px; width: 300px; opacity: .9; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--borde); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: var(--white); font-family: var(--f-title); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.ship-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: var(--white); border: 2px solid var(--celeste); border-radius: var(--radius); padding: 26px 30px; }
.ship-callout .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--azul-50); display: grid; place-items: center; color: var(--azul); }
.ship-callout h3 { margin-bottom: 4px; font-size: 1.25rem; }
.ship-callout p { margin: 0; color: var(--muted); }
.ship-callout .only { display: inline-block; margin-top: 8px; background: var(--azul); color: var(--white); font-family: var(--f-title); font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
@media (max-width: 760px) { .ship-callout { grid-template-columns: 1fr; text-align: left; } }

.club-band { position: relative; overflow: hidden; background: var(--azul); border-radius: 22px; padding: 56px; color: var(--white); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.club-band h2 { color: var(--white); }
.club-band p { color: var(--celeste-100); }
.club-band .motif { right: -100px; bottom: -120px; width: 420px; }
.club-band ul { position: relative; z-index: 2; }
.club-price { font-family: var(--f-title); font-weight: 700; font-size: 2.4rem; color: var(--white); line-height: 1; }
.club-price small { font-size: 1rem; font-weight: 500; color: var(--celeste); }
@media (max-width: 860px) { .club-band { grid-template-columns: 1fr; padding: 36px 26px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding: 6px 0 6px 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--hogar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Catálogo ---------- */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 36px; padding-bottom: 70px; }
@media (max-width: 860px) { .catalog-layout { grid-template-columns: 1fr; } }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filters a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; color: var(--noche); font-size: .95rem; }
.filters a:hover { background: var(--white); }
.filters a.is-active { background: var(--white); color: var(--azul); font-weight: 600; box-shadow: inset 3px 0 0 var(--azul); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--azul)); flex: none; }
.search { display: flex; gap: 8px; margin-bottom: 22px; }
.search input { flex: 1; }
@media (max-width: 860px) { .filters { display: flex; flex-wrap: wrap; gap: 6px; } .filters h4 { width: 100%; margin: 10px 0 2px; } .filters a { margin: 0; background: var(--white); border: 1px solid var(--borde); padding: 6px 12px; font-size: .88rem; } }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--noche); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { position: relative; aspect-ratio: 1 / 1; background: var(--blanco); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 16px 18px 18px; border-top: 4px solid var(--linea, var(--azul)); flex: 1; display: flex; flex-direction: column; }
.pcard-linea { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--linea, var(--azul)); }
.pcard h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.pcard p { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.pcard-price { margin-top: auto; }
.pcard-price strong { font-family: var(--f-title); font-size: 1.25rem; color: var(--azul); }
.pcard-price small { color: var(--muted); }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--azul); background: var(--azul-50); padding: 6px 10px; border-radius: 8px; }
.tag { position: absolute; top: 12px; left: 12px; font-family: var(--f-title); font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--azul); color: var(--white); }
.tag-terminado { background: var(--noche); }
.tag-insumo { background: var(--celeste); color: var(--noche); }
.tag-club { left: auto; right: 12px; background: var(--hogar); }

/* ---------- Producto ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 40px; padding-bottom: 70px; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } }
.product-gallery { background: var(--white); border-radius: 18px; border: 1px solid var(--borde); overflow: hidden; aspect-ratio: 1/1; position: sticky; top: 96px; }
@media (max-width: 860px) { .product-gallery { position: static; } }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--azul-50); color: var(--azul); margin-right: 6px; }
.option-group { margin: 22px 0; }
.option-group > label, .option-title { display: block; font-family: var(--f-title); font-weight: 600; margin-bottom: 10px; }
.pres-list { display: grid; gap: 10px; }
.pres { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 2px solid var(--borde); background: var(--white); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.pres:hover { border-color: var(--celeste); }
.pres input { accent-color: var(--azul); width: 18px; height: 18px; }
.pres:has(input:checked) { border-color: var(--azul); background: var(--azul-50); }
.pres-name { font-family: var(--f-title); font-weight: 600; }
.pres-meta { font-size: .85rem; color: var(--muted); }
.pres-price { text-align: right; font-family: var(--f-title); font-weight: 700; color: var(--azul); font-size: 1.1rem; }
.pres-price small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .76rem; color: var(--muted); }
.pres-price s { color: var(--muted); font-weight: 500; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 2px solid var(--borde); background: var(--white); font-size: .9rem; font-weight: 500; transition: all .15s; }
.chip input:checked + span { border-color: var(--azul); background: var(--azul); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--celeste); outline-offset: 2px; }
.buy-box { background: var(--white); border: 1px solid var(--borde); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--borde); border-radius: 10px; overflow: hidden; background: var(--white); }
.qty button { width: 42px; height: 46px; background: var(--blanco); border: 0; font-size: 1.2rem; cursor: pointer; color: var(--azul); }
.qty input, .qty input[type=number] { width: 72px; padding: 0; border-radius: 0; height: 46px; border: 0; text-align: center; font-weight: 600; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-total { font-family: var(--f-title); font-size: 1.6rem; font-weight: 700; color: var(--noche); }
.min-note { font-size: .88rem; color: var(--muted); }
.min-note strong { color: var(--noche); }
.prose { font-size: .98rem; }
.prose h3 { margin-top: 1.4em; }
.locked-box { background: var(--azul); color: var(--white); border-radius: 16px; padding: 28px; position: relative; overflow: hidden; }
.locked-box h3 { color: var(--white); }
.locked-box p { color: var(--celeste-100); }

/* ---------- Selector multi-aroma ---------- */
.min-box { background: var(--azul-50); border-left: 4px solid var(--azul); border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin-bottom: 8px; }
.min-box strong { font-family: var(--f-title); font-weight: 600; }
.min-box ul { margin: 6px 0; padding-left: 18px; }
.min-box span { color: var(--muted); font-size: .84rem; }
.step-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 600; font-size: 1.02rem; margin: 26px 0 12px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--azul); color: var(--white); display: grid; place-items: center; font-size: .85rem; }
.pres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pres-card { position: relative; display: grid; gap: 2px; padding: 14px 14px 12px; border: 2px solid var(--borde); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.pres-card:hover { border-color: var(--celeste); }
.pres-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pres-card:has(input:checked) { border-color: var(--azul); background: var(--azul-50); }
.pres-card:has(input:focus-visible) { outline: 3px solid var(--celeste); outline-offset: 2px; }
.pc-name { font-family: var(--f-title); font-weight: 600; font-size: .95rem; }
.pc-unit { font-size: .8rem; color: var(--muted); }
.pc-price { font-family: var(--f-title); font-weight: 700; color: var(--azul); font-size: 1.15rem; margin-top: 6px; }
.pc-price s { font-size: .78rem; color: var(--muted); font-weight: 500; }
.pc-min { position: absolute; top: 10px; right: 10px; font-size: .7rem; font-weight: 600; color: var(--azul); background: var(--white); border: 1px solid var(--celeste); padding: 2px 7px; border-radius: 999px; }
.aroma-tools { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aroma-tools svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.aroma-tools input[type=search] { padding-left: 42px; }
.aroma-tools .link-btn { white-space: nowrap; }
.aroma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; max-height: 620px; overflow-y: auto; padding: 2px 4px 2px 2px; overscroll-behavior: contain; }
.aroma { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--white); transition: border-color .15s, background .15s, box-shadow .15s; }
.aroma.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 0 0 0 1px var(--c); }
.aroma-head { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--noche); min-height: 34px; }
.aroma-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(16, 33, 60, .14), 0 0 0 3px #fff, 0 0 0 4px color-mix(in srgb, var(--c) 45%, transparent); }
.aroma-name { font-size: .87rem; font-weight: 500; line-height: 1.2; }
.aroma-name small { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.qty.qty-sm { width: 100%; justify-content: space-between; border-width: 1.5px; }
.qty.qty-sm button { width: 34px; height: 34px; font-size: 1.05rem; }
.qty.qty-sm input, .qty.qty-sm input[type=number] { width: 100%; min-width: 0; height: 34px; font-size: .95rem; }
.aroma.is-on .qty.qty-sm { border-color: var(--c); }
.builder-bar { position: sticky; bottom: 12px; z-index: 6; margin-top: 16px; background: var(--white); border: 1px solid var(--borde); border-radius: 16px; padding: 14px 16px; box-shadow: 0 -6px 28px rgba(16, 33, 60, .12); }
.sel-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 70px; overflow-y: auto; }
.sel-chips:not(:empty) { margin-bottom: 10px; }
.sel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--borde); font-size: .78rem; font-weight: 500; }
.sel-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.sel-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 4px; }
.sel-chip button:hover { color: var(--err); }
.bb-status { font-size: .86rem; }
.bb-status.ok { color: #0F7D78; font-weight: 600; }
.bb-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.bb-row .buy-total { font-size: 1.45rem; line-height: 1.1; }
@media (max-width: 860px) {
  .aroma-grid { max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-bar { bottom: 0; margin-left: -20px; margin-right: -20px; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .pres-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) { .aroma { padding: 8px; } .qty.qty-sm button { width: 30px; } }

/* ---------- Fichas PDF y calculadora de reventa ---------- */
.product-extra { padding: 0 0 72px; }
.fichas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 28px; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 20px 22px; background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); text-decoration: none; color: var(--noche); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ficha:hover { border-color: var(--celeste); box-shadow: var(--shadow); transform: translateY(-2px); }
.ficha-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: var(--azul-50); color: var(--azul); display: grid; place-items: center; }
.ficha-body strong { display: block; font-family: var(--f-title); font-weight: 600; font-size: 1.02rem; }
.ficha-body span { font-size: .87rem; color: var(--muted); }
.ficha-go { font-family: var(--f-title); font-weight: 600; font-size: .9rem; color: var(--azul); }
.ficha-go small { font-family: var(--f-text); font-weight: 500; color: var(--muted); margin-left: 4px; }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--borde); border-radius: 20px; overflow: hidden; }
.calc-intro { padding: 32px; }
.calc-intro h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 8px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 8px; }
.calc-fields .field:first-child { grid-column: 1 / -1; }
.calc-out { position: relative; background: var(--azul); color: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.calc-out .muted { color: var(--celeste-100); }
.calc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(255, 255, 255, .1); border: 1px solid rgba(156, 183, 225, .35); border-radius: 14px; padding: 14px; }
.kpi span { display: block; font-size: .78rem; color: var(--celeste-100); }
.kpi b { display: block; font-family: var(--f-title); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; margin-top: 4px; word-break: break-word; }
.kpi b.neg, .calc-min .neg { color: #FFB4AE; }
.kpi b.pos { color: #9BE7E2; }
.calc-min { background: var(--white); color: var(--noche); border-radius: 14px; padding: 16px 18px; }
.calc-min > strong { display: block; font-family: var(--f-title); font-weight: 600; margin-bottom: 6px; }
.calc-min .sum-row { font-size: .92rem; padding: 4px 0; }
.calc-min .sum-total { font-size: 1.15rem; }
.calc-min .neg { color: var(--err); }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .calc-intro, .calc-out { padding: 22px 18px; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-kpis { grid-template-columns: 1fr 1fr; }
  .calc-kpis .kpi:first-child { grid-column: 1 / -1; }
  .fichas { grid-template-columns: 1fr; }
  .ficha { grid-template-columns: auto 1fr; }
}

/* ---------- Formularios ---------- */
label { font-weight: 500; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--noche); background: var(--white); border: 1.5px solid var(--borde); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--azul); outline: none; }
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--azul); width: 17px; height: 17px; flex: none; }
.auth-wrap { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; }
.auth-wrap.wide { max-width: 820px; }
.form-section-title { font-family: var(--f-title); font-weight: 600; font-size: 1.05rem; margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--borde); grid-column: 1 / -1; }

/* ---------- Carrito / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; padding-top: 36px; padding-bottom: 70px; align-items: start; }
@media (max-width: 920px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--borde); align-items: center; }
.cart-item img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--blanco); }
.cart-item h3 { font-size: 1rem; margin: 0 0 2px; }
.cart-item .meta { font-size: .85rem; color: var(--muted); }
.cart-item .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.cart-item .qty button { height: 38px; width: 34px; }
.cart-item .qty input { height: 38px; width: 58px; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 64px; } .cart-item .right { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; } }
.min-warn { font-size: .82rem; color: var(--err); font-weight: 600; margin-top: 4px; }
.summary { background: var(--white); border: 1px solid var(--borde); border-radius: 16px; padding: 22px; position: sticky; top: 96px; }
.summary h3 { font-size: 1.15rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.sum-total { border-top: 1px solid var(--borde); margin-top: 8px; padding-top: 12px; font-family: var(--f-title); font-size: 1.3rem; font-weight: 700; }
.progress { height: 8px; background: var(--celeste-100); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: var(--hogar); border-radius: 4px; }
.free-box { background: var(--azul-50); border-radius: 12px; padding: 14px; font-size: .87rem; margin: 14px 0; }
.free-box strong { color: var(--azul); }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--borde); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: var(--white); }
.radio-card:has(input:checked) { border-color: var(--azul); background: var(--azul-50); }
.radio-card input { accent-color: var(--azul); margin-top: 4px; }
.radio-card strong { font-family: var(--f-title); font-weight: 600; display: block; }
.radio-card span { font-size: .87rem; color: var(--muted); }
.by-method { background: var(--blanco); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.by-method .sum-row { font-size: .9rem; padding: 4px 0; }
.by-method .is-pref { font-weight: 700; color: var(--azul); }
.paymode { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: var(--white); border: 1px solid var(--borde); border-radius: 12px; padding: 8px 8px 8px 14px; margin: 4px 0 14px; }
.paymode-label { font-family: var(--f-title); font-weight: 600; font-size: .88rem; }
.paymode-opts { display: flex; gap: 4px; background: var(--azul-50); border-radius: 10px; padding: 4px; }
.paymode-opts button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-family: var(--f-title); font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer; }
.paymode-opts button.is-active { background: var(--azul); color: var(--white); }
.paymode-note { flex-basis: 100%; margin: 0; font-size: .82rem; font-weight: 600; color: var(--azul); }
.pc-cuotas { display: block; font-size: .78rem; font-weight: 600; color: var(--azul); margin-top: 2px; }
.pres-price .pc-cuotas { text-align: right; }
@media (max-width: 480px) { .paymode { padding: 10px; } .paymode-opts { width: 100%; } .paymode-opts button { flex: 1; padding: 8px 6px; } }
.radio-card.is-disabled { opacity: .45; cursor: not-allowed; }
.pay-card { align-items: center; }
.pay-card > div { flex: 1; }
.pay-total { text-align: right; font-family: var(--f-title); font-weight: 700; color: var(--azul); white-space: nowrap; }
.pay-total small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .72rem; color: var(--muted); }
.quote-box { font-size: .9rem; padding: 12px 14px; border-radius: 10px; background: var(--blanco); margin-top: 6px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-family: var(--f-title); font-weight: 600; font-size: .8rem; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--borde); white-space: nowrap; background: #FAFBFD; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--blanco); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: #E0F4F3; color: #0F7D78; }
.badge-warn { background: #FDF1E4; color: #9A5A12; }
.badge-err { background: #FBEAE9; color: #A3342E; }
.badge-info { background: var(--azul-50); color: var(--azul); }
.badge-muted { background: #EEF1F5; color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--celeste-100); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--azul); }
.timeline li:last-child { border-color: transparent; }
.timeline .when { font-size: .8rem; color: var(--muted); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 500; background: var(--white); border: 1px solid var(--borde); color: var(--noche); }
.tabs a.is-active { background: var(--azul); border-color: var(--azul); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--noche); color: var(--celeste-100); padding: 56px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid img { width: 150px; }
.footer-claim { font-family: var(--f-title); font-weight: 600; color: var(--white); margin: 16px 0 0; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.site-footer a, .site-footer span { display: block; color: var(--celeste-100); text-decoration: none; font-size: .9rem; padding: 3px 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(156,183,225,.2); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: .8rem; color: var(--celeste); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Panel admin ---------- */
.admin-body { background: var(--blanco); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--noche); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side img { width: 130px; margin: 0 8px 26px; }
.admin-side a { display: flex; align-items: center; justify-content: space-between; color: var(--celeste-100); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .93rem; font-family: var(--f-title); font-weight: 500; }
.admin-side a:hover { background: rgba(156,183,225,.12); color: var(--white); }
.admin-side a.is-active { background: var(--azul); color: var(--white); }
.admin-side .count { background: var(--industrial); color: var(--white); font-size: .72rem; border-radius: 10px; padding: 1px 8px; }
.admin-side hr { border: 0; border-top: 1px solid rgba(156,183,225,.2); margin: 14px 0; }
.admin-main { padding: 28px 34px 60px; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--f-title); font-size: 1.9rem; color: var(--azul); line-height: 1.1; }
.stat span { font-size: .87rem; color: var(--muted); }
.inline-form { display: inline; }
td.nowrap { white-space: nowrap; }
td.nowrap .inline-form { margin-left: 8px; }
.link-pago-box { background: var(--azul-50); border-radius: 12px; padding: 14px; margin: 4px 0 12px; }
.link-pago-box label { display: block; margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pres-editor .pres-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: var(--blanco); padding: 14px; border-radius: 12px; margin-bottom: 10px; position: relative; }
.pres-editor .pres-row .field { margin: 0; }
.pres-editor .pres-row label { font-size: .75rem; color: var(--muted); }
.pres-editor .pres-row input { padding: 9px 10px; font-size: .9rem; }
.pres-editor .pres-row .wide { grid-column: span 2; }
.pres-editor .rm { position: absolute; top: 8px; right: 10px; }
.pres-editor .pres-prices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--white); border: 1px solid var(--borde); border-radius: 10px; padding: 10px; }
.pres-editor .pp-title { grid-column: 1 / -1; font-family: var(--f-title); font-weight: 600; font-size: .8rem; color: var(--azul); }
@media (max-width: 600px) { .pres-editor .pres-prices { grid-template-columns: 1fr 1fr; } }
.pres-editor [data-precio-ver] { font-weight: 600; color: var(--azul, #2A4C9B); min-height: 1em; }
.pres-editor [data-precio-ver].is-bad { color: #c0392b; }
@media (max-width: 1100px) { .pres-editor .pres-row { grid-template-columns: repeat(3, 1fr); } }
/* Editor de producto: solapas, aromas y barra de guardado */
.ptabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--azul-50); border: 1px solid var(--borde); border-radius: 14px; padding: 6px; margin-bottom: 18px; }
.ptabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 11px 18px; border-radius: 10px; font-family: var(--f-title); font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; }
.ptabs button:hover { color: var(--azul); }
.ptabs button.is-active { background: var(--white); color: var(--azul); box-shadow: 0 1px 3px rgba(16, 33, 60, .1); }
.ptab-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--celeste-100); color: var(--azul); font-size: .75rem; display: inline-grid; place-items: center; }
.ae-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.ae-toolbar input[type=search] { flex: 1 1 220px; width: auto; padding: 10px 14px; }
.ae-bulk { background: var(--blanco); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.ae-bulk label { display: block; margin-bottom: 6px; }
.ae-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ae-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--white); transition: border-color .15s; }
.ae-row:focus-within { border-color: var(--azul); }
.ae-swatch { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(16, 33, 60, .15); cursor: pointer; overflow: hidden; }
.ae-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ae-swatch:focus-within { outline: 3px solid var(--celeste); outline-offset: 2px; }
.ae-fields { display: grid; gap: 4px; min-width: 0; }
.ae-fields input[type=text] { padding: 6px 9px; font-size: .9rem; border-radius: 8px; }
.ae-fields .ae-name { font-weight: 600; }
.ae-fields .ae-cname { font-size: .82rem; color: var(--muted); }
.ae-del { width: 30px; height: 30px; border-radius: 8px; border: 0; background: #FBEAE9; color: var(--err); font-size: 1.1rem; cursor: pointer; }
.ae-del:hover { background: var(--err); color: var(--white); }
.ae-row.is-dup { border-color: var(--warn); }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px -34px -60px; padding: 14px 34px; background: var(--white); border-top: 1px solid var(--borde); box-shadow: 0 -6px 20px rgba(16, 33, 60, .06); }
.save-bar strong { display: block; font-family: var(--f-title); }

.admin-topbar { display: none; }
@media (max-width: 900px) {
  .save-bar { margin: 20px -14px -50px; padding: 10px 14px; }
  .save-bar > div:first-child { display: none; } /* en celular sólo el botón, ocupa menos */
  .save-bar .btn { width: 100%; }
  .ptabs button { padding: 9px 12px; font-size: .85rem; }
  .admin-shell { grid-template-columns: 1fr; }
  /* Celular: barra fija arriba con el menú plegado */
  .admin-topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 60; background: var(--noche); padding: 10px 14px; min-height: 56px; }
  .admin-topbar-logo img { width: 84px; height: auto; display: block; }
  .admin-topbar-title { flex: 1; min-width: 0; color: #fff; font-family: var(--f-title); font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; border-left: 1px solid rgba(156,183,225,.25); }
  .admin-menu-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(156,183,225,.14); color: #fff; border: 0; border-radius: 10px; padding: 9px 12px; font-family: var(--f-title); font-weight: 600; font-size: .88rem; cursor: pointer; }
  .admin-menu-btn .count { background: var(--industrial); color: #fff; font-size: .7rem; border-radius: 10px; padding: 1px 7px; }
  .adm-burger { display: grid; gap: 3px; } .adm-burger span { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; }
  .admin-side { display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; z-index: 59; height: auto; padding: 12px 14px 30px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
  .admin-side.is-open { display: block; }
  .admin-side > a:first-child { display: none; } /* el logo ya está en la barra */
  .admin-side a { padding: 13px 12px; font-size: 1rem; }
  .admin-main { padding: 18px 14px 50px; }
  .admin-main h1 { font-size: 1.45rem; }
  .admin-main .grid[style] { grid-template-columns: 1fr !important; }
  /* Filtros (Todos / Pendientes / …): una sola fila que se desliza */
  .admin-main .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -14px 16px; padding: 0 14px 4px; scrollbar-width: none; }
  .admin-main .tabs::-webkit-scrollbar { display: none; }
  .admin-main .tabs a { flex: none; white-space: nowrap; }
  .admin-top { gap: 10px; }
  .admin-top .search { width: 100%; }
}
/* Celular: las tablas del panel se ven como tarjetas (cada fila = una tarjeta con "etiqueta: dato") */
@media (max-width: 700px) {
  :is(.admin-main, main) .table-wrap:not(.keep-table) { background: none; border: 0; overflow: visible; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table { min-width: 0 !important; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table thead { display: none; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table,
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table tbody,
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table tr,
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td { display: block; width: 100%; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table tr { background: var(--white); border: 1px solid var(--borde); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td { position: relative; padding: 9px 0 9px 36%; min-height: 36px; border-bottom: 1px solid var(--blanco); text-align: left !important; white-space: normal; overflow-wrap: anywhere; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table tr td:last-child { border-bottom: 0; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td::before { content: attr(data-label); position: absolute; left: 0; top: 11px; width: 33%; font-family: var(--f-title); font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td:not([data-label]),
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td[data-label=""],
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td[colspan] { padding-left: 0; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td:not([data-label])::before,
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td[data-label=""]::before,
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td[colspan]::before { display: none; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td input,
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td select { width: 100%; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td img { max-width: 64px; }
  /* Fila con foto (productos): foto chica a la izquierda y el nombre al lado, sin etiquetas */
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td:has(> img:only-child) { float: left; width: auto; padding: 6px 12px 6px 0; border: 0; min-height: 0; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td:has(> img:only-child) + td { padding: 8px 0 10px; min-height: 58px; font-weight: 600; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td:has(> img:only-child)::before,
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td:has(> img:only-child) + td::before { display: none; }
  :is(.admin-main, main) .table-wrap:not(.keep-table) .table td:has(> img:only-child) ~ td:last-child { clear: both; }
}
@media (max-width: 600px) {
  .pres-editor .pres-row { grid-template-columns: 1fr 1fr; padding-top: 34px; }
  .pres-editor .pres-row .wide { grid-column: 1 / -1; }
}

/* ---------- Panel › Estadísticas ---------- */
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1180px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
.st-kpis .stat small { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.st-2col { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 1100px) { .st-2col { grid-template-columns: 1fr; } }
.st-title { font-size: 1.05rem; margin: 0 0 14px; }
.st-sub { font-size: .9rem; margin: 22px 0 10px; }
.st-bars { position: relative; display: flex; align-items: stretch; gap: 2px; height: 200px; padding: 18px 0 22px; border-bottom: 1px solid var(--borde);
  background: linear-gradient(to bottom, transparent calc(18px - 1px), #EEF2F8 18px, transparent calc(18px + 1px)); }
.st-max { position: absolute; top: 0; left: 0; font-size: .72rem; color: var(--muted); }
.st-col { position: relative; flex: 1 1 0; display: flex; align-items: flex-end; min-width: 0; cursor: default; }
.st-col i { display: block; width: 100%; max-width: 28px; margin: 0 auto; background: var(--azul); border-radius: 4px 4px 0 0; }
.st-col:hover i { background: var(--azul-700); }
.st-col:hover { background: var(--azul-50); border-radius: 4px; }
.st-col em { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .7rem; color: var(--muted); white-space: nowrap; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
  background: var(--noche, #10213C); color: #fff; font-size: .76rem; font-weight: 500; line-height: 1.3; padding: 6px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(16, 33, 60, .18); }
.st-col[data-tip]:hover::after { bottom: auto; top: -8px; transform: translate(-50%, -100%); }
.st-col:first-child[data-tip]:hover::after, .st-col:nth-child(2)[data-tip]:hover::after, .st-col:nth-child(3)[data-tip]:hover::after { left: 0; transform: translate(0, -100%); }
.st-col:last-child[data-tip]:hover::after, .st-col:nth-last-child(2)[data-tip]:hover::after { left: auto; right: 0; transform: translate(0, -100%); }
.st-table { margin-top: 26px; }
.st-table summary { cursor: pointer; font-size: .85rem; color: var(--azul); }
.st-table .table-wrap { margin-top: 10px; max-height: 320px; overflow: auto; }
.st-plain { border: 0; }
.st-plain .table th { background: transparent; }
.st-meter { height: 6px; background: #EEF2F8; border-radius: 999px; margin-top: 6px; overflow: hidden; }
.st-meter i { display: block; height: 100%; background: var(--azul); border-radius: 999px; }
.st-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: .88rem; margin-bottom: 8px; }
.st-row .st-meter { margin: 0; }
.st-row b { text-align: right; font-weight: 600; }
.st-heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; align-items: center; }
.st-heat .st-h { font-size: .66rem; color: var(--muted); text-align: left; }
.st-heat .st-d { font-size: .74rem; color: var(--muted); }
.st-heat i { display: block; aspect-ratio: 1; border-radius: 3px; background: #EEF2F8; }
.st-heat i:hover { outline: 2px solid var(--noche, #10213C); outline-offset: 0; }
.st-heat i[data-tip]:hover::after { bottom: calc(100% + 6px); }
.lv1 { background: #D3DEF1 !important; } .lv2 { background: #A9BDE3 !important; } .lv3 { background: #7393CE !important; }
.lv4 { background: #4467B4 !important; } .lv5 { background: #213E80 !important; }
.st-legend { display: flex; align-items: center; gap: 3px; justify-content: flex-end; margin-top: 8px; }
.st-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.st-src td:first-child { min-width: 120px; }
.st-src th, .st-src td { padding: 10px 8px; }
.st-src th:first-child, .st-src td:first-child { padding-left: 0; }
.st-src th:last-child, .st-src td:last-child { padding-right: 0; }
.st-medio { display: block; font-size: .78rem; color: var(--muted); }

/* ---------- Inicio: texto para buscadores y preguntas frecuentes ---------- */
.seo-text { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .seo-text { grid-template-columns: 1fr; gap: 28px; } }
.seo-text p { color: var(--muted); line-height: 1.7; }
.seo-text .h3 { font-size: 1.35rem; margin-top: 0; }
.faq details { border-bottom: 1px solid var(--borde); padding: 14px 0; }
.faq details:first-child { border-top: 1px solid var(--borde); }
.faq summary { cursor: pointer; font-family: var(--f-title); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--azul); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; font-size: .95rem; }

/* ---------- Envío gratis por producto ---------- */
.tag-envio { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 20px);
  background: #15A6A0; color: #fff; font-family: var(--f-title); font-weight: 600; font-size: .74rem; line-height: 1.2; padding: 5px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(16, 33, 60, .18); }
.pcard-img { position: relative; }
.envio-banner { display: flex; align-items: center; gap: 10px; background: #E0F4F3; color: #0F6E6A; border-radius: 12px; padding: 10px 14px; margin: 4px 0 10px; }
.envio-banner svg { flex: none; }
.envio-banner small { display: block; font-size: .8rem; color: #0F6E6A; opacity: .85; }
.pc-envio { display: inline-block; font-size: .74rem; font-weight: 600; color: #0F6E6A; background: #E0F4F3; border-radius: 6px; padding: 2px 7px; margin-top: 4px; }

/* ---------- Liquidación ---------- */
.tag-liq { left: auto; right: 12px; background: var(--err); text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 4px 12px rgba(194, 65, 58, .35); }
.tag-liq.is-low { top: 46px; }
.pcard-liq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; font-weight: 600; color: #A3342E; background: #FBEAE9; border-radius: 8px; padding: 6px 9px; margin: 8px 0 4px; }
.pcard-liq .cd { font-variant-numeric: tabular-nums; font-family: var(--f-title); }
.liq-flag { display: inline-block; background: var(--err); color: #fff; font-family: var(--f-title); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.liq-box { border: 2px solid var(--err); background: linear-gradient(135deg, #FFF6F5, #FFFFFF); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 14px; display: grid; gap: 10px; }
.liq-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.liq-head strong { font-family: var(--f-title); font-size: 1.35rem; color: #A3342E; }
.liq-envio { display: flex; align-items: center; gap: 8px; background: #E0F4F3; color: #0F6E6A; border-radius: 10px; padding: 8px 12px; font-family: var(--f-title); font-weight: 700; font-size: 1.02rem; }
.liq-envio svg { flex: none; }
.liq-timer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.liq-timer > span { font-weight: 600; color: var(--noche); font-size: .92rem; }
.liq-stock { margin: 0; font-size: .9rem; font-weight: 600; color: #A3342E; }
.cd-big { display: inline-flex; gap: 6px; }
.cd-u { display: grid; place-items: center; min-width: 54px; padding: 6px 4px 5px; background: var(--noche); color: #fff; border-radius: 9px; line-height: 1; }
.cd-u b { font-family: var(--f-title); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.cd-u small { font-size: .64rem; opacity: .75; margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }
.cd-big.is-urgent .cd-u { background: var(--err); animation: cdPulse 1s ease-in-out infinite alternate; }
@keyframes cdPulse { to { box-shadow: 0 0 0 4px rgba(194, 65, 58, .18); } }
@media (prefers-reduced-motion: reduce) { .cd-big.is-urgent .cd-u { animation: none; } }
.pc-off { display: inline-block; background: var(--err); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 5px; padding: 1px 6px; vertical-align: middle; }
.liq-home { background: linear-gradient(180deg, #FFF6F5, var(--blanco)); border-top: 4px solid var(--err); }
.liq-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.liq-home-head h2 { margin-top: 8px; }
.btn-liq { background: var(--err); border-color: var(--err); }
.btn-liq:hover { background: #A3342E; border-color: #A3342E; }
.filters a.filter-liq { justify-content: center; background: var(--err); color: #fff; font-weight: 600; margin: 0 0 14px; }
.filters a.filter-liq:hover { background: #A3342E; }
.filters a.filter-liq.is-active { background: #FBEAE9; color: #A3342E; box-shadow: none; }
.main-nav a.nav-liq { color: var(--err); font-weight: 600; }
.main-nav a.nav-liq.is-active { box-shadow: inset 0 -3px 0 var(--err); }
/* Landing /liquidacion */
.liq-hero { background: linear-gradient(135deg, #8E2722 0%, var(--err) 45%, var(--noche) 100%); }
.liq-hero .wrap { padding-top: 64px; padding-bottom: 72px; }
.liq-hero h1 { margin-top: 14px; }
.liq-hero p.lead { color: #FFE9E7; max-width: 640px; }
.liq-hero p.lead strong { color: #fff; }
.liq-flag-lg { font-size: .9rem; padding: 6px 14px; background: #fff; color: var(--err); }
.liq-hero-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; padding: 16px 18px; max-width: 640px; background: rgba(16, 33, 60, .45); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; }
.liq-hero-label { font-family: var(--f-title); font-weight: 600; font-size: 1.05rem; color: #fff; }
.liq-hero .cd-u { background: #fff; color: var(--noche); min-width: 64px; padding: 8px 6px 7px; }
.liq-hero .cd-u b { font-size: 1.7rem; }
.liq-hero .cd-big.is-urgent .cd-u { background: #fff; color: var(--err); }
.liq-hero-fin { flex-basis: 100%; font-size: .88rem; color: #FFE9E7; }
.liq-hero-fin a { color: #fff; }
.liq-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.liq-facts div { border-left: 4px solid var(--err); padding: 4px 0 4px 14px; }
.liq-facts strong { display: block; font-family: var(--f-title); font-size: 1.35rem; color: var(--noche); }
.liq-facts span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) {
  .liq-facts { grid-template-columns: 1fr 1fr; }
  .liq-hero .cd-u { min-width: 54px; }
  .liq-hero .cd-u b { font-size: 1.35rem; }
}
/* ---------- WhatsApp: burbuja del asesor y canal de difusión ---------- */
.wa-bubble { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(16, 33, 60, .28); transition: transform .15s, box-shadow .15s; }
.wa-bubble:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 33, 60, .32); color: #fff; }
.wa-bubble-ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.wa-bubble-txt { display: grid; line-height: 1.2; }
.wa-bubble-txt strong { font-family: var(--f-title); font-size: .95rem; }
.wa-bubble-txt small { font-size: .74rem; opacity: .9; }
body:has(.builder-bar) .wa-bubble, body:has(.save-bar) .wa-bubble { bottom: 96px; }
@media (max-width: 640px) {
  .wa-bubble { right: 12px; bottom: 12px; padding: 6px 12px 6px 6px; gap: 8px; }
  .wa-bubble-ico { width: 38px; height: 38px; }
  .wa-bubble-txt small { display: none; }
  .wa-bubble-txt strong { font-size: .85rem; }
}
@media print { .wa-bubble { display: none; } }
.canal-wa { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #E7F8EE; border: 1px solid #BFE9CF; border-radius: var(--radius); padding: 18px 20px; }
.canal-wa > div { flex: 1; min-width: 220px; display: grid; gap: 3px; }
.canal-wa strong { font-family: var(--f-title); font-size: 1.08rem; color: var(--noche); }
.canal-wa span { color: #35614A; font-size: .92rem; }
.canal-wa-ico { width: 52px; height: 52px; border-radius: 14px; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.btn-wa { background: #25D366; border-color: #25D366; color: #fff; }
.btn-wa:hover { background: #1EB257; border-color: #1EB257; color: #fff; }

/* ---------- Clientes de Bolivia / Paraguay ---------- */
[data-registro] [hidden], .receptor-box [hidden] { display: none !important; }
.pais-ext-aviso { display: grid; gap: 4px; background: #FFF8EC; border: 1px solid #F3D9B9; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.pais-ext-aviso strong:first-child { font-family: var(--f-title); color: #7A4A10; }
.receptor-box { background: #FFF8EC; border: 1px solid #F3D9B9; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .9rem; }
.receptor-box strong { font-family: var(--f-title); }

/* ---------- Chat de atención al cliente ---------- */
.chat-w { position: fixed; right: 18px; bottom: 84px; z-index: 151; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
body:has(.builder-bar) .chat-w { bottom: 162px; }
.chat-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--azul); color: #fff; font-family: var(--f-title); font-weight: 600; font-size: .9rem; padding: 11px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(16, 33, 60, .28); position: relative; }
.chat-btn:hover { background: var(--noche); }
.chat-w.is-open .chat-btn { background: var(--noche); }
.chat-badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--err); color: #fff; font-size: .72rem; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.chat-toast { max-width: 290px; background: #fff; border: 1px solid var(--borde); border-left: 4px solid var(--azul); border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(16, 33, 60, .22); cursor: pointer; display: grid; gap: 2px; font-size: .88rem; animation: chatIn .25s ease-out; }
.chat-toast strong { font-family: var(--f-title); color: var(--azul); font-size: .82rem; }
@keyframes chatIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-toast { animation: none; } }
.chat-panel { width: min(360px, calc(100vw - 24px)); height: min(480px, calc(100vh - 170px)); background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(16, 33, 60, .3); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--azul); color: #fff; }
.chat-head > div { flex: 1; display: grid; }
.chat-head strong { font-family: var(--f-title); }
.chat-head small { opacity: .8; font-size: .75rem; }
.chat-head-ico { font-size: 1.4rem; }
.chat-x { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--blanco); }
.chat-msg { max-width: 82%; display: grid; gap: 2px; }
.chat-msg p { margin: 0; padding: 8px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg small { font-size: .7rem; color: var(--muted); padding: 0 4px; }
.chat-msg.is-admin { align-self: flex-start; }
.chat-msg.is-admin p { background: #fff; border: 1px solid var(--borde); border-bottom-left-radius: 4px; }
.chat-msg.is-cliente { align-self: flex-end; text-align: right; }
.chat-msg.is-cliente p { background: var(--azul); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--borde); background: #fff; align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; }
.chat-err { margin: 0; padding: 0 12px 10px; color: var(--err); font-size: .82rem; }
@media (max-width: 640px) {
  .chat-w { right: 12px; bottom: 70px; }
  .chat-btn span:not(.chat-badge) { display: none; }
  .chat-btn { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .chat-panel { position: fixed; left: 8px; right: 8px; bottom: 132px; width: auto; height: min(460px, calc(100vh - 150px)); }
}
.online-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; text-decoration: none; color: var(--noche); font-size: .92rem; }
.online-strip > span:nth-child(2) { flex: 1; min-width: 200px; }
.online-go { color: var(--azul); font-weight: 600; }
/* Panel › Chat */
.chat-adm { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.chat-adm-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; color: var(--noche); }
.chat-adm-item:hover, .chat-adm-item.is-active { background: var(--blanco); }
.chat-adm-item > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.chat-adm-item small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-adm-item .count { background: var(--err); color: #fff; font-size: .72rem; border-radius: 10px; padding: 1px 8px; }
.dot-online, .dot-offline { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.dot-offline { background: #CBD5E1; box-shadow: none; }
.chat-adm-main { display: flex; flex-direction: column; min-height: 520px; padding: 0; overflow: hidden; }
.chat-adm-main > p { padding: 20px; }
.chat-adm-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--borde); }
.chat-adm-head > div { flex: 1; display: grid; min-width: 0; }
.chat-adm-head small { color: var(--muted); font-size: .8rem; }
.chat-adm-back { display: none; text-decoration: none; font-size: 1.3rem; }
.chat-adm-msgs { min-height: 380px; max-height: 60vh; }
.chat-adm-main [data-adm-leido] { padding: 0 16px 10px; }
.adm-chat-toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; background: var(--azul); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
@media (max-width: 900px) {
  .chat-adm { grid-template-columns: 1fr; }
  .chat-adm.has-conv .chat-adm-side { display: none; }
  .chat-adm-back { display: inline; }
  .chat-adm-msgs { max-height: calc(100vh - 290px); min-height: 300px; }
}

/* ---------- Notificaciones del cliente y cupones ---------- */
.nav-avisos { position: relative; display: inline-flex !important; align-items: center; gap: 6px; }
.nav-avisos .cart-count { top: -6px; right: -10px; background: var(--err); }
@media (min-width: 1241px) { .nav-avisos-txt { display: none; } }
.notif-list { display: grid; gap: 14px; max-width: 760px; }
.notif { background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius); padding: 18px 20px; }
.notif.is-new { border-color: var(--azul); box-shadow: inset 4px 0 0 var(--azul); }
.notif-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.notif h2 { font-size: 1.15rem; margin: 0; }
.notif p { margin: 8px 0 0; }
.notif-nueva { color: var(--azul); }
.cupon-ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; border: 2px dashed var(--azul); border-radius: 12px; background: var(--blanco); }
.cupon-ticket > div { display: grid; gap: 2px; }
.cupon-ticket strong { font-family: var(--f-title); font-size: 1.4rem; letter-spacing: .06em; color: var(--azul); }
.cupon-ticket.is-off { opacity: .6; border-color: var(--muted); }
.cupon-box { margin: 10px 0 14px; padding: 10px 12px; background: var(--blanco); border-radius: 10px; font-size: .9rem; }
.cupon-box summary { cursor: pointer; color: var(--azul); font-weight: 600; }
.cupon-form { display: flex; gap: 8px; margin-top: 10px; }
.cupon-form input { flex: 1; min-width: 0; }
.cupon-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cupon-aviso { color: #9A5A12; }

/* Panel › SEO y redes */
.seo-card { margin-top: 18px; }
.seo-count { float: right; font-size: .75rem; font-weight: 600; color: var(--muted); }
.seo-count.is-ok { color: var(--ok); }
.seo-count.is-warn { color: var(--warn); }
.seo-count.is-bad { color: var(--err); }
.seo-previews { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 900px) { .seo-previews { grid-template-columns: 1fr; } }
.seo-prev-label { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.g-prev { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 14px 16px; font-family: Arial, sans-serif; }
.g-site { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #202124; }
.g-site small { display: block; color: #4d5156; font-size: 12px; }
.g-fav { width: 26px; height: 26px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.g-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 8px 0 3px; }
.g-desc { color: #4d5156; font-size: 13.5px; line-height: 1.45; }
.wa-prev { background: #DCF8C6; border-radius: 10px; padding: 5px; max-width: 340px; }
.wa-img { aspect-ratio: 1200 / 630; background: #eee center / cover no-repeat; border-radius: 7px 7px 0 0; }
.wa-body { background: #F0F2F5; border-radius: 0 0 7px 7px; padding: 7px 9px; display: grid; gap: 2px; font-family: Arial, sans-serif; }
.wa-body strong { font-size: 13.5px; color: #111; }
.wa-body span { font-size: 12.5px; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-body small { font-size: 11.5px; color: #888; }

/* Stock limitado */
.pcard-stock { font-size: .8rem; font-weight: 700; color: #9A5A12; background: #FDF1E4; border-radius: 8px; padding: 5px 9px; margin: 4px 0; }
.pcard-stock.is-out { color: #fff; background: var(--noche); text-transform: uppercase; letter-spacing: .04em; }
.agotado-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 33, 60, .55); color: #fff; font-family: var(--f-title); font-weight: 700; font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; }
.pc-stock { display: inline-block; font-size: .74rem; font-weight: 700; color: #9A5A12; background: #FDF1E4; border-radius: 6px; padding: 2px 7px; margin-top: 4px; }
.pc-stock.is-out { color: #fff; background: var(--noche); }
.pres-card.is-out, .pres.is-out { opacity: .55; cursor: not-allowed; }
.agotado-box { display: grid; gap: 4px; background: var(--noche); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; }
.agotado-box strong { font-family: var(--f-title); font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; }
.agotado-box a { color: var(--celeste); }
.liq-libre { margin: 0; font-size: .88rem; color: var(--noche); background: #fff; border-radius: 8px; padding: 7px 10px; border: 1px solid #F3C9C6; }
.liq-checkout-note { display: grid; gap: 4px; background: #FFF6F5; border: 1px solid #F3C9C6; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: .9rem; }
.liq-checkout-note strong { font-family: var(--f-title); color: var(--noche); }
.liq-checkout-note span { color: var(--muted); }
.liq-admin { border: 1px dashed var(--err); border-radius: 10px; padding: 10px 12px; background: #FFF8F7; }

/* Fichas bloqueadas para visitantes */
.ficha.is-locked .ficha-ico { background: #EEF1F6; color: var(--muted); }
.ficha.is-locked .ficha-go { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Ventana para registrarse ---------- */
.reg-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(16, 33, 60, .55); opacity: 0; transition: opacity .2s; }
.reg-pop.is-open { opacity: 1; }
.reg-pop[hidden] { display: none; }
.reg-pop-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 33, 60, .35); transform: translateY(12px) scale(.98); transition: transform .2s; }
.reg-pop.is-open .reg-pop-card { transform: none; }
.reg-pop-top { background: var(--azul); color: #fff; padding: 26px 24px 20px; border-radius: 18px 18px 0 0; }
.reg-pop-top h2 { color: #fff; font-size: 1.45rem; line-height: 1.2; margin: 10px 0 0; }
.reg-pop-body { padding: 18px 24px 22px; }
.reg-pop-body p { margin: 0 0 10px; }
.reg-pop-body .checklist { margin: 0 0 16px; }
.reg-pop-liq { background: #FBEAE9; color: #A3342E; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-size: .92rem; }
.reg-pop-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.reg-pop-x:hover { background: rgba(255, 255, 255, .3); }
@media (prefers-reduced-motion: reduce) { .reg-pop, .reg-pop-card { transition: none; } }
.eg-field select { width: 100%; }
.eg-provs { margin-top: 8px; background: var(--white); border: 1px solid var(--borde); border-radius: 10px; padding: 10px; }
.eg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 2px 10px; margin-top: 8px; }
.eg-grid .check { font-size: .82rem; margin: 0; }
.pres-editor .eg-field { grid-column: 1 / -1; }
/* ---------- Lista de precios descargable ---------- */
.main-nav a.nav-lista { display: inline-flex; align-items: center; gap: 6px; background: var(--hogar); color: var(--white); border-radius: 999px; padding: 7px 14px; font-weight: 600; text-decoration: none; }
.main-nav a.nav-lista:hover, .main-nav a.nav-lista.is-active { background: #0F7D78; color: var(--white); }
.lp-banner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--azul); color: var(--white); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 1.5rem; box-shadow: var(--shadow); }
.lp-banner::after { content: ""; position: absolute; right: -60px; top: -70px; width: 210px; height: 210px; border-radius: 50%; border: 34px solid var(--celeste); opacity: .22; pointer-events: none; }
.lp-banner-txt, .lp-banner-actions { position: relative; z-index: 1; }
.lp-banner h3 { color: var(--white); font-size: 1.3rem; margin: 0 0 4px; }
.lp-banner p { margin: 0; color: var(--celeste-100); font-size: .95rem; }
.lp-new { display: inline-block; background: var(--hogar); color: var(--white); font-family: var(--f-title); font-weight: 600; font-size: .75rem; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.lp-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .lp-banner { padding: 18px; } .lp-banner-actions, .lp-banner-actions .btn { width: 100%; } }

/* ---------- Combos con envío GRATIS a todo el país ---------- */
.main-nav a.nav-combos { display: inline-flex; align-items: center; gap: 6px; color: var(--azul); border: 2px solid var(--azul); border-radius: 999px; padding: 5px 12px; font-weight: 600; text-decoration: none; }
.main-nav a.nav-combos::before { content: "🚚"; font-size: .95em; }
.main-nav a.nav-combos:hover, .main-nav a.nav-combos.is-active { background: var(--azul); color: var(--white); }
.tag-combo { background: var(--azul); color: var(--white); }

.combos-hero { position: relative; overflow: hidden; background: var(--azul); color: var(--white); padding: 56px 0 48px; }
.combos-hero::after { content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%; border: 56px solid var(--celeste); opacity: .2; pointer-events: none; }
.combos-hero .wrap { position: relative; z-index: 1; }
.combos-hero h1 { color: var(--white); max-width: 820px; margin-top: 10px; }
.combos-hero h1 .hl { color: var(--white); background: var(--hogar); border-radius: 12px; padding: 0 .22em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.combos-hero p { color: var(--celeste-100); max-width: 640px; font-size: 1.08rem; }
.combos-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.combos-badges span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 14px; font-size: .92rem; font-weight: 500; }

.combos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.combo-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--borde); border-top: 5px solid var(--linea, var(--azul)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.combo-card.is-out { opacity: .7; }
.combo-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--azul-50); }
.combo-img img { width: 100%; height: 100%; object-fit: cover; }
.combo-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, var(--azul) 0%, var(--noche) 100%); color: var(--white); }
.combo-ph strong { font-family: var(--f-title); font-size: 2.2rem; letter-spacing: .08em; }
.combo-ph small { color: var(--celeste); font-size: .95rem; }
.combo-envio { position: absolute; left: 12px; bottom: 12px; background: var(--hogar); color: var(--white); font-family: var(--f-title); font-weight: 600; font-size: .8rem; border-radius: 999px; padding: 6px 12px; box-shadow: 0 4px 12px rgba(16,33,60,.18); }
.combo-off { position: absolute; right: 12px; top: 12px; background: var(--err); color: var(--white); font-family: var(--f-title); font-weight: 700; font-size: .95rem; border-radius: 10px; padding: 5px 10px; }
.combo-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.combo-body h3 { margin: 0 0 10px; font-size: 1.2rem; }
.combo-body h3 a { color: var(--noche); text-decoration: none; }
.combo-body h3 a:hover { color: var(--azul); }
.combo-incl-t { font-family: var(--f-title); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--azul); }
.combo-incl { list-style: none; margin: 6px 0 14px; padding: 0; font-size: .93rem; }
.combo-incl li { padding: 5px 0 5px 22px; position: relative; border-bottom: 1px dashed var(--borde); }
.combo-incl li:last-child { border-bottom: 0; }
.combo-incl li::before { content: "✓"; position: absolute; left: 0; color: var(--hogar); font-weight: 700; }
.combo-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--borde); }
.combo-price { display: flex; flex-direction: column; line-height: 1.2; }
.combo-price s { color: var(--muted); font-size: .9rem; }
.combo-price strong { font-family: var(--f-title); font-size: 1.6rem; color: var(--azul); }
.combo-price small { color: var(--muted); font-size: .8rem; }

.combo-box { border: 2px solid var(--azul); background: var(--azul-50); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; }
.combo-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-title); color: var(--azul); }
.combo-envio-inline { background: var(--hogar); color: var(--white); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 600; }
.combo-box .combo-incl { margin-bottom: 6px; }
.combo-box-ahorro { margin: 0; font-size: .92rem; }

/* Panel: formulario de combos */
.combo-row { display: grid; grid-template-columns: 1fr 90px; gap: 8px; margin-bottom: 8px; }
.combo-row select, .combo-row input { width: 100%; }
.combo-ref { display: flex; flex-direction: column; background: var(--azul-50); border-radius: 10px; padding: 12px 14px; }
.combo-ref strong { font-family: var(--f-title); font-size: 1.5rem; color: var(--azul); }
.combo-ahorro { margin-top: 6px; font-size: .9rem; font-weight: 600; border-radius: 8px; padding: 6px 10px; }
.combo-ahorro.is-ok { background: #E0F4F3; color: #0F7D78; }
.combo-ahorro.is-warn { background: #FBEFE2; color: #9A5A12; }
@media (max-width: 860px) { .combo-form > .grid { grid-template-columns: 1fr !important; } }
