/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #0a0e0c;
  --bg-2:       #10150f;
  --card:       #141a15;
  --ink:        #f2f5f2;
  --ink-soft:   #cdd6d0;
  --mute:       #8a9690;
  --accent:     #25D366;
  --accent-deep:#0e9f57;
  --accent-700: #0a7a45;
  --accent-bright: #4dffab;
  --line:       rgba(242,245,242,0.12);

  --serif: "Bebas Neue", "Hanken Grotesk", sans-serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "JetBrains Mono", monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-quint:  cubic-bezier(0.22, 1, 0.36, 1);

  /* Escala semántica de z-index (no valores mágicos) */
  --z-sticky: 100;
  --z-skip:   120;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-padding-top: 130px; }
body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 400; text-transform: uppercase; color: var(--ink); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #05100a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #05100a;
  z-index: var(--z-skip); border-radius: 8px; font-weight: 700; font-family: var(--sans);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-bright); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright); }
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--mute); font-size: 15.5px; margin-top: 10px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 700; font-size: 14.5px; font-family: var(--sans);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
}
.btn-primary { background: var(--accent); color: #05100a; box-shadow: 0 16px 32px -14px rgba(37,211,102,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(37,211,102,.7); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

/* =============================================================
   4. Nav
   ============================================================= */
/* Cabecera fija = cintillo de demo + nav apilados, sin solaparse */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky); }
.nav {
  background: rgba(10,14,12,0); border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.nav.is-solid { background: rgba(10,14,12,.86); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-brand { font-family: var(--serif); font-size: 22px; letter-spacing: .02em; color: var(--ink); }
.nav-brand em { color: var(--accent-bright); font-style: normal; }
.nav-links { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav-links a { position: relative; padding-bottom: 4px; color: var(--ink-soft); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; }
.nav-toggle svg { width: 18px; height: 18px; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding-top: 130px; overflow: clip;
}
/* Foto de fondo del hero + capas de legibilidad */
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,14,12,.97) 0%, rgba(10,14,12,.92) 32%, rgba(10,14,12,.55) 58%, rgba(10,14,12,.35) 100%),
    linear-gradient(180deg, rgba(10,14,12,.85) 0%, transparent 22%, transparent 62%, rgba(10,14,12,.92) 100%);
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 520px at var(--mx, 26%) var(--my, 42%), rgba(77,255,171,.16) 0%, transparent 62%),
    radial-gradient(circle 680px at calc(var(--mx, 26%) + 18%) calc(var(--my, 42%) + 26%), rgba(14,159,87,.14) 0%, transparent 64%);
  transition: background .5s var(--ease-out);
}
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
.hero-pulse { position: absolute; left: 0; right: 0; bottom: 14%; height: 60px; opacity: .5; z-index: -1; }
.hero-pulse path { fill: none; stroke: var(--accent-bright); stroke-width: 1.4; stroke-dasharray: 900; stroke-dashoffset: 900; animation: pulseDraw 6s linear infinite; }
@keyframes pulseDraw { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.8rem, 9vw, 7.4rem); line-height: .96; max-width: 20ch; text-wrap: balance;
}
.hero-title em { color: var(--accent-bright); font-style: normal; }
.hero-sub { max-width: 46ch; font-size: 17px; color: var(--ink-soft); margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; gap: 28px; margin-top: 56px; flex-wrap: wrap; }
.hero-meta-item { font-family: var(--mono); font-size: 12.5px; color: var(--mute); display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item b { font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: 0; }

/* Demo ribbon */
.demo-ribbon {
  background: var(--accent-deep); color: #05100a;
  font-family: var(--mono); font-size: 12.5px; text-align: center; padding: 9px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.demo-ribbon a { font-weight: 700; text-decoration: underline; }
.ribbon-logo { height: 15px; width: auto; flex: none; }
.made-with-logo { height: 14px; width: auto; flex: none; }

/* =============================================================
   6. Manifesto
   ============================================================= */
.manifesto p {
  font-family: var(--serif); text-transform: none; color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.28; max-width: 62ch; margin-inline: auto; text-align: center;
}
.manifesto em { color: var(--accent-bright); font-style: normal; }

/* =============================================================
   7. Servicios (tarjetas con foto)
   ============================================================= */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(37,211,102,.4); box-shadow: 0 26px 50px -28px rgba(0,0,0,.8); }
.service-card.is-featured { border-color: rgba(37,211,102,.45); }
.service-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(20,26,21,.85) 100%);
}
.service-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: #05100a; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.service-content { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.service-name { font-size: 1.5rem; color: var(--ink); }
.service-price { font-family: var(--serif); font-size: 1.6rem; color: var(--accent-bright); white-space: nowrap; }
.service-dur { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: -4px; }
.service-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; flex: 1; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.service-tag { font-family: var(--mono); font-size: 11px; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }

/* =============================================================
   7b. El estudio (foto ancha con texto encima)
   ============================================================= */
.studio-wrap { position: relative; border-radius: 24px; overflow: hidden; min-height: 420px; display: flex; }
.studio-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-overlay {
  position: relative; z-index: 2; align-self: flex-end; padding: 32px 26px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,14,12,.72) 32%, rgba(10,14,12,.95) 100%);
  width: 100%;
}
.studio-overlay h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 18ch; }
.studio-text { color: var(--ink-soft); font-size: 15px; max-width: 52ch; margin-top: 12px; }

/* =============================================================
   8. Stats
   ============================================================= */
.stats-grid { display: grid; grid-template-columns: repeat(1,1fr); gap: 36px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--ink); }
.stat span { font-family: var(--mono); font-size: 12.5px; color: var(--mute); letter-spacing: .04em; }

/* =============================================================
   9. Proceso
   ============================================================= */
.process-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.process-step { border-top: 1px solid var(--line); padding-top: 24px; }
.process-num { font-family: var(--mono); color: var(--accent-bright); font-size: 13px; }
.process-step h3 { margin-top: 14px; font-size: 22px; }
.process-step p { color: var(--mute); font-size: 14.5px; margin-top: 10px; max-width: 34ch; }

/* =============================================================
   10. Reserva (mockup visual)
   ============================================================= */
.booking-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.booking-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.booking-top h4 { font-size: 18px; color: var(--ink); text-transform: none; font-family: var(--sans); font-weight: 700; }
.booking-badge { font-family: var(--mono); font-size: 11px; color: var(--accent-bright); border: 1px solid var(--accent-deep); border-radius: 999px; padding: 5px 10px; }
.booking-days { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; }
.booking-day { flex: none; min-width: 58px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); text-align: center; font-family: var(--mono); font-size: 12px; color: var(--mute); cursor: pointer; transition: all .25s var(--ease-out); }
.booking-day b { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); margin-top: 4px; }
.booking-day.is-selected, .booking-day:hover { border-color: var(--accent); background: rgba(37,211,102,.08); color: var(--ink); }
.booking-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
.booking-slot { padding: 12px 8px; border-radius: 10px; border: 1px solid var(--line); text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); cursor: pointer; transition: all .25s var(--ease-out); }
.booking-slot.is-selected, .booking-slot:hover { border-color: var(--accent); background: rgba(37,211,102,.1); color: var(--accent-bright); }
.booking-slot[data-full] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.booking-cta { width: 100%; justify-content: center; }
.booking-note { font-size: 12.5px; color: var(--mute); margin-top: 14px; text-align: center; }
.booking-side { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.booking-side p { color: var(--mute); font-size: 15px; max-width: 40ch; }

/* =============================================================
   11. Testimonios
   ============================================================= */
.testi-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.testi-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--card); }
.testi-quote { color: var(--ink); font-size: 16px; line-height: 1.55; }
.testi-quote::before { content: "\201C"; color: var(--accent-bright); font-family: var(--serif); font-size: 30px; display: block; margin-bottom: 4px; }
.testi-author { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.testi-who { display: flex; flex-direction: column; font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.35; }
.testi-who em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 500; }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 16px; font-weight: 600; color: var(--ink); font-family: var(--sans); text-transform: none; }
.faq-plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--ink-soft); transition: transform .3s var(--ease-out); }
.faq-plus::before { top: 50%; left: 0; width: 100%; height: 1.6px; transform: translateY(-50%); }
.faq-plus::after { left: 50%; top: 0; height: 100%; width: 1.6px; transform: translateX(-50%); }
.faq-item.is-open .faq-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { overflow: hidden; min-height: 0; padding: 0 0 22px; color: var(--ink-soft); font-size: 14.5px; max-width: 60ch; }

/* =============================================================
   13. CTA final
   ============================================================= */
.cta-final { text-align: center; border: 1px solid var(--line); border-radius: 28px; padding: 64px 28px; background: linear-gradient(160deg, rgba(37,211,102,.12), transparent 70%); }
.cta-final h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; margin-inline: auto; }
.cta-final p { color: var(--mute); margin-top: 16px; max-width: 46ch; margin-inline: auto; }
.cta-final .hero-actions { justify-content: center; margin-top: 30px; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--mute); }
.footer-contact a:hover { color: var(--accent-bright); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.made-with { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-family: var(--mono); font-size: 11.5px; transition: border-color .3s var(--ease-out); }
.made-with:hover { border-color: var(--accent); color: var(--accent-bright); }

/* =============================================================
   15. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .process-grid { grid-template-columns: repeat(3,1fr); }
  .testi-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .studio-overlay { padding: 44px 40px; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .services-grid { grid-template-columns: repeat(3,1fr); }
  .studio-wrap { min-height: 520px; }
  .studio-overlay {
    width: 58%; align-self: center; margin-left: 0;
    background: linear-gradient(100deg, rgba(10,14,12,.96) 0%, rgba(10,14,12,.88) 55%, transparent 100%);
    padding: 48px 44px;
  }
  .booking-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
}
@media (min-width: 1280px) {
  .container { padding-inline: 32px; }
}

/* =============================================================
   16. Reduced motion — only truly intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pulse path { animation: none; stroke-dashoffset: 0; }
}
