/* Diseño NUEVO de la web publica de Tresa (24/10, motion graphics).
   Se carga DESPUES de reservas.css y chat.css, solo con salon_web_diseno = 'nuevo' o en /vista-previa/{token}.
   - Tema oscuro siempre: negro calido y el cobre de la marca (una sola paleta). Redefine los tokens de reservas.css,
     asi que el panel de reserva, «mis citas», privacidad y el chat siguen funcionando igual con estos colores.
   - Portada nueva (clases n-*): hero con seda de WebGL (js/motion.js), titulares por palabras, cinta de servicios,
     tarjetas con foco, «El salón» y la fachada con fotos reales (mascara que se abre, Ken Burns y paralaje), equipo
     con inclinacion; y el orbe del chat (js/orbe.js).
   - Efectos de React Bits (https://reactbits.dev, MIT + Commons Clause, ver ../js/LICENCIA-reactbits.txt) recreados
     sin React: StarBorder (borde del boton principal), SpotlightCard (foco de las tarjetas) y BlurText (palabras).
   - CSP estricta: aqui van TODOS los estilos; el JS solo fija variables CSS (--mx, --rx...) y clases.
   - Movimiento: solo transform, opacity y filter; con prefers-reduced-motion, todo quieto (y la regla global de
     reservas.css acorta cualquier animacion a .01 ms). */

/* ===================================================================== Tokens (tema oscuro siempre) */
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  color-scheme: dark;
  --bg: #0C0A09;
  --surface: #15110F;
  --surface-2: #1F1A17;
  --surface-3: #2B2420;
  --line: rgb(255 238 224 / .1);
  --line-strong: rgb(255 238 224 / .22);
  --field: #8E827A;
  --text: #F5EFE9;
  --muted: #BCB1A8;
  --accent: #D9A27C;
  --accent-hover: #E6B693;
  --accent-soft: #2C2019;
  --on-accent: #1B120D;
  --focus: #F2C9A6;
  --danger: #F0907F;
  --danger-soft: #3A201C;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 40px -16px rgb(0 0 0 / .7);
  --shadow-lg: 0 40px 90px -24px rgb(0 0 0 / .85);
  --backdrop: rgb(6 4 3 / .66);
  --logo-filter: brightness(0) invert(.94) sepia(.12);
  --header-h: 84px;
  /* propios del diseño nuevo */
  --champan: #F6DCC4;
  --cobre: #D9A27C;
  --bronce: #8E5734;
  --hilo: rgb(255 238 224 / .08);
  --vidrio: rgb(22 18 15 / .58);
  --nucleo: linear-gradient(165deg, #1B1613 0%, #131010 100%);
  --boton: linear-gradient(180deg, #E5B18C 0%, #CF9670 100%);
  --boton-hover: linear-gradient(180deg, #EEC09E 0%, #DAA27C 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-suave: cubic-bezier(.32, .72, 0, 1);
}
@media (max-width: 900px) { :root { --header-h: 74px; } }

/* ===================================================================== Base */
html { scrollbar-color: #3B312B var(--bg); }
body { background: var(--bg); color: var(--text); }
::selection { background: rgb(217 162 124 / .38); color: #FFF8F2; }
/* Grano de pelicula: una capa fija, sin eventos, por encima del contenido y por debajo de la cabecera y el chat. Es un
   PNG de motas de 128 px en mosaico (hecho con GD): un SVG con feTurbulence costaba ~100 ms del primer pintado a 1440. */
body[data-diseno="nuevo"]::after {
  content: ""; position: fixed; inset: 0; z-index: 25; pointer-events: none;
  background: url("../img/grano.png") 0 0 / 128px 128px; opacity: .13;
}
.wrap { max-width: 1240px; }
:focus-visible { outline-color: var(--focus); }
.enlace { color: var(--accent); }

/* ===================================================================== Botones */
.btn { transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out), transform .25s var(--ease-out), box-shadow .3s var(--ease-out); }
.btn--primario {
  background: var(--boton); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), inset 0 -1px 0 rgb(60 30 14 / .25), 0 14px 30px -16px rgb(217 162 124 / .65);
}
.btn--secundario { background: rgb(255 238 224 / .04); border-color: var(--line-strong); color: var(--text); }
@media (hover: hover) {
  .btn--primario:hover:not(:disabled) { background: var(--boton-hover); }
  .btn--secundario:hover:not(:disabled) { background: rgb(255 238 224 / .08); border-color: var(--accent); color: var(--champan); }
}
.btn-icono--borde { background: rgb(255 238 224 / .04); border-color: var(--line-strong); }
@media (hover: hover) { .btn-icono:hover:not(:disabled) { background: rgb(255 238 224 / .08); } }
.btn .ic { transition: transform .45s var(--ease-suave); }
@media (hover: hover) { .btn:hover:not(:disabled) > .ic:last-child { transform: translateX(2px); } }

/* ===================================================================== Cabecera: isla flotante de vidrio */
.cabecera {
  inset: 12px 0 auto 0; height: 60px; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
}
.cabecera .cabecera__fila {
  pointer-events: auto; width: calc(100% - 24px); max-width: 1200px; height: 60px; gap: 16px; padding: 0 8px 0 20px;
  border-radius: 999px; background: var(--vidrio); border: 1px solid var(--hilo);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 34px -16px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .05);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.cabecera.con-borde .cabecera__fila { background: rgb(16 13 11 / .82); border-color: rgb(255 238 224 / .13); }
.cabecera .logo { width: 70px; height: 42px; }
.cabecera .logo img { margin: -24px 0 0 -10px; }
.nav a { color: var(--text); font-size: 14.5px; }
@media (hover: hover) { .nav a:hover { background: rgb(255 238 224 / .07); } }
.cabecera .btn { --h: 44px; }
.cabecera__cta { padding: 0 20px; }
.menu-movil {
  inset: calc(var(--header-h) - 2px) 8px auto 8px; border: 1px solid var(--hilo); border-radius: 24px;
  background: rgb(18 14 12 / .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-lg);
}
.menu-movil a { border-bottom-color: var(--hilo); }
@media (prefers-reduced-motion: no-preference) {
  .menu-movil:not([hidden]) li { animation: n-entra .55s var(--ease-out) both; }
  .menu-movil:not([hidden]) li:nth-child(2) { animation-delay: .05s; }
  .menu-movil:not([hidden]) li:nth-child(3) { animation-delay: .1s; }
  .menu-movil:not([hidden]) li:nth-child(4) { animation-delay: .15s; }
}
@media (max-width: 900px) {
  .cabecera { inset: 8px 0 auto 0; height: 56px; }
  .cabecera .cabecera__fila { width: calc(100% - 16px); height: 56px; padding: 0 6px 0 16px; }
}

/* ===================================================================== Etiquetas (ceja) y titulares de seccion */
.n-ceja {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 15px 7px 11px; border-radius: 999px;
  background: rgb(255 238 224 / .05); box-shadow: inset 0 0 0 1px rgb(255 238 224 / .1);
  font: 600 12.5px/1.25 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--champan);
}
.n-ceja__punto { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cobre); box-shadow: 0 0 0 4px rgb(217 162 124 / .16), 0 0 14px rgb(217 162 124 / .75); }
.n-ceja--seccion { margin-bottom: 20px; padding: 0; background: none; box-shadow: none; color: var(--accent); }
.n-ceja__num { display: inline-flex; align-items: center; gap: 12px; margin-right: 12px; color: var(--champan); font-variant-numeric: tabular-nums; }
.n-ceja__num::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .45; }
.n-h2 { font: 700 clamp(38px, 3vw + 18px, 70px)/1 var(--font-display); letter-spacing: -.036em; text-wrap: balance; }
.n-palabra { display: inline-block; }
.n-cab { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px 72px; align-items: end; margin-bottom: 56px; }
.n-cab--solo { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
.n-cab .texto-seccion { margin-top: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.n-cab__titulo .texto-seccion { margin-top: 18px; }
@media (max-width: 860px) { .n-cab { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 36px; } }

/* ===================================================================== Hero */
.n-hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center;
  min-height: max(660px, min(100svh, 1040px)); padding: calc(var(--header-h) + 48px) 0 120px;
  background-color: var(--bg); overflow: hidden;
}
/* Degradado de respaldo (sin WebGL, ahorro de datos, antes del primer cuadro): seda cobre quieta. */
.n-hero__fondo {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 100% at 96% 42%, rgb(12 10 9 / 0) 34%, var(--bg) 78%),
    repeating-linear-gradient(118deg, rgb(255 230 210 / .035) 0 1px, rgb(255 230 210 / 0) 1px 6px),
    linear-gradient(118deg, rgb(12 10 9 / 0) 36%, rgb(64 36 21 / .92) 45%, rgb(160 98 60 / .88) 51%, rgb(244 206 174 / .62) 54.5%,
      rgb(150 88 52 / .86) 58%, rgb(34 19 12 / .94) 65%, rgb(118 68 40 / .78) 72.5%, rgb(232 182 142 / .5) 76.5%,
      rgb(70 40 24 / .9) 82%, rgb(150 92 56 / .7) 89%, rgb(12 10 9 / 0) 99%),
    var(--bg);
}
.n-hero__seda { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease-out); }
.n-hero__seda.listo { opacity: 1; }
/* Velo: el lado del texto siempre oscuro (contraste AA sobre la seda) y fundido con la pagina abajo. */
.n-hero__velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(12 10 9 / .94) 0%, rgb(12 10 9 / .8) 36%, rgb(12 10 9 / .34) 58%, rgb(12 10 9 / 0) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgb(12 10 9 / 0) 24%),
    linear-gradient(180deg, rgb(12 10 9 / .55) 0%, rgb(12 10 9 / 0) 20%);
}
.n-hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 48px; align-items: end; }
.n-hero__texto { max-width: 820px; }
.n-saludo { color: var(--champan); }
.n-titular {
  font: 700 clamp(46px, 5.2vw + 10px, 106px)/.95 var(--font-display); letter-spacing: -.042em;
  text-wrap: balance; max-width: 12.5ch; color: var(--text);
}
.n-titular .n-palabra:nth-last-child(-n+2) { color: var(--champan); }
.n-hero__sub { margin: 28px 0 40px; font-size: clamp(17px, .45vw + 14px, 20px); line-height: 1.55; color: #CDC3BA; max-width: 42ch; }
.n-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
/* Iman (Magnet): motion.js mueve --ix / --iy. */
.n-iman { display: inline-flex; transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0); }
/* Boton principal con borde de estrella (StarBorder): una luz que recorre el contorno. */
.n-cta {
  --h: 60px; position: relative; isolation: isolate; gap: 16px; padding: 0 8px 0 28px; font-size: 17.5px; letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), inset 0 -1px 0 rgb(60 30 14 / .25), 0 22px 44px -18px rgb(217 162 124 / .75);
}
.n-cta::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--giro), rgb(255 230 210 / 0) 0deg, rgb(255 230 210 / 0) 230deg, rgb(255 236 220 / .95) 288deg, rgb(217 162 124 / .9) 306deg, rgb(255 230 210 / 0) 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Sin reserva en linea el boton es «Reserva por WhatsApp» o «Llámanos» (icono a la izquierda, sin el circulo). */
.n-cta:not(:has(.n-cta__icono)) { padding: 0 28px; }
.n-cta__icono {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: rgb(27 18 13 / .92); color: var(--champan); font-size: 18px; transition: transform .55s var(--ease-suave);
}
.n-cta__icono .ic { font-size: 18px; }
@media (hover: hover) { .n-cta:hover .n-cta__icono { transform: translateX(3px) scale(1.06); } }
.n-enlace {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat; transition: background-size .55s var(--ease-suave), color .3s;
}
.n-enlace .ic { transition: transform .55s var(--ease-suave); }
@media (hover: hover) { .n-enlace:hover { color: var(--champan); background-size: 0 1px; background-position: 100% calc(100% - 8px); } .n-enlace:hover .ic { transform: translateX(4px); } }
/* Doble bisel: carcasa con hilo + nucleo (la tarjeta «Próxima hora libre»). */
.n-hero__lado { justify-self: end; width: min(100%, 370px); margin-bottom: 6px; }
.n-bisel { padding: 6px; border-radius: 30px; background: rgb(255 238 224 / .045); box-shadow: inset 0 0 0 1px rgb(255 238 224 / .11), 0 34px 70px -34px rgb(0 0 0 / .9); }
/* Sin backdrop-filter (encima de la seda que se mueve costaria un desenfoque por cuadro y retrasa el primer pintado). */
.n-bisel__nucleo { border-radius: 24px; background: rgb(17 14 12 / .8); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.n-proxima__nucleo { display: flex; gap: 16px; padding: 20px 22px 12px; }
.n-proxima__icono { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; box-shadow: inset 0 0 0 1px rgb(217 162 124 / .25); }
.n-proxima__titulo { font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.n-proxima__titulo strong { display: block; margin-top: 4px; font: 700 24px/1.15 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.n-proxima__meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
/* Señal de desplazamiento */
.n-hero__pista {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; margin: 0;
  font: 600 11px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.n-hero__pista i { position: relative; display: block; width: 1px; height: 42px; overflow: hidden; background: rgb(255 238 224 / .14); }
.n-hero__pista i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--champan); transform: translateY(-16px); }
@media (max-width: 900px) {
  .n-hero { min-height: 0; justify-content: flex-start; padding: calc(var(--header-h) + 38px) 0 72px; }
  .n-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .n-hero__lado { justify-self: stretch; width: auto; margin: 0; }
  .n-hero__velo { background: linear-gradient(180deg, rgb(12 10 9 / .82) 0%, rgb(12 10 9 / .72) 46%, rgb(12 10 9 / .36) 74%, var(--bg) 100%); }
  .n-hero__pista { display: none; }
}
@media (max-height: 760px) and (min-width: 901px) { .n-hero__pista { display: none; } }
@media (max-width: 480px) {
  .n-titular { font-size: clamp(38px, 10.6vw, 52px); letter-spacing: -.038em; }
  .n-ceja { margin-bottom: 20px; font-size: 11.5px; letter-spacing: .12em; }
  .n-hero__sub { margin: 20px 0 30px; }
  .n-hero__cta { gap: 10px 24px; }
  .n-hero__cta .n-iman { flex: 1 1 100%; }
  .n-cta { width: 100%; justify-content: space-between; }
}

/* ===================================================================== Cinta de servicios (ScrollVelocity) */
.n-cinta {
  position: relative; overflow: hidden; padding: 30px 0; border-block: 1px solid var(--hilo); user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.n-cinta__fila { display: flex; overflow: hidden; white-space: nowrap; }
.n-cinta__fila + .n-cinta__fila { margin-top: 4px; }
.n-cinta__pista { display: flex; flex: none; align-items: center; }
.n-cinta__grupo { display: flex; flex: none; align-items: center; }
.n-cinta__item { padding-inline: .34em; font: 600 clamp(40px, 5.2vw, 84px)/1.08 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.n-cinta__fila--hueca .n-cinta__item { color: transparent; -webkit-text-stroke: 1.2px rgb(217 162 124 / .72); }
.n-cinta__sep {
  flex: none; width: .3em; height: .3em; font-size: clamp(40px, 5.2vw, 84px); background: var(--cobre);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.n-cinta__fila--hueca .n-cinta__sep { background: rgb(246 220 196 / .55); }
@media (max-width: 600px) { .n-cinta { padding: 20px 0; } }

/* ===================================================================== Servicios: tarjetas con foco (SpotlightCard) */
.seccion.n-servicios { padding: 120px 0 96px; }
.n-servicios, .n-equipo, .n-horario { position: relative; isolation: isolate; }
.n-servicios, .n-horario { overflow-x: clip; }   /* los resplandores de fondo nunca dan desplazamiento horizontal */
.n-servicios::before, .n-horario::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 70%; height: 560px; top: -60px; left: -18%;
  background: radial-gradient(closest-side, rgb(217 162 124 / .075), transparent);
}
.n-horario::before { left: auto; right: 0; top: 40px; }
.n-servicios .filtros { margin: 24px 0 14px; padding: 5px; background: rgb(255 238 224 / .04); box-shadow: inset 0 0 0 1px var(--hilo); }
.n-servicios .filtro { color: var(--muted); }
.n-servicios .filtro[aria-selected="true"] { background: var(--boton); color: var(--on-accent); box-shadow: 0 8px 20px -10px rgb(217 162 124 / .7); }
@media (hover: hover) { .n-servicios .filtro[aria-selected="false"]:hover { color: var(--text); } }
.n-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.n-lista .srv, .lista-srv--sin-precio.n-lista .srv {
  display: block; position: relative; padding: 6px; border-radius: 30px; background: rgb(255 238 224 / .025);
  box-shadow: inset 0 0 0 1px rgb(255 238 224 / .08); transition: transform .7s var(--ease-suave), background-color .5s var(--ease-out);
}
.n-lista .srv::before { content: none; }
.n-lista .srv::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgb(246 220 196 / .75), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); transition: opacity .5s var(--ease-out);
}
.n-lista .srv.con-foco::after { opacity: 1; }
@media (hover: hover) { .n-lista .srv:hover { background: rgb(255 238 224 / .04); transform: translateY(-3px); } }
.n-srv__nucleo {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 228px;
  padding: 24px 26px 20px; border-radius: 24px; background: var(--nucleo); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
}
.n-srv__nucleo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(217 162 124 / .22), transparent 62%);
}
.n-srv.con-foco .n-srv__nucleo::before { opacity: 1; }
.n-srv__num { font: 600 13px/1 var(--font-body); letter-spacing: .14em; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.n-lista .srv__nombre { font-size: clamp(22px, .7vw + 17px, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -.022em; }
.n-lista .srv__desc { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.n-lista .srv__meta { margin-top: 10px; font-size: 14.5px; }
.n-lista .srv__meta .ic { color: var(--accent); }
.n-srv__pie { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.n-lista .srv__precio { text-align: left; }
.n-lista .srv__boton { margin-left: auto; }
.n-servicios .nota { color: var(--muted); }
.n-servicios .nota .ic { color: var(--accent); }
@media (max-width: 860px) { .n-lista { grid-template-columns: minmax(0, 1fr); gap: 14px; } .n-srv__nucleo { min-height: 0; } }
@media (max-width: 767px) { .seccion.n-servicios { padding: 84px 0 64px; } }
@media (max-width: 480px) { .n-srv__nucleo { padding: 20px 20px 18px; } }

/* ===================================================================== Equipo: tarjetas que se inclinan (TiltedCard) */
.seccion.n-equipo { padding: 72px 0 88px; }
.n-cab--equipo { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.n-flechas { flex: none; }
.pista.n-pista {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 22px max(20px, calc((100% - 1176px) / 2)) 50px; scroll-padding-inline: max(20px, calc((100% - 1176px) / 2));
}
.pista.n-pista::-webkit-scrollbar { display: none; }
.pista .pro.n-pro {
  flex: 0 0 min(370px, 80vw); display: block; padding: 0; gap: 0; background: none; border: 0; border-radius: 0;
  scroll-snap-align: start; perspective: 1100px;
}
.n-pro__tarjeta {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 6px; border-radius: 30px;
  background: rgb(255 238 224 / .03); box-shadow: inset 0 0 0 1px rgb(255 238 224 / .09), 0 30px 60px -38px rgb(0 0 0 / .95);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transform-style: preserve-3d;
}
.n-pro__tarjeta.inclinando { will-change: transform; }
.pro__foto.n-pro__foto { aspect-ratio: 1 / 1; border-radius: 24px; }
.n-pro__foto .marco__inicial { font-size: 112px; color: rgb(255 246 238 / .86); }
.n-pro__brillo {
  position: absolute; z-index: 2; inset: 6px 6px auto 6px; aspect-ratio: 1 / 1; border-radius: 24px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 242 230 / .3), rgb(255 242 230 / 0) 55%);
  transition: opacity .5s var(--ease-out);
}
.n-pro__tarjeta.inclinando .n-pro__brillo { opacity: 1; }
.pro__texto.n-pro__texto { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 18px 16px; }
.n-pro .pro__nombre { font-size: 30px; letter-spacing: -.025em; }
.n-pro .chips li { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgb(217 162 124 / .22); }
.n-pro .pro__srv { color: var(--muted); }
.n-pro .btn { margin-top: auto; }
@media (max-width: 767px) {
  .seccion.n-equipo { padding: 56px 0 64px; }
  .n-flechas { display: none; }
  .pista.n-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 20px 34px; gap: 14px; }
  .pista .pro.n-pro { flex-basis: 80%; grid-template-columns: none; }
  .pro__texto.n-pro__texto { padding: 16px 14px 12px; }
  .n-pro .pro__nombre { font-size: 26px; }
  .n-pro__foto .marco__inicial { font-size: 92px; }
}

/* ===================================================================== El salon (2.ª ronda): texto, datos ciertos y la foto grande */
.seccion.n-salon { padding: 40px 0 96px; }
.n-salon .n-cab { margin-bottom: 40px; }
.n-datos { display: grid; grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--hilo); }
.n-dato { min-width: 0; }
.n-dato dt { margin-bottom: 8px; font: 600 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.n-dato dd { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.n-dato--cifra dd { font: 700 52px/.92 var(--font-display); letter-spacing: -.03em; color: var(--champan); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .n-datos { grid-template-columns: auto minmax(0, 1fr); } .n-dato:last-child { grid-column: 1 / -1; } }
@media (max-width: 767px) { .seccion.n-salon { padding: 24px 0 64px; } }

/* ===================================================================== Fotos del salon: la mascara se abre, Ken Burns y paralaje */
.n-foto {
  position: relative; margin: 0; padding: 6px; border-radius: 30px; background: rgb(255 238 224 / .03);
  box-shadow: inset 0 0 0 1px rgb(255 238 224 / .09), 0 40px 80px -48px rgb(0 0 0 / .95);
}
/* overflow: clip (no hidden): un contenedor con hidden es «de desplazamiento» y la línea de tiempo view() del paralaje
   lo tomaría a él (que no se desplaza) en lugar de la página. */
.n-foto__marco { position: relative; overflow: hidden; overflow: clip; isolation: isolate; aspect-ratio: 16 / 9; border-radius: 24px; background: #15110F; clip-path: inset(0 round 24px); }
.n-foto__capa { position: absolute; inset: -6% 0; }
.n-foto__zoom { display: block; width: 100%; height: 100%; }
.n-foto__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
@media (max-width: 767px) { .n-foto--salon .n-foto__marco { aspect-ratio: 4 / 3; } }
/* La fachada llena la celda del bento (antes, el mapa) y lleva el lugar en una pastilla oscura (contraste AA). */
.celda.celda--mapa.n-celda--foto { display: flex; padding: 0; background: none; box-shadow: none; overflow: visible; }
.n-foto--fachada { flex: 1; display: flex; flex-direction: column; }
.n-foto--fachada .n-foto__marco { flex: 1; min-height: 420px; aspect-ratio: auto; }
.n-foto--fachada .n-foto__img { object-position: 50% 28%; }
.n-foto__velo { position: absolute; inset: auto 0 0 0; height: 42%; pointer-events: none; background: linear-gradient(0deg, rgb(12 10 9 / .72), rgb(12 10 9 / 0)); }
.n-foto__pie {
  position: absolute; left: 22px; bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 44px);
  padding: 9px 15px 9px 12px; border-radius: 999px; background: rgb(16 13 11 / .88); box-shadow: inset 0 0 0 1px rgb(255 238 224 / .13);
  font: 600 14px/1.25 var(--font-body); color: var(--champan);
}
.n-foto__pie .ic { flex: none; font-size: 17px; color: var(--accent); }
@media (max-width: 1023px) { .n-foto--fachada .n-foto__marco { min-height: 0; aspect-ratio: 4 / 3; } }
.n-bento--sin-foto .celda--horas, .n-bento--sin-foto .celda--contacto { grid-column: span 6; }
@media (max-width: 1023px) { .n-bento--sin-foto .celda--horas, .n-bento--sin-foto .celda--contacto { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) {
  /* Revelado al entrar (motion.js pone .vista): sin JS o con movimiento reducido, la foto ya esta abierta. */
  .n-foto__marco { transition: clip-path 1.6s cubic-bezier(.55, 0, .25, 1); }   /* como un telon: arranca suave y se abre */
  .n-foto__zoom { transition: transform 2.6s var(--ease-out); }
  .n-foto__pie { transition: opacity .8s var(--ease-out) 1.1s, transform .8s var(--ease-out) 1.1s; }
  .n-js .n-foto:not(.vista) .n-foto__marco { clip-path: inset(11% 9% 11% 9% round 24px); }
  .n-js .n-foto:not(.vista) .n-foto__zoom { transform: scale(1.18); }
  .n-js .n-foto:not(.vista) .n-foto__pie { opacity: 0; transform: translate3d(0, 12px, 0); }
  /* Ken Burns: un acercamiento lentisimo, solo mientras se ve (.en-vista) */
  .n-foto.vista .n-foto__img { animation: n-kenburns 26s cubic-bezier(.45, 0, .55, 1) 2.6s infinite alternate; animation-play-state: paused; }
  .n-foto.vista.en-vista .n-foto__img { animation-play-state: running; }
}
/* Paralaje suave en escritorio, ligado al desplazamiento sin JS (scroll-driven animations; donde no las hay, quieta). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .n-foto__capa { animation: n-paralaje linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}

/* ===================================================================== Horario y ubicacion */
.seccion.n-horario { padding: 72px 0 120px; }
.n-bento { gap: 18px; margin-top: 0; }
.celda.n-celda {
  position: relative; isolation: isolate; overflow: hidden; padding: 30px; border: 0; border-radius: 30px; background: var(--nucleo);
  box-shadow: inset 0 0 0 1px rgb(255 238 224 / .085), inset 0 1px 0 rgb(255 255 255 / .04);
}
.celda.n-celda::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgb(217 162 124 / .12), transparent 62%);
}
.celda.n-celda.con-foco::before { opacity: 1; }
.n-celda h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 16px; }
.n-celda .horas-semana li { padding: 9px 12px; border-radius: 12px; }
.n-celda .horas-semana li.es-hoy { background: linear-gradient(90deg, rgb(217 162 124 / .18), rgb(217 162 124 / .06)); color: var(--text); box-shadow: inset 0 0 0 1px rgb(217 162 124 / .28); }
.n-celda .etiqueta-hoy { background: var(--boton); color: var(--on-accent); }
.n-celda .direccion .ic { color: var(--accent); }
@media (max-width: 480px) { .celda.n-celda { padding: 22px; } .n-foto__pie { left: 14px; bottom: 14px; max-width: calc(100% - 28px); } }

/* ===================================================================== Pie */
.pie { border-top: 1px solid var(--hilo); margin-top: 0; padding-top: 56px; background: linear-gradient(180deg, rgb(217 162 124 / .025), transparent 60%); }
.pie__enlaces a { color: var(--text); }

/* ===================================================================== Panel de reserva y dialogos */
dialog { background: var(--surface); }
.panel { background: #120F0D; border-left: 1px solid var(--hilo); box-shadow: -40px 0 90px -30px rgb(0 0 0 / .85); }
.panel__pie { background: #120F0D; border-top-color: var(--hilo); }
.modal { box-shadow: 0 0 0 1px var(--hilo), var(--shadow-lg); }

/* ===================================================================== Chat: orbe y vidrio oscuro */
.chat-fab.chat-fab--orbe {
  width: 66px; height: 66px; padding: 0; overflow: visible; background: none; color: var(--champan); box-shadow: none;
  transition: transform .5s var(--ease-suave);
}
.chat-fab--orbe > .ic { display: none; }
@media (hover: hover) { .chat-fab.chat-fab--orbe:hover { background: none; transform: translateY(-2px) scale(1.05); } }
.chat-fab--orbe:active { transform: scale(.96); }
.chat-fab--orbe:focus-visible { outline-offset: 6px; }
/* Orbe de CSS (sin WebGL, movimiento reducido o mientras arranca): esfera de vidrio con aro de luz y bruma dentro. */
.orbe {
  position: absolute; inset: -9px; display: block; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 37% 30%, rgb(255 248 240 / .55) 0, rgb(255 248 240 / 0) 13%),
    radial-gradient(58% 26% at 50% 56%, rgb(250 226 204 / .62), rgb(250 226 204 / 0) 72%),
    radial-gradient(42% 18% at 44% 64%, rgb(217 162 124 / .55), rgb(217 162 124 / 0) 75%),
    radial-gradient(circle at 50% 50%, #1E1411 0, #120C0A 52%, rgb(18 12 10 / 0) 53.5%),
    radial-gradient(circle at 50% 50%, rgb(255 228 204 / 0) 51.5%, rgb(255 232 212 / .95) 53.2%, rgb(217 162 124 / .55) 55.5%, rgb(217 162 124 / .16) 62%, rgb(217 162 124 / 0) 71%);
}
.orbe__lienzo { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .7s var(--ease-out); }
.orbe.listo { background: none; }
.orbe.listo .orbe__lienzo { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .orbe:not(.listo) { animation: n-respira 4.2s ease-in-out infinite; }
}
.chat-globo { background: rgb(20 16 13 / .9); border-color: var(--hilo); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); right: 98px; }
.chat {
  border: 1px solid rgb(255 238 224 / .11); border-radius: 26px; background: rgb(17 14 12 / .86);
  -webkit-backdrop-filter: blur(26px) saturate(1.35); backdrop-filter: blur(26px) saturate(1.35);
  box-shadow: 0 50px 110px -34px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .05); inset: auto 20px 100px auto;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .chat { background: #13100E; } }
.chat__cab { align-items: center; gap: 14px; padding: 14px 10px 12px 16px; border-bottom-color: var(--hilo); background: linear-gradient(180deg, rgb(217 162 124 / .08), rgb(217 162 124 / 0)); }
.chat__avatar.chat__avatar--orbe { position: relative; width: 46px; height: 46px; margin: 0; background: none; }
.chat__avatar--orbe .orbe { inset: -7px; }
.chat__id h2 { font-size: 17.5px; letter-spacing: -.01em; }
.chat-tag-ia { border-color: rgb(217 162 124 / .6); color: var(--champan); }
.chat__estado { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.chat__estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--champan); box-shadow: 0 0 10px rgb(246 220 196 / .6); }
[data-orbe="escribiendo"] .chat__estado::before, .chat-raiz[data-orbe="escribiendo"] .chat__estado::before { background: var(--cobre); box-shadow: 0 0 10px rgb(217 162 124 / .9); }
.chat__persona { min-height: 36px; margin-top: 0; }
.chat-aviso { background: rgb(255 238 224 / .045); box-shadow: inset 0 0 0 1px var(--hilo); }
.chat-msg--ia { background: rgb(255 238 224 / .06); box-shadow: inset 0 0 0 1px var(--hilo); }
.chat-msg--yo { background: var(--boton); color: var(--on-accent); }
.chat-rapida { background: rgb(255 238 224 / .03); border-color: rgb(217 162 124 / .55); color: var(--champan); }
@media (hover: hover) { .chat-rapida:hover:not(:disabled) { background: rgb(217 162 124 / .14); } }
.chat-hora, .chat-prop, .chat-verif { background: rgb(255 238 224 / .035); }
.chat-escribe { background: rgb(255 238 224 / .06); box-shadow: inset 0 0 0 1px var(--hilo); }
.chat-puntos span { background: var(--cobre); }
.chat__form, .chat__consent { border-top-color: var(--hilo); }
.chat__form .entrada { background: rgb(255 238 224 / .05); border-color: var(--line-strong); }
.chat-enviar { background: var(--boton); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); }
@media (hover: hover) { .chat-enviar:hover:not(:disabled) { background: var(--boton-hover); } }
@media (max-width: 599px) {
  .chat { inset: auto 0 0 0; border-radius: 26px 26px 0 0; border-bottom: 0; }
  .chat-fab.chat-fab--orbe { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .chat-globo { right: 92px; }
}

/* ===================================================================== Chispa al pulsar (ClickSpark; la crea motion.js) */
.n-chispas { position: fixed; inset: 0; z-index: 45; width: 100%; height: 100%; pointer-events: none; }

/* ===================================================================== Vista previa */
.n-vista-previa {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 41; max-width: calc(100% - 120px); margin: 0;
  padding: 9px 14px; border-radius: 999px; background: rgb(20 16 13 / .86); border: 1px solid rgb(217 162 124 / .4);
  color: var(--champan); font: 600 13px/1.25 var(--font-body); pointer-events: none; box-shadow: var(--shadow);
}

/* ===================================================================== Movimiento */
@media (prefers-reduced-motion: no-preference) {
  /* Revelado por palabras al cargar (BlurText): empieza en el primer pintado, sin esperar al JS. */
  .n-titular .n-palabra { animation: n-palabra 1.05s var(--ease-out) both; }
  .n-titular .n-palabra:nth-child(2) { animation-delay: .06s; } .n-titular .n-palabra:nth-child(3) { animation-delay: .12s; }
  .n-titular .n-palabra:nth-child(4) { animation-delay: .18s; } .n-titular .n-palabra:nth-child(5) { animation-delay: .24s; }
  .n-titular .n-palabra:nth-child(6) { animation-delay: .3s; } .n-titular .n-palabra:nth-child(7) { animation-delay: .36s; }
  .n-titular .n-palabra:nth-child(8) { animation-delay: .42s; } .n-titular .n-palabra:nth-child(9) { animation-delay: .48s; }
  .n-titular .n-palabra:nth-child(10) { animation-delay: .54s; } .n-titular .n-palabra:nth-child(n+11) { animation-delay: .6s; }
  .n-entra { animation: n-entra .95s var(--ease-out) both; }
  .n-entra.e1 { animation-delay: .3s; } .n-entra.e2 { animation-delay: .42s; } .n-entra.e3 { animation-delay: .56s; }
  /* Titulares de seccion: motion.js pone .oculto a los que estan por debajo y lo quita al verlos. */
  .n-h2 .n-palabra { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
  .n-h2 .n-palabra:nth-child(2) { transition-delay: .06s; } .n-h2 .n-palabra:nth-child(3) { transition-delay: .12s; }
  .n-h2 .n-palabra:nth-child(4) { transition-delay: .18s; } .n-h2 .n-palabra:nth-child(n+5) { transition-delay: .24s; }
  .n-h2.oculto .n-palabra { opacity: 0; transform: translate3d(0, .45em, 0); filter: blur(10px); }
  /* Secciones al desplazar (las marca reservas.js): desenfoque, fundido y desplazamiento, escalonado. */
  .revela { transition: opacity .95s var(--ease-out), transform .95s var(--ease-out), filter .95s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .revela.oculto { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(10px); }
  .n-lista .srv.revela.oculto { transform: translate3d(0, 40px, 0); }
  /* StarBorder: la luz gira; se para fuera de la vista (motion.js pone .n-hero--fuera). */
  .n-cta::before { animation: n-giro 3.8s linear infinite; }
  .n-hero--fuera .n-cta::before, .n-hero--fuera .n-hero__pista i::after { animation-play-state: paused; }
  .n-hero__pista i::after { animation: n-baja 2.4s var(--ease-suave) infinite 1.6s; }
}
@keyframes n-palabra {
  0% { opacity: 0; filter: blur(9px); transform: translate3d(0, .42em, 0); }
  55% { filter: blur(1.5px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes n-entra { from { opacity: 0; filter: blur(6px); transform: translate3d(0, 20px, 0); } }
@keyframes n-giro { to { --giro: 360deg; } }
@keyframes n-baja { 0% { transform: translateY(-16px); } 60%, 100% { transform: translateY(44px); } }
@keyframes n-kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
@keyframes n-paralaje { from { transform: translate3d(0, -4.5%, 0); } to { transform: translate3d(0, 4.5%, 0); } }
@keyframes n-respira { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.035); filter: brightness(1.14); } }
