/* ===== RESET & GLOBAL UTILS ===== */

/* Box-sizing reset for consistent padding/border calculation */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.nav-capsule-main {
  display: flex;
  align-items: center;
}

.lang-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* CSS Custom Properties - Design System */
:root {
  /* Colors */
  --color-blue: #1F3A5F;
  --color-blue-soft: #EAF1F8;
  --color-beige: #F2E9D8;
  --color-beige-dark: #D9C7A3;
  --color-text: #1A1A1A;
  --color-text-quiet: #444444;
  --color-white: #FFFFFF;
  --color-bg-sand: #F7F5F1;

  /* Border Radius System */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-card: 22px;
  --radius-panel: 20px;
  --radius-photo: 14px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadow System */
  --shadow-soft: 0 18px 45px rgba(10, 32, 70, 0.18);
  --shadow-hover: 0 22px 55px rgba(0, 0, 0, 0.25);
  --shadow-focus: 0 0 0 3px rgba(31, 58, 95, 0.12);

  /* Spacing Scale */
  --space-xs: 0.4rem;
  --space-sm: 0.6rem;
  --space-md: 0.8rem;
  --space-lg: 1rem;
  --space-xl: 1.4rem;
  --space-2xl: 1.5rem;
  --space-3xl: 2.2rem;
  --space-4xl: 2.5rem;

  /* Typography */
  --font-size-xs: 0.9rem;
  --font-size-sm: 0.95rem;
  --font-size-base: 1rem;
  --font-size-label: 0.8rem;
  --letter-spacing-tight: 0.12em;
  --letter-spacing-wide: 0.18em;
  --line-height-tight: 1.1;
  --line-height-normal: 1.3;
  --line-height-relaxed: 1.5;
  --line-height-loose: 1.55;

  /* Interaction */
  --transition-quick: 0.1s ease;
  --transition-normal: 0.15s ease;
  --transform-hover: translateY(-1px);

  /* Accessibility & Touch Targets */
  --touch-target-min: 44px;

  /* Z-index System */
  --z-modal: 9999;

  /* Layout */
  --max-width: 1120px;
  --nav-height: 72px;
  
  /* Form-specific variables */
  --label-gap: 0.08rem; /* slightly tighter horizontal gap */
  --checkbox-nudge: 0.11rem; /* small vertical tweak to align checkbox center with text baseline */
  --checkbox-size: 0.95rem; /* smaller checkbox/radio size (user request) */
  --label-col-width: calc(var(--checkbox-size) + 1rem); /* column width: checkbox + spacing */
  
  /* Responsive Breakpoints */
  --bp-sm: 480px;
  --bp-md: 900px;
  --bp-lg: 1120px;
}

/* ===== BASE ELEMENTS ===== */

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(14px, 1vw + 12px, 16px);
  color: var(--color-text);
  background-color: #f7f7f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.nav-open { 
  overflow: hidden; 
  position: fixed; 
  width: 100%; 
}

html {
  scroll-padding-top: var(--nav-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a, button { 
  -webkit-tap-highlight-color: transparent; 
  touch-action: manipulation; 
}

* { 
  word-wrap: break-word; 
}

/* ===== ACCESSIBILITY & UTILITIES ===== */

/* Utility for screen-reader-only content */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Skip-to-content link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  height: 1px; width: 1px; overflow: hidden;
}

.skip-link:focus {
  left: 1rem; top: 1rem; height: auto; width: auto; overflow: visible;
  padding: 0.4rem 0.8rem; background: var(--color-white); color: var(--color-blue);
  border: 1px solid rgba(31, 58, 95, 0.06); border-radius: var(--radius-sm); z-index: var(--z-modal);
}

/* ===== LAYOUT CONTAINER ===== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  /* respect notch/safe area insets on mobile (iOS) */
  padding-left: calc(1.5rem + env(safe-area-inset-left));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }
}

@media (max-width: 420px) {
  :root {
    --nav-height: 64px;
  }

  html {
    font-size: 15px;
  }

  .container { 
    padding-left: 0.9rem; 
    padding-right: 0.9rem; 
  }
}

/* ===== BUTTONS & INTERACTIVE ELEMENTS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-quick), box-shadow var(--transition-quick), background var(--transition-normal), color var(--transition-normal);
  border: none;
  line-height: 1.25;
}

.btn-primary {
  background: var(--color-beige);
  color: var(--color-blue);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: var(--transform-hover);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  border: 1px solid rgba(15, 31, 57, 0.18);
  color: var(--color-blue);
  background: rgba(242, 233, 216, 0.15);
}

.btn-secondary:hover {
  background: rgba(242, 233, 216, 0.28);
  border-color: rgba(15, 31, 57, 0.28);
}

/* Hero secondary button: increase contrast without breaking hierarchy */
.hero .btn.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-blue);
  border-color: rgba(15, 31, 57, 0.28);
  box-shadow: 0 10px 24px rgba(10, 24, 52, 0.12);
}

.hero .btn.btn-secondary:hover,
.hero .btn.btn-secondary:focus-visible {
  background: #ffffff;
  border-color: rgba(15, 31, 57, 0.38);
  box-shadow: 0 12px 28px rgba(10, 24, 52, 0.16);
}

/* Hero secondary CTA as outline pill (textual button) */
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  text-decoration: none;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.hero-btn-secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

/* Hero textual secondary link */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  transition: opacity 180ms ease, text-decoration-color 180ms ease;
}

.hero-link::after {
  content: '↓';
  font-size: 0.95em;
  opacity: 0.8;
}

.hero-link:hover,
.hero-link:focus-visible {
  opacity: 0.82;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.btn-google {
  background: #ffffff;
  color: #1a73e8;
  border: 1px solid rgba(26, 115, 232, 0.5);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.18);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--font-size-xs);
  text-decoration: none;
}

.btn-google:hover {
  transform: var(--transform-hover);
  box-shadow: 0 14px 28px rgba(26, 115, 232, 0.28);
  background: #f5f8ff;
}

@media (max-width: 600px) {
  .contact-btn,
  #btn-agendar,
  .booking-submit,
  .btn-google,
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn,
  .btn-google,
  .nav-links a,
  .form-agendar input,
  .form-agendar textarea,
  .booking-select,
  .booking-checkboxes label,
  .booking-radios label {
    touch-action: manipulation;
  }
}

/* Ensure links/buttons are touch-friendly */
.nav-links a,
.nav-cta,
.btn,
.btn-google {
  min-height: var(--touch-target-min); /* min touch target for accessibility */
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

/* ===== FOCUS & ACCESSIBILITY STATES ===== */

/* Accessibility: visible focus styles for keyboard navigation */
.nav-links a:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible,
.btn-google:focus-visible,
.form-agendar input:focus-visible,
.form-agendar textarea:focus-visible,
.form-schedule input:focus-visible,
.form-schedule textarea:focus-visible,
.booking-checkboxes input[type="checkbox"]:focus-visible,
.booking-radios input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
  outline-offset: 2px;
}

/* ===== NAVBAR / HEADER (LEGACY - OVERRIDDEN BY NAV GLASS CAPSULES) ===== */

/* Legacy rules preserved for reference but not active */

/* OLD NAV RULES — SUPERSEDED BY NAV (BCG-LIKE) BLOCK BELOW */
/* These are commented out to avoid conflicts with the new design */
/*
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.2rem, 2vw, 1.8rem) 1.5rem;
  min-height: var(--nav-height);
}

.nav-backdrop { 
  display: none; 
}

.nav-toggle-button {
  display: none;
  font-size: 1.2rem;
  background: transparent;
  border: none;
  color: var(--color-blue);
  cursor: pointer;
  z-index: 1400;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-toggle-button:hover {
  background: var(--color-blue-soft);
}

@media (max-width: 900px) {
  .nav-toggle-button {
    display: block;
  }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-blue);
  transition: opacity 0.2s ease;
}

.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active {
  color: var(--color-blue);
  text-decoration: none;
}

.nav-logo:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .nav-toggle-button { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); z-index: 1400; }
  .nav { padding: 0.6rem 1rem; }
  .nav {
    position: sticky;
    top: 0;
    z-index: 999;
    padding-top: 0.8rem;
    padding-bottom: 0.6rem;
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(31, 58, 95, 0.08);
  }
}

@media (max-width: 480px) {
  .nav-links a {
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
  }
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--color-beige);
  color: var(--color-blue);
  font-weight: 700;
  font-size: var(--font-size-xs);
}

.logo-text {
  font-weight: 500;
  opacity: 0.9;
}

.nav-links {
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-quiet);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--color-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}
*/

.nav-cta {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: #162741;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 58, 95, 0.2);
}

.nav-cta::after {
  display: none;
}



/* ===== HERO SECTION - REFACTOR MINIMALISTA BCG-STYLE ===== */

/* Padding refinado: amplio pero no vacío, permite que siguiente sección asome */
/*
IMPORTANTE:
El hero NO debe usar padding-top.
El espacio superior ya lo gestiona body padding-top por el nav fijo.
Modificar esto provoca solapamientos con la sección de pilares.
*/
.hero {
  padding-top: 0;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background: transparent;
  position: relative;
}

/* Eliminado ::before decorativo para look ultra-minimalista */
/* .hero::before { ... } */

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: clamp(0.65rem, 1.5vw, 0.7rem); /* Reducido para más sutileza */
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 clamp(1.8rem, 4vw, 2.5rem); /* Más espacio al H1 */
  opacity: 0.7; /* Menos competencia visual */
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6.5vw, 5rem); /* Aumentado para más presencia */
  font-weight: 600;
  line-height: 1.15; /* Más respiración entre líneas */
  color: var(--color-blue);
  margin: 0 0 clamp(2rem, 4vw, 2.8rem); /* Más espacio inferior */
  letter-spacing: -0.015em; /* Más legible y abierto */
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem); /* Ligeramente reducido */
  line-height: 1.65; /* Más respiración */
  color: var(--color-text-quiet);
  max-width: 600px; /* Más estrecho para concentrar lectura */
  margin: 0 auto clamp(3rem, 6vw, 4.5rem); /* Mucho más espacio a CTAs */
  font-weight: 400;
  opacity: 0.88; /* Reducida para que el H1 domine más */
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem); /* Espacio para la credencial */
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(31, 58, 95, 0.15);
  border: none;
}

.btn-hero-primary:hover {
  background: #162741;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 58, 95, 0.25);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--color-blue);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-blue);
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 58, 95, 0.2);
}

/* Línea de credencial bajo CTAs: discreta, refuerza autoridad sin ruido */
.hero-credential {
  font-size: clamp(0.8rem, 1.5vw, 0.85rem);
  color: #6b7280; /* Gris suave */
  text-align: center;
  margin: 0;
  font-weight: 400;
  opacity: 0.75; /* Muy discreta */
  letter-spacing: 0.01em;
}

/* Responsive: Hero más compacto en tablets/mobile, no ocupa toda pantalla */
@media (max-width: 900px) {
  .hero,
  .hero.hero-intro {
    padding-top: 0;
    padding-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .hero,
  .hero.hero-intro {
    padding-top: 0;
    padding-bottom: 3rem;
  }
}

@media (max-width: 600px) {
  .hero,
  .hero.hero-intro {
    padding-top: 0;
    padding-bottom: 3rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.875rem; /* Ligeramente más compacto en mobile */
    margin-bottom: 1.5rem; /* Menos espacio en mobile antes de credencial */
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 350px;
  }
  
  .hero-credential {
    font-size: 0.75rem; /* Más pequeña en mobile pero legible */
    padding: 0 1rem; /* Padding lateral para que no toque bordes */
  }
}

/* Hero intro flows normally (no sticky/fixed) */
.hero.hero-intro {
  position: relative;
  z-index: 1;
  transform: none;
  padding-top: 0;
}

/* Video background for hero (desktop only) */
.hero.hero-intro.hero-video {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  z-index: 1;
}

/*@media (max-width: 768px) {
  .hero-video-bg,
  .hero-overlay {
    display: none;
  }
}*/

/* Force non-hero titles to stay in normal flow */
.section-pillars h1,
.section-pillars h2,
.section-pillars h3,
.section-pillars .pillar-title,
.section-pillars .pillar-label,
.section-process h1,
.section-process h2,
.section-process h3,
.section-process .process-step h3,
.section-contact h1,
.section-contact h2,
.section-contact h3,
.section-cards h1,
.section-cards h2,
.section-cards h3,
.section-blocks h1,
.section-blocks h2,
.section-blocks h3,
.section-steps h1,
.section-steps h2,
.section-steps h3,
.cards h1,
.cards h2,
.cards h3,
.blocks h1,
.blocks h2,
.blocks h3,
.metodologia h1,
.metodologia h2,
.metodologia h3,
.pasos h1,
.pasos h2,
.pasos h3 {
  position: static;
  z-index: auto;
  transform: none;
}

@media (max-width: 900px) {
  .section-pillars h1,
  .section-pillars h2,
  .section-pillars h3,
  .section-pillars .pillar-title,
  .section-pillars .pillar-label,
  .section-process h1,
  .section-process h2,
  .section-process h3,
  .section-process .process-step h3,
  .section-contact h1,
  .section-contact h2,
  .section-contact h3,
  .section-cards h1,
  .section-cards h2,
  .section-cards h3,
  .section-blocks h1,
  .section-blocks h2,
  .section-blocks h3,
  .section-steps h1,
  .section-steps h2,
  .section-steps h3,
  .cards h1,
  .cards h2,
  .cards h3,
  .blocks h1,
  .blocks h2,
  .blocks h3,
  .metodologia h1,
  .metodologia h2,
  .metodologia h3,
  .pasos h1,
  .pasos h2,
  .pasos h3 {
    position: static;
    z-index: auto;
    transform: none;
  }
}

/* ===== HERO PROOF STYLES (COMENTADAS - NO SE USAN EN HERO MINIMALISTA) ===== */
/* 
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(31, 58, 95, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .hero-proof {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-proof-value {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--color-blue);
  letter-spacing: -0.01em;
}

.hero-proof-label {
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  color: var(--color-text-quiet);
  opacity: 0.8;
}

.hero-proof-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(31, 58, 95, 0.2) 50%, 
    transparent 100%);
}

@media (max-width: 600px) {
  .hero-proof-divider {
    display: none;
  }
}
*/

@media (max-width: 600px) {
  /* ===== HERO SECTION ===== */

  .hero {
    padding: 2rem 0 3rem;
  }
}

/* Solid dark hero for consultoria page (inherits home look) */
.page-solid-header .hero {
  background: linear-gradient(135deg, var(--color-blue) 0%, #162741 60%, #101722 100%);
}

/* Page-solid-header: hero depth overlay and contrast tweaks */
.page-solid-header .hero { position: relative; }
.page-solid-header .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 360px at 15% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.page-solid-header .hero > * { position: relative; z-index: 1; }

.page-solid-header .hero-tag {
  background: rgba(242, 233, 216, 0.12);
  border-color: rgba(242, 233, 216, 0.35);
}

.page-solid-header .hero-subtitle {
  opacity: 0.96;
}

/* ===== OLD HERO STYLES (LEGACY - CAN BE REMOVED IF NOT USED IN OTHER PAGES) ===== */

/* Commented out - replaced with new premium consulting design
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-4xl);
  align-items: center;
  color: var(--color-white);
}

@media (max-width: 600px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3.3vw + 1.5rem, 3.3rem);
  line-height: 1.1;
  margin: 1rem 0 0.8rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(242, 233, 216, 0.08);
  border: 1px solid rgba(242, 233, 216, 0.25);
  font-size: 0.8rem;
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.92;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: 1.6rem 0 1.1rem;
}

@media (max-width: 600px) {
  .hero-cta-group {
    flex-direction: column;
    margin: 1.2rem 0 0.9rem;
  }
  .hero-cta-group > .btn,
  .hero-cta-group > .btn-google {
    width: 100%;
    justify-content: center;
  }
}

.hero-meta {
  font-size: var(--font-size-xs);
  opacity: 0.9;
}

.hero-meta p {
  margin: 0.2rem 0;
}

.hero-panel {
  background: radial-gradient(circle at top left, rgba(242, 233, 216, 0.2), rgba(15, 26, 45, 0.98));
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(217, 199, 163, 0.25);
}

@media (max-width: 600px) {
  .hero-panel {
    padding: 1.2rem 1.1rem;
  }
}

.panel-header {
  margin-bottom: 1.1rem;
}

.panel-title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0;
}

.panel-subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.3rem 0 0;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.panel-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: flex-start;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-beige);
  margin-top: 0.3rem;
}

.panel-item-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.panel-item-text {
  font-size: 0.87rem;
  opacity: 0.9;
  margin: 0;
}

@media (max-width: 480px) {
  .panel-item-text {
    font-size: 0.82rem;
  }
}

.panel-footer {
  border-top: 1px solid rgba(242, 233, 216, 0.22);
  margin-top: 1.3rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}

.panel-small {
  opacity: 0.8;
  margin-top: 0.3rem;
}
*/

/* ===== SECTION COMPONENTS ===== */

.section-kicker {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  font-size: 0.78rem;
  color: #777;
  margin: 0 0 0.4rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
  color: var(--color-blue);
}

.section-subtitle {
  max-width: 38rem;
  font-size: 0.97rem;
  color: #4f4f4f;
  margin: 0 0 2.2rem;
}

@media (max-width: 600px) {
  .section-contact .section-title {
    font-size: 1.7rem;
  }

  .contact-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .contact-text {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 600px) {
  .section-subtitle {
    margin: 0 0 1.8rem;
  }
}

@media (max-width: 420px) {
  .section-title {
    font-size: 1.5rem;
  }
}

/* ===== PILLARS / SERVICES SECTION ===== */

.section-pillars {
  padding: 4rem 0 4.5rem;
  background: var(--color-bg-sand);
}

@media (max-width: 600px) {
  .section-pillars {
    padding: 3rem 0 3.5rem;
  }
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.7rem;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 190px;
  box-shadow: 0 16px 40px rgba(10, 24, 52, 0.16);
  background-color: var(--color-blue);
  background-size: cover;
  background-position: center;
}

.pillar-overlay {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(90deg, rgba(8, 15, 30, 0.9), rgba(8, 15, 30, 0.4));
  color: var(--color-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-md);
}

.pillar-label {
  font-size: 0.78rem;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-beige-dark);
  margin: 0 0 0.25rem;
}

.pillar-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--font-size-xs);
}

.pillar-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.pillar-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--color-beige);
}

/* Pilares: grid managed by auto-fit to be responsive - remove manual nth-child column rules */

/* Imágenes de fondo de pilares */

/* Replace pillar background with an absolutely positioned <img> to enable responsive srcset + lazy loading */
.pillar-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block;
}
/* Ajuste específico de encuadre para Pilar 1 en desktop */
@media (min-width: 901px) {
  .pillars-grid > article:first-child .pillar-img {
    object-position: center 35%;
  }
}
/* Keep overlay above image */
.pillar-overlay { position: relative; z-index: 1; }

/* ===== PROCESS SECTION ===== */

.section-process {
  padding: 4rem 0 4.5rem;
  background: var(--color-blue-soft);
}

@media (max-width: 600px) {
  .section-process {
    padding: 3rem 0 3.5rem;
  }
}

.process-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}
 
@media (min-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 10px 28px rgba(15, 36, 66, 0.12);
  border: 1px solid rgba(31, 58, 95, 0.06);
  position: relative;
}

@media (max-width: 600px) {
  .process-step {
    padding: 1.25rem 1.1rem 1.3rem;
  }
}

.process-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-beige);
  color: var(--color-blue);
  margin-bottom: 0.6rem;
}

.process-step h3 {
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
  color: var(--color-blue);
}

.process-step p {
  font-size: var(--font-size-xs);
  margin: 0;
  color: #454545;
}

/* ===== ABOUT SECTION ===== */

.section-about {
  padding: 4rem 0 4.5rem;
  background: #fdfbf7;
}

@media (max-width: 600px) {
  .section-about {
    padding: 3rem 0 3.5rem;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 380px);
  gap: var(--space-3xl);
  align-items: flex-start;
}
 
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text .section-title {
  margin-bottom: 0.7rem;
}

.about-body {
  font-size: 0.95rem;
  color: #474747;
  margin: 0 0 1.2rem;
  line-height: 1.55;
  max-width: 70ch;
}
@media (max-width: 480px) {
  .about-body {
    font-size: var(--font-size-xs);
  }
}

/* Chips / tags */

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

/* Specialized link styling for about-focus-list */
.about-focus-link {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity 160ms ease;
}

.about-focus-link:hover,
.about-focus-link:focus-visible {
  opacity: 0.85;
}

.about-pill {
  font-size: var(--font-size-label);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-blue-soft);
  color: var(--color-blue);
  border: 1px solid rgba(31, 58, 95, 0.12);
}

/* Panel lateral con foto */

.about-panel-inner {
  background: linear-gradient(140deg, var(--color-blue) 0%, #162742 55%, #101722 100%);
  border-radius: var(--radius-panel);
  padding: 1.8rem 1.7rem;
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(10, 32, 70, 0.12);
}

@media (max-width: 600px) {
  .about-panel-inner {
    padding: 1.4rem 1.2rem;
  }
}

.about-photo {
  width: 100%;
  max-height: 260px;
  border-radius: var(--radius-photo);
  object-fit: cover;
  margin-bottom: 1rem;
}

.about-panel-title {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin: 0 0 0.7rem;
  color: var(--color-beige-dark);
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-xs);
}

.about-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  line-height: var(--line-height-normal);
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--color-beige);
}

/* ===== CONTACT SECTION ===== */

.section-contact {
  padding: 4.2rem 0 5rem;
  background: #ffffff;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.035);
}

@media (max-width: 600px) {
  .section-contact {
    padding: 3.2rem 0 4rem;
  }
}

.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.section-contact .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-text {
  font-size: var(--font-size-base);
  color: #4f4f4f;
  margin: 0 auto var(--space-3xl);
  max-width: 550px;
  line-height: 1.55;
}

.contact-btn {
  margin-bottom: 1.6rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.contact-email {
  font-size: 0.92rem;
  color: #636363;
}

.contact-email a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
}

.contact-email a:hover {
  opacity: 0.75;
}

/* Volver atrás */

.contact-back a {
  font-size: 0.88rem;
  color: #777;
  text-decoration: none;
}

.contact-back a:hover {
  color: var(--color-blue);
}

/* ===== FOOTER ===== */

.site-footer {
  padding: 2.2rem 0 2rem;
  background: #101722;
  color: #c3cad8;
  font-size: var(--font-size-xs);
  text-align: center;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 2rem 0 1.6rem;
  }
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: 1.2rem;
}

.footer-logo {
  font-weight: 600;
  font-size: var(--font-size-base);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  opacity: 0.9;
}

.footer-contact p {
  margin: 0.15rem 0;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 0.4rem;
  }
}

.footer-link {
  text-decoration: none;
  color: #c3cad8;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-link:hover {
  opacity: 1;
}

.footer-copy {
  opacity: 0.55;
  font-size: 0.78rem;
}

/* ===== BOOKING / FORM PAGE ===== */

.booking-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg-sand);
}

.booking-title {
  margin-bottom: 0.5rem;
}

.booking-subtitle {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 2rem;
}

@media (max-width: 600px) {
  .booking-subtitle {
    margin: 0 0 1.6rem;
  }
}

.booking-shell {
  background: #fdfbf7;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(11, 32, 70, 0.18);
  padding: 2.2rem 2.4rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3xl);
  align-items: flex-start;
}

@media (max-width: 900px) {
  .booking-shell {
    padding: 1.6rem 1.3rem;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-profile {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-right: 0;
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
  }

  .booking-form-panel {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .booking-section {
    padding: 3.2rem 0 4rem;
  }

  .booking-shell {
    padding: 1.4rem 1.1rem;
  }

  .booking-panel-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .booking-subtitle {
    font-size: var(--font-size-xs);
  }

  .booking-panel-intro {
    font-size: 0.88rem;
  }

  .booking-shell {
    padding: 1.0rem 0.9rem;
  }

  .booking-field-label {
    margin-top: 0.6rem;
  }

  .form-agendar input,
  .form-agendar textarea,
  .booking-select {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }
}

/* Booking Profile Column */

.booking-profile {
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding-right: 2rem;
}

/* booking-profile-header (kept for future use) */

.booking-logo {
  font-size: 0.8rem;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: #7a7a7a;
}

.booking-host {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.booking-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 2px solid rgba(242, 233, 216, 0.9);
}

.booking-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-host-name {
  margin: 0 0 0.15rem;
  font-weight: 600;
  color: var(--color-blue);
}

.booking-host-role {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
}

.booking-meta {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1.4rem;
}

.booking-meta p {
  margin: 0.2rem 0;
}

.booking-description {
  font-size: var(--font-size-xs);
  color: #474747;
}

.booking-description ul {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0.8rem;
}

.booking-description li {
  margin-bottom: 0.25rem;
}

.booking-note {
  font-size: 0.86rem;
  color: #777;
  margin-top: 0.6rem;
}

/* Botón Google Calendar */

.google-calendar-icon img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 6px;
}

.booking-google-left {
  margin-top: 1.6rem;
}

.booking-google-left .booking-field-label {
  font-size: var(--font-size-xs);
  margin-bottom: 0.5rem;
}
/* Center the Google Calendar button a bit more within the sidebar */
.booking-google-left .btn-google {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}

/* Booking Form Column */

.booking-form-panel {
  padding-left: 0.8rem;
}

.booking-panel-title {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--color-blue);
}

.booking-panel-intro {
  font-size: 0.92rem;
  color: #555;
  margin: 0 0 1.5rem;
}

.booking-status {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.4;
}

.booking-status-error {
  background: #fff1f1;
  border: 1px solid #f3c1c1;
  color: #7a1f1f;
}

/* Form Blocks */

.booking-block {
  background: var(--color-bg-sand);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem; /* un poco menos padding, más a la izquierda */
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

@media (max-width: 600px) {
  .booking-block {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
  }
}


.booking-block-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin: 0 0 0.9rem;
  color: var(--color-blue);
}

/* Form Elements */

.form-agendar,
.form-schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 550px;
}

.form-agendar label,
.form-schedule label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-quiet);
  margin-bottom: 0.2rem;
}

/* Fieldset styling (booking form): remove default chrome border and padding; improve legend spacing */
.booking-fieldset {
  border: none;
  margin: 0 0 0.6rem 0;
  padding: 0;
}
.booking-legend {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem; /* tighter spacing below legend */
}

.form-agendar input,
.form-agendar textarea,
.form-schedule input,
.form-schedule textarea,
.booking-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

/* Make inputs and selects easy to tap */
.form-agendar input,
.form-agendar textarea,
.form-schedule input,
.form-schedule textarea,
.booking-select,
select,
button {
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.3;
}

.form-agendar input:focus,
.form-agendar textarea:focus,
.form-schedule input:focus,
.form-schedule textarea:focus,
.booking-select:focus {
  border-color: var(--color-blue);
  outline: none;
}

/* Invalid inputs now use standard border, not red */
.form-agendar input:invalid,
.form-agendar textarea:invalid,
.form-schedule input:invalid,
.form-schedule textarea:invalid,
.booking-select:invalid {
  border-color: #ccc;
}

.date-time-row {
  display: flex;
  gap: 0.6rem; /* reduce gap so rows are closer */
  flex-wrap: wrap;
}

.date-time-row > div {
  flex: 1 1 160px;
}

.booking-field-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  margin: 0.4rem 0 0.3rem;
  color: var(--color-text-quiet);
}

/* Radios + Checkboxes */

.booking-radios,
.booking-checkboxes {
  display: grid;
  grid-auto-rows: auto;
  row-gap: 0.08rem; /* unified tight vertical spacing */
  column-gap: 0;    /* no extra horizontal spacing at container */
  font-size: 0.88rem;
  color: var(--color-text-quiet);
  margin: 0.2rem 0 0 0;
  padding: 0;
}

/* On medium+ screens, show checkboxes in two columns for better use of horizontal space */
@media (min-width: 900px) {
  .booking-checkboxes {
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 0.7rem;  /* closer columns */
    row-gap: 0.2rem;
  }
  /* Desktop grid layout inherits base label/input rules; no alignment override needed */
}

/* Mobile spacing adjustment for comfortable tap targets and readability */
@media (max-width: 600px) {
  .booking-radios,
  .booking-checkboxes {
    row-gap: 0.5rem;  /* increase spacing between options on mobile */
  }
}

/* Quitar margen del navegador en radios / checkboxes */
.booking-radios input[type="radio"],
.booking-checkboxes input[type="checkbox"] {
  margin: 0;
}
.booking-checkboxes label,
.booking-radios label,
.booking-checkboxes span,
.booking-radios span {
  cursor: pointer;
}

.booking-checkboxes label,
.booking-radios label {
  display: grid;
  grid-template-columns: var(--label-col-width) 1fr;  /* robust cross-browser fixed width */
  align-items: center;                       /* center input & text vertically */
  gap: 0.65rem;                              /* comfortable spacing between input and text */
  padding: 0.6rem 0;                         /* vertical padding for touch-friendly height (~44px) */
  width: 100%;
  min-height: 44px;                          /* min touch target */
  line-height: 1.35;                         /* readable text */
}
/* Wrap text within labels for proper text flow */
.booking-checkboxes label span,
.booking-radios label span {
  display: block;
  word-break: break-word;                    /* prevent overflow on narrow screens */
}
.booking-checkboxes input[type="checkbox"],
.booking-radios input[type="radio"] {
  width: var(--checkbox-size);               /* ~0.95rem */
  height: var(--checkbox-size);
  min-width: var(--checkbox-size);           /* prevent shrinking */
  min-height: var(--checkbox-size);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--color-blue);
  cursor: pointer;
}
/* radios inherit grid layout from main rule above; unified across all sizes */



/* Base checkbox/radio styling for form elements */
.form-agendar input[type="checkbox"],
.form-agendar input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid #ccc;
  background: transparent;
  cursor: pointer;
  accent-color: var(--color-blue);
}

/* Select styling */

.booking-select {
  margin-top: 0.2rem;
}

/* Form submission and helpers */

.booking-submit {
  margin-top: 0.6rem;
}

.booking-small-text {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.6rem;
  color: var(--color-text-quiet);
}

.booking-back-link {
  margin-top: 1.8rem;
}

/* Privacy checkbox uses the same grid pattern as booking checkboxes */
.privacy-checkbox {
  display: grid;
  grid-template-columns: var(--label-col-width) 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0;
  width: 100%;
  min-height: 44px;
  line-height: 1.35;
}

/* ===== REDUCED MOTION ===== */

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0 !important;
  }
}

/* Make the menu transition respect reduced motion for users */
@media (prefers-reduced-motion: reduce) {
  .nav.nav-open .nav-links,
  .nav.nav-open .nav-backdrop {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== TOUCH DEVICE ADJUSTMENTS ===== */

/* Disable hover-only affordances on touch-only devices */
@media (hover: none) {
  .btn:hover,
  .btn-google:hover,
  .nav-links a:hover,
  .nav-cta:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
}

/* Reduce heavy shadows on smaller screens and for reduced motion preference */
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  :root { 
    --shadow-soft: 0 10px 20px rgba(10, 32, 70, 0.08); 
  }
  
  .btn-primary { 
    box-shadow: none; 
  }
  
  .booking-shell { 
    box-shadow: none; 
  }
}

/* Status alert banner */
.alert-status {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background-color: #fef3f2;
  border-left: 4px solid #d32f2f;
  color: #7a2929;
}

.alert-blocked {
  background-color: #fff8e1;
  border-left: 4px solid #f57c00;
  color: #6d4c00;
}

.alert-ok {
  background-color: #f1f8e9;
  border-left: 4px solid #388e3c;
  color: #33691e;
}

.alert-status a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}

/* ===== LEGAL PAGES ===== */
.legal-page main {
  text-align: left;
}

.legal-page .contact-wrapper,
.legal-page .rich-text {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.legal-page .section-title {
  margin-bottom: 0.8rem;
}

.legal-page .rich-text h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary, #0f1f39);
}

.legal-page .rich-text h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary, #0f1f39);
}

.legal-page .rich-text p {
  margin-bottom: 1.1rem;
}

.legal-page .rich-text ul,
.legal-page .rich-text ol {
  padding-left: 1.25rem;
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
}

.legal-page .rich-text li {
  margin-bottom: 0.4rem;
}

.legal-page .rich-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}

.legal-page .rich-text a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 480px) {
  .legal-page .contact-wrapper,
  .legal-page .rich-text {
    font-size: 0.96rem;
  }
}

.legal-updated {
  margin-top: 2rem;
  font-size: 0.95rem;
  opacity: 0.85;
}


/* ===== NAV (BCG-LIKE) — SINGLE CAPSULE + POPOVER ===== */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  padding: 10px 0;
  border-bottom: none;
  box-shadow: none;
  transition: top 0.25s ease;
}

.site-header.scrolled{
  top: 10px;
}

.site-header .nav.container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 16px;
}

/* CÁPSULA ÚNICA */
.nav-capsule.nav-capsule-main{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: fit-content;
  max-width: calc(100vw - 24px);
  padding: 10px 12px;
  border-radius: 16px;
  min-height: 56px;
}

.nav-capsule.nav-capsule-main::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.30),
    rgba(255,255,255,0.06)
  );
}

/* LOGO */
.nav-logo{
  display: inline-flex;
  align-items: center;
}
.nav-logo img{
  display:block;
  width:auto;
  height: 32px;
}

/* BOTÓN */
.nav-toggle-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-button .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;
}

/* MENÚ: oculto por defecto */
#nav-links{
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* POPOVER: abierto */
.nav.nav-open #nav-links,
#nav-links[aria-hidden="false"]{
  display: flex;
  flex-direction: column;
  gap: 6px;

  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;

  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 10px;
  border-radius: 14px;

  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(15, 35, 70, 0.12);
  box-shadow: 0 18px 44px rgba(10, 32, 70, 0.18);
  z-index: 1300;
}

#nav-links a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

#nav-links a:hover{
  background: rgba(15, 35, 70, 0.06);
}

/* Asegurar color corporativo en el popover */
.nav.container.nav-open #nav-links a,
.nav.container #nav-links[aria-hidden="false"] a {
  color: var(--color-blue) !important;
  text-decoration: none;
}
.nav.container.nav-open #nav-links a:visited,
.nav.container #nav-links[aria-hidden="false"] a:visited {
  color: var(--color-blue) !important;
}
.nav.container.nav-open #nav-links a:hover,
.nav.container #nav-links[aria-hidden="false"] a:hover {
  color: var(--color-blue) !important;
  opacity: 0.9;
}

/* BACKDROP: suave overlay */
.nav-backdrop{
  display: none;
}

.nav.nav-open .nav-backdrop{
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1250;
}

/* MOBILE: sin width: 100%, sin "barra" */
@media (max-width: 900px){
  .site-header{
    padding: 6px 0;
  }

  .site-header .nav.container{
    padding: 0 10px;
  }

  .nav-logo img{
    height: 30px; /* un poco menor que desktop */
  }

  .nav-capsule.nav-capsule-main{
    padding: 10px 12px;
    border-radius: 14px;
    min-height: 54px;
  }

  .nav-toggle-button{
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

@media (min-width: 901px){
  .nav-logo img{
    height: 38px;
    max-width: 260px;
  }

  .nav-toggle-button{
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

/* =========================================
   NAV OVERRIDE (BCG-like) — FINAL OVERRIDES
   Solo afecta al header/nav
========================================= */

.site-header .nav.container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px;
}

.site-header .nav-capsule.nav-capsule-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(10, 32, 70, 0.14);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header .nav-logo{
  display: inline-flex;
  align-items: center;
}

.site-header .nav-logo img{
  display: block;
  height: 36px;       /* desktop: logo más grande */
  width: auto;
  max-width: 220px;
}

.site-header .nav-toggle-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;

  color: inherit;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.site-header .nav-toggle-button:active{
  transform: scale(0.98);
}

.site-header .nav-toggle-button .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;
}

/* --- Dropdown: oculto por defecto --- */
.site-header #nav-links{
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Dropdown visible al abrir (clase o aria) --- */
.site-header .nav.container.nav-open #nav-links,
.site-header #nav-links[aria-hidden="false"]{
  display: flex;
  flex-direction: column;
  gap: 6px;

  position: absolute;
  top: calc(100% + 10px);
  left: 16px;                 /* debajo del bloque, alineado a la izquierda */
  width: max-content;
  max-width: calc(100vw - 32px);

  padding: 10px;
  border-radius: 14px;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(31,58,95,0.14);
  box-shadow: 0 18px 44px rgba(10,32,70,0.18);
  backdrop-filter: blur(16px) saturate(1.2);

  z-index: 1300;
}

.site-header .nav.container.nav-open #nav-links a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav.container.nav-open #nav-links a:hover{
  background: rgba(31,58,95,0.06);
}

/* --- Backdrop/overlay para cerrar al click fuera --- */
.site-header .nav-backdrop{
  display: none;
}

.site-header .nav.container.nav-open .nav-backdrop{
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(10,32,70,0.18);
  backdrop-filter: blur(2px);
  z-index: 1200;
}

/* --- Responsive --- */
@media (max-width: 900px){
  .site-header .nav.container{
    padding: 8px 10px;
  }

  .site-header .nav-logo img{
    height: 30px;    /* móvil un poco más compacto */
    max-width: 180px;
  }

  .site-header .nav.container.nav-open #nav-links,
  .site-header #nav-links[aria-hidden="false"]{
    left: 10px;      /* respeta padding móvil */
    top: calc(100% + 8px);
  }
}

/* =========================================
   Shared layout helpers for internal pages
========================================= */

.container-narrow{ max-width: 920px; margin: 0 auto; }
.container-compact{ max-width: 720px; margin: 0 auto; }
.text-center{ text-align: center; }

.section-surface{ padding: 4rem 0; background: white; }
.section-surface--sand{ background: var(--color-bg-sand); }
.section-surface--bordered{ border-top: 1px solid #f0f0f0; }

.feature-stack{ margin-top: 2.8rem; display: grid; gap: 2.2rem; }
.feature-card{ background: white; padding: 1.8rem; border-radius: 12px; box-shadow: 0 10px 24px rgba(10,32,70,0.08); border: 1px solid rgba(10,32,70,0.05); }
.feature-card h3{ font-size: 1.25rem; font-weight: 600; margin: 0 0 0.8rem; color: var(--color-blue); }
.feature-card p{ line-height: 1.65; color: var(--color-text); margin: 0 0 0.8rem; }
.feature-card ul{ line-height: 1.65; color: var(--color-text-quiet); margin: 0; padding-left: 1.2rem; }
.feature-card--accent{ border-left: 4px solid var(--color-beige-dark); }

.step-list{ margin-top: 2.5rem; display: grid; gap: 1.6rem; }
.step-item{ display: flex; gap: 1.2rem; align-items: flex-start; }
.step-badge{ flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--color-beige); color: var(--color-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.step-item h3{ font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--color-blue); }
.step-item p{ margin: 0; line-height: 1.6; color: var(--color-text-quiet); }

.stats-grid{ margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; }
.stat-card{ background: white; padding: 1.8rem; border-radius: 12px; text-align: center; box-shadow: 0 10px 24px rgba(10,32,70,0.08); border: 1px solid rgba(10,32,70,0.05); }
.stat-card .stat-value{ font-size: 2.2rem; font-weight: 700; color: var(--color-blue); margin: 0 0 0.4rem; }
.stat-card .stat-label{ margin: 0; font-weight: 500; color: var(--color-text); }

/* Popover link colors (corporate) */
.nav.container.nav-open #nav-links a,
.nav.container #nav-links[aria-hidden="false"] a{
  color: var(--color-blue) !important;
  text-decoration: none;
}
.nav.container.nav-open #nav-links a:visited,
.nav.container #nav-links[aria-hidden="false"] a:visited{
  color: var(--color-blue) !important;
}
.nav.container.nav-open #nav-links a:hover,
.nav.container #nav-links[aria-hidden="false"] a:hover{
  color: var(--color-blue) !important;
  opacity: 0.9;
}

/* Hero adjustments for solid-header pages */
.page-solid-header .hero{ padding: clamp(2.8rem, 6vw, 4.2rem) 0; background: linear-gradient(140deg, rgba(10,32,70,0.18), rgba(255,255,255,0.92)); }
.page-solid-header .hero-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; gap: clamp(1.8rem, 4vw, 3rem); }
.page-solid-header .hero-content{ max-width: 680px; }
.page-solid-header .hero-tag{ display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgba(10,32,70,0.08); color: var(--color-blue); font-weight: 600; margin-bottom: 0.8rem; }
.page-solid-header .hero h1{ margin: 0 0 1rem; color: var(--color-blue); }
.page-solid-header .hero-subtitle{ margin: 0; color: var(--color-text-quiet); line-height: 1.6; }

/* Booking page background coherence */
.booking-section{ background: var(--color-bg-sand); }

/* Hero typography adjustments for consultoria pages */
.page-consultoria .hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
}

.page-consultoria .hero-lead {
  font-size: 1.05rem;
  max-width: 680px;
}

/* Fondo detrás del header (evita franja blanca) */
.page-agendar,
.page-schedule,
.page-legal {
  background: var(--color-bg-sand);
}

/* Base sand también en el contenido, con espacio para el header sticky */
.page-agendar main,
.page-schedule main,
.page-legal main {
  background: var(--color-bg-sand);
  padding-top: 20px; /* reducir aire superior bajo header */
}

/* HEADER MÁS COMPACTO EN AGENDAR Y LEGALES */
.page-agendar .site-header,
.page-schedule .site-header,
.page-legal .site-header {
  min-height: 56px;
}

.page-agendar .site-header .nav,
.page-schedule .site-header .nav,
.page-legal .site-header .nav {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Subir el contenido (primer bloque) sin tocar el header */
.page-agendar .booking-section,
.page-schedule .booking-section {
  padding-top: 5rem;
}

@media (max-width: 768px) {
  .page-agendar .booking-section,
  .page-schedule .booking-section {
    padding-top: 5rem;
  }
}

.page-legal .legal-layout,
.page-legal .legal-hero,
.page-legal .rich-text {
  margin-top: 24px;
}

.page-agendar h1,
.page-schedule h1,
.page-legal h1 {
  margin-top: 0;
}

/* Legal pages: card blanca para el contenido */
.page-legal .legal-layout,
.page-legal .rich-text {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: clamp(24px, 4vw, 48px);
}

/* HERO video background (minimal, non-breaking) */
.hero.hero-intro.hero-video {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 85vh, 780px);
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transform: scale(1.03);
  filter: contrast(1.08) saturate(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 243, 238, 0.48);
  z-index: 2;
  pointer-events: none;
}

/* Ensure hero content stays above video + overlay */
.hero.hero-intro.hero-video .container,
.hero.hero-intro.hero-video .hero-content {
  position: relative;
  z-index: 3;
}

.hero-actions {
  position: relative;
  z-index: 4;
}

.lang-capsule {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0f172a;
}

.lang-capsule a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.lang-capsule span {
  opacity: 0.6;
}

.lang-capsule a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .lang-capsule {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
  }
}

.hero-note {
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero-credential {
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
}

.hero-actions {
  margin-top: 0.4rem;
}

.hero-meta{ margin-top:0.8rem !important; margin-bottom:1.6rem !important; }
.hero-meta p{ margin:0.25rem 0 0 0 !important; }
.hero-actions{ margin-top:0 !important; }


.hero.hero-intro.hero-video .hero-content {
  padding-top: clamp(5.6rem, 10vh, 7.2rem);
  max-width: 900px;
}

/* Mobile: show video with enhanced overlay for legibility */
@media (max-width: 768px) {
  .hero-video-bg {
    display: block;
  }
  
  .hero-overlay {
    background: rgba(245, 243, 238, 0.55);
  }
  
  .hero.hero-intro.hero-video .hero-content {
    padding-top: clamp(5.2rem, 10vh, 6.8rem);
  }

  .hero.hero-intro.hero-video .hero-title {
    font-size: clamp(2.1rem, 7vw, 2.7rem);
    text-shadow: 0 2px 20px rgba(245, 243, 238, 0.95);
  }

  .hero.hero-intro.hero-video .hero-lead {
    font-size: 1.1rem;
    text-shadow: 0 2px 14px rgba(245, 243, 238, 0.9);
  }

  .hero.hero-intro.hero-video .hero-eyebrow,
  .hero.hero-intro.hero-video .hero-credential {
    text-shadow: 0 2px 14px rgba(245, 243, 238, 0.9);
  }
}

@media (max-width: 768px){
  .site-header.scrolled{ top: 8px; }
}


