/* Super Ridolfo. Página estática. Movimiento: GSAP + ScrollTrigger (app.js). */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Color */
  --ink: #0b1f12;
  --shade: #08140c; /* sombra neutra de los velos sobre foto */
  --green: #2bd157;
  --orange: #ff8a1f;
  --white: #fff;
  --map: #dfe6dc;

  /* Escala única de espacios: todo margin/padding/gap vertical sale de aquí */
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* Ritmo: entre secciones (--sec), dentro de una sección (--in = mitad), borde de página (--edge) */
  --sec: var(--s8);
  --in: var(--s6);
  --edge: var(--s5);
  --gut: var(--s5); /* margen lateral, igual en todos los anchos */
  --sheet: var(--s6);            /* radio y solape de las hojas curvas entre secciones */

  /* Escala tipográfica (razón 1,333) */
  --t0: 16px;
  --t1: 21px;
  --t2: 28px;
  --t3: 38px;
  --t4: 50px;
  --t5: 67px;

  --swift: cubic-bezier(.785, .135, .15, .86);
  --out: cubic-bezier(.16, 1, .3, 1);
  font-synthesis: none;
}
@media (min-width: 600px) { .place__addr { font-size: var(--t1); line-height: 1.2; } }
@media (min-width: 900px) {
  :root { --sec: var(--s10); --in: var(--s7); --edge: var(--s7); --gut: var(--s8); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 var(--t0)/1.45 "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
p, h1, h2, figure { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Titular enorme */
.mega {
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(60px, 17.4vw, 150px);
  line-height: .9;
  letter-spacing: -.012em;
  text-transform: uppercase;
  color: var(--white);
}
.mega--ink { color: var(--ink); }

/* Máscaras de revelado: la línea (.ln) o la palabra/letra (.w) recorta; lo de dentro sube.
   El recorte deja aire arriba para las tildes de las mayúsculas. */
.ln { display: block; clip-path: inset(-.2em -.1em 0 -.1em); }
.ln__in { display: block; }
.w { display: inline-block; clip-path: inset(-.2em -.1em -.25em -.1em); }
.w__in { display: inline-block; }

/* ---------- 1. Portada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Abajo: aire propio más el solape de la hoja de fotos, para que no tape el último botón. */
  padding: var(--edge) var(--gut) var(--s8);
  overflow: hidden;
  isolation: isolate;
  background: var(--shade);
  /* Alto de la franja de textos: titular (2 líneas) + botones + aire de abajo + aire hasta el letrero. */
  --copy: calc(1.8 * clamp(60px, 17.4vw, 150px) + var(--in) + 3 * var(--s8) + 2 * var(--s3) + var(--s8) + var(--s6));
  /* En pantallas bajas la portada crece lo justo para que el letrero no se salga por arriba. */
  min-height: max(100svh, calc(var(--copy) * 1.384 + var(--s3)));
}
/* La foto de la fachada llena toda la portada, de borde a borde y hasta abajo. Se mide con el bloque de textos
   (su 100 % es el alto de .hero__body): el letrero iluminado termina al 50 % de la foto contando desde abajo,
   así que con este alto queda siempre libre, por encima del titular y de los botones. */
.hero__photo {
  position: absolute; z-index: -2;
  inset: auto calc(var(--gut) * -1) calc(var(--s8) * -1);
  height: max(100svh, calc((100% + var(--s8) + var(--s6)) / .48));
}
.hero__photo picture, .hero__photo img { display: block; width: 100%; height: 100%; }
/* Foto original vertical: el letrero está al 42 % del ancho; 29 % lo corre a la derecha de la placa del logo. */
.hero__photo img { object-fit: cover; object-position: 29% 75%; }
/* Velo solo detrás de los textos (titular y botones); el letrero y la parte alta de la fachada quedan sin velo. */
.hero__veil {
  position: absolute; z-index: -1;
  inset: calc(var(--s6) * -1) calc(var(--gut) * -1) calc(var(--s8) * -1);
  background: linear-gradient(to bottom, rgba(8, 20, 12, 0) 0%, rgba(8, 20, 12, .62) 13%, rgba(8, 20, 12, .66) 40%, rgba(8, 20, 12, .5) 100%); /* taste-skill-ignore: velo oscuro sobre la foto */
}
/* Celulares de pantalla baja (p. ej. 390 × 664 con la barra del navegador): el letrero y la placa del logo
   no caben uno sobre otro, así que el letrero se corre a la derecha de la placa; en los más angostos la
   portada crece el alto de la placa para que el letrero quede debajo de ella. */
@media (max-width: 599px) and (max-height: 759px) {
  .hero__photo img { object-position: 22% 75%; }
}
@media (max-width: 374px) and (max-height: 759px) {
  .hero { min-height: max(100svh, calc(var(--copy) * 1.384 + var(--s3) + var(--edge) + 113px)); }
  .hero__photo img { object-position: 29% 75%; }
}

.plate {
  align-self: flex-start;
  width: 108px;
  padding: var(--s3);
  background: var(--white);
  border-radius: 16px;
}
.plate img { width: 100%; height: auto; }

.hero__body { position: relative; display: grid; gap: var(--in); }
.actions { display: grid; gap: var(--s3); }

/* ---------- Botón con relleno que crece desde el círculo de la flecha
   (reescritura propia de "Arrow Fill Button") ---------- */
.btn {
  --h: var(--s8); --c: var(--s7); --g: var(--s2);
  --bg: var(--white); --fg: var(--ink); --fill: var(--ink); --fill-fg: var(--white);
  position: relative;
  display: flex; align-items: center;
  min-height: var(--h);
  padding: var(--s2) calc(var(--s7) + var(--s2) + var(--s3)) var(--s2) var(--s4);
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-stretch: 80%; font-size: var(--t0); line-height: 1.08;
  text-transform: uppercase; text-wrap: balance;
  overflow: hidden; isolation: isolate;
  touch-action: manipulation;
}
.btn--green { --bg: var(--green); --fg: var(--ink); --fill: var(--ink); --fill-fg: var(--green); }
.btn__face, .btn__top { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.btn__top {
  position: absolute; inset: 0;
  padding: inherit;
  background: var(--fill); color: var(--fill-fg);
  clip-path: inset(var(--g) var(--g) var(--g) calc(100% - var(--g) - var(--c)) round 999px);
  transition: clip-path .5s var(--swift);
}
.btn__top .btn__txt::after { content: attr(data-t); }
.btn__arrow {
  position: absolute; right: var(--g); top: 50%;
  width: var(--c); height: var(--c);
  transform: translateY(-50%);
  border-radius: 50%; overflow: hidden;
  color: var(--fill-fg);
}
.btn__arrow .ico { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; transition: transform .5s var(--swift), opacity .3s ease; }
.a-in { transform: translate(-190%, -50%) scale(.6); opacity: 0; }
.a-out { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.btn:active { transform: scale(.985); }
@media (hover: hover) {
  .btn:hover .btn__top { clip-path: inset(0 0 0 0 round 999px); }
  .btn:hover .a-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .btn:hover .a-out { transform: translate(90%, -50%) scale(.6); opacity: 0; }
}
.btn:focus-visible .btn__top, .btn.is-pressed .btn__top { clip-path: inset(0 0 0 0 round 999px); }
.btn:focus-visible .a-in, .btn.is-pressed .a-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.btn:focus-visible .a-out, .btn.is-pressed .a-out { transform: translate(90%, -50%) scale(.6); opacity: 0; }

/* ---------- 2. Frase de marca: hoja de fotos a sangre que sube sobre la portada.
   Las tres fotos llenan toda la sección (nunca hay marco ni fondo liso a la vista) y la frase
   viaja fija sobre ellas con position: sticky. Solo transform y opacity en movimiento. ---------- */
.stage {
  position: relative; z-index: 1;
  display: grid;
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
  overflow: clip; /* recorta las esquinas sin romper sticky */
  background: var(--ink);
}
.stage__media { grid-area: 1 / 1; display: grid; grid-template-rows: 100svh 100svh auto; }
.stage__shot { position: relative; overflow: hidden; min-height: 0; background: var(--ink); }
.stage__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__shot::after { content: ""; position: absolute; inset: 0; background: var(--shade); opacity: var(--veil, .5); pointer-events: none; }
/* Celular: la foto de verduras se encuadra en su 80 % alto (producto), no en el piso de baldosas. */
.stage__shot--a img { height: 125%; object-position: 50% 58%; }
.stage__shot--b img { object-position: 50% 68%; }
/* Celular: pantalla completa; prioriza cara y mano del anaquel, sin hoja verde encima. */
.stage__shot--c { height: 100svh; }
.stage__shot--c img { height: 100%; object-position: 88% 50%; transform-origin: 50% 80%; }
.stage__hold {
  grid-area: 1 / 1; align-self: start;
  position: sticky; top: 0; z-index: 1;
  height: 100svh;
  display: grid; place-items: center;
  padding: 0 var(--gut);
  pointer-events: none;
}
.stage__say {
  font-weight: 800; font-stretch: 62%;
  font-size: clamp(60px, 17.4vw, 150px); line-height: .9; letter-spacing: -.012em;
  text-align: center; text-wrap: balance;
  color: var(--white);
  max-width: 7em;
}

/* ---------- 3. Ubicación: franja fina sin solape sobre la foto ---------- */
.place {
  position: relative; z-index: 2;
  padding-bottom: var(--sheet); /* el pie solapa este tramo, no el mapa ni su atribución */
  margin-top: 0;
  border-radius: 0;
  background: var(--white); /* v10: neutro, sin banner verde */
  overflow: hidden;
}
.place__grid { display: grid; gap: 0; }
/* v10: bloque neutro (blanco + tinta); título, línea fina que se dibuja y dirección; el mapa es el protagonista. */
.place__text { display: grid; gap: var(--s3); padding: var(--s5) var(--gut) var(--s4); } /* v11: franja más baja */
.place .place__title { font-size: var(--t1); line-height: 1; }
.place__rule { display: block; height: 1px; background: var(--ink); opacity: .16; transform-origin: 0 50%; }
.place__addr {
  display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s3); align-items: center;
  font-weight: 700; font-stretch: 88%;
  font-size: var(--t0); line-height: 1.25; letter-spacing: -.01em;
  max-width: 24em;
}
.place__lines {
  text-decoration: underline 3px transparent;
  text-underline-offset: .16em;
  transition: text-decoration-color .4s var(--out);
}
.place__lines:hover, .place__lines:focus-visible { text-decoration-color: currentColor; }
.pin {
  position: relative;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
}
.pin .ico { width: 16px; height: 16px; }
.pin::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--ink);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }
.place__map { position: relative; height: clamp(480px, 82svh, 760px); background: var(--white); overflow: hidden; }
.place__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 4. Cierre: franja oscura de esquinas rectas con la firma y la razón social ---------- */
.foot {
  position: relative; z-index: 3;
  margin-top: calc(var(--sheet) * -1);
  border-radius: 0; /* v11: esquinas rectas */
  background: var(--ink); color: var(--white);
  padding: var(--s3) var(--gut) var(--s3); /* v11: menos alto */
  overflow: hidden;
}
/* v10: línea fina centrada que se dibuja desde el centro, encima de la razón social */
.foot__rule { display: block; width: var(--s7); height: 1px; margin: 0 auto var(--s2); background: var(--white); opacity: .32; }
.foot__legal { font-size: 10px; font-weight: 300; line-height: 1.3; letter-spacing: .04em; text-align: center; color: var(--white); opacity: .78; }

/* Telón: cubre al cargar (solo con movimiento) */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--ink); transform: translateY(100%); visibility: hidden; pointer-events: none; }
.motion .curtain { transform: none; visibility: visible; }

/* Estados iniciales de la portada mientras llega el movimiento (sin .motion todo se ve) */
.motion .hero .ln__in { transform: translateY(110%); }
.motion .plate, .motion .actions .btn { opacity: 0; }
/* Seguro: si la entrada no termina (pestaña en segundo plano, captura sin reloj), los botones aparecen solos. */
.motion .actions .btn { animation: btn-safe 0s 3.4s forwards; }
@keyframes btn-safe { to { opacity: 1; visibility: visible; } }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  .mega { font-size: clamp(120px, 12.2vw, 208px); line-height: .86; }
  .mega--ink { font-size: clamp(88px, 8.6vw, 150px); }
  .plate { width: 140px; padding: var(--s3); border-radius: 20px; }
  /* Escritorio (v9): foto original a todo su ancho, anclada a la izquierda (el edificio empieza en el borde).
     Titular y botones en una columna a la derecha, sobre el cielo/edificios oscuros (la fachada acaba al 63,5 % del ancho). */
  .hero { --col: clamp(300px, 31vw, 560px); --copy: calc(1.72 * var(--col) / 4.7 + var(--in) + 3 * var(--s8) + 2 * var(--s3)); min-height: max(100svh, calc(var(--copy) + 152px + 2 * var(--edge) + var(--s8))); }
  .hero .mega { font-size: calc(var(--col) / 4.7); }
  .hero__photo { height: max(100svh, calc(100% + 152px + 2 * var(--edge) + var(--s8))); }
  .hero__photo img { object-position: 0% 50%; transform-origin: 0% 50%; }
  /* Velo solo en la zona derecha, a todo el alto: empieza donde termina el letrero. */
  .hero__veil {
    top: -100svh;
    background: linear-gradient(to right, rgba(8, 20, 12, 0) 62%, rgba(8, 20, 12, .58) 72%, rgba(8, 20, 12, .66) 100%); /* taste-skill-ignore: velo oscuro sobre la foto */
  }
  .hero__body { grid-template-columns: var(--col); justify-content: end; }
  .btn { --h: var(--s8); --c: var(--s7); padding-left: var(--s5); }

  /* Escritorio: dos columnas a sangre; la sección mide 1,4 pantallas para que la frase viaje sobre las fotos. */
  .stage__media { grid-template-rows: 140svh auto; grid-template-columns: repeat(2, 1fr); }
  .stage__shot--a img { height: 100%; object-position: 50% 50%; }
  .stage__shot--b img { object-position: 50% 60%; }
  /* La tercera foto cruza las dos columnas con su proporción original: se ve entera. */
  .stage__shot--c { grid-column: 1 / -1; height: auto; aspect-ratio: 1290 / 980; }
  .stage__shot--c img { height: 100%; object-position: 50% 50%; transform-origin: 50% 50%; }
  .stage__hold { margin-bottom: 0; }
  .stage__say { font-size: clamp(120px, 12.2vw, 208px); line-height: .86; }

  /* Escritorio: bloque neutro de una fila (título a la izquierda, dirección a la derecha), línea fina debajo y mapa a todo el ancho. */
  .place__text { grid-template-columns: auto 1fr; align-items: center; gap: var(--s4) var(--s7); padding: var(--s6) var(--gut) var(--s5); }
  .place .place__title { font-size: var(--t2); grid-area: 1 / 1; }
  .place__addr { justify-self: end; max-width: none; grid-area: 1 / 2; font-size: 15px; }
  .place__rule { grid-area: 2 / 1 / 3 / -1; }
  .place__map { height: clamp(560px, 88svh, 960px); }
}

/* ---------- v10. Solo celular/tablet (< 900 px): escala tipo Apple (titular 40-48, h2 28, cuerpo 17, botón 17 / alto 48).
   Mismas fuentes, colores y textos. Escritorio no se toca. ---------- */
@media (max-width: 899px) {
  body { font-size: 17px; line-height: 1.47; }
  .hero {
    --h1: clamp(40px, 12vw, 48px);
    --copy: calc(2.04 * var(--h1) + var(--in) + 3 * var(--s7) + 2 * var(--s3) + var(--s8) + var(--s6));
  }
  .hero .mega { font-size: var(--h1); line-height: 1.02; letter-spacing: -.01em; }
  .stage__say { font-size: var(--t2); line-height: 1.14; letter-spacing: -.005em; max-width: 12em; }
  .place .place__title { font-size: 24px; line-height: 1.14; }
  .place__addr { font-size: 15px; line-height: 1.35; }
  .btn {
    --h: var(--s7); --c: var(--s6);
    padding: var(--s2) calc(var(--c) + var(--g) + var(--s3)) var(--s2) var(--s4);
    font-size: 17px; font-weight: 600; line-height: 1.18; letter-spacing: -.01em;
    text-transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v14. Eficiencia: cada pantalla mide exactamente el viewport (solo CSS).
   Portada = 100svh justos, sin que asome la sección siguiente y con los tres botones enteros.
   Ubicación (franja fina + mapa con el alto restante) + pie = 100svh justos. ---------- */
:root { --foot-h: 46px; } /* alto fijo del pie: 12 + (1 + 8) + 13 + 12 */
.hero, .hero.hero { height: 100svh; min-height: 0; padding-bottom: var(--edge); }
@media (max-width: 374px) and (max-height: 759px) { .hero { min-height: 0; } }
@media (min-width: 900px) { .hero { min-height: 0; } }
/* Portada baja: se aprieta el aire interno antes que cortar un botón. */
@media (max-height: 700px) { .hero { --in: var(--s4); padding-top: var(--s4); padding-bottom: var(--s4); } .actions { gap: var(--s2); } }
/* La hoja de fotos ya no monta sobre la portada: empieza justo donde esta termina. */
.stage { margin-top: 0; border-radius: 0; }
.place { height: calc(100svh - var(--foot-h)); padding-bottom: 0; }
.place__grid { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.place__text { gap: var(--s2); padding: var(--s3) var(--gut); }
.place__map { height: auto; min-height: 0; }
.foot { height: var(--foot-h); margin-top: 0; }
.foot__legal { white-space: nowrap; }
@media (min-width: 900px) {
  .place__text { gap: var(--s2) var(--s7); padding: var(--s3) var(--gut); }
  .place__map { height: auto; }
}

/* ---------- v18. Enlaces legales del pie: misma letra fina del RIF, esquina inferior derecha.
   En celular van justo debajo del RIF, centrados; el pie conserva su alto (--foot-h). ---------- */
.foot__links {
  position: absolute; right: var(--gut); bottom: var(--s3);
  font-size: 10px; font-weight: 300; line-height: 1.3; letter-spacing: .04em; white-space: nowrap;
  color: var(--white); opacity: .78;
}
.foot__links a { text-decoration: underline 1px transparent; text-underline-offset: .2em; transition: text-decoration-color .3s var(--out); }
.foot__links a:hover, .foot__links a:focus-visible, .foot__links a[aria-current] { text-decoration-color: currentColor; }
.foot__links a:focus-visible { outline-width: 2px; outline-offset: 1px; }
@media (max-width: 599px) {
  .foot { padding-block: 4px; }
  .foot__rule { margin-bottom: 4px; }
  .foot__links { position: static; margin-top: 4px; text-align: center; }
}
