:root {
  --bg: #0d0d0f;
  --bg-2: #141417;
  --bg-3: #1b1b1f;
  --line: #2a2a30;
  --text: #e9e9ec;
  --muted: #9a9aa3;
  --silver-1: #f4f5f7;
  --silver-2: #b9bcc3;
  --silver-3: #7d808a;
  --cream: #f6f3ee;
  --ink: #141414;
  --ink-muted: #5b5b60;
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --faint: #8a8a93;
  --display: "Josefin Sans", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.silver { color: var(--silver-2); }

/* Superficies del navegador */
::selection { background: var(--silver-2); color: var(--ink); }
.passion ::selection { background: var(--ink); color: var(--cream); }
html { scrollbar-color: #3a3a42 var(--bg); }
input, textarea { caret-color: var(--silver-1); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--silver { background: linear-gradient(135deg, #fafafa, #c4c7cd); color: #111; box-shadow: 0 6px 24px rgba(255,255,255,.08); }
.btn--silver:hover { box-shadow: 0 10px 34px rgba(255,255,255,.18); }
.btn--ghost { border-color: #4a4a52; color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--silver-2); }
.btn--dark { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--silver-1); outline-offset: 3px; }
.passion :focus-visible { outline-color: var(--ink); }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(13,13,15,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font: 300 1.15rem/1 var(--display); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-size: .92rem; color: #cfcfd5; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: currentColor; transition: right .25s; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { right: 0; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13,13,15,.97); backdrop-filter: blur(14px); padding: 8px 16px 24px;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility 0s .35s; z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 20px; }
  .brand span { font-size: 1rem; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 56px; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 78% 35%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(255,255,255,.04), transparent 60%),
    var(--bg);
}
.hero__mark { position: absolute; right: -6%; top: 50%; width: min(62vw, 820px); transform: translateY(-58%); opacity: .09; pointer-events: none; }
.hero > .wrap { width: 100%; }
.hero__in { position: relative; }
.hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
.hero__lead { max-width: 560px; font-size: 1.12rem; color: #c3c3ca; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.facts {
  list-style: none; margin: 72px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.facts strong { display: block; font: 400 1.35rem/1.2 var(--display); color: #fff; margin-bottom: 4px; }
.facts span { font-size: .88rem; color: var(--muted); }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, 1fr); margin-top: 48px; } .hero__mark { width: 110vw; right: -40%; top: 30%; } }

/* Secciones */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
@media (max-width: 700px) { .section { padding: 80px 0; } }
.sec-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.sec-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.sec-head--left { text-align: left; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: border-color .3s, transform .3s;
}
.card:hover { border-color: #4a4a52; transform: translateY(-4px); }
.card svg { width: 44px; height: 44px; fill: none; stroke: var(--silver-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps .card { position: relative; }
.steps h3 { font-size: 1.2rem; }
.steps__n { position: absolute; top: 28px; right: 26px; font: 300 1.6rem/1 var(--display); color: var(--silver-3); }
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s; }
.card--photo:hover img { transform: scale(1.05); }
.card__body { padding: 24px 24px 28px; }

/* Marcas */
.brands__label { font: 400 1.05rem/1 var(--display); letter-spacing: .04em; color: var(--muted); margin: 0 0 18px; text-align: center; }
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 44px; }
.brand-tile {
  flex: 0 1 calc((100% - 6 * 14px) / 7); min-width: 130px; aspect-ratio: 3 / 2;
  background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 18px 20px;
  transition: transform .25s, box-shadow .25s;
}
.brand-tile img { max-height: 58px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.brand-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.brand-tile:hover img { filter: none; opacity: 1; }
@media (hover: none) { .brand-tile img { filter: none; opacity: 1; } }
@media (max-width: 600px) { .brands { gap: 10px; } .brand-tile { flex-basis: calc((100% - 20px) / 3); min-width: 0; padding: 12px; } .brand-tile img { max-height: 40px; } }
.brands__note { text-align: center; font-size: .78rem; color: var(--faint); margin: 0; }

/* PASSION */
.passion { background: var(--cream); color: var(--ink); padding: 100px 0 64px; position: relative; overflow: hidden; }
.passion::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: linear-gradient(90deg, #45c9c1, #6cc56c, #9bd36a, #f3e45a, #f7b733, #f39a1f, #7a4a2a, #f07c86, #e23a3a, #9e1b32);
}
.passion__intro { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .passion__intro { grid-template-columns: 1fr; } }
.passion__logo { font: 600 clamp(3.2rem, 8vw, 5.6rem)/1 "Fredoka", var(--display); letter-spacing: .02em; margin: 0; }
.passion__claim { font: 600 1.4rem/1.2 "Fredoka", var(--display); margin: 8px 0 24px; text-transform: uppercase; letter-spacing: .04em; }
.rainbow { background: linear-gradient(90deg, #e23a3a, #f39a1f, #e8c400, #3fb54a, #2aa8d8, #6b4bd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.passion__text > p { color: #3c3c40; font-size: 1.05rem; }
.passion__stats { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 36px; }
.passion__stats strong { display: block; font: 600 2rem/1 "Fredoka", var(--display); }
.passion__stats span { font-size: .85rem; color: var(--ink-muted); }
.eyebrow { margin: 0 0 14px; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.passion__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 32px; }
.passion__actions .passion__shop { margin: 0; }
.passion__hero { margin: 0; }
.passion__hero img { border-radius: 20px; mix-blend-mode: multiply; }

.flavors { margin-top: 100px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .flavors { grid-template-columns: 1fr; margin-top: 70px; } }
.flavors__stage {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; padding: 32px; border-radius: 24px;
  background: radial-gradient(circle at 25% 50%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), #fff;
  transition: background .5s; min-height: 340px;
}
.flavors__stage img { mix-blend-mode: multiply; transition: opacity .25s, transform .25s; }
.flavors__stage img.is-swapping { opacity: 0; transform: translateY(10px) scale(.97); }
.flavors__stage h3 { font: 600 2.2rem/1.05 "Fredoka", var(--display); margin-bottom: .3em; }
.flavors__stage p:last-child { color: var(--ink-muted); margin: 0; }
@media (max-width: 480px) { .flavors__stage { grid-template-columns: 110px 1fr; padding: 20px; gap: 16px; min-height: 0; } .flavors__stage h3 { font-size: 1.6rem; } }
.flavors__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 560px) { .flavors__list { grid-template-columns: repeat(4, 1fr); } }
.flavor {
  appearance: none; border: 2px solid transparent; background: #fff; border-radius: 16px; padding: 10px 6px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .2s, border-color .2s, box-shadow .2s;
  font: 500 .74rem/1.2 var(--sans); color: var(--ink); text-align: center;
}
.flavor img { height: 92px; width: auto; mix-blend-mode: multiply; }
.flavor:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.flavor[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 40%, transparent); }

.display {
  margin-top: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: #fff; border-radius: 24px; padding: 28px; overflow: hidden;
}
.display img { border-radius: 16px; }
.display h3 { font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.1 "Fredoka", var(--display); }
.display p { color: #3c3c40; }
.display > div { padding-right: 24px; }
@media (max-width: 900px) { .display { grid-template-columns: 1fr; gap: 28px; margin-top: 70px; padding: 16px; } .display > div { padding: 0 8px 12px; } }
.passion__shop { display: inline-block; margin: 18px 0 0 4px; color: var(--ink); font-weight: 600; font-size: .92rem; }
@media (min-width: 560px) { .passion__shop { margin-left: 20px; } }
.responsible { margin: 48px 0 0; text-align: center; font-size: .82rem; color: var(--ink-muted); }

/* Por qué */
.why { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 40px; } }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
@media (max-width: 560px) { .why__list { grid-template-columns: 1fr; } }
.why__list li { padding-top: 22px; border-top: 1px solid var(--line); }
.why__list p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.contact__list a, .contact__list span { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; color: #d8d8de; word-break: break-word; }
.contact__list a:hover { color: #fff; }
.contact__list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--silver-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form { background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: grid; gap: 18px; }
@media (max-width: 560px) { .form { padding: 22px; } }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-size: .82rem; font-weight: 500; color: #bdbdc4; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; background: var(--bg); border: 1px solid #34343b; border-radius: 10px; padding: 13px 14px;
  color: var(--text); font: 400 1rem/1.3 var(--sans); transition: border-color .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9a9aa3 50%), linear-gradient(-45deg, transparent 50%, #9a9aa3 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--silver-2); box-shadow: 0 0 0 3px rgba(185,188,195,.18); }
.form input:hover:not(:focus), .form select:hover:not(:focus), .form textarea:hover:not(:focus) { border-color: #4a4a52; }
.form ::placeholder { color: #7c7c85; }
.form .is-invalid { border-color: #e0656b !important; }
.form .check input.is-invalid { outline: 2px solid #e0656b; outline-offset: 2px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--silver-2); }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin: 0; font-size: .9rem; color: var(--silver-2); min-height: 1.4em; }
.form__msg[data-state="error"] { color: #f08a8f; }
.form__msg[data-state="ok"] { color: #8fd9a8; }

/* Footer */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: center; }
.footer .brand img { width: 56px; }
.footer .brand span { font-size: 1.3rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.footer nav a:hover { color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--faint); }
.footer__bottom p { margin: 0; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Modal edad */
.age { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5,5,6,.92); backdrop-filter: blur(10px); }
.age[hidden] { display: none; }
.age__box { max-width: 440px; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 40px 32px; }
.age__box img { margin: 0 auto 20px; }
.age__box h2 { font-size: 1.8rem; }
.age__box p { color: var(--muted); }
.age__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 18px; }
.age__box small { color: var(--faint); }

/* Animación de entrada */
/* Momento principal: el hero entra escalonado; el resto aparece de forma discreta */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { transform: translateY(28px); filter: blur(6px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.js .hero .reveal.is-visible { filter: none; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .24s; }
.hero .facts { transition-delay: .4s; }
.js .hero__mark { opacity: 0; transform: translateY(-58%) scale(1.06); animation: mark-in 2.4s var(--ease-out) .2s forwards; }
@keyframes mark-in { to { opacity: .09; transform: translateY(-58%) scale(1); } }
.cards .reveal:nth-child(2), .why__list .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .why__list .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .why__list .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .js .hero__mark { animation: none; opacity: .09; transform: translateY(-58%); }
}

/* Páginas legales */
.legal { max-width: 780px; margin: 0 auto; padding: 140px 24px 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; font-weight: 400; }
.legal p, .legal li { color: #c3c3ca; }
.legal mark { background: #3a3420; color: #f3e3a0; padding: 0 4px; border-radius: 3px; }
