/* ==========================================================================
   P7 BARBER MASTER STUDIO — SISTEMA VISUAL (v1)
   Paleta: Escudo P7 + Acentos Bandera de Colombia (2:1:1)
   Tipografía: Fraunces (Display) + IBM Plex Mono (Acento/Cifras) + Switzer (Cuerpo)
   ========================================================================== */

:root {
  /* ========================================================================
     PALETA OFICIAL P7 (PDF COOLORS + BORDADO BRICK RED)
     ======================================================================== */
  /* Bases Oscuras Oficiales (PDF Coolors) */
  --p7-carbon: #0A0909;             /* Fondo general de la web (Carbono Puro) */
  --p7-ebony: #0B0702;              /* Fondo Hero / Cintas del escudo (Ébano) */
  --p7-anthracite: #242423;         /* Tarjetas y superficies elevadas */
  --p7-graphite-elevated: #161514;  /* Superficies secundarias */

  /* Metales Nobles del Escudo (PDF Coolors) */
  --p7-gold-antique: #AC986C;       /* Acento noble principal / Monograma P7 */
  --p7-champagne: #C3B9A0;          /* Champán arena / Oro blanco fino */
  --p7-silver-titanium: #9D9B95;    /* Plata / Titanio satinado (solo metadatos secundarios) */

  /* Blancos y Luminosidad de Lectura */
  --p7-white: #FFFFFF;              /* Titulares y contraste máximo */
  --p7-snow: #FDFDFC;               /* Texto principal de lectura */
  --p7-bone: #E8E5DF;               /* Blanco hueso nítido para subtítulos y párrafos sobre negro */
  --p7-bone-soft: #D6D2C9;          /* Texto secundario legible sobre negro */
  --p7-smoke: #F6F5F5;              /* Texto suave y blanco humo */

  /* Acento de Bordado de Sastrería (Brick Red #C1091E) */
  --p7-brick-red: #C1091E;
  --p7-brick-red-border: rgba(193, 9, 30, 0.55);
  --p7-brick-red-glow: rgba(193, 9, 30, 0.35);

  /* Acentos Bandera de Colombia (separadores 2:1:1) — sobre fondo negro:
     amarillo y rojo para bordeados, cifras y detalles; azul solo en hilos/detalles finos */
  --p7-colombia-yellow: #FCD116;
  --p7-colombia-yellow-rgb: 252, 209, 22;
  --p7-colombia-blue: #003893;
  --p7-colombia-blue-rgb: 0, 56, 147;
  --p7-colombia-red: var(--p7-brick-red);
  --p7-colombia-red-rgb: 193, 9, 30;

  /* Mapeo de compatibilidad con selectores existentes */
  --emerald-950: #050403;
  --emerald-900: var(--p7-ebony);
  --emerald-800: var(--p7-carbon);
  --emerald-700: var(--p7-anthracite);

  --gold-300: var(--p7-champagne);
  --gold-500: var(--p7-gold-antique);
  --gold-700: #786540;

  --cream-100: var(--p7-snow);
  --cream-200: var(--p7-smoke);
  --cream-ink-muted: rgba(246, 245, 245, 0.78);
  --emerald-ink-muted: var(--p7-silver-titanium);

  /* Tonos joya / sastrería */
  --sapphire-900: #13294B;
  --burgundy-900: var(--p7-brick-red);

  /* Sistema Tipográfico Oficial P7 (3 familias obligatorias en toda la web) */
  --font-display: 'Fraunces', Georgia, serif;
  --font-accent: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado y ritmos */
  --gutter: clamp(20px, 5vw, 80px);
  --grid-gap: 16px;
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);

  /* Superficies semánticas */
  --bg-hero: var(--p7-ebony);
  --bg-cream: #141313;
  --bg-cream-warm: var(--p7-anthracite);
  --bg-emerald: var(--p7-carbon);
  --bg-footer: var(--p7-carbon);
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #0A0909;
}

/* Overscroll nativo en negro carbono uniforme */

html.p7-scroll-locked {
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  color: var(--p7-smoke, #F6F5F5);
  background-color: #0A0909;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* Skip link accesible */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background-color: var(--emerald-900);
  color: var(--cream-100);
  border: 1px solid var(--gold-500);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   LAYOUT 12 COLUMNAS Y CONTENEDORES
   ========================================================================== */

.page-shell,
.site-section {
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.section-cream {
  background-color: var(--bg-cream);
  color: var(--p7-white, #FFFFFF);
}

.section-cream-warm {
  background-color: var(--bg-cream-warm);
  color: var(--p7-white, #FFFFFF);
}

.section-emerald {
  background-color: var(--bg-emerald);
  color: var(--cream-200);
}

.section-emerald-deep {
  background-color: var(--emerald-900);
  color: var(--cream-200);
}

.section-pad {
  padding-block: clamp(72px, 9vw, 136px);
}

/* ==========================================================================
   TIPOGRAFÍA EDITORIAL (FRAUNCES + IBM PLEX MONO + SWITZER)
   ========================================================================== */

.h1-editorial,
.h2-editorial {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.h1-editorial {
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  line-height: 1.04;
}

.h2-editorial {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.06;
}

.lead-copy {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.65;
  max-width: 42ch;
  margin: 0;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   BARRA DE PROGRESO SUPERIOR Y SEPARADORES 2:1:1
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, #AC986C 0%, #C3B9A0 60%, #C1091E 100%);
  transform-origin: left center;
  transform: scaleX(0);
}

.separador-sastreria {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(172, 152, 108, 0.3) 25%,
    rgba(193, 9, 30, 0.5) 50%,
    rgba(172, 152, 108, 0.3) 75%,
    transparent 100%
  );
  transform-origin: left center;
  transform: scaleX(1);
}

.js-ready .separador-sastreria {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-editorial);
}

.js-ready .separador-sastreria.is-visible {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .separador-sastreria {
    transform: scaleX(1);
    transition: none;
  }
}

/* ==========================================================================
   BOTONES Y ENLACES
   ========================================================================== */

.btn-gold-metallic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #786540, #C3B9A0 45%, #AC986C 70%, #786540); /* taste-skill-ignore */
  color: var(--p7-carbon, #0A0909);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease, opacity 180ms ease;
}

.btn-gold-metallic:hover {
  opacity: 0.94;
}

.btn-gold-metallic:active {
  transform: scale(0.98);
}

/* ==========================================================================
   COMPONENTE REUTILIZABLE: BOTÓN LIQUID GLASS (21st.dev / Apple Style)
   Fondo 100% transparente con bordado y resplandor Brick Red (#C1091E)
   ========================================================================== */

.liquid-glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 9999px;
  background-color: transparent;
  color: var(--p7-white, #FFFFFF);
  font-family: var(--font-sans, 'Switzer', sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  touch-action: manipulation;
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    color 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-btn:hover {
  transform: scale(1.04);
  color: var(--p7-champagne, #C3B9A0);
}

.liquid-glass-btn:active {
  transform: scale(0.98);
}

.liquid-glass-btn:focus-visible {
  outline: 2px solid var(--p7-brick-red, #C1091E);
  outline-offset: 4px;
}

.liquid-glass-surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid rgba(193, 9, 30, 0.65);
  box-shadow:
    0 0 14px rgba(193, 9, 30, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(193, 9, 30, 0.40),
    inset 3px 3px 0.5px -3px rgba(255, 255, 255, 0.75),
    inset -3px -3px 0.5px -3px rgba(255, 255, 255, 0.60),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.45),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.45);
  transition:
    background-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-btn:hover .liquid-glass-surface {
  background: rgba(255, 255, 255, 0.06);
  border-color: #C1091E;
  box-shadow:
    0 0 24px rgba(193, 9, 30, 0.60),
    0 4px 16px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1.5px rgba(193, 9, 30, 0.85),
    inset 3px 3px 0.5px -3px rgba(255, 255, 255, 0.90),
    inset -3px -3px 0.5px -3px rgba(255, 255, 255, 0.75);
}

.liquid-glass-btn--dark {
  color: var(--p7-white, #FFFFFF);
}

.liquid-glass-btn--dark .liquid-glass-surface {
  background: transparent;
}

/* Variante Amarillo Bandera de Colombia (#FCD116) */
.liquid-glass-btn--yellow:hover {
  color: #FFE46B;
}

.liquid-glass-btn--yellow:focus-visible {
  outline: 2px solid var(--p7-colombia-yellow);
  outline-offset: 4px;
}

.liquid-glass-btn--yellow .liquid-glass-surface {
  border: 1px solid rgba(var(--p7-colombia-yellow-rgb), 0.78);
  box-shadow:
    0 0 16px rgba(var(--p7-colombia-yellow-rgb), 0.42),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(var(--p7-colombia-yellow-rgb), 0.45),
    inset 3px 3px 0.5px -3px rgba(255, 255, 255, 0.78),
    inset -3px -3px 0.5px -3px rgba(255, 255, 255, 0.62),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.45),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.45);
}

.liquid-glass-btn--yellow:hover .liquid-glass-surface {
  background: rgba(var(--p7-colombia-yellow-rgb), 0.08);
  border-color: var(--p7-colombia-yellow);
  box-shadow:
    0 0 26px rgba(var(--p7-colombia-yellow-rgb), 0.72),
    0 4px 16px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1.5px rgba(var(--p7-colombia-yellow-rgb), 0.90),
    inset 3px 3px 0.5px -3px rgba(255, 255, 255, 0.92),
    inset -3px -3px 0.5px -3px rgba(255, 255, 255, 0.75);
}

.liquid-glass-btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.8125rem;
}

.liquid-glass-blur {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9999px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: url("#container-glass") blur(8px);
}

.liquid-glass-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.liquid-glass-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--gold-500);
  color: var(--cream-100);
  background-color: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
}

.btn-outline-gold:hover {
  background-color: var(--gold-500);
  color: var(--emerald-950);
}

.btn-outline-gold:active {
  transform: scale(0.98);
}

.link-subtle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--gold-500);
  border-bottom: 1px solid rgba(201, 164, 92, 0.45);
  transition: color 180ms ease, border-color 180ms ease;
}

.link-subtle:hover {
  color: var(--cream-100);
  border-color: var(--cream-100);
}

.section-cream .link-subtle,
.section-cream-warm .link-subtle {
  color: var(--emerald-900);
  border-color: rgba(11, 46, 34, 0.35);
}

.section-cream .link-subtle:hover,
.section-cream-warm .link-subtle:hover {
  color: var(--gold-700);
  border-color: var(--gold-700);
}

/* ==========================================================================
   HEADER FIJO (SIN BLUR, TRANSPARENTE -> #0B2E22 SÓLIDO)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: transparent;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  background-color: var(--emerald-900);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); /* taste-skill-ignore */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.header-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-100);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cream-200);
  transition: color 180ms ease;
}

.header-nav a:hover {
  color: var(--gold-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: none;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background-color: transparent;
  border: 1px solid rgba(201, 164, 92, 0.45);
  color: var(--cream-100);
  cursor: pointer;
  transition: border-color 180ms ease, transform 120ms ease;
}

.mobile-menu-btn:hover {
  border-color: var(--gold-500);
}

.mobile-menu-btn:active {
  transform: scale(0.98);
}

@media (min-width: 960px) {
  .header-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* Overlay menú móvil 100dvh */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  padding: 24px var(--gutter) 36px;
  background-color: var(--emerald-900);
  color: var(--cream-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--cream-100);
  transition: color 180ms ease, transform 180ms ease;
}

.mobile-menu-links a:hover {
  color: var(--gold-500);
  transform: translateX(6px);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.875rem;
  color: var(--cream-ink-muted);
}

/* ==========================================================================
   HERO 100SVH ASIMÉTRICO + VÍDEO + KEN BURNS FALLBACK
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100lvh;
  height: 100vh;
  height: 100lvh;
  background-color: #0b0b0c;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-bottom-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(32px, 6vh, 64px) 24px calc(clamp(32px, 5.5vh, 52px) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0) 0%,
    rgba(11, 11, 12, 0.42) 55%,
    rgba(11, 11, 12, 0.72) 100%
  );
}

.hero-bottom-overlay .liquid-glass-btn {
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.hero-bottom-overlay .liquid-glass-surface {
  background: rgba(10, 9, 9, 0.56);
  border: 1.5px solid var(--p7-colombia-red, #C1091E);
  box-shadow:
    0 0 18px rgba(var(--p7-colombia-red-rgb, 193, 9, 30), 0.48),
    0 8px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(var(--p7-colombia-red-rgb, 193, 9, 30), 0.35);
}

.hero-bottom-overlay .liquid-glass-blur {
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: url("#container-glass") blur(12px) saturate(140%);
}

.hero-bottom-overlay .liquid-glass-btn:hover .liquid-glass-surface {
  background: rgba(10, 9, 9, 0.68);
  border-color: var(--p7-colombia-red, #C1091E);
  box-shadow:
    0 0 26px rgba(var(--p7-colombia-red-rgb, 193, 9, 30), 0.72),
    0 10px 28px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 0 0 0.5px rgba(var(--p7-colombia-red-rgb, 193, 9, 30), 0.65);
}

@media (max-width: 767px) {
  .hero {
    min-height: calc(100vh + 76px);
    min-height: calc(100lvh + 76px);
    height: calc(100vh + 76px);
    height: calc(100lvh + 76px);
  }

  .hero-bottom-overlay {
    padding-bottom: calc(clamp(28px, 5vh, 44px) + env(safe-area-inset-bottom, 0px) + 76px);
    gap: 12px;
  }

  .hero-bottom-overlay .liquid-glass-btn {
    min-height: 44px;
    padding: 0 22px;
    font-size: 0.84rem;
  }
}

.hero-simple-title {
  margin: 0;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(2.45rem, 5.8vw, 3.85rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-wrap: balance;
  text-shadow:
    0 2px 14px rgba(6, 17, 38, 0.82),
    0 1px 3px rgba(0, 0, 0, 0.75);
}

.hero-simple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 9999px;
  background: rgba(11, 11, 12, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(195, 185, 160, 0.45);
  color: #FFFFFF;
  font-family: var(--font-sans, 'Switzer', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-simple-btn:hover {
  background: #AC986C;
  border-color: #AC986C;
  color: #0A0909;
  transform: translateY(-1px);
}

.hero-simple-btn:active {
  transform: scale(0.98);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-poster-picture,
.hero-poster-media,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video {
  z-index: 1;
  pointer-events: none;
}

/* Ocultar icono Play nativo de Safari iOS en Modo Bajo Consumo */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}

.hero-video.is-unavailable {
  display: none;
}

/* Difusor superior estilo Arko (fino y sin corte) + difusor inferior curvado suave (móvil y tablet) */
@media (max-width: 1024.98px) {
  .hero-media::before,
  .hero-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
  }

  /* Arriba: degradado azul profundo ultra suave que se disuelve a 0% real bajo el header */
  .hero-media::before {
    top: 0;
    height: clamp(86px, 12.5vh, 118px);
    background: linear-gradient(
      to bottom,
      rgba(6, 17, 38, 0.86) 0%,
      rgba(6, 17, 38, 0.62) 28%,
      rgba(11, 28, 58, 0.28) 58%,
      rgba(11, 28, 58, 0.07) 82%,
      rgba(6, 17, 38, 0) 100%
    );
  }

  /* Abajo: curva cóncava compacta (más bajita en el centro) + máscara a 0% sin cortes rectos */
  .hero-media::after {
    bottom: 0;
    height: clamp(92px, 13.5vh, 126px);
    background:
      radial-gradient(
        ellipse 88% 124% at 50% 0%,
        rgba(6, 17, 38, 0) 0%,
        rgba(6, 17, 38, 0) 50%,
        rgba(11, 28, 58, 0.30) 68%,
        rgba(6, 17, 38, 0.74) 86%,
        rgba(6, 17, 38, 0.94) 100%
      );
    -webkit-mask-image: linear-gradient(
      to top,
      #000 0%,
      #000 40%,
      rgba(0, 0, 0, 0.42) 72%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to top,
      #000 0%,
      #000 40%,
      rgba(0, 0, 0, 0.42) 72%,
      transparent 100%
    );
  }

  .hero-bottom-overlay {
    background: none;
  }
}

@keyframes kenBurnsSlow {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.07) translate3d(-1%, -1%, 0);
  }
}

.hero-poster-media.is-ken-burns {
  animation: kenBurnsSlow 22s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .hero-poster-media.is-ken-burns {
    animation: none;
    transform: none;
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 9, 0.65) 0%,
    rgba(11, 7, 2, 0.48) 45%,
    rgba(10, 9, 9, 0.88) 100%
  ); /* taste-skill-ignore */
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-crest {
  grid-column: 1 / span 3;
  margin-bottom: clamp(28px, 6vh, 56px);
}

.hero-crest img {
  width: clamp(64px, 7vw, 92px);
  height: auto;
}

.hero-title-wrap {
  grid-column: 1 / -1;
}

.hero-line-mask {
  display: block;
  overflow: hidden;
}

.hero-line {
  display: block;
}

.hero-line-2 {
  margin-left: 0;
}

.hero-sub-wrap {
  grid-column: 1 / -1;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-meta-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.hero-meta-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cream-ink-muted);
  letter-spacing: 0.02em;
}

.hero-video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background-color: rgba(11, 46, 34, 0.72);
  border: 1px solid rgba(201, 164, 92, 0.45);
  color: var(--cream-100);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 120ms ease;
}

.hero-video-toggle:hover {
  border-color: var(--gold-500);
  background-color: var(--emerald-900);
}

.hero-video-toggle:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .hero-crest {
    grid-column: 1 / span 2;
  }

  .hero-title-wrap {
    grid-column: 2 / span 10;
  }

  .hero-line-2 {
    margin-left: clamp(48px, 12vw, 180px);
  }

  .hero-sub-wrap {
    grid-column: 4 / span 7;
  }
}

/* Masked line reveal en Hero */
@keyframes heroMaskReveal {
  from {
    transform: translateY(105%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line {
    animation: heroMaskReveal 900ms var(--ease-editorial) both;
  }

  .hero-line-2 {
    animation-delay: 110ms;
  }

  .hero-sub-wrap {
    animation: heroMaskReveal 800ms var(--ease-editorial) 240ms both;
  }
}

/* ==========================================================================
   MICROANIMACIONES: [data-reveal] + .parallax-img
   ========================================================================== */

[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 650ms var(--ease-editorial), transform 650ms var(--ease-editorial);
  }

  .js-ready [data-reveal][data-delay="1"] { transition-delay: 70ms; }
  .js-ready [data-reveal][data-delay="2"] { transition-delay: 140ms; }
  .js-ready [data-reveal][data-delay="3"] { transition-delay: 210ms; }
  .js-ready [data-reveal][data-delay="4"] { transition-delay: 280ms; }

  .js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--emerald-950);
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06);
  transition: transform 450ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-img {
    transform: none;
  }
}

/* ==========================================================================
   SECCIONES: EL ESTUDIO, GALERÍA, TARIFAS, RESEÑAS, CONTACTO
   ========================================================================== */

/* El Estudio */
.studio-intro {
  grid-column: 1 / -1;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.studio-intro .lead-copy {
  margin-top: 20px;
  color: var(--emerald-ink-muted);
}

.studio-photo-col {
  grid-column: 1 / -1;
  position: relative;
}

.studio-photo-col .media-frame {
  aspect-ratio: 16 / 10;
}

.studio-story-card {
  background-color: #1A1918;
  border: 1px solid rgba(195, 185, 160, 0.16);
  color: #FFFFFF;
  padding: 20px;
  margin-top: 16px;
}

.studio-meta-col {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-map-block {
  background-color: var(--emerald-800);
  color: var(--cream-100);
  padding: 24px;
}

.studio-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.studio-fact-label {
  display: block;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--emerald-ink-muted);
}

.studio-fact-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--p7-gold-antique, #AC986C);
}

@media (min-width: 960px) {
  .studio-intro {
    grid-column: 1 / span 6;
  }

  .studio-photo-col {
    grid-column: 1 / span 8;
  }

  .studio-story-card {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    margin-top: 0;
  }

  .studio-meta-col {
    grid-column: 9 / span 4;
  }
}

/* Galería Escalonada */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  min-height: 44px;
  padding: 8px 18px;
  background-color: transparent;
  border: 1px solid rgba(201, 164, 92, 0.35);
  color: var(--cream-200);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.filter-btn[aria-pressed="true"],
.filter-btn:hover {
  background-color: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--emerald-950);
}

.filter-btn:active {
  transform: scale(0.98);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease-out;
}

.gallery-trigger:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}

.gallery-caption-title {
  color: var(--cream-100);
  font-weight: 500;
}

.gallery-caption-cat {
  color: var(--gold-500);
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Carta de Precios */
.menu-aside {
  grid-column: 1 / -1;
}

.menu-columns {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.menu-group-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--p7-gold-antique, #AC986C);
}

.menu-item {
  padding-block: 14px;
  transition: transform 200ms ease, color 200ms ease;
}

.menu-item:hover {
  transform: translateX(6px);
}

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 1.1875rem;
  font-weight: 500;
  color: #FFFFFF;
}

.menu-item-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.menu-item-desc {
  margin: 6px 0 0;
  font-size: 1rem;
  max-width: 36ch;
  color: var(--emerald-ink-muted);
}

@media (min-width: 960px) {
  .menu-aside {
    grid-column: 1 / span 3;
  }

  .menu-columns {
    grid-column: 5 / span 8;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 64px;
  }
}

/* Reseñas */
.reviews-portrait {
  grid-column: 1 / -1;
}

.reviews-quote-col {
  grid-column: 1 / -1;
}

.review-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.375rem);
  line-height: 1.24;
  color: var(--cream-100);
}

.review-switcher {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

@media (min-width: 960px) {
  .reviews-portrait {
    grid-column: 2 / span 4;
  }

  .reviews-quote-col {
    grid-column: 7 / span 6;
    padding-top: 96px;
  }
}

/* ==========================================================================
   FOOTER AMPLIO + WORDMARK MONUMENTAL
   ========================================================================== */

.site-footer {
  background-color: var(--bg-footer);
  color: var(--cream-200);
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 85svh;
  overflow-x: clip;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

@media (min-width: 960px) {
  .footer-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-500);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--cream-ink-muted);
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 180ms ease;
}

.footer-list a:hover {
  color: var(--cream-100);
}

.footer-spacer {
  min-height: clamp(48px, 12vh, 140px);
}

.footer-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 13.5vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--cream-100);
  white-space: nowrap;
  user-select: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--cream-ink-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-btn {
  background: transparent;
  border: 0;
  padding: 6px 0;
  min-height: 44px;
  color: var(--cream-ink-muted);
  cursor: pointer;
  transition: color 180ms ease;
}

.footer-legal-btn:hover {
  color: var(--gold-500);
}

/* ==========================================================================
   MODALES NATIVOS (<dialog>) CON TOP-LAYER Y @starting-style
   ========================================================================== */

dialog {
  margin: auto;
  padding: 0;
  border: 1px solid rgba(201, 164, 92, 0.35);
  background-color: var(--emerald-900);
  color: var(--cream-100);
  max-width: min(92vw, 860px);
  max-height: 90dvh;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); /* taste-skill-ignore */
}

dialog[open] {
  display: grid;
  grid-template-rows: auto 1fr;
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms var(--ease-editorial), display 220ms, overlay 220ms;
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    transform: scale(1);
  }

  @starting-style {
    dialog[open] {
      opacity: 0;
      transform: scale(0.97);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open] {
    transition-duration: 0.05s;
  }
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(10, 9, 9, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Lightbox limpio sin marcos ni píldoras + X roja arriba derecha */
#lightbox-dialog {
  border: 0;
  background: transparent;
  box-shadow: none;
  max-width: 94vw;
  max-height: 88dvh;
  overflow: visible;
}

#lightbox-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-dialog .lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 80dvh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}

#lightbox-dialog .lightbox-img[hidden] {
  display: none;
}

.lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(252, 209, 22, 0.82);
  border-radius: 9999px;
  background: rgba(10, 9, 9, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  color: #FCD116;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.lightbox-close:hover {
  transform: scale(1.08);
  background: rgba(252, 209, 22, 0.14);
  border-color: #FCD116;
}

.lightbox-close:active {
  transform: scale(0.92);
}

.lightbox-close:focus-visible {
  outline: 2px solid #FCD116;
  outline-offset: 3px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.dialog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--cream-100);
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(201, 164, 92, 0.4);
  color: var(--cream-100);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.dialog-close:hover {
  background-color: var(--gold-500);
  color: var(--emerald-950);
}

.dialog-body {
  padding: 20px;
  overflow: auto;
}

.lightbox-img {
  width: 100%;
  max-height: 68dvh;
  object-fit: contain;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--cream-ink-muted);
}

/* ==========================================================================
   ANIMACIÓN EDITORIAL DE TÍTULOS (21st.dev TextEffect Per Char — 1 sola vez)
   GPU puro (opacity + translate3d), sin blur, 100% responsive y accesible
   ========================================================================== */

.p7-te-word {
  display: inline-block;
  white-space: nowrap;
}

.p7-te-char {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .p7-te-ready .p7-te-char {
    opacity: 0;
    transform: translate3d(0, 0.14em, 0);
    will-change: opacity, transform;
    transition:
      opacity 580ms cubic-bezier(0.25, 0.85, 0.35, 1) calc(var(--te-i, 0) * 48ms),
      transform 640ms cubic-bezier(0.25, 0.85, 0.35, 1) calc(var(--te-i, 0) * 48ms);
  }

  .p7-te-ready.is-te-visible .p7-te-char {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .p7-te-ready.is-te-done .p7-te-char {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p7-te-ready .p7-te-char {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   ANIMACIÓN FLIP TEXT SOLO PARA TÍTULO HERO (21st.dev FlipText — 1 sola vez)
   ========================================================================== */

.p7-flip-word {
  display: inline-block;
  white-space: nowrap;
  perspective: 600px;
}

.p7-flip-char {
  display: inline-block;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .p7-flip-ready .p7-flip-char {
    opacity: 0;
    transform: rotateX(-90deg);
    will-change: opacity, transform;
    transition:
      opacity 500ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--flip-i, 0) * 55ms),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--flip-i, 0) * 55ms);
  }

  .p7-flip-ready.is-flip-visible .p7-flip-char {
    opacity: 1;
    transform: rotateX(0deg);
  }

  .p7-flip-ready.is-flip-done .p7-flip-char {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p7-flip-ready .p7-flip-char {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
