@import url('/fonts/montserrat/montserrat.css');

/* ═══════════════════════════════════════════════════════════════
   Rocío — skincare con test de piel y pedido por WhatsApp
   Estilo 2026 «calmo y táctil»: fondo salvia, tinta verde bosque, líneas de 1 px,
   radios pequeños, títulos grandes en peso regular y etiquetas en versalitas.
   Re-tematizar = cambiar los tokens de :root. Los iconos de interfaz (.i-*) se
   generan al final del archivo (build.py).
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #F2F4EE;
  --surface: #FFFFFF;
  --ink: #1E2B24;
  --ink-2: #34423A;
  --muted: #56645B;
  --line: #D6DDD2;
  --line-2: #BCC7B7;
  --tint: #E6EBE1;
  --sage: #C9D6C2;
  --blush: #F4E3DB;
  --clay: #A4472F;       /* ofertas y acentos: texto blanco 6,9:1 */
  --clay-2: #8C3B26;
  --ok: #2F6B45;
  --wa: #0E7A43;         /* verde WhatsApp oscuro: blanco 5,4:1 */
  --wa-2: #0B6437;
  --star: #9A6A12;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --shadow: 0 1px 2px rgba(30, 43, 36, .05), 0 16px 36px -22px rgba(30, 43, 36, .35);
  --wrap: 1200px;
}

* { font-family: 'Montserrat', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.vt-lock, html.vt-lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 28px; } }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.num, .qo-price, .pd-now, .stat-n, .step-n { font-variant-numeric: tabular-nums; }

/* ─── Iconos de interfaz (máscaras CSS) ─── */
.i { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ─── Botones (≥ 44 px): rectángulos con radio pequeño, no píldoras ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 1px solid transparent; font-size: .92rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C3D33; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .i-arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }

/* ─── Cinta y cabecera ─── */
.ribbon { background: var(--ink); color: #EEF2EA; font-size: .82rem; font-weight: 600; }
.ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; min-height: 40px; padding: 4px 16px; text-align: center; }
@media (max-width: 599px) { .ribbon-link { display: none !important; } } /* en el celular el test está en la barra de abajo */
.ribbon-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--sage); text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 60; background: rgba(242, 244, 238, .92); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: 18px; width: min(var(--wrap), 100%); margin-inline: auto; padding: 8px 16px; min-height: 66px; }
@media (min-width: 700px) { .header-inner { padding-inline: 28px; } }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.main-menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.main-menu a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-menu + .header-actions { margin-left: 0; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .i { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .76rem; font-weight: 800; line-height: 20px; text-align: center; }
.cart-count.has-items { background: var(--clay); }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--ink); background: transparent; border-radius: var(--r); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-menu { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .35); }
  .main-menu.menu-open { display: flex; }
  .main-menu a { min-height: 50px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
}

/* ─── Secciones ─── */
section[id] { scroll-margin-top: 72px; }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.sec-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sec-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.sec-lead { font-size: 1.04rem; color: var(--ink-2); max-width: 60ch; }
.stars { --r: 5; position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; }
.stars::before { content: '★★★★★'; background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), #CCD3C8 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── Hero editorial ─── */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 28px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero-title { font-size: clamp(2.9rem, 9vw, 6.4rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.hero-lead { max-width: 34em; font-size: 1.08rem; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-skin { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-skin-q { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-skin-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-pick { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s; }
.skin-pick:hover { border-color: var(--ink); background: var(--tint); }
.hero-photo { position: relative; margin: 0; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--sage); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-note { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; max-width: 320px; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .95); border: 1px solid rgba(30, 43, 36, .08); }
.hero-note-1 { font-weight: 700; font-size: .95rem; }
.hero-note-2 { font-size: .82rem; color: var(--muted); }
@media (min-width: 940px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; min-height: min(680px, calc(100vh - 150px)); }
  .hero-photo { min-height: 0; }
}

/* ─── Beneficios: una franja con divisiones de 1 px ─── */
.benefits { padding: 0 0 8px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); justify-content: center; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); }
.benefit-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--ink); }
.benefit-title { font-weight: 700; font-size: .94rem; line-height: 1.3; }
.benefit-text { font-size: .84rem; color: var(--muted); }

/* ─── Test de piel ─── */
.quiz-grid { display: grid; gap: 28px; }
.quiz-intro { display: grid; gap: 20px; align-content: start; }
.quiz-intro .sec-head { margin-bottom: 0; }
.quiz-off { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 16px; border-radius: var(--r); background: var(--blush); font-size: .92rem; font-weight: 600; color: var(--clay-2); }
.quiz-off-n { font-weight: 800; }
.quiz-photo { position: relative; margin: 0; display: none; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.quiz-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.quiz-card { display: grid; gap: 0; border: 1px solid var(--ink); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.quiz-form { display: grid; gap: 22px; padding: 22px 18px; }
.quiz-q legend { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.quiz-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; font-size: .85rem; font-weight: 700; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qopt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: .92rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
.qopt input { position: absolute; opacity: 0; pointer-events: none; }
.qopt:hover { border-color: var(--ink); }
.qopt:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.qopt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.quiz-result { display: grid; gap: 16px; padding: 20px 18px 22px; border-top: 1px solid var(--line); background: #F8FAF5; }
.quiz-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.quiz-empty svg { flex: none; color: var(--ok); }
.quiz-empty-text { font-size: .95rem; }
.quiz-out { display: grid; gap: 12px; }
.qo-title { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.qo-steps { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.qo-step { display: grid; grid-template-columns: 26px 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.qo-step:first-child { border-top: 0; }
.qo-n { font-size: .85rem; font-weight: 700; color: var(--muted); text-align: center; }
.qo-step img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--r-sm); background: var(--tint); }
.qo-info { display: grid; gap: 0; min-width: 0; }
.qo-cat { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.qo-name { justify-self: start; min-height: 32px; padding: 0; border: 0; background: none; font-size: .96rem; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; cursor: pointer; position: relative; }
.qo-name::after { content: ''; position: absolute; inset: -6px 0; } /* objetivo táctil de 44 px */
.qo-name:hover { text-decoration-color: var(--ink); }
.qo-why { font-size: .8rem; color: var(--muted); }
.qo-price { font-weight: 700; font-size: .95rem; }
.qo-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 12px 4px 0; border-top: 1px solid var(--ink); }
.qo-total-l { font-weight: 600; }
.qo-total-v { font-size: 1.3rem; }
.qo-total-v s { font-size: .95rem; color: var(--muted); }
.qo-total-v strong { font-weight: 800; color: var(--clay); }
.quiz-actions { display: grid; gap: 10px; }
.quiz-fine { font-size: .8rem; color: var(--muted); }
/* En el editor, los textos del resultado siempre se ven para poder editarlos */
.quiz-actions.is-empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .quiz-actions.is-empty { display: grid; opacity: .7; } /* clase, no [hidden]: ver .checkout */
@media (max-width: 420px) { .qo-step { grid-template-columns: 20px 48px 1fr; } .qo-step img { width: 48px; height: 60px; } .qo-price { grid-column: 3; } }
@media (min-width: 940px) {
  .quiz-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
  .quiz-photo { display: block; }
  .quiz-form { padding: 30px 30px 26px; }
  .quiz-result { padding: 24px 30px 28px; }
}

/* ─── Rutina en 4 pasos (categorías) ─── */
.steps-sec { padding-top: 24px; }
/* auto-fill: con 1–2 pasos las tarjetas no se estiran (ver .products) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; counter-reset: stepnum; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } }
.cat-tile { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-decoration: none; counter-increment: stepnum; transition: border-color .2s; }
.cat-tile:hover { border-color: var(--ink); }
.cat-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover .cat-img img { transform: scale(1.04); }
.cat-text { display: grid; gap: 2px; padding: 14px 52px 16px 14px; }
.cat-text::before { content: '0' counter(stepnum); font-size: .76rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.cat-name { font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; }
.cat-sub { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.cat-tile > .i-arrow { position: absolute; right: 14px; bottom: 16px; width: 20px; height: 20px; }

/* ─── Tienda: herramientas y chips ─── */
.shop { padding-top: 48px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.shop-head .sec-head { margin-bottom: 0; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 320px; justify-content: flex-end; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 380px; }
.search .i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 10px 14px 10px 42px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: .86rem; font-weight: 600; color: var(--muted); }
.sort select { min-height: 44px; border: 0; background: transparent; font-weight: 600; color: var(--ink); cursor: pointer; font-size: .92rem; }
.filters { display: grid; gap: 8px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-l { min-width: 44px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip-grid, .skin-grid, .rev-skin-grid { display: contents; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; transition: background-color .2s, border-color .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip-fav .i { width: 16px; height: 16px; }
.chip-fav:has(input:checked) { background: var(--clay); border-color: var(--clay); }
.shop-count { margin: 6px 0 16px; font-size: .86rem; font-weight: 600; color: var(--muted); }

/* ─── Tarjeta de producto ─── */
/* auto-fill (no auto-fit): 1, 2 o 3 productos (un filtro con pocos resultados) mantienen el tamaño */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; } }
.products > .tm-add-btn { order: 9999; }
.product { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .25s; }
.product:hover { border-color: var(--ink); }
.pd-media { position: relative; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; cursor: pointer; }
.pd-gallery { position: relative; height: 100%; }
.pd-shot { position: relative; margin: 0; height: 100%; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; }
.product:not(.is-open) .pd-shots { position: absolute; inset: 0; pointer-events: none; }
.product:not(.is-open) .pd-shots .pd-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.product:not(.is-open) .pd-shots .pd-shot ~ .pd-shot { display: none; }
@media (hover: hover) { .product:not(.is-open):hover .pd-shots .pd-shot:first-child { opacity: 1; } }
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-shots { display: none; } /* en el editor: clic en la foto = cambiarla */
.pd-badge { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 70px); padding: 4px 9px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; border: 1px solid var(--line); }
.pd-badge:empty { display: none; }
.pd-badge.is-sale { background: var(--clay); border-color: var(--clay); color: #fff; }
.pd-badge.is-hot { background: var(--ink); border-color: var(--ink); color: #fff; }
.pd-badge.is-new { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.pd-fav { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; transition: transform .15s; }
.pd-fav:active { transform: scale(.9); }
.pd-fav[aria-pressed="true"] { color: var(--clay); }
.pd-fav[aria-pressed="true"] .i { --i: var(--i-heart-on); }
.pd-open { position: absolute; left: 50%; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.pd-open .i { width: 16px; height: 16px; }
@media (hover: hover) {
  .product:not(.is-open) .pd-open { opacity: 0; transform: translate(-50%, 8px); }
  .product:not(.is-open):hover .pd-open, .product:not(.is-open) .pd-open:focus-visible { opacity: 1; transform: translate(-50%, 0); }
}
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-open { opacity: 1; transform: translate(-50%, 0); }
.pd-info { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 12px 12px 14px; }
@media (min-width: 700px) { .pd-info { padding: 16px 18px 18px; } }
.pd-cat { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.pd-name { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.28; cursor: pointer; }
.pd-skin { display: flex; align-items: flex-start; gap: 6px; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.pd-skin::before { content: ''; flex: none; width: 13px; height: 13px; margin-top: 2px; background: var(--ok); -webkit-mask: var(--i-drop) center / contain no-repeat; mask: var(--i-drop) center / contain no-repeat; }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.pd-rating .stars { font-size: .82rem; letter-spacing: 1px; }
.rt-c { color: var(--muted); font-weight: 600; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
.pd-now { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.pd-was { font-size: .88rem; font-weight: 600; color: var(--muted); }
.pd-was:empty { display: none; }
.pd-price:has(.pd-was:not(:empty)) .pd-now { color: var(--clay); }
.pd-short { font-size: .88rem; color: var(--ink-2); display: none; }
@media (min-width: 700px) { .product:not(.is-open) .pd-short { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.pd-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn-buy { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; font-size: .86rem; gap: 7px; }
.btn-buy .i { width: 18px; height: 18px; }
@media (max-width: 480px) { .btn-buy { padding: 10px 8px; font-size: .84rem; } .btn-buy .i { display: none; } }
.btn-add-quick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn-add-quick:hover { border-color: var(--ink); }
.product.is-open .pd-card-actions { display: none; }
.product:not(.is-open) .pd-more, .product:not(.is-open) .pd-bar, .product:not(.is-open) .pd-nav { display: none; }
.shop-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.shop-empty-title { font-weight: 700; font-size: 1.1rem; }

/* ─── Inicio vs. página «Catálogo» (/#catalogo; la clase la pone script.js en <html>) ─── */
html:not(.vt-catalog) .only-catalog, html.vt-catalog .only-home { display: none; }
html.vt-catalog main > section:not(#catalogo) { display: none; }
html.vt-catalog .shop { padding-top: 28px; min-height: 70vh; }
html:not(.vt-catalog) .products > .product:nth-child(n+9):not(.is-open) { display: none; }
.shop-more { display: flex; justify-content: center; margin-top: 28px; }
.all-count { font-weight: 600; opacity: .8; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
/* Dentro del editor: en el inicio se ven también los productos «solo catálogo», marcados */
html:not(.vt-catalog) body:not(.tm-preview-mode) #tm-template-container .products > .product:nth-child(n+9):not(.is-open) { display: flex; opacity: .55; }
html:not(.vt-catalog) body:not(.tm-preview-mode) #tm-template-container .products > .product:nth-child(n+9)::before { content: 'Solo en el catálogo completo'; position: absolute; left: 10px; right: 10px; top: 60px; z-index: 3; padding: 8px 10px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; text-align: center; pointer-events: none; }
.vt-pages { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-pages { position: fixed; left: 50%; bottom: 20px; z-index: 88; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transform: translateX(-50%); }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .vt-pages { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.vt-pages-label { padding: 0 8px 0 12px; font-size: .78rem; font-weight: 600; color: #D5DDD0; }
.vt-pages button { min-height: 40px; padding: 6px 16px; border: 0; border-radius: var(--r); background: transparent; color: #fff; font-size: .85rem; font-weight: 700; cursor: pointer; }
.vt-pages button[aria-pressed="true"] { background: var(--sage); color: var(--ink); }
#tm-template-container .pd-cat:focus::after { content: ' ← escribe un paso del catálogo'; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--clay); }

/* ─── Detalle de producto: la misma tarjeta, abierta como panel ─── */
.pd-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(30, 43, 36, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .25s; }
.product.is-open { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; top: auto; display: block; max-height: min(92dvh, calc(100dvh - var(--tm-top, 0px) - 12px)); border-radius: 14px 14px 0 0; border: 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1); }
.pd-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; height: 0; }
.pd-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 10px 10px 0 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); cursor: pointer; }
.product.is-open .pd-media { aspect-ratio: auto; height: min(96vw, 50dvh); cursor: default; }
.product.is-open .pd-fav { right: 62px; top: 10px; }
.product.is-open .pd-open { display: none; }
.product.is-open .pd-gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product.is-open .pd-gallery::-webkit-scrollbar { display: none; }
.product.is-open .pd-shots { display: contents; }
.product.is-open .pd-shot { flex: 0 0 100%; scroll-snap-align: start; }
.product.is-open .pd-shots > .tm-add-btn { flex: 0 0 auto; align-self: center; margin: 0 16px; }
.pd-nav { position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }
.product.is-open .pd-info { gap: 10px; padding: 20px 16px 0; }
.product.is-open .pd-name { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; cursor: auto; }
.product.is-open .pd-skin { font-size: .9rem; }
.product.is-open .pd-now { font-size: 1.55rem; }
.product.is-open .pd-short { display: block; font-size: 1rem; }
.pd-more { display: grid; gap: 16px; padding-bottom: 20px; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--ok); }
.pd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-stock.is-low { color: var(--clay); }
.pd-meta { display: grid; gap: 2px; padding: 12px 14px; border-left: 2px solid var(--ok); background: var(--bg); }
.pd-meta-k { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pd-need { font-size: .95rem; font-weight: 600; }
.pd-vars { display: grid; gap: 14px; }
.pd-var legend { margin-bottom: 8px; font-size: .86rem; font-weight: 700; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: .88rem; font-weight: 600; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pd-buybox { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.pd-buybox .pd-buy, .pd-buybox .pd-add { grid-column: 1 / -1; }
.pd-line-total { justify-self: end; font-size: .92rem; font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.qty-btn, .cart-q { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 600; cursor: pointer; border-radius: var(--r); }
.qty-btn:hover, .cart-q:hover { background: var(--tint); }
.qty-n { width: 36px; border: 0; background: transparent; text-align: center; font-weight: 700; }
.pd-perks { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--tint); }
.pd-perks:empty { display: none; }
.pd-perks li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; font-size: .86rem; line-height: 1.35; }
.pd-perks li::before { content: '✓'; grid-row: span 2; font-weight: 800; color: var(--ok); }
.pd-perks span { color: var(--muted); }
.pd-acc { border-top: 1px solid var(--line); }
.pd-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pd-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.pd-acc[open] summary::after { transform: rotate(45deg); }
.pd-long { padding-bottom: 16px; color: var(--ink-2); font-size: .95rem; }
.pd-care { padding-top: 0; font-size: .88rem; color: var(--muted); }
.pd-ings { display: grid; gap: 0; padding-bottom: 14px; }
.ing { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ing:last-of-type { border-bottom: 0; }
.ing-n { font-weight: 700; font-size: .94rem; }
.ing-d { font-size: .9rem; color: var(--ink-2); }
.pd-specs { display: grid; padding-bottom: 16px; }
.spec { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.spec:last-of-type { border-bottom: 0; }
.spec-k { font-weight: 700; }
.spec-v { color: var(--ink-2); }
.pd-pair:empty { display: none; }
.pd-pair { display: grid; gap: 10px; }
.pd-pair-t { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd-pair-list { display: grid; gap: 8px; }
.pair-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; }
.pair-item:hover { border-color: var(--ink); }
.pair-item img { width: 48px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
.pair-txt { display: grid; min-width: 0; }
.pair-step { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.pair-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.pair-price { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.pd-ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--wa); }
@media (min-width: 900px) {
  .product.is-open { inset: var(--tm-top, 0px) 0 0 0; margin: auto; width: min(1080px, calc(100vw - 48px)); height: min(780px, calc(100dvh - var(--tm-top, 0px) - 64px)); max-height: none; border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
  .product.is-open .pd-bar { position: absolute; top: 0; right: 0; height: auto; }
  .product.is-open .pd-media { height: 100%; }
  .product.is-open .pd-fav { top: 14px; right: 14px; }
  .product.is-open .pd-info { overflow-y: auto; overscroll-behavior: contain; padding: 36px 36px 0; }
  .pd-buybox { margin: 0 -36px; padding: 14px 36px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ─── Ingredientes ─── */
.ings { background: var(--surface); border-block: 1px solid var(--line); }
.ings-head { display: grid; gap: 24px; margin-bottom: 36px; }
.ings-head .sec-head { margin-bottom: 0; align-self: end; }
.ings-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; }
.ings-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .ings-head { grid-template-columns: 1fr 1fr; gap: 56px; } .ings-photo { aspect-ratio: 16 / 8; } }
.ing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); justify-content: center; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ing-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 18px; background: var(--surface); }
.ing-kind { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); }
.ing-name { font-size: 1.45rem; font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.ing-what { color: var(--ink-2); font-size: .95rem; }
.ing-foot { display: grid; gap: 0; margin-top: auto; padding-top: 10px; }
.ing-for-l { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ing-for { font-size: .9rem; font-weight: 600; }
.ing-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 700; text-decoration: none; }
.ing-link .i { width: 18px; height: 18px; transition: transform .2s; }
.ing-link:hover .i { transform: translateX(3px); }

/* ─── Cómo comprar ─── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); justify-content: center; gap: 12px; }
.step { display: grid; gap: 10px; align-content: start; padding: 24px 22px; border-top: 1px solid var(--ink); }
.step-n { font-size: 2.4rem; font-weight: 400; letter-spacing: -.04em; line-height: 1; color: var(--ok); }
.step-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.step-text { color: var(--ink-2); font-size: .95rem; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.pay-label { font-weight: 700; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }

/* ─── Opiniones ─── */
.rev-layout { display: grid; gap: 20px; }
.rev-summary { align-self: start; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.rev-score { display: flex; align-items: center; gap: 12px; }
.rev-score-n { font-size: 3.4rem; font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.rev-summary .stars { font-size: 1.2rem; }
.rev-summary .stars::before { background: linear-gradient(90deg, #E7C97A calc(var(--r) / 5 * 100%), rgba(255, 255, 255, .25) 0); -webkit-background-clip: text; background-clip: text; }
.rev-count { font-size: .88rem; color: #D5DDD0; margin-bottom: 8px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; }
.bar-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sage); transition: width .8s; }
.bar-pct { text-align: right; color: #D5DDD0; }
.rev-main { display: grid; gap: 12px; align-content: start; }
.rev-shown { min-height: 1.4em; font-size: .86rem; font-weight: 600; color: var(--muted); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); justify-content: center; gap: 12px; }
.review { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rev-verified { font-size: .76rem; font-weight: 700; color: var(--ok); }
.rev-skin { justify-self: start; align-self: flex-start; padding: 3px 9px; border-radius: var(--r-sm); background: var(--tint); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.rev-text { font-size: .98rem; }
.rev-meta { display: grid; margin-top: auto; }
.rev-name { font-weight: 700; }
.rev-place { font-size: .84rem; color: var(--muted); }
.rev-reply { padding: 12px 14px; border-left: 2px solid var(--ok); background: var(--bg); font-size: .88rem; }
.rev-reply-t { font-weight: 700; margin-bottom: 2px; }
.rev-empty { padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); text-align: center; }
@media (min-width: 980px) { .rev-layout { grid-template-columns: 300px 1fr; gap: 28px; } }

/* ─── Nosotros ─── */
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-img { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 640px; border-radius: var(--r-lg); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-text { display: grid; gap: 16px; }
.about-p { color: var(--ink-2); font-size: 1.02rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-item { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: .86rem; font-weight: 600; }
.trust-item .i { width: 16px; height: 16px; color: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 0; margin-top: 8px; border-top: 1px solid var(--ink); }
.stats li { display: grid; gap: 2px; align-content: start; padding: 16px 12px 0 0; }
.stat-n { font-size: 1.9rem; font-weight: 400; letter-spacing: -.04em; }
.stat-l { font-size: .84rem; color: var(--muted); }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

/* ─── Envíos ─── */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); justify-content: center; gap: 12px; }
.ship-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ship-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sage); }
.ship-title { font-size: 1.08rem; font-weight: 700; }
.ship-meta { display: grid; gap: 2px; }
.ship-time { font-weight: 600; }
.ship-price { font-weight: 700; color: var(--ok); }
.ship-text { font-size: .92rem; color: var(--ink-2); }

/* ─── FAQ (componente del editor: .faq-list > .faq-item) ─── */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.faq-item { position: relative; border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 4px; font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 4px 20px; color: var(--ink-2); max-width: 68ch; }

/* ─── Contacto ─── */
.contact { padding-top: 24px; }
.contact .wrap { display: grid; gap: 24px; align-items: center; width: min(calc(var(--wrap) - 56px), calc(100% - 32px)); padding: 36px 22px; border-radius: var(--r-lg); background: var(--sage); }
.contact-copy { display: grid; gap: 12px; }
.contact .eyebrow { color: var(--ink-2); }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact-hours { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: 1.4fr 1fr; padding: 56px; } .contact-actions { justify-items: end; } }

/* ─── Pie ─── */
.footer { margin-top: 64px; padding: 56px 0 24px; background: var(--ink); color: #E3E9DF; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 28px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-logo { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.footer-text { font-size: .92rem; color: #C9D2C4; }
.social { display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.social a:hover { background: rgba(255, 255, 255, .1); }
.footer-h { margin-bottom: 8px; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: #C9D2C4; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: #B7C1B2; }

/* ─── Pedido (panel lateral) ─── */
.drawer { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(30, 43, 36, .5); animation: fade .2s; }
.drawer-panel { display: flex; flex-direction: column; width: min(440px, 100%); height: 100%; background: var(--bg); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .6); animation: slide-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 1.4rem; font-weight: 400; letter-spacing: -.03em; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint); cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 24px; display: grid; gap: 18px; align-content: start; }
.ship-meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ship-msg { font-size: .86rem; font-weight: 600; }
.ship-track { display: block; height: 5px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.ship-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ok); transition: width .4s; }
.cart-list { display: grid; gap: 10px; }
.cart-list:empty { display: none; }
.cart-line { display: grid; grid-template-columns: 64px 1fr 32px; gap: 12px; align-items: start; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.cart-line img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
.cart-line:not(:has(img)) { grid-template-columns: 1fr 32px; }
.cart-line-info { display: grid; gap: 4px; min-width: 0; }
.cart-line-name { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.cart-line-opts { font-size: .8rem; color: var(--muted); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cart-line-price { font-weight: 700; }
.qty-sm .cart-q { width: 40px; height: 40px; }
.qty-v { min-width: 22px; text-align: center; font-weight: 700; }
.cart-rm { position: relative; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.cart-rm::before { content: ''; position: absolute; inset: 7px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
.cart-rm::after { content: ''; position: absolute; inset: -6px; }
.cart-rm:hover { color: var(--clay); }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 12px; text-align: center; }
.cart-empty > .i { width: 44px; height: 44px; color: var(--muted); }
.cart-empty-title { font-weight: 700; font-size: 1.1rem; }
/* Pedido vacío: sin formulario. En el editor se ve igual, para editar sus textos. Es una clase y no
   [hidden] porque en el editor el reset de Tailwind (`[hidden] { display: none !important }` en
   @layer base) gana a cualquier regla de la plantilla, aunque lleve !important. */
.checkout.is-empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .checkout.is-empty { display: grid; opacity: .75; }
.checkout { display: grid; gap: 14px; padding-top: 4px; }
.co-title { font-weight: 800; font-size: 1.02rem; }
.co-samples { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--blush); }
.co-samples legend { float: left; width: 100%; margin-bottom: 10px; font-size: .9rem; font-weight: 800; color: var(--clay-2); }
.sample-grid { display: flex; flex-wrap: wrap; gap: 6px; clear: both; }
.sample { font-size: .84rem; }
.sample-msg { margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--clay-2); }
.sample-msg:empty { display: none; }
.field { display: grid; gap: 6px; }
.field label, .co-group legend { font-size: .84rem; font-weight: 700; }
.co-group legend { margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 1rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--tint); }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ink); }
.pay-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-opts .opt { font-size: .84rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.drawer-foot { display: grid; gap: 10px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.totals { display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.totals dt { color: var(--muted); font-weight: 600; }
.totals dd { font-weight: 700; }
.totals .total-row { margin-top: 4px; font-size: 1.1rem; }
.totals .total-row dt { color: var(--ink); font-weight: 800; }
.totals .total-row dd { font-weight: 800; }
.ship-rule { font-size: .8rem; color: var(--muted); }
.cart-fine { font-size: .78rem; color: var(--muted); text-align: center; }

/* ─── Aviso, barra móvil y botón flotante ─── */
.vt-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.vt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.vt-lock .vt-toast { top: calc(var(--tm-top, 0px) + 16px); bottom: auto; }
.vt-toast:empty { display: none; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mbar a, .mbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: transparent; color: var(--ink); font-size: .76rem; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: var(--r); }
.mbar .i { width: 22px; height: 22px; }
.mbar a[data-whatsapp-btn] { color: var(--wa); }
.mbar .cart-count { top: 2px; right: calc(50% - 26px); }
body { padding-bottom: 72px; }
.wa-fab { display: none; }
@media (min-width: 769px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
  .vt-toast { bottom: 28px; }
  .wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(14, 122, 67, .6); transition: transform .2s; }
  .wa-fab:hover { transform: scale(1.06); }
  .wa-fab .i { width: 28px; height: 28px; }
  html.vt-lock .wa-fab { display: none; }
}

/* ─── Movimiento: funcional y discreto, solo si el usuario no pidió reducirlo ─── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cat-tile, .ing-card, .step, .review, .ship-card, .faq-item { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
  .qo-step { animation: rise .35s ease both; }
  .qo-step:nth-child(2) { animation-delay: .06s; }
  .qo-step:nth-child(3) { animation-delay: .12s; }
  .qo-step:nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ─── Información legal (ventanas que se abren desde el pie) ─── */
.info-modal { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 95; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; background: rgba(20, 28, 24, .55); overflow-y: auto; overscroll-behavior: contain; }
.info-modal[hidden] { display: none; }
.info-panel { position: relative; width: min(720px, 100%); margin: auto 0; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { .info-panel { padding: 40px 44px 36px; } }
.info-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); cursor: pointer; }
.info-close:hover { background: var(--line); }
.info-eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-title { margin: 6px 48px 4px 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.info-updated { font-size: .82rem; color: var(--muted); }
.info-body { display: grid; gap: 10px; margin-top: 22px; }
.info-h { margin-top: 10px; font-size: 1rem; font-weight: 700; }
.info-p { font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.info-business { padding: 12px 14px; border-radius: var(--r); background: var(--tint); font-size: .9rem; font-weight: 700; }
.info-note { font-size: .85rem; line-height: 1.55; color: var(--muted); }
.claim-form { display: grid; gap: 14px; margin: 8px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.claim-kind { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; border: 0; }
.claim-kind legend { margin-bottom: 4px; font-size: .84rem; font-weight: 700; }
.claim-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.claim-error { font-size: .88rem; font-weight: 700; color: var(--clay); }
.claim-form .field.is-bad input, .claim-form .field.is-bad textarea { border-color: var(--clay); }
/* «Editar» junto a cada enlace legal: solo en el editor */
.vt-open-info { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-open-info { display: inline-flex; align-items: center; min-height: 32px; margin-left: 8px; padding: 2px 10px; border: 1.5px dashed #60eba0; border-radius: 999px; background: transparent; color: #60eba0; font: 700 .75rem/1 system-ui, sans-serif; cursor: pointer; vertical-align: middle; }
/* ═══ Kit ecommerce — docs/template-kit/ecommerce/ecommerce.css ═══
   Lo agrega el generador al styles.css de la plantilla cuando ECOMMERCE = True.
   Envío gratis según la decisión del dueño (ecommerce.js › applyShipMode → <html data-free-ship>):
   sin el atributo (la página antes de su script) se ve el modo «desde un monto». */
.fs-none, .fs-always { display: none; }
[data-free-ship="none"] .fs-none, [data-free-ship="always"] .fs-always { display: inline; }
[data-free-ship="none"] .fs-free, [data-free-ship="none"] .fs-min { display: none; }
[data-free-ship="always"] .fs-min, [data-free-ship="always"] .fs-paid { display: none; }
/* Medidor «te faltan S/ X para el envío gratis»: se oculta cuando no hay envío gratis */
.ship-track[hidden] { display: none; }

/* ─── Iconos de interfaz: generados por build.py (máscaras CSS, no son <svg> editables) ─── */
:root {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  --i-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  --i-bag-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2M12 11.5v6M9 14.5h6'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-heart-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='black' d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --i-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --i-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11z'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.6a8.5 8.5 0 0 1-12.6 7.5L3.5 20.5l1.5-4.2a8.5 8.5 0 1 1 15.5-4.7z'/%3E%3Cpath d='M9 8.6c.3 2.9 2.6 5.3 5.6 5.8l1-1.3-1.8-.9-.8.8c-1-.4-1.9-1.3-2.3-2.3l.8-.8-.9-1.8z'/%3E%3C/svg%3E");
}
.i-search { --i: var(--i-search); }
.i-bag { --i: var(--i-bag); }
.i-bag-plus { --i: var(--i-bag-plus); }
.i-heart { --i: var(--i-heart); }
.i-heart-on { --i: var(--i-heart-on); }
.i-close { --i: var(--i-close); }
.i-chev-l { --i: var(--i-chev-l); }
.i-chev-r { --i: var(--i-chev-r); }
.i-eye { --i: var(--i-eye); }
.i-arrow { --i: var(--i-arrow); }
.i-home { --i: var(--i-home); }
.i-grid { --i: var(--i-grid); }
.i-drop { --i: var(--i-drop); }
.i-check { --i: var(--i-check); }
.i-wa { --i: var(--i-wa); }
