/* 1. Identidad y base */
:root {
  --brand: #1D22DF;
  --brand-hover: #1519b5;
  --pill: #e0e2ff;
  --surface: #f6f8ff;
  --ink: #0a0a0a;
  --muted: #525252;
  --white: #fff;
  --font-body: 'Outfit', sans-serif;
  --font-brand: 'Fredoka', sans-serif;
  --ease: cubic-bezier(.2, .8, .25, 1);
  --header-height: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); overflow-x: hidden; }
body { margin: 0; min-width: 280px; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
.product-card :focus-visible, .site-footer :focus-visible { outline-color: white; }
.container { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(24px, 5vw, 64px); }
.section { padding-block: 80px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; padding: 16px; background: white; color: var(--brand); z-index: 200; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 12px 27px; border: 1px solid transparent; border-radius: 999px; background: var(--brand); color: white; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; transition: transform .22s var(--ease); }
.button--small { padding: 10px 20px; font-size: 12px; }
.button--outline { border-color: white; color: white; background: transparent; }
.button--white { background: white; color: var(--card-color, var(--brand)); }
.eyebrow { display: inline-block; margin-bottom: 12px; padding: 6px 16px; border-radius: 999px; background: var(--pill); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; }
.section-heading p { max-width: 576px; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.6; }
.section-heading--center { text-align: center; }
.section-heading--center p { margin-inline: auto; }

/* 2. Barra fija y menú lateral */
.navbar { position: fixed; inset: 0 0 auto; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; height: var(--header-height); padding-inline: clamp(20px, 4vw, 48px); color: #111; isolation: isolate; }
.navbar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--brand); box-shadow: 0 10px 25px -5px #1d22df66; opacity: 0; transition: opacity .25s var(--ease); }
.navbar.scrolled { color: white; }
.navbar.scrolled::before { opacity: 1; }
.brand { font-family: var(--font-brand); font-weight: 800; font-size: 36px; letter-spacing: -.02em; }
.menu-trigger { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: 14px; font-weight: 600; }
.menu-trigger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.nav-action { justify-self: end; background: white; color: var(--brand); min-height: 32px; padding: 6px 20px; font-size: 12px; font-weight: 700; line-height: 16px; }
.site-menu { position: fixed; inset: 0 auto 0 0; width: min(565px, 90vw); height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: white; color: #000; font-family: var(--font-brand); box-shadow: 12px 0 40px #0000000d; }
.site-menu::backdrop { background: rgb(25 20 25 / 38%); }
.site-menu[open] { animation: menu-enter .25s var(--ease); }
.site-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-inline: 38px; padding-block: 42px 44px; border-bottom: 1px solid #ddd; }
.site-menu-account { font-size: clamp(28px, 3vw, 44px); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.site-menu-close { display: grid; place-items: center; flex-shrink: 0; width: 76px; height: 76px; padding: 0; border: 1px solid #111; border-radius: 50%; background: white; color: black; font: 400 54px/1 Arial, sans-serif; }
.site-menu nav { display: flex; flex-direction: column; padding: 12px 38px 44px; }
.site-menu nav a { padding-block: 30px; font-size: clamp(38px, 4vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.site-menu a:hover { color: var(--brand); }

/* 3. Portada */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; align-items: center; min-height: max(600px, 85svh); padding: clamp(180px, 28svh, 300px) 24px 80px; text-align: center; background: #f5f5f5; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-content { display: flex; flex-direction: column; align-items: center; max-width: 896px; }
.hero h1 { margin-bottom: 16px; font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.05; letter-spacing: -.025em; }
.hero p { max-width: 576px; margin-bottom: 28px; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.6; }
.hero-button { padding: 14px 36px; box-shadow: 0 20px 25px -5px #0002; }

/* 4. Escaparate: columnas reales, sin posicionar texto sobre imágenes */
.products { width: min(100%, 1440px); padding: 24px clamp(16px, 2.5vw, 32px) 80px; }
.products .section-heading { margin-bottom: 64px; }
.product-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); }
.product-list > .product-card { width: 100%; min-width: 0; }
.product-card { --card-color: #3c2218; --cookie-rotation: -6deg; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 340px; padding: 32px 48px; border-radius: 56px; background: var(--card-color); color: white; box-shadow: 0 25px 50px -12px #0004; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.product-card--blue { --card-color: #1c3879; --cookie-rotation: 6deg; }
.product-card--strawberry { --card-color: #b83253; --cookie-rotation: 6deg; }
.product-card--brownie { --card-color: #2a1b14; }
.product-card .product-copy { grid-column: 2; }
.product-card--reverse .product-copy { grid-column: 1; }
/* La imagen no determina la altura de la tarjeta; sobresale por arriba y abajo. */
.product-media { position: absolute; top: 50%; left: -28px; translate: 0 -50%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 48%; height: calc(100% + 56px); min-width: 0; pointer-events: none; }
.product-card--reverse .product-media { left: auto; right: -28px; }
.product-media img { width: 100%; max-width: none; min-height: 0; height: 100%; object-fit: contain; transform: rotate(var(--cookie-rotation)); filter: drop-shadow(0 25px 35px #0005); opacity: 1; transition: opacity .55s var(--ease), transform .65s var(--ease); }
.product-copy { position: relative; min-width: 0; }
.line-badge { display: inline-block; padding: 4px 14px; margin-bottom: 12px; border-radius: 999px; background: #ffffff33; font-size: 12px; font-weight: 700; }
.product-copy h3 { margin-bottom: 12px; font-family: var(--font-brand); font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; overflow-wrap: break-word; }
.product-description { margin-bottom: 10px; color: #ffffffe6; font-size: 16px; line-height: 1.6; }
.product-benefits { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 12px; line-height: 1.5; }
.product-benefits li::before { content: '✓'; margin-right: 5px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.product-actions .button { padding-inline: 20px; }
.product-media.is-loading { overflow: hidden; border-radius: 24px; background: #ffffff12; }
.product-media.is-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff30, transparent); transform: translateX(-100%); animation: skeleton-shimmer 1.3s linear infinite; }
.product-media.is-loading img { opacity: 0; }
.image-fallback { padding: 24px; font-size: 14px; color: #ffffffe6; text-align: center; }

/* 5. Clásicos e información institucional */
.classics { background: var(--surface); border-top: 1px solid #1d22df1a; }
.classic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.classic-card { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 4vw, 48px); border: 1px solid #f5f5f5; border-radius: 40px; background: white; box-shadow: 0 1px 3px #0001; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.classic-kicker { display: block; margin-bottom: 8px; color: #737373; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.classic-card:nth-child(2) .classic-kicker { color: var(--brand); }
.classic-copy h3 { margin-bottom: 12px; font-size: clamp(30px, 3vw, 36px); font-weight: 800; line-height: 1.12; }
.classic-copy p { margin-bottom: 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.classic-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid #f5f5f5; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; color: var(--brand); font-size: 14px; font-weight: 700; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about-story { grid-column: 1 / -1; max-width: 800px; margin-bottom: 12px; }
.about h3 { margin-bottom: 16px; font-family: var(--font-brand); font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.15; }
.about p { color: var(--muted); line-height: 1.7; }
.about-story p + p { margin-top: 12px; }
.about-card { padding: clamp(28px, 4vw, 40px); border-radius: 40px; background: var(--surface); }

/* 6. Acordeones, redes y firma originales */
.footer-accordion { padding: 32px 24px; border-top: 1px solid #e5e5e5; }
.accordion-list { max-width: 896px; margin-inline: auto; }
.accordion-list details { padding-block: 16px; }
.accordion-list details + details { border-top: 1px solid #f5f5f5; }
.accordion-list summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 20px; list-style: none; color: #262626; font-size: 14px; font-weight: 700; cursor: pointer; }
.accordion-list summary::-webkit-details-marker { display: none; }
.accordion-list summary span:last-child { font-size: 18px; font-weight: 400; transition: transform .2s var(--ease); }
.accordion-list details[open] summary span:last-child { transform: rotate(45deg); }
.accordion-list details > div { padding-block: 12px 8px; color: #737373; font-size: 12px; }
.accordion-list p + p { margin-top: 8px; }
.accordion-list a { display: inline-block; padding-block: 5px; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-block: 40px 16px; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; transition: opacity .2s; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }
.social-links a[aria-label='X'] svg { width: 16px; height: 16px; }
.site-footer { display: flex; flex-direction: column; align-items: center; padding: 56px 24px 48px; text-align: center; color: white; background: var(--brand); }
.footer-wordmark { margin-bottom: 24px; font-family: var(--font-brand); font-size: clamp(48px, 6vw, 60px); font-weight: 700; line-height: 1; }
.footer-legal { max-width: 576px; color: #ffffffcc; font-size: 12px; font-weight: 500; line-height: 1.7; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding-top: 10px; }
.legal-links a:hover, .accordion-list a:hover, .text-link:hover { text-decoration: underline; }

/* 7. Interacciones: solo transform y opacity */
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
@keyframes menu-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .classic-card:hover { transform: translateY(-4px); }
  .button:hover { transform: translateY(-2px); }
    .social-links a:hover { opacity: .75; }
}
@media (min-width: 768px) { .hero { min-height: max(680px, 85svh); } }
@media (min-width: 1024px) {
  .products { width: min(100%, 1640px); padding-inline: 20px; }
  .product-card { min-height: 420px; }
}
@media (max-width: 900px) {
  .product-card { gap: 20px; padding: 26px 24px; min-height: 300px; border-radius: 40px; }
  .product-media { left: -16px; height: calc(100% + 40px); }
  .product-card--reverse .product-media { right: -16px; }
  .product-description { font-size: 14px; }
  .product-actions .button { padding-inline: 14px; font-size: 12px; }
}
@media (max-width: 767px) {
  .brand { font-size: 30px; }
  .section { padding-block: 64px; }
  .classic-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .section-heading { text-align: center; }
  .section-heading p { margin-inline: auto; font-size: 14px; }
      .site-menu-top { margin-inline: 24px; padding-block: 26px; }
  .site-menu-close { width: 54px; height: 54px; font-size: 40px; }
  .site-menu nav { padding: 12px 24px 32px; }
  .site-menu nav a { font-size: 42px; padding-block: 22px; letter-spacing: -1px; }
}
@media (max-width: 639px) {
  :root { --header-height: 52px; }
  .navbar { gap: 8px; }
  .brand { font-size: 28px; }
  .menu-trigger span, .nav-action { display: none; }
  .hero p { font-size: 14px; }
  .product-list { gap: 52px; }
  .product-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 12px; min-height: 198px; padding: 18px 16px; border-radius: 26px; }
  .product-card--reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .product-media { left: -34px; width: 54%; height: calc(100% + 40px); }
  .product-card--reverse .product-media { right: -34px; }
  .product-media img { filter: drop-shadow(0 12px 12px #0004); }
  .product-copy h3 { font-size: clamp(24px, 6.2vw, 34px); line-height: 1.08; margin-bottom: 10px; }
  .product-description { display: none; }
  .line-badge { padding: 3px 8px; margin-bottom: 8px; font-size: 10px; }
  .product-benefits { display: none; }
  .product-benefits li { width: 100%; }
  .product-actions { gap: 6px; }
  .product-actions .button { min-height: 36px; padding: 7px 12px; font-size: 11px; }
  .footer-legal { font-size: 11px; }
}
/* Aparición de tarjetas al deslizar. */
.reveal-ready { opacity: 0; transform: translateY(40px); }
.reveal-ready.in-view, .reveal-ready:focus-within { opacity: 1; transform: translateY(0); }
/* Desvanecido progresivo: etiqueta, título, descripción y botones. */
.text-reveal > * { opacity: 0; }
.text-reveal.in-view > * { opacity: 1; transition: opacity .75s ease .1s; }
.text-reveal.in-view > :nth-child(2) { transition-delay: .18s; }
.text-reveal.in-view > :nth-child(3) { transition-delay: .26s; }
.text-reveal.in-view > :nth-child(4) { transition-delay: .34s; }
.text-reveal.in-view > :nth-child(5) { transition-delay: .42s; }
.text-reveal:focus-within > * { opacity: 1; transition-delay: 0s; }
.product-card.reveal-ready:not(.in-view):not(:focus-within) .product-media img { transform: rotate(var(--cookie-rotation)) scale(.88); }
@media (hover: hover) and (pointer: fine) {
  .reveal-ready.in-view:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; transform: none; }
  .text-reveal > * { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


.cms-card { overflow-wrap:anywhere }
.cms-card .product-description,.cms-card .product-benefits,.cms-card .classic-copy p,.cms-card .classic-kicker { color:inherit }
.cms-card .button--outline { color:inherit; border-color:currentColor }
.cms-classic-media { margin-bottom:16px }
.cms-classic-media img { width:100%; height:200px; object-fit:contain }
