/* Letrero: la vitrina de noche. El nombre en tubo de neón (Comfortaa) que se enciende letra por letra; texto en Commissioner.
   La página anochece: cada sección es un paso más oscura (C05) y nunca vuelve al claro. Solo transform y opacity se animan. */
@font-face { font-family: "Comfortaa"; src: url(fonts/comfortaa.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url(fonts/commissioner.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --n0: #3d2635; --n1: #34202e; --n2: #2b1a27; --n3: #23151f; --n4: #1b1018; --n5: #130b11; --n6: #0d080c;
  --tx: #f8efe8;
  --tx2: #cfbfca;
  --linea: rgb(248 239 232 / .16);
  --neon: #ff4d6d;
  --neon-t: #ffc2cc;
  --nucleo: #fff1f3;
  --aqua: #5ff2d0;
  --aqua-n: #e6fff8;
  --boton-tx: #1b0d15;
  --brillo: 0 0 .03em var(--nucleo), 0 0 .09em var(--neon), 0 0 .24em var(--neon), 0 0 .55em rgb(255 77 109 / .5);
  --brillo-a: 0 0 .03em var(--aqua-n), 0 0 .1em var(--aqua), 0 0 .3em rgb(95 242 208 / .7), 0 0 .7em rgb(95 242 208 / .35);
  --nombre: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --texto: "Commissioner", system-ui, sans-serif;
  --gut: 16px;
  --ancho: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--n0); color: var(--tx); font-family: var(--texto); font-size: 17px; line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.caja { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.s { position: relative; padding: 72px 0; }
.s0 { background: var(--n0); padding: 0 0 56px; }
.s1 { background: var(--n1); }
.s2 { background: var(--n2); }
.s3 { background: var(--n3); }
.s4 { background: var(--n4); }
.s5 { background: var(--n5); padding: 88px 0 96px; }
@media (min-width: 900px) {
  :root { --gut: 40px; }
  .s { padding: 120px 0; }
  .s0 { padding: 0 0 96px; }
  .s5 { padding: 140px 0 150px; }
}

/* ---------- cabecera ---------- */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
.marca { text-decoration: none; font-family: var(--nombre); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; max-width: 70%; }
.llamar { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--linea); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .2s, transform .2s; }
@media (hover: hover) { .llamar:hover { border-color: var(--neon-t); transform: translateY(-1px); } }

/* ---------- el letrero del nombre ---------- */
.letrero { position: relative; margin: 20px 0 0; font-family: var(--nombre); font-weight: 400; font-size: var(--f, clamp(56px, 15vw, 210px)); line-height: .98; letter-spacing: -.02em; font-kerning: none; font-variant-ligatures: none; }
.letrero .tubo, .letrero .luz { display: block; white-space: normal !important; overflow-wrap: normal; word-break: normal; }
.letrero .tubo { color: var(--nucleo); text-shadow: var(--brillo); }
.letrero .luz { position: absolute; inset: 0; pointer-events: none; }
.js .letrero.armado .tubo { color: rgb(255 214 222 / .2); text-shadow: none; }
.letrero .l { color: var(--nucleo); text-shadow: var(--brillo); opacity: 0; }
.letrero.prende .l { animation: prende 1s linear forwards; animation-delay: calc(var(--i) * var(--paso, 70ms) + 250ms); }
.letrero.prende .l.zumba { animation: prende 1s linear forwards, zumba 8.5s linear infinite; animation-delay: calc(var(--i) * var(--paso, 70ms) + 250ms), 4s; }
@keyframes prende {
  0% { opacity: 0; } 8% { opacity: .9; } 13% { opacity: .15; } 22% { opacity: 1; } 27% { opacity: .35; } 36%, 100% { opacity: 1; }
}
@keyframes zumba {
  0%, 91% { opacity: 1; } 92% { opacity: .3; } 93.5% { opacity: 1; } 95% { opacity: .55; } 96.5%, 100% { opacity: 1; }
}

/* ---------- hero ---------- */
.hero-c { display: grid; gap: 32px; margin-top: 28px; }
.lema { font-weight: 600; font-size: clamp(26px, 7.4vw, 44px); line-height: 1.1; letter-spacing: -.015em; }
.baj { margin-top: 10px; color: var(--tx2); font-size: 18px; }
.acc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--neon); color: var(--boton-tx); font: 700 17px/1.2 var(--texto); text-decoration: none; cursor: pointer; transition: transform .2s ease; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 18px 2px rgb(255 77 109 / .65), 0 0 46px 6px rgb(255 77 109 / .3); opacity: 0; transition: opacity .25s ease; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } .btn:hover::after { opacity: 1; } }
.btn-o { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 2px var(--neon-t); }
.fono { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx2); font-weight: 500; text-underline-offset: 4px; }
@media (hover: hover) { .fono:hover { color: var(--tx); } }
.estado { margin-top: 18px; padding-left: 20px; position: relative; color: var(--tx2); font-size: 15px; }
.estado::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--tx2); opacity: .5; }
.abierto .estado::before { background: var(--aqua); opacity: 1; box-shadow: 0 0 8px var(--aqua); }

.vitrina { position: relative; margin: 0; }
.vitrina picture, .vitrina img { border-radius: 12px; }
.vitrina img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }

/* El cartel de abierto: tubo aqua; apagado si está cerrado */
.cartel { position: absolute; top: -18px; right: 14px; display: inline-grid; padding: 8px 16px 9px; border: 2px solid rgb(230 255 248 / .22); border-radius: 12px; background: rgb(13 8 12 / .55); font: 600 21px/1 var(--nombre); letter-spacing: .02em; color: rgb(230 255 248 / .32); transform: rotate(-3deg); }
.cartel > span { grid-area: 1 / 1; justify-self: center; }
.cartel .c-c { visibility: hidden; }
.abierto .cartel { color: var(--aqua-n); border-color: var(--aqua-n); text-shadow: var(--brillo-a); box-shadow: 0 0 6px var(--aqua), 0 0 18px rgb(95 242 208 / .55), inset 0 0 10px rgb(95 242 208 / .4); }
.cerrado .cartel .c-a { visibility: hidden; }
.cerrado .cartel .c-c { visibility: visible; }

@media (min-width: 900px) {
  .letrero { margin-top: 36px; }
  .hero-c { grid-template-columns: minmax(0, 1fr) 540px; align-items: center; gap: 48px; margin-top: 44px; }
  .baj { font-size: 20px; }
  .cartel { font-size: 26px; top: -22px; right: 26px; }
}

/* ---------- títulos: una palabra encendida ---------- */
.enc { max-width: 760px; }
.chica { display: flex; align-items: center; gap: 10px; color: var(--tx2); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.chica::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--neon-t); box-shadow: 0 0 8px var(--neon); }
.h2 { margin-top: 14px; font-weight: 600; font-size: clamp(32px, 8.6vw, 64px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.h2 em { font-style: normal; font-family: var(--nombre); font-weight: 500; letter-spacing: -.03em; color: var(--nucleo); text-shadow: var(--brillo); display: inline-block; }
.h2.apaga em { opacity: .22; }
.h2.prende em { animation: prende 1.1s linear both; animation-delay: .2s; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.25; }

/* ---------- lo que ofrecemos ---------- */
.ofr-l { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--linea); }
.it { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--linea); }
.it .ic { grid-row: span 2; width: 56px; height: 56px; fill: none; stroke: var(--nucleo); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px var(--neon)) drop-shadow(0 0 7px rgb(255 77 109 / .8)); }
.it p { color: var(--tx2); }
@media (min-width: 700px) { .ofr-l { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1100px) {
  .ofr-l { grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-top: 0; margin-top: 64px; }
  .it { grid-template-columns: 1fr; row-gap: 12px; padding: 28px 0 0; border-bottom: 0; border-top: 1px solid var(--linea); align-content: start; }
  .it .ic { grid-row: auto; width: 64px; height: 64px; margin-bottom: 10px; }
}

/* ---------- horario ---------- */
.hor-g { display: grid; gap: 40px; }
.cartel-g { position: relative; top: auto; right: auto; margin-top: 36px; padding: 14px 28px 16px; font-size: clamp(40px, 12vw, 76px); border-width: 3px; border-radius: 22px; transform: rotate(-2deg); }
.filas { border-top: 1px solid var(--linea); }
.fila { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linea); font-size: 18px; }
.fila .fd { font-weight: 600; }
.fila .fh { font-variant-numeric: tabular-nums; color: var(--tx2); text-align: right; }
.fila .hoy { grid-column: 1 / -1; display: none; width: fit-content; margin-top: 6px; padding: 2px 12px; border-radius: 999px; background: var(--aqua); color: #06261f; font-size: 13px; font-weight: 700; }
.fila.es-hoy .hoy { display: block; }
.fila.es-hoy .fh { color: var(--tx); }
.estado-g { font-size: 17px; color: var(--tx); }
@media (min-width: 900px) {
  .hor-g { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  .fila { font-size: 20px; padding: 22px 0; }
}

/* ---------- cómo llegar ---------- */
.lle-g { display: grid; gap: 28px; }
.lle-d { position: relative; padding-left: 0; }
.flecha { width: 84px; height: 84px; fill: none; stroke: var(--nucleo); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px var(--neon)) drop-shadow(0 0 9px rgb(255 77 109 / .8)); }
.dir { margin-top: 8px; font-weight: 600; font-size: clamp(26px, 7vw, 46px); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
.lle-x { margin-top: 14px; color: var(--tx2); max-width: 36ch; }
.lle-d .btn { margin-top: 24px; }
@media (min-width: 900px) {
  .lle-g { grid-template-columns: 1fr 1.1fr; align-items: end; gap: 64px; }
  .flecha { position: absolute; left: -110px; top: -70px; width: 120px; height: 120px; transform: rotate(-8deg); }
}

/* ---------- contacto ---------- */
.con-g { display: grid; gap: 48px; }
.con-x { margin-top: 16px; color: var(--tx2); max-width: 38ch; }
.rot { margin-top: 32px; color: var(--tx2); font-size: 15px; font-weight: 600; }
.num { display: inline-block; margin-top: 4px; font-family: var(--nombre); font-weight: 500; font-size: clamp(34px, 10vw, 56px); line-height: 1.1; letter-spacing: -.02em; text-decoration: none; font-variant-numeric: tabular-nums; color: var(--nucleo); text-shadow: var(--brillo); }
.con-f { padding: 24px 20px 28px; border-radius: 24px; background: var(--n3); box-shadow: inset 0 0 0 1px var(--linea); }
.f-t { font-size: 22px; }
form { display: grid; gap: 18px; margin-top: 20px; }
.cp { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 15px; }
input, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgb(248 239 232 / .3); border-radius: 12px; background: var(--n5); color: var(--tx); font: 400 17px/1.4 var(--texto); }
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; border-color: var(--neon-t); box-shadow: 0 0 0 3px rgb(255 77 109 / .35); }
.ay, .priv { color: var(--tx2); font-size: 14px; }
.err { color: #ffb0bd; font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
form .btn { justify-self: start; }
.ok { margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--n5); }
@media (min-width: 900px) {
  .con-g { grid-template-columns: 1fr 480px; align-items: start; gap: 80px; }
  .con-f { padding: 36px 36px 40px; }
}

/* ---------- cierre: el letrero completo ---------- */
.cie-g { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.placa { position: relative; width: min(100%, 980px); margin-top: 40px; padding: 28px 22px 30px; border: 3px solid var(--nucleo); border-radius: 26px; box-shadow: 0 0 4px var(--neon), 0 0 16px rgb(255 77 109 / .7), 0 0 44px rgb(255 77 109 / .35), inset 0 0 14px rgb(255 77 109 / .45); }
.cad { position: absolute; bottom: 100%; width: 2px; height: 40px; background: linear-gradient(var(--linea), rgb(248 239 232 / .45)); }
.cad-i { left: 18%; } .cad-d { right: 18%; }
.placa-n { font-family: var(--nombre); font-weight: 500; font-size: var(--fp, clamp(40px, 11vw, 132px)); line-height: 1.08; letter-spacing: -.02em; white-space: normal !important; text-wrap: balance; color: var(--nucleo); text-shadow: var(--brillo); }
.cie-g .h2 { margin-top: 48px; }
.cie-x { margin-top: 12px; color: var(--tx2); }
.num-g { margin-top: 28px; font-size: clamp(42px, 13vw, 96px); }
.cie-g .acc { justify-content: center; }
.cie-g .estado { margin-top: 24px; }

/* ---------- pie ---------- */
.pie { background: var(--n6); padding: 32px 0 40px; color: var(--tx2); font-size: 15px; }
.pie-g { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; }
.pie-n { font-family: var(--nombre); font-weight: 700; color: var(--tx); overflow-wrap: anywhere; }
.arriba { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- entradas al scroll ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .e { animation: sube linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .it .ic, .flecha { animation: encendido linear both; animation-timeline: view(); animation-range: entry 30% entry 90%; }
  }
}
@keyframes sube { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes encendido { 0% { opacity: .12; } 40% { opacity: .9; } 50% { opacity: .2; } 62% { opacity: 1; } 70% { opacity: .5; } 80%, 100% { opacity: 1; } }
.pre { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.pre.ver { opacity: 1; transform: none; }

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