/* ==========================================================
   DISEÑO · Fuoco Lento
   Oscuro, cálido y vivo: tipografía grande, imágenes grandes,
   scroll que transforma (arco que se abre, pizzas en horizontal),
   brasas, marquesinas y cursor con anillo.
   ========================================================== */
:root { --terracota-luz: #ff5a2c; --dorado: #ff5a2c; }   /* naranja fuego: 6,2:1 sobre el fondo */

body { font-size: 16px; background: var(--fondo); font-weight: 400; }
h1, h2, h3, .titulo { letter-spacing: -.035em; }
.antetitulo { font-weight: 500; }
::selection { background: var(--terracota); color: var(--crema); }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
em { font-style: normal; color: var(--dorado); }   /* Geist no tiene cursiva: el destacado es por color */

/* Rejilla de líneas verticales finas, de fondo en todo el sitio */
.rejilla { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to right, transparent calc(25% - .5px), rgb(245 233 211 / .05) 25%, transparent calc(25% + .5px),
                                        transparent calc(50% - .5px), rgb(245 233 211 / .05) 50%, transparent calc(50% + .5px),
                                        transparent calc(75% - .5px), rgb(245 233 211 / .05) 75%, transparent calc(75% + .5px)); }

/* Cursor con anillo (solo mouse) */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; display: none; }
.cursor span { display: block; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgb(245 233 211 / .55); border-radius: 50%;
  transition: width .35s var(--curva), height .35s var(--curva), margin .35s var(--curva), background .35s, border-color .35s; }
.cursor.sobre span { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgb(208 91 73 / .15); border-color: var(--terracota-luz); }
@media (pointer: fine) { .cursor { display: block; } }

/* ---------- Pastilla (botón) ---------- */
.pastilla {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px;
  border: 1px solid rgb(245 233 211 / .35); color: var(--crema); text-decoration: none; background: none; cursor: pointer;
  font: 500 .74rem/1 var(--fuente-texto); letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s var(--curva), color .4s var(--curva), border-color .4s, transform .4s var(--curva);
}
.pastilla i { width: 6px; height: 6px; border-radius: 50%; background: var(--terracota-luz); transition: transform .4s var(--curva); }
.pastilla:hover { background: var(--crema); color: var(--carbon); border-color: var(--crema); }
.pastilla:hover i { transform: scale(1.6); }
.pastilla--crema { background: var(--crema); color: var(--carbon); border-color: var(--crema); }
.pastilla--crema i { background: var(--carbon); }
.pastilla--crema:hover { background: var(--terracota); color: var(--crema); border-color: var(--terracota); }
.pastilla--crema:hover i { background: var(--crema); }
.pastilla--grande { padding: 20px 34px; font-size: .8rem; }

/* ---------- Barra: logo | menú centrado | idioma + reservar ---------- */
.barra { display: grid; grid-template-columns: 1fr auto 1fr; padding-block: 18px; z-index: 50; }
.barra--solida { background: rgb(17 15 13 / .88); box-shadow: none; backdrop-filter: blur(10px); }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca img { height: 19px; width: auto; display: block; }
.marca span { font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.25rem; letter-spacing: -.03em; }
.marca em { color: var(--dorado); }
.menu { gap: 36px; justify-content: center; }
.menu a { font: 500 .72rem/1 var(--fuente-texto); letter-spacing: .24em; text-transform: uppercase; opacity: .8; text-decoration: none; }
.menu a:hover { opacity: 1; color: var(--crema); }
.barra__der { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.idiomas { display: flex; gap: 12px; }
.idiomas button { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 500 .72rem/1 var(--fuente-texto); letter-spacing: .12em;
  color: var(--crema); opacity: .5; text-shadow: 0 1px 8px rgb(0 0 0 / .6); position: relative; }
.idiomas button:hover, .idiomas button[aria-pressed="true"] { opacity: 1; }
.idiomas button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--terracota-luz); }
.barra .pastilla { padding: 12px 20px; }

/* ---------- Portada (video) ---------- */
.portada-logo { width: clamp(190px, 22vw, 300px); margin-bottom: 1.6rem; filter: drop-shadow(0 2px 24px rgb(0 0 0 / .5)); }
.portada-logo img { display: block; height: auto; }
.portada-logo .arco-logo { width: 63%; margin-inline: auto; transform-origin: 50% 100%; animation: levantar 1.6s var(--curva) both; }
.portada-logo .palabras { width: 100%; margin-top: 5%; animation: subir 1.4s .35s var(--curva) both; }
@keyframes levantar { from { opacity: 0; transform: translateY(16px) scaleY(.5); } to { opacity: 1; transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.frase-marca { font-family: var(--fuente-titulos); font-weight: 600; letter-spacing: -.035em; font-size: clamp(2.2rem, 4.2vw, 4rem); max-width: 14ch; line-height: 1.1; margin: 0; animation: subir 1.4s .6s var(--curva) both; }
.frase-marca em, .capitulo h2 em { color: var(--dorado); }
.frase-traduccion { margin-top: .5rem; font-size: .9rem; opacity: .75; }
.frase-traduccion:empty { display: none; }
.capitulo .antetitulo { color: var(--dorado); }
/* Degradé al pie de la portada: une el video con la sección siguiente */
.escenario__fundido { position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(17 15 13 / 0), rgb(17 15 13 / .75) 60%, var(--fondo)); }
.capitulo { z-index: 2; }
/* Último capítulo: centrado en la pantalla */
.capitulo--final { text-align: center; }
.capitulo--final h2 { max-width: none; margin-inline: auto; }
.capitulo--final .acciones { justify-content: center; }
.capitulo--triada h2 { font-weight: 600; font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: 1; max-width: 12ch; }

/* ---------- Marquesina ---------- */
.marquesina { position: relative; z-index: 2; overflow: hidden; padding-block: clamp(20px, 2.6vw, 34px); }
.marquesina__pista { display: flex; width: max-content; gap: clamp(30px, 3.4vw, 56px); align-items: center; animation: desplazar 30s linear infinite; }
.marquesina span { font-family: var(--fuente-titulos); font-weight: 600; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 1; white-space: nowrap; }
.marquesina span:nth-of-type(2n) { color: var(--dorado); }
.marquesina i { font-style: normal; color: var(--terracota-luz); font-size: 1.4rem; }
@keyframes desplazar { to { transform: translateX(-50%); } }

/* ---------- 3 · Arco que se abre con el scroll ---------- */
.arco { position: relative; height: 300vh; z-index: 2; }
.arco__fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
/* degradé al pie: la imagen del horno se funde con la sección siguiente */
.arco__fijo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(17 15 13 / 0), rgb(17 15 13 / .8) 65%, var(--fondo)); opacity: var(--o-pie, 0); }
.arco__ventana {
  --p: 0;
  position: absolute; left: 50%; top: 50%;
  width: calc(26vw + (100vw - 26vw) * var(--p));
  height: calc(66vh + (100vh - 66vh) * var(--p));
  translate: -50% -50%;
  border-radius: calc(13vw * (1 - var(--p))) calc(13vw * (1 - var(--p))) 0 0 / calc(13vw * (1 - var(--p))) calc(13vw * (1 - var(--p))) 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(55% + 45% * var(--p)), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(55% + 45% * var(--p)), transparent);
}
.arco__ventana img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 40%; scale: calc(1.35 - .35 * var(--p)); filter: brightness(calc(.55 + .3 * var(--p))); }
.arco__titulo {
  position: relative; z-index: 2; text-align: center; font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2.8rem, 7vw, 7.2rem); line-height: 1; padding-inline: 24px;
  opacity: var(--o-titulo, 1); transform: scale(var(--s-titulo, 1));
}
.arco__titulo em { color: var(--dorado); }
.arco__pie { position: absolute; left: clamp(24px, 6vw, 96px); bottom: clamp(48px, 12vh, 140px); z-index: 2; max-width: min(1100px, 90vw);
  opacity: var(--o-pie, 0); transform: translateY(calc(20px * (1 - var(--o-pie, 0)))); }
.arco__pie .antetitulo { color: var(--dorado); }
.arco__texto { font-family: var(--fuente-titulos); font-weight: 600; letter-spacing: -.035em; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; max-width: 13ch; text-shadow: 0 2px 24px rgb(0 0 0 / .6); }

/* (sabores: ver sabores.css) */

/* ---------- Método: palabras gigantes que se "llenan" con el scroll ---------- */
.metodo { position: relative; z-index: 2; padding: clamp(80px, 10vw, 160px) clamp(24px, 5vw, 80px); }
.pasos { list-style: none; margin: 0 auto; padding: 0; max-width: 1400px; display: grid; gap: clamp(40px, 7vh, 90px); }
.paso { --lleno: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 48px); position: relative; }
.paso--invertido { grid-template-columns: auto 1fr; }
.paso--invertido .paso__foto { order: -1; }
.paso--invertido .paso__num { position: absolute; right: 0; top: 0; }
.paso__num { align-self: start; font-weight: 500; font-size: .9rem; letter-spacing: .1em; color: var(--dorado); padding-top: 1.2em; }
.paso__palabra {
  font-weight: 600; letter-spacing: -.055em; line-height: .85; font-size: clamp(4.4rem, 15vw, 15rem);
  /* contorno que se rellena de izquierda a derecha según --lleno */
  color: transparent; -webkit-text-stroke: 1px rgb(245 233 211 / .28);
  background: linear-gradient(90deg, var(--crema) calc(var(--lleno) * 100%), transparent calc(var(--lleno) * 100%));
  -webkit-background-clip: text; background-clip: text; width: fit-content;
  padding-bottom: .18em; margin-bottom: -.18em;   /* el relleno alcanza las colas de p, g, q */
}
.paso:nth-child(2) .paso__palabra { background-image: linear-gradient(90deg, var(--dorado) calc(var(--lleno) * 100%), transparent calc(var(--lleno) * 100%)); }
.paso__foto { margin: 0; width: clamp(120px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: scale(calc(.55 + .45 * var(--lleno))) rotate(calc((1 - var(--lleno)) * -25deg)); opacity: calc(.2 + .8 * var(--lleno)); }
.paso__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paso__texto { grid-column: 2 / -1; max-width: 34ch; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--texto-suave);
  opacity: var(--lleno); transform: translateY(calc((1 - var(--lleno)) * 16px)); margin-top: -.4em; }
.paso--invertido .paso__texto { grid-column: 2; }
/* ---------- 6 · Reserva viva ---------- */
.prenota { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; overflow: hidden; text-align: center;
  padding: clamp(140px, 16vw, 200px) 24px 0;
  background: radial-gradient(ellipse 70% 55% at 50% 100%, rgb(169 61 44 / .28), transparent 70%); }
.prenota__brasas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.prenota__contenido { position: relative; z-index: 3; }
.prenota__flotantes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.prenota__flotantes img { position: absolute; width: var(--t, 60px); height: auto; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .5)) blur(var(--d, 0px));
  animation: flotar var(--dur, 9s) ease-in-out infinite alternate; animation-delay: var(--ret, 0s); opacity: .95; }
@keyframes flotar { from { transform: translate(0, 0) rotate(var(--r0, 0deg)); } to { transform: translate(var(--dx, 20px), var(--dy, -30px)) rotate(var(--r1, 40deg)); } }
.prenota .antetitulo { color: var(--dorado); }
.prenota__titulo { font-weight: 600; font-size: clamp(3.2rem, 9vw, 9rem); line-height: .95; letter-spacing: -.035em; margin: .2em 0 .5em; }
.prenota__titulo span, .prenota__titulo em { display: block; }
.prenota__titulo em { color: var(--dorado); }
.prenota__correo { margin: 22px auto 0; max-width: 520px; }
.prenota__correo summary { cursor: pointer; list-style: none; font-size: .95rem; color: var(--texto-suave); display: inline-block; padding: 6px 0; border-bottom: 1px solid var(--linea); }
.prenota__correo summary::-webkit-details-marker { display: none; }
.prenota__correo summary:hover { color: var(--crema); }
.prenota__correo .formulario { margin-top: 28px; text-align: left; gap: 16px; }
.prenota__contorno { position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 1; overflow: hidden; pointer-events: none; }
.prenota__contorno-pista { display: flex; align-items: center; gap: 4vw; width: max-content; animation: desplazar 26s linear infinite; }
.prenota__contorno span { font-family: var(--fuente-titulos); font-weight: 600; font-size: clamp(5rem, 13vw, 13rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgb(245 233 211 / .28); white-space: nowrap; }
.prenota__contorno i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(245 233 211 / .35); flex: none; }
.prenota__pizza { position: relative; z-index: 2; display: block; width: min(46vw, 440px); height: auto; aspect-ratio: 1; margin: clamp(40px, 6vw, 80px) auto -14%;
  rotate: var(--giro-p, 0deg); translate: 0 var(--sube, 30%); filter: drop-shadow(0 30px 50px rgb(0 0 0 / .6)); }

/* ---------- Pie ---------- */
.pie { position: relative; z-index: 2; padding: 72px 0 48px; }
.pie .envoltura { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.pie-logo { height: 60px; width: auto; }
.pie__frase { font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.4rem; text-align: center; }
.pie__frase em { color: var(--dorado); }
.pie__datos { font-size: .8rem; color: var(--texto-suave); }

/* ---------- Aparición ---------- */
.aparece { transform: translateY(48px); transition: opacity 1.2s var(--curva), transform 1.2s var(--curva); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .capitulo--final { left: 24px; right: 24px; top: 50%; bottom: auto; translate: 0 -50%; text-align: center; }
  .capitulo--final .acciones { justify-content: center; }
  .barra { grid-template-columns: auto 1fr; }
  .menu { display: none; }
  .barra .pastilla span { display: none; }
  .barra .pastilla { padding: 12px; }
  .marca span { font-size: 1.2rem; }
  .arco__ventana { width: calc(62vw + (100vw - 62vw) * var(--p)); border-radius: calc(31vw * (1 - var(--p))) calc(31vw * (1 - var(--p))) 0 0 / calc(31vw * (1 - var(--p))) calc(31vw * (1 - var(--p))) 0 0; }
  .prenota__pizza { width: 76vw; }
  .paso, .paso--invertido { grid-template-columns: 1fr auto; }
  .paso__num { display: none; }
  .paso--invertido .paso__foto { order: 0; }
  .paso__texto, .paso--invertido .paso__texto { grid-column: 1 / -1; }
  .marca img { height: 15px; }
  .pie .envoltura { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .marquesina__pista, .prenota__contorno-pista, .portada-logo .arco-logo, .portada-logo .palabras, .frase-marca { animation: none; }
  .cursor { display: none; }
}
