/*
  Lúa Peluquería · estilo "Air" (midnight sky through glass sculpture).
  Lienzo casi negro con fotos a sangre; el secador flota como la escultura de cristal de Air.
  Texto en Inter 500 (siempre el mismo peso: calma); titulares que mezclan letra recta y una
  palabra manuscrita (Caveat); rótulos gigantes en mayúscula comprimida (Anton) que se salen.
  Tarjetas "Haze" #f5f5f5 como islas claras, sin sombra. Botones a 8 px: fantasma con borde
  blanco o claros; píldora solo para el interruptor. Azul señal solo para enlaces.
*/
:root {
  --void: #0b0c0f;
  --night: #121419;
  --white: #ffffff;
  --haze: #f5f5f5;
  --ink: #1b1b1b;
  --muted: rgba(255, 255, 255, 0.66);
  --muted-ink: #5b5d63;
  --twilight: #426188;
  --twilight-soft: #8eaad0;
  --signal: #2b7fff;
  --line: rgba(255, 255, 255, 0.12);
  --line-ink: rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --poster: "Anton", "Impact", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--void); color: var(--white); font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--twilight); color: #fff; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.island :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: 1150px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

/* Tipografía */
.kicker { font-size: 1.25rem; line-height: 1.4; color: var(--muted); }
.title { font-size: clamp(2.4rem, 5.4vw, 3.6rem); line-height: 1; letter-spacing: -0.025em; }
.title em { font-family: var(--script); font-style: normal; font-weight: 500; font-size: 1.32em; line-height: 0.8; letter-spacing: 0; color: var(--twilight-soft); }
.mega { font-family: var(--poster); font-weight: 400; text-transform: uppercase; line-height: 0.85; letter-spacing: 0.005em; }
.center-head { display: grid; justify-items: center; gap: 14px; max-width: 760px; margin: 0 auto 48px; text-align: center; }
.link { color: var(--signal); font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; padding-inline: 2px; }

/* Botones: 8 px. Fantasma (borde blanco), claro (haze) y tinta (sobre las tarjetas claras) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn--ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn--light { background: var(--haze); color: var(--ink); border-color: var(--haze); }
.btn--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--white); color: var(--ink); }
  .btn--light:hover { background: var(--white); }
  .btn--ink:hover { background: #000; }
}

/* Tarjeta "Haze": isla clara sobre lo oscuro, sin sombra */
.island { border-radius: 12px; background: var(--haze); color: var(--ink); padding: 24px; }
.island__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-ink); }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fb36e; }
@media (prefers-reduced-motion: no-preference) { .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease) infinite; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* Aviso de demo */
.demo-bar { position: relative; z-index: 50; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 10px 16px; background: #000; color: var(--muted); font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }
.demo-bar a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--white); }
.is-embed .demo-bar { display: none; }

/* ---------- Navegación: 72 px, enlaces a la izquierda, acción a la derecha ---------- */
.nav { position: sticky; top: 0; z-index: 40; margin-bottom: -72px; transition: background-color 400ms var(--ease), border-color 400ms var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(11, 12, 15, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.logo__moon { width: 20px; height: 20px; fill: var(--white); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 15px; text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--white); } }
.nav__cta { margin-left: auto; }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; min-height: max(100svh, 720px); overflow: clip; display: grid; }
.hero__photo, .book__photo, .visit__photo { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__photo img, .book__photo img, .visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo img { filter: brightness(0.6) saturate(0.75); }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: rgba(6, 7, 10, 0.42); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; padding-top: 150px; padding-bottom: 34vw; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { font-size: clamp(2.8rem, 6.2vw, 4.6rem); max-width: 12ch; }
.hero__sub { max-width: 30rem; font-size: 1.125rem; color: var(--muted); font-weight: 400; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* La escultura: el secador flota y gira despacio */
.sculpt { position: absolute; right: -2%; top: 110px; width: min(46vw, 620px); pointer-events: none; will-change: transform; }
.sculpt img { width: 100%; height: auto; filter: brightness(0.95) contrast(1.05); }
@media (prefers-reduced-motion: no-preference) { .sculpt img { animation: float 7s ease-in-out infinite alternate; } }
@keyframes float { from { transform: translateY(-10px) rotate(-3deg); } to { transform: translateY(14px) rotate(2deg); } }

.hero__island { position: absolute; right: 24px; bottom: calc(30vw + 8px); display: grid; gap: 8px; width: 260px; }
.island__big { font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.island__rate { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-ink); }
.island__rate i { color: var(--ink); }
.hero__island .btn { margin-top: 6px; }

/* El nombre gigante: las letras repartidas de lado a lado, cortadas por abajo */
.hero__mega { position: absolute; left: 0; right: 0; bottom: -0.1em; display: flex; justify-content: space-between; padding-inline: 1.5vw; font-size: 34vw; color: var(--white); pointer-events: none; }
.hero__mega span { display: inline-block; will-change: transform; } .hero__mega b { display: inline-block; font-weight: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__mega b { animation: mega-in 1400ms var(--ease) both; animation-delay: calc(150ms + var(--i, 0) * 110ms); }
  .js .hero__copy > * { animation: up-in 1000ms var(--ease) both; animation-delay: calc(500ms + var(--i, 0) * 90ms); }
  .js .hero__island { animation: up-in 1000ms var(--ease) 1000ms both; }
  .js .sculpt { animation: sculpt-in 1600ms var(--ease) 300ms both; }
}
@keyframes mega-in { from { transform: translateY(70%); } }
@keyframes up-in { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } }
@keyframes sculpt-in { from { opacity: 0; transform: translateY(60px) rotate(-14deg) scale(0.85); filter: blur(10px); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 56vw; }
  .sculpt { position: relative; right: auto; top: auto; width: min(80vw, 420px); margin: 24px 0 0 auto; }
  .hero__island { position: relative; right: auto; bottom: auto; width: 100%; max-width: 360px; margin-top: 8px; }
  .hero__mega { font-size: 40vw; }
}

/* ---------- Franja ---------- */
.strip { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip__track { display: flex; width: max-content; }
.strip__set { display: flex; gap: 56px; padding-right: 56px; }
.strip__set li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.strip__set i { font-size: 18px; color: var(--white); }
@media (prefers-reduced-motion: no-preference) { .strip__track { animation: slide 36s linear infinite; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* Secciones */
section { position: relative; }
.svc, .swatch, .salon { padding-block: clamp(88px, 11vw, 140px); }

/* ---------- Servicios ---------- */
.toggle { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); }
.toggle__btn { position: relative; z-index: 1; min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; transition: color 300ms ease; }
.toggle__btn[aria-selected="true"] { color: var(--ink); }
.toggle__pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--haze); transition: transform 500ms var(--ease), width 500ms var(--ease); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.svc__media { position: relative; overflow: hidden; min-height: 520px; border-radius: 12px; background: var(--night); }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 900ms var(--ease), transform 1400ms var(--ease); }
.svc__media img.is-on { clip-path: inset(0 0 0 0); transform: none; z-index: 1; }
.svc__card { display: grid; padding: 32px; }
.svc__panel { display: grid; align-content: start; gap: 12px; }
.svc__lema { font-family: var(--script); font-size: 2.4rem; line-height: 1; color: var(--twilight); }
.svc__list { display: grid; }
.svc__item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line-ink); }
.svc__item h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.svc__item p { font-size: 14px; font-weight: 400; color: var(--muted-ink); }
.svc__item strong { font-weight: 500; font-size: 1.125rem; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .svc__panel:not([hidden]) .svc__item { animation: up-in 600ms var(--ease) both; animation-delay: calc(var(--k) * 70ms); } }
@media (max-width: 860px) {
  .svc__grid { grid-template-columns: 1fr; }
  .svc__media { min-height: 300px; }
  .svc__card { padding: 22px; }
  .svc__item { grid-template-columns: minmax(0, 1fr) auto; }
  .svc__item .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Lemas en horizontal ---------- */
.lemas__track { display: grid; }
.lema { position: relative; isolation: isolate; display: grid; align-content: end; min-height: 100svh; padding: 0 4vw 6vh; overflow: hidden; }
.lema img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.8); }
.lema__veil { position: absolute; inset: 0; z-index: -1; background: rgba(6, 7, 10, 0.25); }
.lema__n { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.lema__text { max-width: 9ch; font-size: clamp(4.5rem, 13vw, 13rem); color: var(--white); }
/* Con GSAP (aire.js añade .lemas-on): la sección se fija y los lemas desfilan de derecha a izquierda */
.lemas-on .lemas__pin { height: 100svh; overflow: hidden; }
.lemas-on .lemas__track { display: flex; width: max-content; height: 100%; will-change: transform; }
.lemas-on .lema { width: 100vw; min-height: 0; height: 100%; }

/* ---------- Carta de color ---------- */
.swatch__stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.strands { display: flex; gap: 8px; height: 440px; }
.strand { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 7px), var(--c);
  transition: flex-grow 700ms var(--ease), filter 300ms ease; }
.strand[aria-checked="true"] { flex-grow: 3.2; }
.strand span { position: absolute; left: 12px; bottom: 14px; color: rgba(255, 255, 255, 0.92); font-size: 14px; writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.strand[aria-checked="true"] span { writing-mode: horizontal-tb; rotate: none; left: 18px; bottom: 18px; font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .strand:hover { filter: brightness(1.12); } }
@media (prefers-reduced-motion: no-preference) {
  .js .swatch__stage.reveal .strand { transform: scaleY(0.2); transform-origin: 50% 0; opacity: 0; transition: flex-grow 700ms var(--ease), filter 300ms ease, transform 1000ms var(--ease), opacity 600ms ease; transition-delay: 0s, 0s, calc(var(--i) * 70ms), calc(var(--i) * 70ms); }
  .js .swatch__stage.reveal.is-in .strand { transform: none; opacity: 1; }
}
.swatch__card { display: grid; align-content: end; gap: 8px; }
.swatch__dot { width: 72px; height: 72px; margin-bottom: auto; border-radius: 50%; background: var(--c); transition: background-color 500ms var(--ease); }
.swatch__name { font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.swatch__svc { font-size: 14px; font-weight: 400; color: var(--muted-ink); }
.swatch__card .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 860px) {
  .swatch__stage { grid-template-columns: 1fr; }
  .strands { height: 300px; }
  .swatch__dot { width: 48px; height: 48px; margin-bottom: 12px; }
}

/* ---------- Cita ---------- */
.book { isolation: isolate; display: grid; align-items: center; min-height: 92svh; padding-block: 120px; overflow: clip; }
.book__photo img { filter: brightness(0.5) saturate(0.7); }
.book__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; }
.book__title { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 10ch; }
.book__form { display: grid; gap: 14px; padding: 28px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted-ink); }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px; border: 1px solid var(--line-ink); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #c2412d; }
.book__go { min-height: 50px; margin-top: 4px; }
.book__status { min-height: 1.4em; font-size: 14px; font-weight: 400; color: var(--muted-ink); }
.book__status.is-error { color: #b2361f; }
.book__status.is-ok { color: var(--ink); }
.book__form.is-picked { animation: picked 900ms var(--ease); }
@keyframes picked { 30% { transform: scale(1.02); } }
@media (max-width: 860px) { .book__inner { grid-template-columns: 1fr; } }

/* ---------- El salón ---------- */
.salon__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.salon__copy { display: grid; gap: 22px; justify-items: start; }
.salon__p { max-width: 34rem; color: var(--muted); font-weight: 400; font-size: 1.0625rem; }
.salon__photos { position: relative; min-height: 600px; }
.salon__ph { position: absolute; overflow: hidden; border-radius: 12px; will-change: transform; }
.salon__ph img { width: 100%; height: 100%; object-fit: cover; }
.salon__ph--1 { left: 0; top: 0; width: 62%; aspect-ratio: 3 / 4; }
.salon__ph--2 { right: 0; bottom: 0; width: 50%; aspect-ratio: 3 / 4; outline: 8px solid var(--void); }
@media (max-width: 860px) { .salon__grid { grid-template-columns: 1fr; } .salon__photos { min-height: 440px; } }

/* ---------- Visítanos ---------- */
.visit { isolation: isolate; display: grid; align-items: center; min-height: 100svh; padding-block: 120px; overflow: clip; }
.visit__photo img { filter: brightness(0.62) saturate(0.85); }
.visit__card { display: grid; gap: 14px; width: min(420px, 100%); padding: 28px; }
.visit__title { font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; }
.visit__now { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); font-size: 13px; }
.visit__now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9a9ca3; }
.visit__now.is-open::before { background: #2fb36e; }
.visit__facts { display: grid; gap: 8px; font-size: 15px; font-weight: 400; color: var(--muted-ink); }
.visit__facts li { display: flex; gap: 10px; align-items: center; }
.visit__facts i { color: var(--ink); font-size: 18px; }
.visit__facts a { color: var(--ink); }
.visit__hours { display: grid; border-top: 1px solid var(--line-ink); }
.visit__hours div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line-ink); font-size: 15px; }
.visit__hours dt { color: var(--muted-ink); font-weight: 400; }
.visit__hours .is-today dt, .visit__hours .is-today dd { color: var(--ink); font-weight: 500; }
.visit__card .link { justify-self: start; margin-top: 4px; }

/* ---------- Cierre: rótulo gigante ---------- */
.end { padding-block: clamp(80px, 12vw, 160px) clamp(40px, 6vw, 80px); overflow: clip; }
.end__link { display: grid; justify-items: center; text-decoration: none; }
.end__script { font-family: var(--script); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; color: var(--twilight-soft); }
.end__mega { display: block; font-size: 19.5vw; white-space: nowrap; color: var(--white); transition: color 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .end__link:hover .end__mega { color: var(--twilight-soft); } }

/* ---------- Pie ---------- */
.footer { padding-block: 36px; border-top: 1px solid var(--line); }
html:not(.is-embed) .footer { padding-bottom: 104px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; font-size: 14px; color: var(--muted); }
.footer .link { color: var(--white); text-decoration-color: var(--signal); }

/* Demo de AtelierWeb */
.demo-cta { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; max-width: calc(100vw - 40px); padding: 8px 16px; border-radius: 8px; background: var(--haze); color: var(--muted-ink); font-size: 13px; line-height: 1.3; text-decoration: none; transition: opacity 300ms ease, translate 300ms var(--ease); }
.demo-cta strong { color: var(--ink); font-size: 15px; font-weight: 500; }
.demo-cta.is-tucked { opacity: 0; translate: 0 12px; pointer-events: none; }
.is-embed .demo-cta { display: none; }
@media (max-width: 480px) { .demo-cta { left: 8px; bottom: 8px; } }

/* Aparición al bajar */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease), filter 900ms var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Portada a pantalla exacta: el nombre gigante ocupa la franja baja y siempre se ve */
.hero { --mega: min(30vw, 42svh); height: max(100svh, 680px); min-height: 0; }
.hero__inner { padding-top: 132px; padding-bottom: 0; }
.hero__mega { font-size: var(--mega); bottom: calc(var(--mega) * -0.1); }
.hero__island { bottom: calc(var(--mega) * 0.78 + 12px); }
.sculpt { top: 96px; width: min(40vw, 560px); }
@media (max-width: 900px) {
  .hero { --mega: 40vw; height: auto; min-height: 100svh; }
  .hero__inner { padding-bottom: calc(var(--mega) * 0.8 + 24px); }
  .hero__island { bottom: auto; }
}
.hero { height: max(calc(100svh - 38px), 560px); }
.is-embed .hero { height: max(100svh, 560px); }
@media (max-width: 900px) { .hero { height: auto; } }
@media (min-width: 901px) { .sculpt { top: 118px; right: 5vw; width: min(26vw, 400px); } }
.svc__panel[hidden] { display: none; }
@media (max-width: 900px) { .is-embed .hero { height: auto; } }
