/* FERVEXA v2 — según la maqueta de Nico: fondo crema cálido, serif negra apretada, un solo acento ámbar */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "TikTok Sans";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-display: swap;
  src: url("../fonts/tiktok-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+20AC;
}

:root {
  --bg: #fbf8f3;
  --bg-2: #f5efe6;
  --panel: #f3ece2;
  --card: #fffdf9;
  --ink: #141210;
  --text: #3d3833;
  --muted: #6e665d;
  --line: #e4dbcf;
  --accent: #f59e0b;
  --accent-hover: #f8ad2c;
  --accent-deep: #9a5b00;
  --accent-ink: #161005;
  --wood: #b07a45;
  --wood-dark: #87572b;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --m: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 71px;

  --shadow-sm: 0 1px 2px rgb(60 40 10 / .06), 0 2px 8px rgb(60 40 10 / .05);
  --shadow: 0 2px 6px rgb(60 40 10 / .06), 0 12px 32px rgb(60 40 10 / .08);
  --shadow-lg: 0 6px 16px rgb(60 40 10 / .08), 0 24px 60px rgb(60 40 10 / .14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg-2); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #fde3b0; color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 60; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--m) * 2); margin: 0 auto; padding-inline: var(--m); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.display, .h2, .h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.4rem); line-height: .98; font-variation-settings: "opsz" 72; }
.display .ln { display: block; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.04; font-variation-settings: "opsz" 60; }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); color: var(--text); max-width: 34ch; line-height: 1.5; }
.sub { color: var(--text); max-width: 42ch; }
.fine { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.center { text-align: center; }
.center .h2 { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn .ico { transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.full { width: 100%; grid-column: 1 / -1; }
@media (hover: hover) {
  .btn:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgb(245 158 11 / .28); }
  .btn:hover .ico { transform: translateX(3px); }
  .btn-line:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
}
.round {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}
.round:active { transform: scale(.92); }

.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line); font-size: .875rem; font-weight: 500;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2.5px solid var(--accent-deep); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: var(--nav-h); background: rgb(251 248 243 / 0); border-bottom: 1px solid transparent; transition: background-color 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease; }
.nav.scrolled, .nav.open { background: rgb(245 239 230 / .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom-color: var(--line); }
.nav-in { height: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(20px, 6.5vw, 128px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: "TikTok Sans", var(--sans); font-weight: 850; font-stretch: 130%; font-variation-settings: "wdth" 130; font-size: 1.3rem; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
@media (hover: hover) { .nav-links a:hover::after { transform: scaleX(1); } }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 10px; place-items: center; }
.menu-btn .ico { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--m) 16px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 200ms ease, transform 240ms var(--ease-out);
  }
  .nav-links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- hero: a pantalla completa, la foto de fondo, el texto encima ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h);
  display: flex; align-items: center;
  background: #2a1d12;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
/* the photo's own blurred background fills the whole width */
.hero-blur { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(34px) saturate(1.1) brightness(1.02); }
/* the real photo sits on the right, its edges fading into the blur */
.hero-photo img {
  position: absolute; right: 0; top: calc(50% + var(--nav-h) / 2); translate: 0 -50%;
  width: min(62vw, calc((100svh - var(--nav-h)) * 1.5)); height: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 20%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
/* warm cream veil from the left so the text reads over the photo */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg-2) 0, rgb(245 239 230 / 0) 110px),
    linear-gradient(180deg, rgb(251 248 243 / .9) 0, rgb(251 248 243 / 0) 150px),
    linear-gradient(90deg, rgb(251 248 243 / .98) 0%, rgb(251 248 243 / .93) 26%, rgb(251 248 243 / .62) 40%, rgb(251 248 243 / 0) 56%);
}
.hero-inner { width: 100%; padding: clamp(32px, 5vh, 72px) clamp(20px, 6.5vw, 128px); }
.hero-copy { max-width: min(46vw, 860px); display: flex; flex-direction: column; gap: clamp(18px, 1.6vw, 28px); }
.hero-copy .eyebrow { margin-bottom: 0; font-size: clamp(.8125rem, .7rem + .25vw, .95rem); }
.hero .display { font-size: clamp(2.6rem, .7rem + 4.7vw, 6.6rem); }
.hero .lead { font-size: clamp(1.05rem, .78rem + .6vw, 1.45rem); max-width: 34ch; color: var(--text); }
.hero .btn { min-height: clamp(52px, 2.8vw + 12px, 62px); padding-inline: clamp(26px, 1.8vw, 34px); font-size: clamp(.95rem, .85rem + .2vw, 1.075rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.perks { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 2.4vw, 40px); margin-top: clamp(8px, 1.4vw, 24px); }
.perks li { display: flex; align-items: center; gap: 10px; font-size: clamp(.8125rem, .75rem + .2vw, .95rem); line-height: 1.3; color: var(--text); }
.perks .ico { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 860px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero-inner { padding-top: 24px; padding-bottom: calc(66vw + 8px); }
  .hero-copy { max-width: none; }
  .hero-photo img {
    top: auto; bottom: 0; translate: none; width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }
  .hero-media::after {
    background: linear-gradient(180deg, rgb(251 248 243 / .98) 0%, rgb(251 248 243 / .96) calc(100% - 66vw - 40px), rgb(251 248 243 / 0) calc(100% - 66vw + 30px));
  }
}

/* stands drawn in CSS: real card on a wooden base (product cards, until Nico's photos) */
.stand { position: absolute; display: block; }
.stand img { position: relative; z-index: 1; width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.stand .base { position: absolute; z-index: 2; left: -9%; right: -9%; bottom: -5%; height: 13%; border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, #c58d55, var(--wood) 45%, var(--wood-dark)); box-shadow: 0 14px 24px rgb(60 35 10 / .3); }
.stand .base::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22%; height: 18%; border-radius: 3px; background: rgb(60 35 10 / .35); }

/* ---------- how: grande, una pantalla de alto ---------- */
.how {
  display: flex; align-items: center;
  padding-block: clamp(64px, 9vh, 120px) 0;
}
.wrap-wide { max-width: calc(1560px + var(--m) * 2); }
.how .sec-head { margin-bottom: clamp(40px, 6vh, 88px); }
.how .eyebrow { font-size: clamp(.8125rem, .7rem + .3vw, 1rem); }
.h2-xl { font-size: clamp(2.5rem, .9rem + 4vw, 5.6rem); line-height: 1; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: clamp(8px, 1.5vw, 32px); }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(4px, 1vw, 20px); }
.num {
  width: clamp(52px, 2.4rem + 1.6vw, 80px); height: clamp(52px, 2.4rem + 1.6vw, 80px); border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: clamp(1.2rem, .9rem + .7vw, 1.9rem); font-variant-numeric: tabular-nums;
}
.step-art { height: clamp(150px, 7rem + 8vw, 260px); margin: clamp(20px, 2.6vh, 36px) 0 clamp(18px, 2.4vh, 32px); display: grid; grid-template-rows: 100%; place-items: center; }
.step-art picture { display: block; height: 100%; }
.step-art svg, .step-art img { height: 100%; width: auto; color: var(--ink); overflow: visible; }
.step h3 { font-family: var(--serif); font-size: clamp(1.75rem, 1rem + 1.6vw, 3rem); line-height: 1.08; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; }
.step p { margin-top: clamp(10px, 1.2vh, 16px); color: var(--text); font-size: clamp(1.05rem, .78rem + .62vw, 1.5rem); line-height: 1.45; max-width: 25ch; text-wrap: pretty; }
.step-arrow { color: var(--ink); opacity: .55; padding-top: calc(clamp(52px, 2.4rem + 1.6vw, 80px) + clamp(20px, 2.6vh, 36px) + clamp(150px, 7rem + 8vw, 260px) / 2 - 20px); }
.step-arrow .ico { width: clamp(28px, 1.2rem + 1vw, 44px); height: clamp(28px, 1.2rem + 1vw, 44px); }

/* motion: steps arrive in turn, arrows glide, the review pops and sparkles */
html.js .steps [data-reveal] { transition-delay: calc(var(--i, 0) * 160ms); }
.steps .step:nth-of-type(1) { --i: 0; }
.steps .step:nth-of-type(2) { --i: 1; }
.steps .step:nth-of-type(3) { --i: 2; }
html.js .step-arrow .ico { animation: glide 2.4s var(--ease-in-out) infinite; }
html.js .step-arrow:last-child .ico, html.js .steps > li:nth-child(4) .ico { animation-delay: .3s; }
@keyframes glide { 0%, 100% { transform: translateX(-6px); opacity: .55; } 50% { transform: translateX(6px); opacity: 1; } }
html.js .art-phone .wave { opacity: .25; animation: nfc 2.4s ease-in-out infinite; }
html.js .art-phone .w2 { animation-delay: .2s; }
html.js .art-phone .w3 { animation-delay: .4s; }
@keyframes nfc { 0%, 15% { opacity: .2; } 35%, 65% { opacity: 1; } 100% { opacity: .2; } }
html.js .step-pop .art-review { transform: scale(.82) rotate(-4deg); opacity: 0; }
html.js .step-pop.in .art-review { animation: pop-in 900ms cubic-bezier(.34, 1.56, .64, 1) 260ms forwards, bob 4s ease-in-out 1.3s infinite; }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.82) rotate(-4deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(1deg); } }
.step-pop .step-art { position: relative; }
.step-pop .step-art::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%; border: 3px solid var(--accent); opacity: 0; pointer-events: none;
}
html.js .step-pop.in .step-art::after { animation: flash 1000ms var(--ease-out) 700ms; }
@keyframes flash { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.35); } }
html.js .art-bars .b { transform-box: fill-box; transform-origin: bottom; transform: scaleY(.15); transition: transform 800ms var(--ease-out); }
html.js .step.in .art-bars .b { transform: none; }
html.js .step.in .art-bars .b2 { transition-delay: 380ms; }
html.js .step.in .art-bars .b3 { transition-delay: 460ms; }
html.js .step.in .art-bars .b4 { transition-delay: 540ms; }
html.js .step.in .art-bars .b1 { transition-delay: 300ms; }
html.js .art-bars .rise path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 900ms var(--ease-out) 800ms; }
html.js .step.in .art-bars .rise path { stroke-dashoffset: 0; }

@media (max-width: 760px) {
  .how { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step-arrow { padding: 0; justify-self: center; }
  .step-arrow .ico { transform: rotate(90deg); }
  html.js .step-arrow .ico { animation: glide-down 2.4s var(--ease-in-out) infinite; }
  @keyframes glide-down { 0%, 100% { transform: rotate(90deg) translateX(-5px); opacity: .55; } 50% { transform: rotate(90deg) translateX(5px); opacity: 1; } }
  .step-art { height: 170px; }
}

/* ---------- products: 6 productos, 2 filas de 3, a lo ancho ---------- */
.products { padding-block: clamp(38px, 4.6vw, 90px) 0; }
.wrap-xl { max-width: calc(1720px + var(--m) * 2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 36px); }
.pcard {
  background: var(--card); border-radius: clamp(14px, 1.2vw, 22px); box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.pcard-media { aspect-ratio: 1; overflow: hidden; background: #2a1d12; }
.pcard-media picture, .pcard-media img { display: block; width: 100%; height: 100%; }
.pcard-media img { object-fit: cover; transition: transform 700ms var(--ease-out); }
.pcard-body { padding: clamp(18px, 1.6vw, 30px) clamp(18px, 1.8vw, 32px) clamp(20px, 1.8vw, 32px); display: flex; flex-direction: column; gap: clamp(6px, .6vw, 10px); flex: 1; }
.pcard-body h3 { font-family: var(--serif); font-size: clamp(1.35rem, .85rem + 1vw, 2.05rem); line-height: 1.12; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
.pcard-body p { font-size: clamp(.95rem, .82rem + .3vw, 1.15rem); color: var(--text); line-height: 1.5; max-width: 40ch; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: clamp(12px, 1.2vw, 20px); }
.price { color: var(--accent-deep); font-weight: 700; font-size: clamp(1rem, .85rem + .35vw, 1.3rem); }
.pcard .round { width: clamp(42px, 1.6rem + 1.1vw, 54px); height: clamp(42px, 1.6rem + 1.1vw, 54px); }
.pcard .round .ico { width: clamp(18px, .9rem + .4vw, 22px); height: clamp(18px, .9rem + .4vw, 22px); }
.cards-note { margin-top: clamp(24px, 3vw, 40px); text-align: center; font-size: clamp(.875rem, .8rem + .2vw, 1rem); color: var(--muted); }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .pcard:hover .pcard-media img { transform: scale(1.045); }
  .round:hover { background: var(--accent-hover); }
  .pcard:hover .round .ico { transform: translateX(3px); }
}
.round .ico { transition: transform 200ms var(--ease-out); }

/* free shipping strip */
.ship-strip { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin: calc(clamp(40px, 6vh, 88px) * -.45) 0 clamp(24px, 3vw, 40px); }
.ship-line { flex: 1; height: 1px; background: var(--line); }
.ship-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(.95rem, .85rem + .3vw, 1.15rem); color: var(--ink); white-space: nowrap; }
.ship-label .ico { width: clamp(22px, 1.1rem + .4vw, 28px); height: clamp(22px, 1.1rem + .4vw, 28px); color: var(--accent-deep); }

/* price block: packs */
.deal { margin-top: auto; padding-top: clamp(14px, 1.4vw, 22px); display: flex; flex-direction: column; gap: clamp(10px, 1vw, 14px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tag.pill-ship { background: #e3eee6; color: #1f6b45; }
.pill-tag.pill-ship .ico { color: #1f6b45; }
.pill-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--panel); color: var(--ink); font-size: clamp(.78rem, .72rem + .15vw, .875rem); font-weight: 600; }
.pill-tag .ico { width: 16px; height: 16px; color: var(--accent-deep); }
.deal-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.deal-price { display: flex; flex-direction: column; gap: 2px; }
.deal-price b { font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 1.1rem + 1.4vw, 2.6rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.deal-price span { font-size: clamp(.9rem, .8rem + .2vw, 1.02rem); color: var(--text); margin-top: 4px; }
.deal-price small { font-size: clamp(.8125rem, .75rem + .15vw, .9rem); color: var(--muted); }
.deal-custom .deal-row { align-items: center; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: clamp(44px, 2rem + .8vw, 52px); padding: 0 clamp(18px, 1.4vw, 24px);
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: clamp(.9rem, .82rem + .2vw, 1rem); text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease;
}
.btn-pill .ico { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn-pill:active { transform: scale(.97); }
@media (hover: hover) {
  .btn-pill:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgb(245 158 11 / .28); }
  .pcard:hover .btn-pill .ico, .btn-pill:hover .ico { transform: translateX(3px); }
}
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ---------- results: a lo ancho, cifras grandes ---------- */
.results { padding-block: clamp(38px, 4.6vw, 90px) 0; }
.res-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 4vw, 80px); align-items: center; }
.h2-res { font-size: clamp(2.4rem, .8rem + 3.4vw, 5rem); line-height: 1.02; margin-bottom: clamp(14px, 1.4vw, 24px); }
.sub-res { font-size: clamp(1.05rem, .8rem + .6vw, 1.4rem); line-height: 1.5; max-width: 40ch; }
.stats { display: grid; grid-template-columns: auto auto; justify-content: start; gap: clamp(24px, 3vw, 56px); margin-top: clamp(28px, 3vw, 52px); }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(12px, 1vw, 18px); align-items: center; max-width: clamp(240px, 22vw, 420px); }
.stat + .stat { padding-left: clamp(24px, 3vw, 56px); border-left: 1px solid var(--line); }
.ico-lg { width: clamp(40px, 1.6rem + 2vw, 72px); height: clamp(40px, 1.6rem + 2vw, 72px); color: var(--accent); grid-row: 1; }
.stat b { font-family: var(--serif); font-size: clamp(2.8rem, 1.5rem + 3.4vw, 5.8rem); color: var(--ink); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { grid-column: 1 / -1; font-size: clamp(1rem, .8rem + .45vw, 1.3rem); color: var(--text); line-height: 1.4; margin-top: clamp(8px, .8vw, 14px); }

.growth { --tagspace: clamp(78px, 6.4vw, 124px); position: relative; align-self: stretch; min-height: 0; color: #f2b25a; margin-top: calc(.8125rem * 1.6 + 14px); }
.gbars { position: absolute; left: 2%; right: 0; bottom: 0; top: var(--tagspace); display: flex; align-items: flex-end; gap: 3.2%; }
.gbars i { flex: 1; height: 100%; border-radius: clamp(6px, .6vw, 12px) clamp(6px, .6vw, 12px) 2px 2px; transform-origin: bottom; transform: scaleY(var(--h)); background: linear-gradient(180deg, #fbd8a3, #f8e6c8); }
.gbars i:nth-child(4) { background: linear-gradient(180deg, #f8bd62, #fbd8a3); }
.gbars i:nth-child(5) { background: linear-gradient(180deg, var(--accent), #f8b13c); box-shadow: 0 10px 30px rgb(245 158 11 / .35); }
.growth-arrow { position: absolute; left: 2%; top: calc(var(--tagspace) + 4%); height: 58%; width: 76%; z-index: 2; color: #f0a94a; }
/* label sits above the last (tallest) bar */
.tag { position: absolute; right: 0; translate: 0 0; top: 0; z-index: 3; background: var(--card); border-radius: clamp(10px, .8vw, 14px); box-shadow: var(--shadow); padding: clamp(10px, .9vw, 16px) clamp(14px, 1.2vw, 22px); text-align: center; font-size: clamp(.8125rem, .7rem + .35vw, 1.1rem); font-weight: 700; color: var(--ink); line-height: 1.25; white-space: nowrap; }
html.js .gbars i { transform: scaleY(.02); transition: transform 900ms var(--ease-out); }
html.js .growth.in .gbars i { transform: scaleY(var(--h)); }
html.js .gbars i:nth-child(2) { transition-delay: 90ms; } html.js .gbars i:nth-child(3) { transition-delay: 180ms; }
html.js .gbars i:nth-child(4) { transition-delay: 270ms; } html.js .gbars i:nth-child(5) { transition-delay: 360ms; }
html.js .growth-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-out) 500ms; }
html.js .growth.in .growth-arrow path { stroke-dashoffset: 0; }
html.js .tag { opacity: 0; transform: translateY(8px) scale(.96); transition: opacity 300ms ease 900ms, transform 400ms var(--ease-out) 900ms; }
html.js .growth.in .tag { opacity: 1; transform: none; }

.case { margin-top: clamp(48px, 5vw, 96px); }
.quote-wide { margin: 0; max-width: 960px; background: var(--card); border-radius: clamp(14px, 1vw, 18px); box-shadow: var(--shadow-sm); padding: clamp(18px, 1.7vw, 32px) clamp(20px, 2vw, 40px); }
.quote-wide blockquote { margin: 0; }
.quote-wide p { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, .9rem + .45vw, 1.5rem); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.quote-wide strong { font-weight: 700; color: var(--accent-deep); }
.quote-wide figcaption { margin-top: clamp(10px, .9vw, 16px); font-family: var(--sans); font-weight: 600; font-size: clamp(.875rem, .8rem + .15vw, 1rem); color: var(--text); }

@media (max-width: 860px) {
  .res-grid { grid-template-columns: 1fr; }
  .growth { height: 300px; min-height: 0; margin-top: 24px; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stats { grid-template-columns: 1fr; }
  .tag { right: 0; translate: 0 0; }
  .stat { max-width: none; }
  .quote-wide p br { display: none; }
}

.calc { margin-top: 24px; }
.calc-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: 6fr 5fr; gap: 24px 48px; }
.calc-head { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: clamp(6px, .6vw, 10px); }
.calc-head .h3 { margin-bottom: clamp(4px, .5vw, 8px); }
.calc-lead { font-size: clamp(1.05rem, .9rem + .3vw, 1.25rem); font-weight: 600; color: var(--ink); }
.calc-scn, .calc-zones { font-size: clamp(.98rem, .85rem + .25vw, 1.125rem); color: var(--muted); }
.calc-zones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.calc-zones b { color: var(--ink); font-weight: 700; }
.calc-sep { width: 1px; height: 1.2em; background: var(--line); }
@media (max-width: 640px) { .calc-zones { flex-direction: column; align-items: flex-start; } .calc-sep { display: none; } }
.calc-form { display: flex; flex-direction: column; gap: 22px; }
.presets { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.presets legend { font-size: .8rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.slider label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.slider output { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; cursor: pointer; --p: 20%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) 0 var(--p), var(--line) var(--p) 100%); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow-sm); transition: transform 140ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-form { grid-column: 1; grid-row: 2; }
.calc-out { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 6px; min-width: 0; align-self: stretch; }
@media (min-width: 861px) and (max-width: 1340px) {
  .calc-head { grid-column: 1 / -1; }
  .calc-out { grid-row: 2; }
}
.calc-total { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 1.4rem + 4vw, 5.9rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-sub { font-size: .875rem; color: var(--text); }
.chart { flex: 1; min-height: 150px; height: auto; margin: 18px 0 22px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar i { display: block; height: 100%; border-radius: 4px 4px 1px 1px; background: #f5dcb4; transform-origin: bottom; transform: scaleY(var(--h, 0)); transition: transform 520ms var(--ease-out), background-color 180ms ease; }
.bar.last i { background: var(--accent); }
.bar b { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-size: .75rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-head, .calc-form, .calc-out { grid-column: 1; grid-row: auto; }
  .chart { flex: none; height: 150px; }
}

/* ---------- webs: centrado, dos botones y tres ventajas ---------- */
.webs { padding-block: calc(var(--section) * .5); }
.webs-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 1.4vw, 22px); }
.webs-head .eyebrow { margin-bottom: 0; }
.h2-webs { font-size: clamp(2.3rem, .8rem + 4vw, 5.6rem); line-height: 1.02; max-width: none; text-wrap: balance; }
.sub-webs { font-size: clamp(1.02rem, .82rem + .5vw, 1.4rem); line-height: 1.5; max-width: 58ch; color: var(--muted); text-wrap: balance; }
.webs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: clamp(6px, .8vw, 14px); }
.webs-actions .btn { min-height: 65px; padding: 0 32px; gap: 12px; border-radius: 12px; font-size: 1.19rem; }
.webs-actions .btn .ico { width: 22px; height: 22px; }
.webs .valor-grid { margin-top: clamp(40px, 4.4vw, 72px); }
.webs-actions-end { margin-top: clamp(36px, 4vw, 64px); }
.demo-btn .ico { transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .demo-btn:hover .ico { transform: translate(2px, -2px); } }

.webs-points { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 96px); }
.webs-points li { display: flex; align-items: flex-start; gap: clamp(16px, 1.4vw, 24px); padding: clamp(6px, .6vw, 10px) clamp(20px, 3vw, 56px); }
.webs-points li + li { border-left: 1px solid var(--line); }
.webs-points li:first-child { padding-left: 0; }
.webs-points li:last-child { padding-right: 0; }
.webs-ico { flex: none; width: clamp(44px, 2rem + 1.6vw, 64px); height: clamp(44px, 2rem + 1.6vw, 64px); color: var(--accent); }
.webs-points h3 { font-family: var(--serif); font-size: clamp(1.3rem, .9rem + .9vw, 2rem); line-height: 1.12; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.webs-points p { margin-top: clamp(8px, .7vw, 12px); font-size: clamp(.95rem, .82rem + .3vw, 1.15rem); line-height: 1.5; color: var(--muted); max-width: 36ch; }
@media (max-width: 960px) {
  .webs-points { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .webs-points li { padding: clamp(18px, 4vw, 26px) 0; }
  .webs-points li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .webs-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
}

/* ---------- compare ---------- */
.compare { padding-block: var(--section); }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.tbl { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(20px, 2.5vw, 30px); }
.tbl-title { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.015em; }
.tbl dl > div { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .875rem; align-items: start; }
.tbl dt { font-weight: 600; color: var(--ink); }
.tbl .no { color: var(--muted); }
.tbl .yes { color: var(--ink); font-weight: 600; padding-left: 22px; position: relative; }
.tbl .yes::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23161005' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
@media (max-width: 860px) { .tables { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tbl dl > div { grid-template-columns: 1fr 1fr; } .tbl dt { grid-column: 1 / -1; } }

/* ---------- valor de una web: 8 motivos en desplegables ---------- */
.valor { padding-block: var(--section); }
.valor-sub { margin: clamp(14px, 1.4vw, 22px) auto 0; font-size: clamp(1.02rem, .82rem + .5vw, 1.4rem); line-height: 1.5; max-width: 52ch; color: var(--muted); text-wrap: balance; }
.valor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 4vw, 80px); align-items: start; }
.valor-col { border-top: 1px solid var(--line); }
.valor-grid details { border-bottom: 1px solid var(--line); }
.valor-grid summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 1.6vw, 28px); padding: clamp(20px, 1.8vw, 30px) 0; }
.valor-grid summary::-webkit-details-marker { display: none; }
.valor-num { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1rem + 1vw, 2.2rem); line-height: 1; color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 2ch; }
.valor-grid h3 { font-family: var(--serif); font-size: clamp(1.25rem, .95rem + .65vw, 1.7rem); line-height: 1.15; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
.valor-plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: transform 260ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.valor-plus .ico { width: 18px; height: 18px; }
.valor-grid details[open] .valor-plus { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .valor-grid summary:hover .valor-plus { border-color: var(--ink); } }
.valor-grid summary:focus-visible { outline-offset: 4px; }
.valor-grid details p { padding: 0 calc(40px + clamp(16px, 1.6vw, 28px)) clamp(22px, 2vw, 32px) calc(2ch * 1.4 + clamp(16px, 1.6vw, 28px)); font-size: clamp(.95rem, .85rem + .2vw, 1.075rem); line-height: 1.6; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
html.js .valor-grid details[open] p { animation: drop 280ms var(--ease-out); }
@media (max-width: 860px) {
  .valor-grid { grid-template-columns: 1fr; }
  .valor-col + .valor-col { border-top: 0; }
  .valor-grid details p { padding-right: 0; }
}
@media (max-width: 480px) { .valor-grid details p { padding-left: 0; } }

/* ---------- faq ---------- */
.faq { padding-block: var(--section); }
.faq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 200ms ease, box-shadow 200ms ease; }
.acc details[open] { border-color: #e8c98f; box-shadow: var(--shadow-sm); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 500; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform 260ms var(--ease-out); }
.acc details[open] summary .ico { transform: rotate(180deg); }
.acc details p { padding: 0 20px 18px; color: var(--text); max-width: 70ch; font-size: .95rem; }
html.js .acc details[open] p { animation: drop 280ms var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.acc details.more { animation: drop 300ms var(--ease-out); }

/* ---------- contact: texto a la izquierda, formulario en tarjeta ---------- */
.contact { padding-block: calc(var(--section) * .5) var(--section); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.h2-contact { font-size: clamp(2.4rem, .9rem + 3.6vw, 5rem); line-height: 1.02; }
.contact-lead { margin-top: clamp(16px, 1.6vw, 28px); font-size: clamp(1.05rem, .82rem + .6vw, 1.45rem); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.contact-rule { display: block; width: 64px; height: 2px; background: var(--accent); margin: clamp(22px, 2.2vw, 36px) 0 clamp(16px, 1.6vw, 24px); }
.contact-note { font-size: clamp(.95rem, .85rem + .25vw, 1.15rem); color: var(--text); }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.4vw, 24px) clamp(16px, 1.6vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: clamp(16px, 1.2vw, 22px); box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 48px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: clamp(.9rem, .82rem + .2vw, 1.02rem); font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font-size: 1rem; transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: #8d847a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(245 158 11 / .16); }
.field [aria-invalid="true"] { border-color: #d9534f; }
.form-error { color: #b3261e; font-weight: 500; font-size: .9rem; }
.cform .fine { font-size: clamp(.85rem, .8rem + .15vw, .95rem); }
.cform-send { min-height: 58px; padding-inline: 34px; font-size: 1.05rem; }
.cform .btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cform { grid-template-columns: 1fr; } .cform-send { width: 100%; } }

/* ---------- footer: línea naranja a todo el ancho ---------- */
.foot { border-top: 2px solid var(--accent); padding-block: clamp(32px, 3vw, 48px) 28px; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-in p { font-size: .85rem; color: var(--text); margin-top: 4px; }
.foot-in .foot-legal { margin-top: 18px; font-size: .8125rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 3vw, 44px); padding-top: 4px; }
.foot-links a { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; text-decoration: none; color: var(--accent); }
.foot-links .ico { width: 22px; height: 22px; color: var(--ink); }
@media (hover: hover) { .foot-links a:hover span { text-decoration: underline; text-underline-offset: .2em; } }

/* ---------- buy dialog ---------- */
.buy { width: min(820px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
.buy::backdrop { background: rgb(30 22 10 / .45); }
.buy[open] { animation: pop 260ms var(--ease-out); }
.buy[open]::backdrop { animation: fade 200ms ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.buy-in { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; }
.buy-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); transition: transform 140ms var(--ease-out); }
.buy-close:active { transform: scale(.92); }
.buy-media { background: #2a1d12; overflow: hidden; }
.buy-media img { width: 100%; height: 100%; object-fit: cover; }
.buy-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.buy-body .eyebrow { margin-bottom: -8px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.tiers li { white-space: nowrap; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); font-size: .8rem; font-variant-numeric: tabular-nums; transition: background-color 180ms ease, color 180ms ease; }
.tiers li b { color: var(--ink); }
.tiers li.on { background: var(--ink); color: var(--bg); }
.tiers li.on b { color: var(--accent); }
.dest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; }
.dest > span { margin-right: 4px; font-weight: 500; color: var(--ink); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qty > span { font-weight: 500; color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sq { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); transition: transform 140ms var(--ease-out), border-color 180ms ease; }
.sq:active { transform: scale(.92); }
.sq:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .sq:not(:disabled):hover { border-color: var(--ink); } }
.qty-total { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.buy-note { font-size: .85rem; background: #fdf0d8; color: #6b4a07; padding: 10px 12px; border-radius: 8px; }
@media (max-width: 640px) {
  .buy { width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .buy[open] { animation: sheet 320ms var(--ease-drawer); }
  @keyframes sheet { from { transform: translateY(100%); } }
  .buy-in { grid-template-columns: 1fr; }
  .buy-media { height: 200px; }
}

/* ---------- entrances ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 650ms var(--ease-out), transform 750ms var(--ease-out); transition-delay: var(--d, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .hero-copy > * { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; }
html.js .hero-copy > *:nth-child(2) { animation-delay: 70ms; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 150ms; }
html.js .hero-copy > *:nth-child(4) { animation-delay: 220ms; }
html.js .hero-copy > *:nth-child(5) { animation-delay: 290ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
html.js .hero-photo img { opacity: 0; animation: photo-in 1300ms var(--ease-out) 120ms forwards; }
@keyframes photo-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
html.js .hero-blur { animation: breathe 16s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html.js [data-reveal] { transform: none; }
}

/* ---------- carrito ---------- */
.cart-btn { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: inline-grid; place-items: center; }
.cart-btn .ico { width: 22px; height: 22px; }
.cart-btn [data-cart-count] { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
@media (hover: hover) { .cart-btn:hover { background: rgb(20 18 16 / .06); } }
.cart { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(420px, 100%); padding: 0; border: 0; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); }
.cart::backdrop { background: rgb(30 22 10 / .45); }
.cart[open] { animation: cart-in 320ms var(--ease-drawer); }
@keyframes cart-in { from { transform: translateX(100%); } }
.cart-in { height: 100%; display: flex; flex-direction: column; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); letter-spacing: -0.015em; }
.cart-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); }
.cart-list { flex: 1; overflow: auto; padding: 8px 24px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.cart-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.cart-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-row .stepper output { min-width: 32px; font-size: 1rem; }
.cart-row .sq { width: 34px; height: 34px; }
.cart-del { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .8125rem; text-decoration: underline; text-underline-offset: .2em; }
.cart-empty { flex: 1; padding: 32px 24px; color: var(--muted); }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total b { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }

/* ---------- formulario de pedido ---------- */
.checkout { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: clamp(16px, 1.4vw, 22px); background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
.checkout::backdrop { background: rgb(30 22 10 / .45); }
.checkout[open] { animation: co-in 280ms var(--ease-out); }
@keyframes co-in { from { opacity: 0; transform: translateY(12px); } }
.co-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.co-head h2, .co-done h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); letter-spacing: -0.015em; }
.co-body { padding: 18px 24px 4px; display: flex; flex-direction: column; gap: 16px; }
.co-items { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: .92rem; }
.co-items li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.co-items b { font-variant-numeric: tabular-nums; }
.co-call { padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: #fdf3e1; color: var(--ink); font-size: .92rem; line-height: 1.5; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.co-grid .co-wide { grid-column: 1 / -1; }
.co-grid .field { gap: 6px; }
.co-grid .field label { font-size: .9rem; }
.co-grid .field input, .co-grid .field textarea { min-height: 46px; padding: 10px 14px; }
.co-grid .field textarea { min-height: 88px; }
.co-opt { font-weight: 400; color: var(--muted); }
.co-files input[type="file"] { padding: 10px; min-height: 0; background: var(--bg); font-size: .9rem; }
.co-files input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.co-files small { color: var(--muted); font-size: .8rem; }
.co-error { color: #b42318; font-size: .9rem; font-weight: 600; }
.co-foot { padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.co-foot .btn { min-height: 52px; }
.co-foot .fine { font-size: .8rem; color: var(--muted); }
.co-done { padding: 40px 28px 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.co-done p { color: var(--muted); max-width: 40ch; line-height: 1.55; }
.checkout [hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .co-grid { grid-template-columns: 1fr; } }

/* ---------- portada en móvil: la foto vertical abajo, texto claro encima del fondo desenfocado ---------- */
.eb-d { display: none; }
@media (max-width: 860px) {
  .nav { background: var(--bg); border-radius: 0 0 22px 22px; box-shadow: 0 8px 24px rgb(20 12 4 / .18); }
  .nav.scrolled, .nav.open { background: rgb(251 248 243 / .96); border-bottom-color: transparent; }
  .hero { min-height: 0; background: #2a1c10; }
  .hero-blur { filter: blur(26px) saturate(1.1) brightness(.92); }
  .hero-photo img {
    inset: auto auto 0 -8%; top: auto; translate: none; width: 116%; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  }
  .hero-media::after {
    background: linear-gradient(180deg, rgb(24 15 7 / .5) 0%, rgb(24 15 7 / .38) calc(100% - 104vw), rgb(24 15 7 / 0) calc(100% - 86vw), rgb(24 15 7 / .2) 100%);
  }
  .hero-inner { padding-top: 24px; padding-bottom: 90vw; }
  .hero-copy { gap: 16px; }
  .hero-copy .eyebrow {
    align-self: flex-start; padding: 8px 15px; border-radius: 999px;
    background: rgb(245 239 230 / .85); color: var(--ink); letter-spacing: .2em; font-size: .7rem;
  }
  .eb-d { display: none; }
  .eb-m { display: inline; }
  .hero .display { color: #fffaf2; font-size: clamp(2.5rem, 1rem + 7vw, 4.4rem); text-shadow: 0 2px 18px rgb(0 0 0 / .25); }
  .hero .lead { color: rgb(255 249 240 / .94); font-size: 1rem; text-shadow: 0 1px 10px rgb(0 0 0 / .35); }
  .hero .actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero .btn { min-height: 50px; }
  .hero .btn-line { border-color: #fffaf2; color: #fffaf2; background: rgb(20 12 4 / .15); }
  .perks {
    position: absolute; left: var(--m); right: var(--m); bottom: 16px; margin: 0;
    display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 0;
    padding: 9px 9px; border-radius: 16px;
    background: rgb(255 250 243 / .16); border: 1px solid rgb(255 255 255 / .4);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  }
  .perks li { gap: 6px; padding: 0 5px; color: #fffaf2; font-size: .6rem; line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 6px rgb(0 0 0 / .3); }
  .perks li:first-child { padding-left: 0; }
  .perks li:last-child { padding-right: 0; }
  .perks li + li { border-left: 1px solid rgb(255 255 255 / .3); }
  .perks .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; border: 1.3px solid rgb(255 255 255 / .75); color: #fffaf2; }
}
}
@media (min-width: 600px) and (max-width: 860px) {
  .perks li { gap: 10px; font-size: .8rem; }
}
@media (max-width: 370px) { .perks { padding-inline: 7px; } .perks li { padding: 0 4px; font-size: .56rem; gap: 5px; } .perks .ico { width: 22px; height: 22px; padding: 4px; } }
@media (max-width: 340px) { .perks li { white-space: normal; } }

/* ---------- portada en ordenador: foto a todo el ancho, letreros a la derecha, texto claro a la izquierda ---------- */
@media (min-width: 861px) {
  .nav, .nav.scrolled { background: rgb(251 248 243 / .97); border-bottom-color: var(--line); }
  .hero { min-height: min(100svh, 46vw); background: #22170d; }
  .hero-blur { display: none; }
  .hero-photo img {
    top: 0; right: 0; translate: 4% 0; width: auto; height: 100%; min-width: 100%; max-width: none;
    object-fit: cover; object-position: 100% 50%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgb(22 14 7 / .8) 0%, rgb(22 14 7 / .62) 32%, rgb(22 14 7 / .2) 50%, rgb(22 14 7 / 0) 60%),
      linear-gradient(0deg, rgb(22 14 7 / .3) 0, rgb(22 14 7 / 0) 30%);
  }
  .hero-inner { padding-block: clamp(36px, 5vh, 64px); }
  .hero-copy { max-width: min(44vw, 820px); gap: clamp(16px, 1.4vw, 24px); }
  .hero-copy .eyebrow {
    align-self: flex-start; padding: 8px 18px; border-radius: 999px;
    background: rgb(245 239 230 / .88); color: var(--ink); letter-spacing: .2em; font-size: clamp(.72rem, .6rem + .2vw, .85rem);
  }
  .hero .display { color: #fffaf2; font-size: clamp(2.8rem, 4.3vw, 6.2rem); text-shadow: 0 2px 22px rgb(0 0 0 / .25); }
  .hero .lead { color: rgb(255 249 240 / .94); text-shadow: 0 1px 10px rgb(0 0 0 / .3); }
  .hero .btn-line { border-color: #fffaf2; color: #fffaf2; background: rgb(20 12 4 / .18); }
  .perks {
    align-self: flex-start; flex-wrap: nowrap; gap: 0; margin-top: 4px;
    padding: 12px 20px; border-radius: 18px;
    background: rgb(255 250 243 / .12); border: 1px solid rgb(255 255 255 / .38);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  }
  .perks li { color: #fffaf2; padding: 0 clamp(14px, 1.4vw, 24px); gap: 12px; white-space: nowrap; }
  .perks li:first-child { padding-left: 0; }
  .perks li:last-child { padding-right: 0; }
  .perks li + li { border-left: 1px solid rgb(255 255 255 / .3); }
  .perks .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .75); color: #fffaf2; }
}
@media (hover: hover) and (min-width: 861px) { .hero .btn-line:hover { background: rgb(255 250 242 / .12); } }

/* móviles estrechos: que el botón del menú no se salga de la pantalla */
@media (max-width: 430px) {
  .nav-in { gap: 8px; padding: 0 16px; }
  .nav-end { gap: 2px; }
  .nav-end .btn-sm { padding: 0 14px; }
  .wordmark { font-size: 1.15rem; }
}
@media (max-width: 359px) { .nav-end .btn-sm .ico { display: none; } }
