/* ==========================================================
   TROVATTORE di mare — estilos
   Paleta del manual: Tomate · Mozzarella · Horno. Nada más.
   Manda el rojo.
   ========================================================== */

@font-face {
  font-family: "Atelia";
  src: url("../fonts/Atelia.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Crusthy";
  src: url("../fonts/Crusthy-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --tomate: #D13A2F;
  --tomate-tono: #BD3027;
  --mozzarella: #FCEEB4;
  --horno: #16110E;
  --horno-2: #221A15;
  --linea: rgba(252, 238, 180, .18);
  --linea-roja: rgba(22, 17, 14, .25);

  --f-titular: "Atelia", "Arial Black", Impact, sans-serif;
  --f-mano: "Crusthy", "Brush Script MT", cursive;
  --f-texto: "Work Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tomate);
  color: var(--mozzarella);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--horno); color: var(--mozzarella); }

/* grano por encima de todo */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 150;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- fondos ---------- */
.roja  { background: var(--tomate) url("../logo/trama-tomate.svg") 0 0 / 560px; color: var(--mozzarella); }
.negra { background: var(--horno); color: var(--mozzarella); }
.negra-trama { background: var(--horno) url("../logo/trama-horno.svg") 0 0 / 560px; color: var(--mozzarella); }

/* ---------- tipografía ---------- */
.t-mega, .t-xl, .t-l, .t-m {
  font-family: var(--f-titular);
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
  font-weight: 400;
}
.t-mega { font-size: clamp(64px, 15vw, 240px); }
.t-xl   { font-size: clamp(48px, 9.4vw, 140px); }
.t-l    { font-size: clamp(38px, 6.2vw, 90px); }
.t-m    { font-size: clamp(26px, 3.4vw, 44px); line-height: .95; }
.mano   { font-family: var(--f-mano); text-transform: none; font-weight: 400; letter-spacing: 0; }
.acento { color: var(--tomate); }
.roja .acento, .roja .eyebrow { color: var(--horno); }
.oscuro { color: var(--horno); }
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--tomate);
  margin: 0 0 18px;
}
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34em; }
.roja .lead, .roja p { color: var(--horno); }

/* relleno pendiente */
.ph {
  background: repeating-linear-gradient(-45deg, rgba(252,238,180,.25) 0 6px, transparent 6px 12px);
  outline: 1px dashed currentColor;
  padding: 0 .25em;
  border-radius: 2px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-titular);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 16px 26px 14px;
  border: 2px solid var(--mozzarella);
  border-radius: 999px;
  background: var(--mozzarella);
  color: var(--horno);
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: rotate(-4deg) scale(1.05); }
.btn svg { width: 1em; height: 1em; }
.btn--negro { background: var(--horno); border-color: var(--horno); color: var(--mozzarella); }
.btn--rojo  { background: var(--tomate); border-color: var(--tomate); color: var(--mozzarella); }
.btn--ghost { background: transparent; color: var(--mozzarella); }
.roja .btn--ghost { border-color: var(--horno); color: var(--horno); }
.btn--negro:hover, .btn--rojo:hover { background: var(--mozzarella); border-color: var(--mozzarella); color: var(--horno); }
.btn:not(.btn--negro):not(.btn--rojo):hover { background: var(--horno); border-color: var(--horno); color: var(--mozzarella); }

/* ---------- intro: el imagotipo se dibuja ---------- */
.intro {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--horno);
  display: grid; place-items: center;
  animation: telon .9s 2.5s var(--ease) forwards;
}
.intro__marca { width: min(62vw, 380px); color: var(--mozzarella); }
.intro__marca svg { width: 100%; height: auto; display: block; overflow: visible; }
.intro__palabra { overflow: hidden; margin-top: 22px; }
.intro__palabra img { width: 100%; transform: translateY(110%); animation: sube .7s 1.4s var(--ease) forwards; }
.intro__dimare { width: 42%; margin: 6px 0 0 auto; opacity: 0; transform: rotate(-6deg); animation: aparece .4s 1.9s forwards; }
@keyframes telon { to { transform: translateY(-100%); visibility: hidden; } }
.sin-intro .intro { display: none; }

/* trazo que se dibuja (isotipo e imagotipo) */
.dibuja path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.dibuja.visto path, .intro .dibuja path {
  animation: traza 1.8s calc(var(--i, 0) * .05s) cubic-bezier(.6,0,.3,1) forwards,
             rellena .6s calc(1.4s + var(--i, 0) * .05s) forwards;
}
@keyframes traza { to { stroke-dashoffset: 0; } }
@keyframes rellena { to { fill: currentColor; } }

/* ---------- cabecera ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s, transform .35s var(--ease);
}
.header.is-scrolled { background: var(--horno); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--mozzarella); }
.brand__iso { width: 54px; height: auto; transition: transform .4s var(--ease); }
.brand:hover .brand__iso { transform: rotate(-14deg) scale(1.1); }
.brand__word { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--f-titular); text-transform: uppercase; text-decoration: none; font-size: 17px; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; background: var(--horno);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.is-scrolled .nav a:not(.btn)::after { background: var(--tomate); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 11px 20px 9px; font-size: 16px; }
.burger { display: none; }

@media (max-width: 860px) {
  .brand__word { width: 120px; }
  .brand__iso { width: 44px; }
  .burger {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border: 0; border-radius: 50%;
    background: var(--horno); color: var(--mozzarella);
    cursor: pointer; z-index: 2;
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative;
    transition: transform .3s var(--ease), background .2s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .menu-open .burger span { background: transparent; }
  .menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 18px;
    background: var(--horno) url("../logo/trama-horno.svg") 0 0 / 420px;
    clip-path: circle(0 at calc(100% - 40px) 38px);
    transition: clip-path .6s var(--ease);
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 38px); }
  .nav a { font-size: clamp(44px, 13vw, 72px); }
  .nav a:not(.btn)::after { background: var(--tomate); height: 5px; }
  .nav .btn { font-size: 20px; padding: 16px 28px 14px; margin-top: 18px; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(100svh, 1000px); padding: 120px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.hero__title { position: relative; z-index: 2; }
.hero .t-mega { font-size: clamp(56px, 9.6vw, 164px); }
.hero__title .linea { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .linea > span { display: block; transform: translateY(105%); animation: sube .9s .1s var(--ease) forwards; }
.hero__title .linea:nth-child(2) > span { animation-delay: .22s; }
html:not(.sin-intro) .hero__title .linea > span { animation-delay: 2.9s; }
html:not(.sin-intro) .hero__title .linea:nth-child(2) > span { animation-delay: 3.02s; }
@keyframes sube { to { transform: none; } }
.hero__firma {
  font-family: var(--f-mano);
  color: var(--mozzarella);
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1;
  display: inline-block;
  transform: rotate(-6deg);
  margin: 14px 0 0 .3em;
}
@keyframes aparece { to { opacity: 1; } }
.hero__sub { margin: 30px 0 30px; max-width: 30em; font-size: 18px; color: var(--horno); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__pizza { position: relative; aspect-ratio: 1; width: min(100%, 640px); justify-self: center; }
.pizza-giratoria {
  position: absolute; inset: 12%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 40px 70px rgba(22,17,14,.55), 0 0 0 12px var(--horno);
}
.pizza-giratoria img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.texto-circular { position: absolute; inset: 0; width: 100%; height: 100%; animation: gira 30s linear infinite reverse; }
.texto-circular text { font-family: var(--f-titular); font-size: 30px; letter-spacing: 6px; fill: var(--horno); }
@keyframes gira { to { transform: rotate(360deg); } }

.pegatina {
  position: absolute; z-index: 3;
  display: grid; place-items: center;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--horno);
  color: var(--mozzarella);
  text-align: center;
  font-family: var(--f-titular);
  text-transform: uppercase;
  font-size: 19px; line-height: .95;
  transform: rotate(-14deg);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.pegatina b { display: block; font-size: 40px; font-weight: 400; color: var(--tomate); }
.pegatina--crema { background: var(--mozzarella); color: var(--horno); }
.hero__pizza .pegatina { right: 0; bottom: 6%; }
@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__pizza { width: min(92vw, 440px); margin-top: 10px; }
  .pegatina { width: 112px; height: 112px; font-size: 15px; }
  .pegatina b { font-size: 32px; }
}

/* garabatos: referencias de pizza al estilo del isotipo */
.garabato { position: absolute; z-index: 2; color: var(--mozzarella); pointer-events: none; animation: flota 7s ease-in-out infinite; }
.garabato svg { width: 100%; height: auto; display: block; overflow: visible; }
.garabato--oscuro { color: var(--horno); }
.garabato--rojo { color: var(--tomate); }
@keyframes flota { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 8deg)); } }

/* ---------- cintas ---------- */
.cinta {
  background: var(--horno);
  color: var(--mozzarella);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0 12px;
  transform: rotate(-2deg) scale(1.05);
  margin: 40px 0;
  position: relative; z-index: 4;
}
.cinta--recta { transform: none; margin: 0; }
.cinta--crema { background: var(--mozzarella); color: var(--horno); }
.cinta--roja { background: var(--tomate); color: var(--mozzarella); }
.cinta__pista { display: inline-flex; animation: corre 28s linear infinite; }
.cinta--reves .cinta__pista { animation-direction: reverse; }
.cinta__pista span {
  font-family: var(--f-titular);
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 44px);
  padding-right: .5em;
  display: inline-flex; align-items: center; gap: .5em;
}
.cinta__pista svg, .cinta__pista img { width: 1.3em; height: auto; flex: none; }
@keyframes corre { to { transform: translateX(-50%); } }
.cruzadas { position: relative; padding: 50px 0; overflow: hidden; }
.cruzadas .cinta { margin: 0; }
.cruzadas .cinta + .cinta { transform: rotate(3deg) scale(1.05); margin-top: -40px; }

/* ---------- secciones ---------- */
.seccion { padding: clamp(80px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.cabecera-sec { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); position: relative; z-index: 2; }

/* el horno: imagotipo + brasas */
.horno { text-align: center; isolation: isolate; padding-bottom: clamp(100px, 14vw, 200px); }
.horno::before {
  content: ""; position: absolute; left: 50%; bottom: -30%;
  width: 140vw; height: 110%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(209,58,47,.95), rgba(209,58,47,.45) 45%, rgba(209,58,47,0) 75%);
  animation: respira 3.5s ease-in-out infinite;
  z-index: -1;
}
@keyframes respira { 0%,100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.brasas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.horno__marca { width: min(78vw, 560px); margin: 0 auto 50px; color: var(--mozzarella); }
.horno__marca svg { width: 100%; height: auto; overflow: visible; }
.horno .t-xl span { display: block; }
.horno .lead { margin: 30px auto 0; color: rgba(252,238,180,.85); }

/* las que mandan */
.mandan { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); position: relative; z-index: 2; }
.plato { position: relative; text-decoration: none; color: inherit; }
.plato__foto {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--horno-2);
  box-shadow: 0 0 0 10px var(--horno), 0 30px 60px rgba(22,17,14,.45);
  transition: transform .6s var(--ease);
}
.plato__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform .8s var(--ease); }
.plato:hover .plato__foto { transform: rotate(-8deg) scale(1.03); }
.plato:hover .plato__foto img { transform: scale(1.3) rotate(25deg); }
.plato__num {
  position: absolute; top: -14px; left: -8px;
  font-family: var(--f-titular); font-size: 72px; line-height: 1;
  color: var(--mozzarella);
  -webkit-text-stroke: 3px var(--horno);
  paint-order: stroke fill;
  z-index: 2;
  transform: rotate(-8deg);
}
.plato h3 { font-family: var(--f-titular); text-transform: uppercase; font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; margin: 32px 0 8px; color: var(--mozzarella); }
.plato p { margin: 0; color: var(--horno); font-size: 15px; max-width: 26em; font-weight: 500; }
.plato .precio { font-family: var(--f-mano); color: var(--mozzarella); font-size: 38px; line-height: 1; display: block; margin-top: 10px; }
@media (max-width: 860px) { .mandan { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 60px; } }

/* galería: polaroids recién salidas */
.galeria { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.galeria__fila { display: flex; width: max-content; gap: 28px; padding: 26px 0; animation: corre 60s linear infinite; }
.galeria__fila--reves { animation-direction: reverse; animation-duration: 70s; }
.galeria:hover .galeria__fila { animation-play-state: paused; }
.polaroid {
  flex: none;
  width: clamp(200px, 22vw, 290px);
  background: var(--mozzarella);
  padding: 12px 12px 0;
  transform: rotate(var(--r, -3deg));
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: transform .4s var(--ease);
  margin: 0;
}
.polaroid:hover { transform: rotate(0) scale(1.08); z-index: 3; }
.polaroid img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; }
.polaroid figcaption { font-family: var(--f-mano); color: var(--horno); font-size: 30px; line-height: 1; padding: 12px 4px 14px; text-align: center; }

/* bloque historia (home) */
.historia-home { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; position: relative; z-index: 2; }
.historia-home .t-xl { color: var(--horno); }
.historia-home .t-xl .mano { color: var(--mozzarella); font-size: .6em; display: block; transform: rotate(-4deg); margin: .15em 0 .45em; line-height: 1; }
.historia-home__iso { width: 100%; max-width: 560px; color: var(--horno); justify-self: center; }
.historia-home__iso svg { width: 100%; height: auto; overflow: visible; }
.historia-home__iso .meneo { animation: bambolea 6s 3s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes bambolea { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (max-width: 860px) { .historia-home { grid-template-columns: 1fr; } .historia-home__iso { max-width: 300px; order: -1; } }

/* manifiesto */
.manifiesto { list-style: none; margin: 0; padding: 0; counter-reset: m; position: relative; z-index: 2; }
.manifiesto li {
  border-top: 1px solid var(--linea);
  padding: clamp(18px, 2.4vw, 30px) 0;
  display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: baseline;
  counter-increment: m;
  transition: color .3s, padding .4s var(--ease);
}
.manifiesto li:last-child { border-bottom: 1px solid var(--linea); }
.manifiesto li::before { content: "0" counter(m); font-family: var(--f-mano); color: var(--tomate); font-size: 30px; }
.manifiesto li:hover { color: var(--tomate); padding-left: 16px; }
.manifiesto .t-m { font-size: clamp(26px, 4vw, 56px); }
@media (max-width: 600px) { .manifiesto li { grid-template-columns: 1fr; gap: 0; } }

/* reloj */
.reloj { text-align: center; }
.reloj .t-mega { color: var(--horno); font-size: clamp(100px, 25vw, 380px); line-height: .8; }
.reloj .mano { font-size: clamp(34px, 4.6vw, 64px); display: block; transform: rotate(-3deg); color: var(--mozzarella); line-height: 1.1; max-width: 18em; margin: 0 auto .1em; }
.reloj .t-mega { font-variant-numeric: tabular-nums; }
.reloj__seg[hidden] { display: none; }
.reloj__abierto { font-family: var(--f-titular); text-transform: uppercase; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .04em; }
.reloj .hero__ctas { justify-content: center; margin-top: 40px; }

/* ---------- cabecera de páginas internas ---------- */
.page-hero { padding: 150px 0 clamp(60px, 9vw, 120px); position: relative; overflow: hidden; }
.page-hero .t-mega { position: relative; z-index: 2; }
.page-hero .mano { font-size: clamp(38px, 5vw, 76px); display: inline-block; transform: rotate(-5deg); margin-left: .2em; color: var(--mozzarella); }
.page-hero .lead { color: var(--horno); font-weight: 500; position: relative; z-index: 2; }
.page-hero__iso { position: absolute; right: -9%; top: 56%; width: min(46vw, 640px); color: var(--horno); transform: translateY(-50%) rotate(-10deg); pointer-events: none; }
.page-hero__iso svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 860px) { .page-hero__iso { opacity: .35; width: 90vw; right: -25%; } }

/* ---------- historia (página Trovattore) ---------- */
.capitulo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; position: relative; z-index: 2; }
.capitulo + .capitulo { margin-top: clamp(80px, 12vw, 160px); }
.capitulo--inv .capitulo__media { order: 2; }
.capitulo__num { font-family: var(--f-mano); color: var(--tomate); font-size: 48px; line-height: 1; display: block; margin-bottom: 8px; }
.capitulo h2 { margin-bottom: 26px; }
.capitulo p { margin: 0 0 1em; max-width: 32em; color: rgba(252,238,180,.85); }
.capitulo__media { position: relative; }
.foto-pendiente {
  aspect-ratio: 4/5;
  border: 2px dashed rgba(252,238,180,.35);
  border-radius: 18px;
  display: grid; place-items: center;
  text-align: center;
  padding: 30px;
  background: var(--horno-2);
  color: rgba(252,238,180,.6);
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(-2deg);
}
.capitulo--inv .foto-pendiente { transform: rotate(2deg); }
.foto-pendiente svg { width: 90px; color: var(--tomate); margin: 0 auto 16px; display: block; }
.capitulo__media .polaroid { width: 100%; }
.capitulo__media .pegatina { top: -30px; right: -20px; }
@media (max-width: 860px) {
  .capitulo { grid-template-columns: 1fr; }
  .capitulo--inv .capitulo__media { order: 0; }
  .capitulo__media .pegatina { right: 10px; }
}

/* mesa de fotos */
.mesa { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 30px); position: relative; z-index: 2; }
.mesa .polaroid { width: 100%; }
.mesa .polaroid:nth-child(even) { margin-top: 50px; }
@media (max-width: 860px) { .mesa { grid-template-columns: 1fr 1fr; } .mesa .polaroid:nth-child(even) { margin-top: 30px; } }

.cita { text-align: center; }
.cita blockquote { margin: 0 auto; max-width: 16em; font-family: var(--f-titular); text-transform: uppercase; font-size: clamp(36px, 6vw, 88px); line-height: .92; color: var(--horno); position: relative; z-index: 2; }
.cita cite { display: block; font-family: var(--f-mano); font-style: normal; font-size: clamp(30px, 3.4vw, 46px); color: var(--mozzarella); margin-top: 26px; transform: rotate(-3deg); position: relative; z-index: 2; }

.cruce { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; text-align: center; position: relative; z-index: 2; }
.cruce__lado h3 { font-family: var(--f-titular); text-transform: uppercase; font-weight: 400; font-size: clamp(32px, 4vw, 58px); line-height: .9; margin: 0 0 14px; }
.cruce__lado ul { list-style: none; padding: 0; margin: 0; color: rgba(252,238,180,.8); }
.cruce__lado li { padding: 6px 0; border-bottom: 1px solid var(--linea); }
.cruce__x { font-family: var(--f-mano); font-size: clamp(70px, 10vw, 140px); color: var(--tomate); line-height: 1; }
.cruce__resultado { grid-column: 1 / -1; margin-top: 40px; }
@media (max-width: 760px) { .cruce { grid-template-columns: 1fr; } }

/* ---------- carta ---------- */
.pdf-box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  background: var(--horno); color: var(--mozzarella);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  position: relative; overflow: hidden;
  transform: rotate(-1deg);
  box-shadow: 0 30px 60px rgba(22,17,14,.35);
}
.pdf-box--roja { background: var(--tomate) url("../logo/trama-tomate.svg") 0 0 / 420px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.pdf-box--roja p { color: var(--horno); font-weight: 500; }
.pdf-box--roja .t-m { color: var(--mozzarella); }
.pdf-box__icono { width: 110px; height: 140px; background: var(--mozzarella); color: var(--tomate); border-radius: 8px; display: grid; place-items: center; transform: rotate(-6deg); }
.pdf-box__icono svg { width: 70px; }
.pdf-box p { margin: 6px 0 0; color: rgba(252,238,180,.8); }
@media (max-width: 760px) { .pdf-box { grid-template-columns: 1fr; } .pdf-box__icono { width: 80px; height: 100px; } .pdf-box__icono svg { width: 50px; } }

.carta-nav { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; top: 76px; z-index: 10; background: var(--horno); padding: 16px 0; margin-bottom: 30px; border-bottom: 1px solid var(--linea); }
.carta-nav a { font-family: var(--f-titular); text-transform: uppercase; text-decoration: none; padding: 9px 16px 7px; border: 1.5px solid var(--linea); border-radius: 999px; font-size: 15px; transition: background .2s, border-color .2s; }
.carta-nav a:hover { background: var(--tomate); border-color: var(--tomate); }
@media (max-width: 860px) { .carta-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); } .carta-nav a { white-space: nowrap; } }

.categoria { padding: 40px 0 70px; scroll-margin-top: 150px; }
.categoria__titulo { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.categoria__titulo .mano { font-size: 34px; color: var(--tomate); transform: rotate(-4deg); }
.lista { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 5vw, 80px); }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--linea); position: relative; }
.item h3 { font-family: var(--f-titular); text-transform: uppercase; font-weight: 400; font-size: 24px; line-height: 1; margin: 0; }
.item .precio { font-family: var(--f-titular); font-size: 22px; color: var(--tomate); white-space: nowrap; }
.item p { grid-column: 1 / -1; margin: 0; font-size: 15px; color: rgba(252,238,180,.7); }
.item .tag { font-family: var(--f-mano); color: var(--tomate); font-size: 24px; margin-left: 8px; display: inline-block; transform: rotate(-4deg); }
.item[data-foto] { cursor: zoom-in; }
.item[data-foto] h3::after { content: " ●"; color: var(--tomate); font-size: .5em; vertical-align: middle; }
@media (max-width: 760px) { .lista { grid-template-columns: 1fr; } }

.flotante {
  position: fixed; top: 0; left: 0;
  width: 240px; height: 240px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6) rotate(-20deg);
  transition: opacity .25s, transform .4s var(--ease);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 0 8px var(--tomate);
}
.flotante.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.flotante img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
@media (hover: none) { .flotante { display: none; } }

.nota { font-size: 14px; color: rgba(252,238,180,.6); }

/* ---------- contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.dato { border-top: 1px solid var(--linea); padding: 26px 0; }
.dato h2 { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--tomate); margin: 0 0 10px; font-family: var(--f-texto); }
.dato .t-m { display: block; text-decoration: none; }
a.t-m:hover { color: var(--tomate); }
.horario { width: 100%; border-collapse: collapse; font-size: 17px; }
.horario td { padding: 8px 0; border-bottom: 1px dashed var(--linea); }
.horario td:last-child { text-align: right; font-family: var(--f-titular); font-size: 20px; }
.horario tr.hoy td { color: var(--tomate); }
.mapa { border-radius: 24px; overflow: hidden; min-height: 460px; position: relative; background: var(--horno-2); transform: rotate(1.5deg); box-shadow: 0 0 0 10px var(--tomate); }
.mapa iframe { width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(1) invert(.92) contrast(.9) sepia(.25); }
.mapa .pegatina { top: 20px; right: 20px; background: var(--tomate); }
.mapa .pegatina b { color: var(--horno); }
.acciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 2; }
.accion {
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  min-height: 190px;
  padding: 26px;
  border-radius: 20px;
  text-decoration: none;
  background: var(--horno);
  color: var(--mozzarella);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.accion:nth-child(2) { transform: rotate(-1.5deg); }
.accion:nth-child(3) { transform: rotate(1.5deg); }
.accion:hover { transform: rotate(-3deg) translateY(-6px); background: var(--mozzarella); color: var(--horno); }
.accion svg { width: 40px; height: 40px; color: var(--tomate); }
.accion strong { font-family: var(--f-titular); text-transform: uppercase; font-weight: 400; font-size: 30px; line-height: .95; display: block; }
.accion span { font-size: 14px; opacity: .75; }
@media (max-width: 860px) { .contacto-grid { grid-template-columns: 1fr; } .acciones { grid-template-columns: 1fr; } .accion { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; } }

/* ---------- pie ---------- */
.footer { padding: clamp(70px, 10vw, 130px) 0 30px; overflow: hidden; }
.footer__logo { width: min(100%, 760px); margin: 0 auto 60px; color: var(--mozzarella); }
.footer__logo svg { width: 100%; height: auto; overflow: visible; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 30px; border-top: 1.5px solid var(--linea); position: relative; z-index: 2; }
.footer__cols h2 { font-family: var(--f-mano); font-weight: 400; font-size: 32px; margin: 0 0 8px; color: var(--tomate); }
.footer__cols p, .footer__cols a { margin: 0; font-size: 15px; text-decoration: none; }
.footer__cols a:hover { color: var(--tomate); }
.footer__legal { margin-top: 50px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; opacity: .7; position: relative; z-index: 2; }
.footer__legal a { text-decoration: none; }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   QUE GRITE
   ========================================================== */
.t-xl { font-size: clamp(56px, 11.5vw, 190px); }
.t-l  { font-size: clamp(42px, 7vw, 108px); }
.grita { transform: rotate(-2.5deg); transform-origin: left center; }

/* palabra con cinta negra por detrás */
.tachon {
  display: inline-block;
  background: var(--horno);
  color: var(--mozzarella);
  padding: .06em .14em 0;
  transform: rotate(-2deg);
  box-shadow: .08em .08em 0 var(--mozzarella);
}
.negra .tachon, .negra-trama .tachon { background: var(--tomate); box-shadow: .08em .08em 0 var(--horno); }
.tachon--crema { background: var(--mozzarella); color: var(--horno); box-shadow: .08em .08em 0 var(--horno); }

/* pegatina en estrella */
.estallido {
  position: absolute; z-index: 6;
  width: var(--s, 170px); aspect-ratio: 1;
  display: grid; place-items: center;
  text-align: center;
  background: var(--mozzarella); color: var(--horno);
  font-family: var(--f-titular); text-transform: uppercase;
  font-size: calc(var(--s, 170px) * .11); line-height: .9;
  padding: calc(var(--s, 170px) * .12);
  clip-path: polygon(100.0% 50.0%, 90.5% 56.4%, 97.6% 65.5%, 86.5% 68.6%, 90.5% 79.4%, 79.0% 79.0%, 79.4% 90.5%, 68.6% 86.5%, 65.5% 97.6%, 56.4% 90.5%, 50.0% 100.0%, 43.6% 90.5%, 34.5% 97.6%, 31.4% 86.5%, 20.6% 90.5%, 21.0% 79.0%, 9.5% 79.4%, 13.5% 68.6%, 2.4% 65.5%, 9.5% 56.4%, 0.0% 50.0%, 9.5% 43.6%, 2.4% 34.5%, 13.5% 31.4%, 9.5% 20.6%, 21.0% 21.0%, 20.6% 9.5%, 31.4% 13.5%, 34.5% 2.4%, 43.6% 9.5%, 50.0% 0.0%, 56.4% 9.5%, 65.5% 2.4%, 68.6% 13.5%, 79.4% 9.5%, 79.0% 21.0%, 90.5% 20.6%, 86.5% 31.4%, 97.6% 34.5%, 90.5% 43.6%);
  animation: late 1.6s ease-in-out infinite;
}
.estallido--negro { background: var(--horno); color: var(--mozzarella); }
.estallido--rojo { background: var(--tomate); color: var(--mozzarella); }
.estallido b { display: block; font-weight: 400; font-size: 1.45em; color: var(--tomate); }
.estallido--rojo b { color: var(--horno); }
@keyframes late { 0%,100% { transform: rotate(var(--r, -12deg)) scale(1); } 50% { transform: rotate(calc(var(--r, -12deg) + 6deg)) scale(1.08); } }

/* hero a grito pelado: titular a todo el ancho, la pizza lo pisa */
.hero--grito { padding-top: 110px; }
.hero--grito .hero__grid { display: block; position: relative; }
/* el titular sale de la caja central y ocupa todo el ancho de la pantalla:
   "PERMISO." mide 4,5 veces el cuerpo de letra en Atelia, así que nunca se corta */
.hero--grito .hero__title { margin-left: calc((min(100vw, var(--max)) - 100vw) / 2); width: calc(100vw - 2 * var(--gutter) - 12px); }
.hero--grito .t-mega { font-size: min(calc((100vw - 2 * var(--gutter) - 24px) / 4.6), 440px); line-height: .8; letter-spacing: -.02em; }
.hero--grito .linea:nth-child(1) > span { transform-origin: left; }
.hero--grito .hero__title .linea:nth-child(2) { margin-left: -.04em; }
.hero--grito .hero__abajo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 6px; }
.hero--grito .hero__firma { font-size: clamp(44px, 5.4vw, 96px); margin: 0 0 0 .2em; transform: rotate(-6deg); }
.hero--grito .hero__sub { margin-top: 14px; font-size: clamp(18px, 1.5vw, 21px); }
.hero--grito .hero__pizza { width: min(38vw, 560px); margin-top: -3vw; justify-self: end; z-index: 3; }
.hero--grito .estallido { left: 74%; top: 4%; }
@media (max-width: 860px) {
  .hero--grito .hero__abajo { grid-template-columns: 1fr; }
  .hero--grito .hero__pizza { position: relative; right: auto; bottom: auto; width: min(96vw, 460px); margin: 10px auto 0; }
  .hero--grito .hero__firma { position: static; display: inline-block; margin: 8px 0 0; }
  .hero--grito .estallido { left: auto; right: -10px; top: -34px; --s: 96px !important; }
}
@media (max-width: 600px) {
  .seccion .estallido, .page-hero .estallido { --s: 104px !important; left: auto !important; right: 4px !important; top: -46px !important; bottom: auto !important; }
  .page-hero .estallido { top: 96px !important; }
}

.roja .cruce__x { color: var(--horno); }
.roja .cruce__lado ul { color: var(--horno); font-weight: 500; }
.roja .cruce__lado li { border-color: var(--linea-roja); }

/* la cinta diagonal del hero marca dónde empieza el horno:
   por debajo de ella todo es negro (se recorta con el borde del hero) */
.cinta--borde { margin-bottom: 0; }
.cinta--borde::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 400px; background: var(--horno);
}
.hero:has(.cinta--borde) { padding-bottom: 0; }

/* fondo de horno: negro, resplandor rojo que respira y brasas */
.fuego { isolation: isolate; }
.fuego::before {
  content: ""; position: absolute; left: 50%; bottom: -35%;
  width: 150vw; height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(209,58,47,.9), rgba(209,58,47,.4) 45%, rgba(209,58,47,0) 75%);
  animation: respira 3.5s ease-in-out infinite;
  z-index: -1;
}
.fuego::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px;
  background: linear-gradient(transparent, var(--horno));
  z-index: -1; pointer-events: none;
}
.fuego .plato p { color: rgba(252,238,180,.78); font-weight: 400; }
.fuego .plato .precio { color: var(--tomate); }
.fuego .plato__foto { box-shadow: 0 0 0 10px var(--tomate), 0 30px 70px rgba(0,0,0,.7); }
.fuego .plato__num { color: var(--mozzarella); -webkit-text-stroke: 3px var(--tomate); }

/* pegatina de los segundos del reloj */
.reloj__seg { font-size: calc(var(--s) * .13); }
@media (max-width: 760px) { .reloj__seg { --s: 104px !important; right: -18px !important; top: 6% !important; } }
.reloj__seg b { font-size: 2.9em; line-height: .85; color: var(--tomate); font-variant-numeric: tabular-nums; margin-bottom: .05em; }

/* sacudida al pasar por encima */
.sacude:hover { animation: sacude .4s linear; }
@keyframes sacude { 0%,100% { transform: rotate(-2.5deg); } 25% { transform: rotate(-4deg) translateX(-3px); } 75% { transform: rotate(-1deg) translateX(3px); } }

/* ---------- aparición al hacer scroll ---------- */
.revela { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.revela.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
  .hero__title .linea > span { transform: none; }
  .revela { opacity: 1; transform: none; }
  .dibuja path { fill: currentColor; stroke: none; }
}
