/* Delinesa — estilos (ver CLAUDE.md para la identidad) */
:root {
  --verde: #137A35; --verde-profundo: #063A2A; --rojo: #D40000; --negro: #000;
  --dorado: #E9B865; --tostado: #A8692F; --crema: #FBF6EC; --papel: #fff;
  --tinta: #1E2A22; --tinta-suave: #56655A; --linea: #E3DCCB;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sabor-natural: #E9B865; --sabor-provenzal: #4E8A3A; --sabor-oregano: #6B7F2A; --sabor-sin-sal: #4A90B8;
  --sabor-cebolla: #8A5A9E; --sabor-queso: #F2C200; --sabor-jamon: #D9738A; --sabor-pizza: #E2672B;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.55; color: var(--tinta); background: var(--crema); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 900; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--verde); color: #fff; border: 2px solid transparent; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--verde-profundo); }
.btn--line { background: transparent; border-color: currentColor; }

/* Barra de progreso + header */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: var(--rojo); transform-origin: left; transform: scaleX(var(--prog, 0)); }
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
/* Borde blanco parejo que sigue la forma del logo (radio del logo = 6.37% de su ancho) */
.top__logo { --w: clamp(140px, 30vw, 200px); display: block; line-height: 0; background: #fff; padding: 5px; border-radius: calc(var(--w) * .0637 + 5px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.top__logo img { width: var(--w); }
.top .btn { min-height: 44px; padding: 0 18px; background: #fff; color: var(--verde-profundo); }
.top.is-solid { background: rgba(6, 58, 42, .92); backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(0,0,0,.15); }

/* Hero */
.hero { position: relative; min-height: 100svh; background: var(--verde-profundo); color: #fff; overflow: hidden; display: grid; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .035;
  background-image: repeating-linear-gradient(0deg, #fff 0 14px, transparent 14px 48px), repeating-linear-gradient(90deg, #fff 0 14px, transparent 14px 48px); }
.hero__inner { position: relative; width: 100%; display: grid; gap: 28px; padding-block: 120px 80px; }
.hero__text { display: grid; gap: 24px; justify-items: start; transform: translateY(calc(var(--hp, 0) * -120px)); opacity: calc(1 - var(--hp, 0) * 1.4); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dorado); }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--dorado); }
.hero p.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 34ch; opacity: .9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__mila { position: absolute; right: -10vw; top: 26%; width: min(56vw, 720px); transform: rotate(calc(-14deg + var(--hp, 0) * 40deg)) scale(calc(1 + var(--hp, 0) * .35)); opacity: .95; pointer-events: none; }
@media (max-width: 719px) { .hero__mila { width: 95vw; right: -38vw; top: auto; bottom: -8vh; opacity: 1; } }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: calc(.7 - var(--hp, 0) * 3); }
.scroll-hint::after { content: ""; display: block; width: 2px; height: 28px; margin: 8px auto 0; background: #fff; animation: hint 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* Milanesa dibujada en CSS */
/* Pan rallado: relieve generado con ruido SVG (grano grueso + fino) */
.mila { aspect-ratio: 1.72; border-radius: 49% 51% 48% 52% / 53% 50% 50% 47%;
  background:
    radial-gradient(ellipse at 35% 28%, rgba(255,252,240,.35), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(160,115,55,.22) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.38' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23FFFFFF' surfaceScale='2.4'%3E%3CfeDistantLight azimuth='225' elevation='56'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 260px 260px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23FFFFFF' surfaceScale='1.2'%3E%3CfeDistantLight azimuth='225' elevation='65'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 200px 200px,
    linear-gradient(165deg, #F4E4BE, #EAD19F 55%, #DFC189);
  background-blend-mode: normal, normal, multiply, multiply, normal;
  box-shadow: inset 0 0 0 2px rgba(190,150,90,.3), inset 0 -10px 22px rgba(140,100,45,.18), 0 18px 40px rgba(0,0,0,.22); }

/* Sabores: sección fija mientras se desliza */
.sabores { position: relative; height: calc(8 * 75svh + 100svh); }
.sabores__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center;
  background: color-mix(in srgb, var(--c, var(--dorado)) 22%, var(--crema)); transition: background .6s; }
.sabores__grid { display: grid; gap: 24px; align-items: center; padding-top: 70px; }
@media (min-width: 900px) { .sabores__grid { grid-template-columns: 220px 1fr 1fr; gap: 40px; } }
.sabores__label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rojo); }
.lista { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.lista button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 800; color: var(--tinta-suave); transition: color .3s, transform .3s; }
.lista button::before { content: ""; width: 10px; height: 7px; border-radius: 50%; background: var(--c); transition: transform .3s; }
.lista button[aria-current="true"] { color: var(--tinta); transform: translateX(8px); }
.lista button[aria-current="true"]::before { transform: scale(1.6); }
@media (max-width: 899px) {
  .sabores__side { order: 3; }
  .lista { grid-auto-flow: column; justify-content: center; gap: 0; }
  .lista button { font-size: 0; padding: 14px 9px; }
  .lista button::before { width: 13px; height: 10px; }
  .sabores__label { display: none; }
  /* Celular: sección normal (sin quedar fija al bajar), se cambia con flechas */
  .sabores { height: auto; }
  .sabores__stick { position: static; height: auto; overflow: visible; padding-block: 72px 40px; }
  .sabores__grid { padding-top: 0; }
  .escena { touch-action: pan-y; }
}
.escena { position: relative; display: grid; place-items: center; }
.flecha { display: none; position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--verde-profundo); box-shadow: 0 6px 18px rgba(0,0,0,.15); cursor: pointer; place-items: center; padding: 0; }
.flecha svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.flecha--prev { left: 0; }
.flecha--next { right: 0; }
.flecha:active { scale: .92; }
@media (max-width: 899px) { .flecha { display: grid; } }
/* Media vuelta por sabor: queda acostada justo en cada sabor */
.escena .mila { width: min(78vw, 440px); transform: rotate(calc(var(--sp, 0) * 1440deg - 90deg)); }
@media (max-width: 899px) { .escena .mila { transform: rotate(var(--rot, 0deg)); transition: transform .6s cubic-bezier(.3,.8,.3,1); } }
.badge { position: absolute; display: grid; place-items: center; width: clamp(84px, 18vw, 120px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.15); color: color-mix(in srgb, var(--c, var(--dorado)) 70%, #000); transition: transform .45s cubic-bezier(.2,.9,.3,1.3); }
.badge.pop { transform: scale(.6) rotate(-20deg); }
.badge svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge svg .f { fill: currentColor; stroke: none; }
.info { display: grid; gap: 14px; justify-items: start; text-align: left; }
@media (max-width: 899px) { .info { justify-items: center; text-align: center; } }
.info__num { font-weight: 900; font-size: 14px; color: var(--tinta-suave); letter-spacing: .1em; }
.info h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); transition: opacity .25s, transform .25s; }
.info p { font-size: 1.15rem; max-width: 30ch; transition: opacity .25s; }
.swap { opacity: 0; transform: translateY(14px); }

/* Números */
.numeros { background: var(--crema); padding-block: clamp(64px, 12vw, 140px); }
.numeros__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; max-width: 760px; text-align: center; }
.num strong { display: block; font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 900; line-height: 1; color: var(--verde); letter-spacing: -.03em; }
.num span { font-weight: 800; color: var(--tinta-suave); }

/* Por qué */
.porque { background: var(--papel); padding-block: clamp(64px, 12vw, 140px); }
.porque h2 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 14ch; margin-bottom: 40px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { padding: 28px; border-radius: 24px; background: var(--crema); border: 1px solid var(--linea); font-size: 1.2rem; font-weight: 800; display: grid; gap: 10px; }
.card small { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--rojo); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* Revender */
.cinta { background: var(--verde-profundo); color: var(--crema); border-block: 1px solid rgba(255,255,255,.08); overflow: hidden; padding-block: 18px; }
.cinta__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.cinta__track span { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 900; padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.cinta__track span::after { content: ""; width: 18px; height: 12px; border-radius: 50%; background: var(--dorado); }
@keyframes marquee { to { transform: translateX(-50%); } }
.revender { background: var(--verde); color: #fff; padding-block: clamp(64px, 12vw, 140px); text-align: center; }
.revender__inner { display: grid; gap: 22px; justify-items: center; }
.revender h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
.revender p { max-width: 46ch; font-size: 1.15rem; }

/* Contacto */
.contacto { background: var(--verde-profundo); color: #fff; padding-block: clamp(56px, 10vw, 110px) 40px; }
.contacto__inner { display: grid; gap: 36px; justify-items: center; text-align: center; }
.contacto h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.socios { display: grid; gap: 12px; width: 100%; max-width: 860px; }
@media (min-width: 720px) { .socios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.socio { display: grid; gap: 4px; padding: 22px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); text-decoration: none; transition: background .2s, transform .2s; }
.socio:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.socio strong { font-size: 1.3rem; font-weight: 900; }
.socio span { opacity: .8; font-size: 15px; }
.socio em { font-style: normal; font-weight: 800; color: var(--dorado); font-size: 14px; }
.ico-c { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--rojo); }
.ico-c svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-c svg .f { fill: currentColor; stroke: none; }
.socio .ico-c { width: 48px; height: 48px; justify-self: center; margin-bottom: 8px; }
.socio .ico-c svg { width: 26px; height: 26px; }
.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; justify-items: start; }
.datos li { display: flex; align-items: center; gap: 12px; text-align: left; }
.foot-logo { background: #fff; padding: 10px; border-radius: 18px; }
.contacto .small { font-size: 14px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__text, .hero__mila, .escena .mila { transform: none !important; opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
