/* Homero's · demo de Estudio González. Sistema: negro y oro del logo, tiza y pizarra, ladrillo de su pared.
   El acento cambia según el cuadro que elegís (Racing celeste, Independiente rojo). */
@font-face { font-family: "Titulos"; src: url("assets/fuentes/titulos.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Texto"; src: url("assets/fuentes/texto.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Texto"; src: url("assets/fuentes/texto-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Condensada"; src: url("assets/fuentes/condensada.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Tiza"; src: url("assets/fuentes/tiza.woff2") format("woff2"); font-display: swap; }

:root {
  --negro: #0b0a08;
  --negro-2: #15130f;
  --oro: #cdb36f;
  --oro-osc: #8a6d2f;
  --oro-claro: #efdca0;
  --tiza: #ecebe4;
  --pizarra: #1c2320;
  --ladrillo: #6e3322;
  --ladrillo-2: #5a2a1c;
  --junta: #3a1d14;
  --acento: var(--oro);
  --racing: #75aadb;
  --rojo: #d0202f;
  --resorte: cubic-bezier(.2, .9, .25, 1.15);
  --salida: cubic-bezier(.16, 1, .3, 1);
  --ancho: min(1180px, 100% - 2.5rem);
}
body[data-cuadro="racing"] { --acento: var(--racing); }
body[data-cuadro="rojo"] { --acento: var(--rojo); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--negro); color: var(--tiza); font: 400 1.0625rem/1.55 "Texto", system-ui, sans-serif; overflow-x: clip; transition: background-color .6s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 400; line-height: .95; text-wrap: balance; overflow-wrap: break-word; }
h2 { font-family: "Titulos", Impact, sans-serif; font-size: clamp(2.6rem, 8vw, 5.5rem); text-transform: uppercase; letter-spacing: .01em; }
h2 em { font-style: normal; color: var(--acento); transition: color .6s; }
.tiza { font-family: "Tiza", "Comic Sans MS", cursive; text-transform: none; color: var(--acento); transition: color .6s; }
.saltar { position: absolute; left: 1rem; top: -3rem; z-index: 50; padding: .5rem 1rem; background: var(--oro); color: var(--negro); }
.saltar:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

/* Logo dorado: el SVG del logo como máscara sobre un degradé de oro */
.logo-oro { display: block; width: 130px; aspect-ratio: 1224 / 298; background: linear-gradient(100deg, var(--oro-osc) 0%, var(--oro-claro) 22%, var(--oro) 40%, var(--oro-osc) 62%, var(--oro-claro) 82%, var(--oro) 100%); background-size: 250% 100%; -webkit-mask: url("assets/logo-script.svg") center / contain no-repeat; mask: url("assets/logo-script.svg") center / contain no-repeat; }
.logo-oro--grande { width: min(560px, 82vw); animation: brillo 2.4s var(--salida) .3s both; }
.logo-oro--pie { width: min(900px, 90vw); margin: 0 auto 1.5rem; }
@keyframes brillo { from { background-position: 100% 0; opacity: 0; transform: scale(.96); } 30% { opacity: 1; } to { background-position: 0 0; transform: none; } }

.boton { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; border: 0; border-radius: 999px; background: var(--oro); color: var(--negro); font: 600 .95rem "Texto", sans-serif; text-decoration: none; cursor: pointer; transition: transform .35s var(--resorte), background-color .6s; }
body:not([data-cuadro="ninguno"]) .boton { background: var(--acento); }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: scale(.97); }
.boton--chico { min-height: 40px; padding: .45em 1.1em; font-size: .85rem; }

.encabezado { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem max(1.25rem, (100% - 1180px) / 2); background: color-mix(in srgb, var(--negro) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff12; }
.encabezado__logo { display: inline-flex; align-items: center; min-height: 44px; }
.encabezado nav { display: flex; gap: 1.6rem; font: 600 .85rem "Condensada", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.encabezado nav a { text-decoration: none; opacity: .8; }
.encabezado nav a:hover { opacity: 1; color: var(--acento); }
@media (max-width: 720px) { .encabezado nav { display: none; } }

main > section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
main > section > * { width: var(--ancho); margin-inline: auto; }

/* ---------- Intro ---------- */
.intro { min-height: calc(100svh - 60px); display: grid; align-content: center; gap: clamp(1.4rem, 3vw, 2.2rem); padding-block: 3rem 4rem; text-align: center; background: radial-gradient(ellipse 70% 50% at 50% 30%, #2a2416 0%, transparent 70%), var(--negro); }
.intro__marca { display: grid; justify-items: center; gap: .6rem; }
.intro__rubro { margin: 0; font: 600 .8rem "Condensada", sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--oro); }
.intro__titulo { display: grid; justify-items: center; margin: 0 auto; font-family: "Titulos", Impact, sans-serif; font-size: clamp(2.7rem, 10vw, 7.2rem); text-transform: uppercase; }
.intro__linea { display: block; animation: sube .9s var(--salida) both; }
.intro__linea:nth-child(2) { animation-delay: .12s; }
.intro__tiza { display: block; margin-top: .25em; font-family: "Tiza", cursive; font-size: .5em; text-transform: none; color: var(--acento); transition: color .6s; animation: sube .9s var(--salida) .25s both; }
@keyframes sube { from { opacity: 0; transform: translateY(.4em); } }

.hinchada { display: grid; justify-items: center; gap: .9rem; animation: sube .9s var(--salida) .4s both; }
.hinchada__pregunta { margin: 0; font: 600 .85rem "Condensada", sans-serif; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.hinchada__botones { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: min(560px, 100%); }
.hinchada__boton { position: relative; overflow: hidden; min-height: 92px; padding: .8rem; border: 2px solid transparent; border-radius: 18px; font: 400 clamp(1.6rem, 6vw, 2.4rem)/1 "Titulos", Impact, sans-serif; text-transform: uppercase; cursor: pointer; transition: transform .45s var(--resorte), opacity .5s, filter .5s, border-color .4s; }
.hinchada__boton span { display: block; margin-bottom: .2rem; font: 600 .7rem "Condensada", sans-serif; letter-spacing: .2em; opacity: .85; }
.hinchada__boton--racing { color: #0d2236; background: repeating-linear-gradient(90deg, var(--racing) 0 22px, #f4f7fb 22px 44px); }
.hinchada__boton--rojo { color: #fff; background: var(--rojo); }
.hinchada__boton:hover { transform: translateY(-3px) rotate(-1deg); }
.hinchada__boton--rojo:hover { transform: translateY(-3px) rotate(1deg); }
.hinchada__boton:active { transform: scale(.96); }
body[data-cuadro="racing"] .hinchada__boton--racing, body[data-cuadro="rojo"] .hinchada__boton--rojo { border-color: var(--oro); transform: scale(1.04); }
body[data-cuadro="racing"] .hinchada__boton--rojo, body[data-cuadro="rojo"] .hinchada__boton--racing { opacity: .35; filter: grayscale(.8); }
.hinchada__neutral { min-height: 44px; padding: .4rem 1rem; border: 0; background: none; color: var(--tiza); font: 400 1.15rem "Tiza", cursive; opacity: .8; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ticket { position: relative; max-width: 420px; margin: .4rem auto 0; padding: .9rem 1.1rem .9rem 1.1rem; background: #f3eee0; color: #2a241a; font-size: .85rem; line-height: 1.45; text-align: left; transform: rotate(-1.2deg); box-shadow: 0 10px 30px #0008; clip-path: polygon(0 4px, 4% 0, 8% 4px, 12% 0, 16% 4px, 20% 0, 24% 4px, 28% 0, 32% 4px, 36% 0, 40% 4px, 44% 0, 48% 4px, 52% 0, 56% 4px, 60% 0, 64% 4px, 68% 0, 72% 4px, 76% 0, 80% 4px, 84% 0, 88% 4px, 92% 0, 96% 4px, 100% 0, 100% 100%, 0 100%); }
.ticket__tit { display: block; margin-bottom: .2rem; font: 600 .7rem "Condensada", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-osc); }
.intro__bajar { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; font: 600 .8rem "Condensada", sans-serif; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--oro); }

/* ---------- Pared de ladrillo y pizarra ---------- */
.ladrillo { background-color: var(--ladrillo); background-image:
  linear-gradient(var(--junta) 3px, transparent 3px),
  linear-gradient(90deg, var(--junta) 3px, transparent 3px),
  linear-gradient(90deg, var(--junta) 3px, transparent 3px),
  linear-gradient(180deg, #0000 0%, #00000055 100%);
  background-size: 100% 42px, 96px 84px, 96px 84px, 100% 100%;
  background-position: 0 0, 0 0, 48px 42px, 0 0; }
.ladrillo::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 41px, #ffffff08 41px 42px), radial-gradient(ellipse at 50% 0%, #0000 30%, #0009 100%); pointer-events: none; }
.pizarra { position: relative; padding: clamp(1.6rem, 5vw, 3.4rem); border: clamp(10px, 1.6vw, 16px) solid #6b4a2b; border-radius: 6px; background: radial-gradient(ellipse at 30% 20%, #ffffff0d 0%, transparent 55%), radial-gradient(ellipse at 80% 90%, #ffffff09 0%, transparent 50%), var(--pizarra); box-shadow: inset 0 0 60px #000a, 0 30px 60px #000a; }
.pizarra::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: calc(-1 * clamp(10px, 1.6vw, 16px) - 12px); height: 12px; border-radius: 0 0 4px 4px; background: #5a3d22; box-shadow: 0 6px 12px #0008; }
.pizarra h2 { font-family: "Tiza", cursive; font-size: clamp(2.8rem, 9vw, 5rem); text-transform: none; color: var(--tiza); }
.pizarra__nota { margin: 0 0 1.4rem; font-family: "Tiza", cursive; font-size: 1.1rem; opacity: .75; }
.tiza-escribe { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.6, 0, .3, 1); }
.visto .tiza-escribe, .tiza-escribe.visto { clip-path: inset(0 0 0 0); }

.carta__filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.carta__filtros button { min-height: 42px; padding: .35em 1.1em; border: 2px solid #ecebe499; border-radius: 999px; background: transparent; color: var(--tiza); font: 400 1.05rem "Tiza", cursive; cursor: pointer; transition: transform .3s var(--resorte), background-color .3s, color .3s; }
.carta__filtros button:hover { transform: translateY(-2px); }
.carta__filtros button[aria-pressed="true"] { background: var(--tiza); color: var(--pizarra); border-color: var(--tiza); }
.carta__estado { margin: 0 0 1rem; font-size: .8rem; opacity: .6; }
.carta__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem 3rem; }
.carta-grupo h3 { margin-bottom: .6rem; padding-bottom: .4rem; border-bottom: 2px dashed #ecebe466; font: 400 1.7rem "Tiza", cursive; color: var(--acento); transition: color .6s; }
.plato { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; width: 100%; padding: .8rem 0; border: 0; border-bottom: 1px solid #ecebe41f; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.plato > :not(.plato__foto) { grid-column: 2; }
.plato__foto { grid-row: 1 / span 3; width: 74px; height: 74px; object-fit: cover; border: 4px solid #f4f1e8; border-bottom-width: 12px; transform: rotate(-3deg); box-shadow: 0 6px 14px #0009; transition: transform .4s var(--resorte); }
.plato:nth-child(even) .plato__foto { transform: rotate(3deg); }
.plato:hover .plato__foto { transform: rotate(0) scale(1.06); }
.plato__arriba { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.plato__nombre { font: 400 1.45rem/1.1 "Tiza", cursive; }
.plato__precio { flex: none; font: 600 .75rem "Condensada", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); transition: color .6s; }
.plato__desc { font-size: .9rem; opacity: .75; }
.plato__etiquetas { font: 600 .68rem "Condensada", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }

/* ---------- Fotos ---------- */
.fotos { overflow: hidden; background: var(--negro-2); }
.fotos h2 { text-align: center; }
.fotos__tira { display: flex; gap: clamp(1rem, 3vw, 2rem); width: 100%; padding: 1.5rem max(1.25rem, (100% - 1180px) / 2) 2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.polaroid { flex: none; width: clamp(220px, 26vw, 300px); margin: 0; padding: .7rem .7rem 0; background: #f4f1e8; color: #2a241a; box-shadow: 0 18px 40px #000b; scroll-snap-align: center; transition: transform .5s var(--resorte); }
.polaroid img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.polaroid figcaption { padding: .6rem .2rem .8rem; font: 400 1.05rem/1.2 "Tiza", cursive; text-align: center; }
.fotos__tira .polaroid:nth-child(odd) { transform: rotate(-2.5deg); }
.fotos__tira .polaroid:nth-child(even) { transform: rotate(2deg) translateY(14px); }
.fotos__tira .polaroid:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.polaroid[data-reveal] { opacity: 0; translate: 0 40px; transition: opacity .8s var(--salida), translate .9s var(--salida), transform .5s var(--resorte); }
.polaroid[data-reveal].visto { opacity: 1; translate: 0 0; }

/* ---------- Lugar ---------- */
.lugar { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-inline: max(1.25rem, (100% - 1180px) / 2); }
.lugar > * { width: auto; margin: 0; }
.lugar__texto p { max-width: 46ch; opacity: .85; }
.lugar__texto b { color: var(--oro); }
.lugar__fotos { position: relative; min-height: 460px; }
.polaroid--grande { position: absolute; right: 8%; top: 0; width: min(300px, 70%); transform: rotate(3deg); }
.polaroid--chica { position: absolute; left: 0; bottom: 0; width: min(230px, 55%); transform: rotate(-5deg); }
@media (max-width: 820px) { .lugar { grid-template-columns: 1fr; } .lugar__fotos { min-height: 420px; } }

/* ---------- Dónde ---------- */
.donde { background: var(--negro-2); }
.sedes { display: grid; gap: 1rem; }
.sede { padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid #ffffff1a; border-radius: 20px; background: #ffffff06; }
.sede h3 { font: 400 clamp(2rem, 6vw, 3rem) "Titulos", Impact, sans-serif; text-transform: uppercase; }
.sede__dir { font-size: 1.15rem; }
.sede__horarios:empty { display: none; }
.sede__acciones { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0; }
.sede__acciones a, .pie a, .donde__nota a { display: inline-flex; align-items: center; min-height: 44px; color: var(--acento); font-weight: 600; transition: color .6s; }
.donde__nota { margin-top: 1rem; opacity: .8; }

/* ---------- Pie ---------- */
.pie { padding: 5rem 1.25rem 6rem; background: var(--negro); text-align: center; border-top: 1px solid #ffffff12; }
.pie__firma { font-size: .8rem; opacity: .55; }

/* ---------- Bolsa y diálogos ---------- */
.bolsa-boton { position: fixed; z-index: 30; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); min-height: 52px; padding: .8rem 1.3rem; border: 0; border-radius: 999px; background: var(--acento); color: #111; font: 600 1rem "Texto", sans-serif; box-shadow: 0 10px 30px #000a; cursor: pointer; transition: background-color .6s; }
body[data-cuadro="rojo"] .bolsa-boton { color: #fff; }
.bolsa-boton.late { animation: late .5s var(--resorte); }
@keyframes late { 40% { transform: scale(1.08); } }
dialog { width: min(520px, 100% - 1.5rem); max-height: 88svh; padding: 1.6rem; border: 0; border-radius: 20px; background: #f4f1e8; color: #1b1712; }
dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
dialog[open] { animation: entra .45s var(--salida); }
@keyframes entra { from { opacity: 0; transform: translateY(24px) scale(.98); } }
dialog h3 { font: 400 2rem "Tiza", cursive; }
dialog .boton { background: var(--negro) !important; color: var(--oro); }
.cerrar { position: absolute; right: 1rem; top: .8rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #0001; font-size: 1.4rem; cursor: pointer; }
dialog form, dialog fieldset { display: grid; gap: .7rem; }
dialog fieldset { margin: 0 0 .4rem; padding: 0; border: 0; }
dialog legend { margin-bottom: .3rem; font-weight: 600; }
dialog label { display: grid; gap: .25rem; font-size: .9rem; }
dialog fieldset label { display: flex; align-items: center; gap: .5rem; }
dialog input:not([type=radio]), dialog select { min-height: 44px; padding: .5em .8em; border: 1px solid #0002; border-radius: 10px; background: #fff; font: inherit; }
.producto__cant { display: flex; align-items: center; gap: 1rem; }
.producto__cant button, .b__cant button { width: 40px; height: 40px; border: 1px solid #1b1712; border-radius: 50%; background: none; font-size: 1.2rem; cursor: pointer; }
.bolsa__lista { display: grid; gap: .6rem; padding: 0; list-style: none; }
.bolsa__lista li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-bottom: .6rem; border-bottom: 1px solid #0001; }
.b__det { grid-column: 1; font-size: .8rem; opacity: .7; }
.b__cant { display: flex; align-items: center; gap: .6rem; }
.bolsa__total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.bolsa__legal, .bolsa__estado { font-size: .8rem; opacity: .75; }
.prueba-wa pre { white-space: pre-wrap; padding: 1rem; border-radius: 12px; background: #dcf8c6; color: #111; font: .9rem/1.45 system-ui, sans-serif; }
.prueba-wa__titulo { font-weight: 600; }
.aviso-demo { position: relative; z-index: 21; margin: 0; padding: .45rem 1rem; background: #000; color: #fff; font: 500 .72rem/1.35 system-ui, sans-serif; text-align: center; }

/* Aparecer al entrar en pantalla (se ve siempre: regla de la casa) */
[data-reveal]:not(.polaroid) { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--salida), transform .9s var(--salida); }
[data-reveal].visto:not(.polaroid) { opacity: 1; transform: none; }
.ticket[data-reveal].visto { transform: rotate(-1.2deg); }
@media (prefers-reduced-motion: reduce) { .fotos__tira .polaroid { transform: none !important; } }
