/* Portada: escena en capas (cielo, sol, nombre, mar, plato, mar delantero, ingredientes cerca y lejos).
   Cada .hl se mueve con el ratón según su data-depth; sus hijos se mueven con el scroll (motion.js). */
.sea {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12c15 0 15-9 30-9s15 9 30 9 15-9 30-9 15 9 30 9 15-9 30-9 15 9 30 9 15-9 30-9 15 9 30 9V24H0Z'/%3E%3C/svg%3E");
  position: absolute; left: -12%; width: 124%; display: block;
  -webkit-mask: var(--wave) repeat-x 0 0 / var(--ww, 240px) var(--wh, 24px), linear-gradient(#000, #000) no-repeat 0 calc(var(--wh, 24px) - 1px) / 100% 100%;
  mask: var(--wave) repeat-x 0 0 / var(--ww, 240px) var(--wh, 24px), linear-gradient(#000, #000) no-repeat 0 calc(var(--wh, 24px) - 1px) / 100% 100%;
  animation: swell var(--sp, 14s) linear infinite;
}
@keyframes swell { to { -webkit-mask-position: var(--ww, 240px) 0, 0 calc(var(--wh, 24px) - 1px); mask-position: var(--ww, 240px) 0, 0 calc(var(--wh, 24px) - 1px); } }

.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__stage { position: absolute; inset: 0; }
.hl { position: absolute; inset: 0; pointer-events: none; will-change: transform; }

/* cielo */
.hl--sky { background: radial-gradient(90% 75% at 50% 62%, #24527a 0%, #163a5a 38%, #0d2238 70%, #08172a 100%); }
.stars {
  position: absolute; inset: -5% -5% 30%; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 27% 42%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 41% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 30%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 78% 9%, #fff, transparent), radial-gradient(1px 1px at 88% 38%, #fff, transparent),
    radial-gradient(1px 1px at 6% 52%, #fff, transparent), radial-gradient(1.2px 1.2px at 54% 55%, #fff, transparent),
    radial-gradient(1px 1px at 93% 60%, #fff, transparent), radial-gradient(1px 1px at 34% 70%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }

/* sol de yuzu: recortado a lo que queda sobre el agua, nunca asoma por debajo */
.hl--sun { clip-path: inset(-20% -20% calc(44% - 22px) -20%); }
.sun {
  position: absolute; left: 50%; top: 9%; width: clamp(260px, 36vw, 560px); aspect-ratio: 1; margin-left: calc(clamp(260px, 36vw, 560px) / -2);
  border-radius: 50%; background: radial-gradient(circle at 38% 32%, #c6ce48 0%, #a8b032 45%, #7b8323 100%);
  box-shadow: 0 0 120px 20px rgba(228, 236, 85, .16), 0 0 300px 60px rgba(228, 236, 85, .07);
}

/* nombre gigante: se invierte sobre el sol (tinta) y sobre la noche (hueso) */
.hl--word { display: grid; place-items: start center; }
.word {
  margin-top: 21vh; font-size: clamp(110px, 23vw, 400px); line-height: .8;
}
.word b { will-change: transform; }

/* mar */
/* el mar baja más allá del borde: aunque las olas suban con el scroll, nunca queda un hueco abajo */
.hl--sea .sea, .hl--sea-front .sea { bottom: -14vh; }
.sea--3 { height: calc(44% + 14vh); background: #1b4466; --ww: 520px; --wh: 44px; --sp: 26s; }
.sea--2 { height: calc(34% + 14vh); background: #12324f; --ww: 380px; --wh: 38px; --sp: 18s; animation-direction: reverse; }
.sea--1 { height: calc(20% + 14vh); background: linear-gradient(var(--ink-2), var(--ink) 60%); --ww: 300px; --wh: 40px; --sp: 11s; }
/* reflejo del sol en el agua */
.hl--sea::after { content: ''; position: absolute; left: 50%; bottom: 8%; width: 18vw; height: 30%; transform: translateX(-50%); background: repeating-linear-gradient(transparent 0 9px, rgba(228, 236, 85, .22) 9px 11px); filter: blur(1px); -webkit-mask: radial-gradient(50% 50% at 50% 0, #000, transparent); mask: radial-gradient(50% 50% at 50% 0, #000, transparent); }

/* plato */
.hl--plate { display: grid; place-items: start center; }
.plate-spin { margin-top: 37vh; will-change: transform; }
.plate { width: clamp(280px, 33vw, 520px); height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); will-change: transform; }

/* ingredientes flotando: cada uno se balancea solo (translate/rotate de CSS)
   y además se mueve con el scroll (transform de GSAP); no se pisan */
.ing { position: absolute; height: auto; will-change: transform; animation: bob var(--bob, 7s) ease-in-out infinite alternate; }
@keyframes bob { from { translate: 0 -10px; rotate: -3deg; } to { translate: 0 12px; rotate: 4deg; } }
.ing--yuzu { left: 2%; top: 36%; width: clamp(150px, 16vw, 270px); --bob: 8s; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); }
.ing--shiso { right: 9%; top: 20%; width: clamp(110px, 12vw, 200px); --bob: 6s; transform: rotate(-30deg); filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.ing--wheel { left: 18%; top: 15%; width: clamp(60px, 6.5vw, 110px); --bob: 9s; filter: blur(1px) drop-shadow(0 10px 20px rgba(0,0,0,.4)); opacity: .9; }
.ing--chili { right: 1%; bottom: 6%; width: clamp(130px, 14vw, 240px); --bob: 7s; filter: blur(.4px) drop-shadow(0 30px 30px rgba(0,0,0,.5)); }
.ing--rosemary { left: -4%; top: 8%; width: clamp(160px, 21vw, 340px); --bob: 10s; filter: blur(5px); opacity: .9; }
.ing--padron { right: 15%; top: 58%; width: clamp(130px, 13vw, 230px); --bob: 8.5s; filter: blur(1px) drop-shadow(0 20px 30px rgba(0,0,0,.55)); }

/* texto */
.hero__content { position: absolute; left: var(--gutter); bottom: clamp(24px, 5vh, 56px); z-index: 5; max-width: 520px; }
.hero__status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(11, 26, 42, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-dark); }
.hero__status i { width: 8px; height: 8px; border-radius: 50%; background: #8ee07a; box-shadow: 0 0 0 0 rgba(142, 224, 122, .6); animation: ping 2s infinite; }
.hero__status.is-closed i { background: var(--prawn); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(142, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(142, 224, 122, 0); } }
.hero__title { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-variation-settings: 'wdth' 85; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -.03em; }
.hero__title em { font-family: var(--serif); font-weight: 400; color: var(--yuzu); letter-spacing: -.01em; }
.hero__lead { margin: 0 0 22px; color: var(--muted-dark); font-size: 17px; max-width: 34ch; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: calc(clamp(28px, 5vh, 60px) + 72px); z-index: 5; /* encima del botón flotante "Reservar mesa" */ display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.hero__scroll i { width: 1.5px; height: 46px; background: linear-gradient(var(--yuzu), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 760px) {
  .sun { top: 12%; width: 74vw; margin-left: -37vw; }
  .word { margin-top: 23vh; font-size: 31vw; }
  .plate-spin { margin-top: 33vh; }
  .plate { width: 72vw; }
  .sea--3 { height: calc(52% + 14vh); } .sea--2 { height: calc(42% + 14vh); } .sea--1 { height: calc(34% + 14vh); }
  .hl--sun { clip-path: inset(-20% -20% calc(52% - 22px) -20%); }
  .hl--sea::after { width: 40vw; }
  .ing--yuzu { left: -6%; top: 47%; width: 36vw; }
  .ing--shiso { right: -4%; top: 15%; width: 26vw; }
  .ing--wheel { left: 6%; top: 12%; width: 13vw; }
  .ing--chili { right: -12%; top: 50%; bottom: auto; width: 34vw; }
  .ing--rosemary { left: -14%; top: 3%; width: 40vw; }
  .ing--padron { display: none; }
  .hero__content { left: 16px; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); max-width: none; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; font-size: 15px; margin-bottom: 16px; }
  .hero__title { font-size: 27px; }
  .hero__ctas { justify-content: center; }
  .hero__ctas .btn { flex: 1 1 auto; --h: 52px; padding: 0 18px; font-size: 15px; }
  .hero__scroll { display: none; }
}
@media (max-height: 700px) and (max-width: 760px) { .hero__lead { display: none; } .plate { width: 62vw; } }
