/* --------------------------------------------------
   SITIO WEB DE TELEMEDICINA - DR. DINO GONZÁLEZ
   SISTEMA DE DISEÑO PREMIUM (NAVY & CIAN NEÓN)
   SITE_VERSION: v2.1.3
   -------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-vf-latin.woff2') format('woff2-variations'),
       url('fonts/inter-vf-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/outfit-vf-latin.woff2') format('woff2-variations'),
       url('fonts/outfit-vf-latin.woff2') format('woff2');
}

:root {
  /* Design Tokens (HSL/HEX) */
  --bg-deep: #030a16;
  --bg-dark: #071224;
  --bg-card: rgba(13, 27, 49, 0.6);
  --border-glass: rgba(0, 229, 255, 0.12);
  --border-glow: rgba(0, 229, 255, 0.4);

  --brand-navy: #0b2b4e;
  --brand-cyan: #00e5ff;
  --brand-turquoise: #00a8cc;
  --brand-mint: #00f5ab;
  --text-main: #e0f2fe;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --glow-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  --card-shadow: 0 10px 30px -10px rgba(2, 6, 12, 0.7);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gradient-text: linear-gradient(135deg, #00e5ff 0%, #00f5ab 100%);
  --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #00f5ab 100%);
  --nav-scroll-offset: 88px;
  --anchor-content-gap: 18px;

  /* DG VISUAL TOKENS v1.0 START */
  --dg-scale-press: 0.99;
  --dg-scale-3: 1.03;
  --dg-scale-6: 1.06;
  --dg-scale-11: 1.11;
  --dg-lift-3: -3px;
  --dg-lift-6: -6px;
  --dg-cyan-11: rgba(0, 229, 255, 0.11);
  --dg-cyan-22: rgba(0, 229, 255, 0.22);
  --dg-cyan-33: rgba(0, 229, 255, 0.33);
  --dg-cyan-66: rgba(0, 229, 255, 0.66);
  --dg-cyan-99: rgba(0, 229, 255, 0.99);
  --dg-mint-11: rgba(0, 245, 171, 0.11);
  --dg-mint-22: rgba(0, 245, 171, 0.22);
  --dg-mint-33: rgba(0, 245, 171, 0.33);
  --dg-mint-66: rgba(0, 245, 171, 0.66);
  --dg-mint-99: rgba(0, 245, 171, 0.99);
  --dg-space-3: 3px;
  --dg-space-6: 6px;
  --dg-space-9: 9px;
  --dg-space-11: 11px;
  --dg-space-22: 22px;
  --dg-space-33: 33px;
  --dg-fib-13: 13px;
  --dg-fib-21: 21px;
  --dg-fib-34: 34px;
  --dg-fib-55: 55px;
  --dg-fib-89: 89px;
  --dg-radius-11: 11px;
  --dg-radius-22: 22px;
  --dg-radius-34: 34px;
  --dg-radius-55: 55px;
  --dg-motion-fast: 233ms cubic-bezier(0.4, 0, 0.2, 1);
  --dg-motion-base: 330ms cubic-bezier(0.4, 0, 0.2, 1);
  --dg-motion-fib: 377ms cubic-bezier(0.4, 0, 0.2, 1);
  --dg-logo-brightness: 1.22;
  --dg-logo-contrast: 1.22;
  /* DG VISUAL TOKENS v1.0 END */
}


/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-white);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-turquoise) 100%);
  color: #020813;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.btn-glow {
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  }
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* 1. Header and Navigation */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 10, 22, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.main-navbar.scrolled {
  background: rgba(3, 10, 22, 0.95);
  border-bottom: 1px solid var(--border-glass);
  --glow-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  --card-shadow: 0 10px 30px -10px rgba(2, 6, 12, 0.7);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gradient-text: linear-gradient(135deg, #00e5ff 0%, #00f5ab 100%);
  --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #00f5ab 100%);

  /* DG VISUAL TOKENS v1.0 START */
  --dg-scale-press: 0.99;
  --dg-scale-3: 1.03;
  --dg-scale-6: 1.06;
  --dg-scale-11: 1.11;
  --dg-lift-3: -3px;
  --dg-lift-6: -6px;
  --dg-cyan-11: rgba(0, 229, 255, 0.11);
  --dg-cyan-22: rgba(0, 229, 255, 0.22);
  --dg-cyan-33: rgba(0, 229, 255, 0.33);
  --dg-cyan-66: rgba(0, 229, 255, 0.66);
  --dg-cyan-99: rgba(0, 229, 255, 0.99);
  --dg-mint-11: rgba(0, 245, 171, 0.11);
  --dg-mint-22: rgba(0, 245, 171, 0.22);
  --dg-mint-33: rgba(0, 245, 171, 0.33);
  --dg-mint-66: rgba(0, 245, 171, 0.66);
  --dg-mint-99: rgba(0, 245, 171, 0.99);
  --dg-space-3: 3px;
  --dg-space-6: 6px;
  --dg-space-9: 9px;
  --dg-space-11: 11px;
  --dg-space-22: 22px;
  --dg-space-33: 33px;
  --dg-fib-13: 13px;
  --dg-fib-21: 21px;
  --dg-fib-34: 34px;
  --dg-fib-55: 55px;
  --dg-fib-89: 89px;
  --dg-radius-11: 11px;
  --dg-radius-22: 22px;
  --dg-radius-34: 34px;
  --dg-radius-55: 55px;
  --dg-motion-fast: 233ms cubic-bezier(0.4, 0, 0.2, 1);
  --dg-motion-base: 330ms cubic-bezier(0.4, 0, 0.2, 1);
  --dg-motion-fib: 377ms cubic-bezier(0.4, 0, 0.2, 1);
  --dg-logo-brightness: 1.22;
  --dg-logo-contrast: 1.22;
  /* DG VISUAL TOKENS v1.0 END */
}


/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-white);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-turquoise) 100%);
  color: #020813;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.btn-glow {
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  }
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* 1. Header and Navigation */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 10, 22, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.main-navbar.scrolled {
  background: rgba(3, 10, 22, 0.95);
  border-bottom: 1px solid var(--border-glass);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

section[id],
div[id],
article[id] {
  scroll-margin-top: var(--nav-scroll-offset) !important;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 30px;
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 12px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

.nav-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 229, 255, 0.48);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
  filter: brightness(1.05) saturate(1.03);
  transition: var(--transition-smooth);
}

.nav-brand-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.nav-brand:hover .nav-logo {
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.85), 0 0 55px rgba(0, 229, 255, 0.45);
  border-color: rgba(0, 229, 255, 0.95);
  transform: scale(1.06);
}

.nav-brand-text {
  /* Toda la cabecera comparte Inter: evita que las letras, incluida la "a",
     cambien de forma entre nombre, menú y botón de contacto. */
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.60rem;
  letter-spacing: -0.4px;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-brand-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #7fe9ef;
  letter-spacing: 0.25px;
  line-height: 1.15;
  white-space: nowrap;
  margin-top: 1px;
}

.nav-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .main-navbar .nav-container {
    padding-right: 8px;
  }

  .main-navbar .nav-cta-wrapper {
    margin-left: 22px;
    margin-right: 0;
  }
}

.site-version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 245, 171, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(0, 245, 171, 0.1);
  color: var(--brand-mint);
  font-family: var(--font-title);
  font-size: 0.70rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  box-shadow: 0 0 14px rgba(0, 245, 171, 0.2);
  white-space: nowrap;
}

select.form-control,
select.dg-custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #07162c !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 40px !important;
  color: #e0f2fe !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 10px !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: all 0.22s ease !important;
}

select.form-control:focus,
select.dg-custom-select:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4) !important;
  outline: none !important;
}

select.form-control option,
select.dg-custom-select option {
  background-color: #07162c !important;
  color: #e0f2fe !important;
  padding: 10px !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMPONENTES DE SELECTORES DESPLEGABLES PERSONALIZADOS (.dg-select)
   Idénticos al Portal Clínico: flotantes, neón, celdas amplias y rotación de flecha
   ───────────────────────────────────────────────────────────────────────────── */
.dg-select {
  position: relative;
  display: inline-block;
  width: 100%;
}

.dg-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dg-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 12px;
  background: #07162c;
  color: #e0f2fe;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.dg-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dg-select-trigger:hover,
.dg-select-trigger:focus-visible,
.dg-select.is-open .dg-select-trigger {
  border-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  background: #0b1f3c;
}

.dg-select-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: 12px;
  border-right: 2px solid #00e5ff;
  border-bottom: 2px solid #00e5ff;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), filter 250ms ease;
}

.dg-select.is-open .dg-select-chevron {
  transform: translateY(2px) rotate(225deg);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.7));
}

.dg-select-menu {
  position: fixed;
  z-index: 20000;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: 1.5px solid rgba(0, 229, 255, 0.6);
  border-radius: 14px;
  background: rgba(3, 13, 26, 0.98);
  box-shadow:
    0 0 0 1px rgba(125, 255, 255, 0.1),
    0 18px 45px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(0, 229, 255, 0.2);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  backdrop-filter: blur(20px) saturate(115%);
  overscroll-behavior: contain;
  animation: dg-select-enter 233ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-select-menu::-webkit-scrollbar {
  width: 6px;
}

.dg-select-menu::-webkit-scrollbar-track {
  background: rgba(3, 13, 26, 0.8);
  border-radius: 10px;
}

.dg-select-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.4);
  border-radius: 10px;
}

.dg-select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.75);
}

.dg-select-menu.opens-up {
  transform-origin: bottom center;
}

.dg-select-menu[hidden] {
  display: none !important;
}

.dg-select-option {
  position: relative;
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-bottom-color: rgba(22, 62, 110, 0.3);
  border-radius: 99px;
  background: transparent;
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.90rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition:
    transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.dg-select-option::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 3.5px;
  border-radius: 4px;
  background: #00e5ff;
  opacity: 0;
  transform: scaleY(0.55);
  transition: opacity 200ms ease, transform 200ms ease;
}

.dg-select-option:hover,
.dg-select-option:focus-visible,
.dg-select-option.is-active {
  z-index: 1;
  border-color: rgba(0, 229, 255, 0.6);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(22, 62, 110, 0.85));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(125, 255, 255, 0.15), 0 0 16px rgba(0, 229, 255, 0.2);
  outline: none;
  transform: translateX(4px);
}

.dg-select-option.is-selected {
  border-color: #00e5ff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.32), rgba(22, 62, 110, 0.95));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
}

.dg-select-option:hover::before,
.dg-select-option:focus-visible::before,
.dg-select-option.is-active::before,
.dg-select-option.is-selected::before {
  opacity: 1;
  transform: scaleY(1);
}

.dg-select-option:disabled {
  display: none;
}

@keyframes dg-select-enter {
  from {
    opacity: 0;
    transform: translateY(-3px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.98rem;
  color: #aebdd2;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease,
    box-shadow 0.24s ease, transform 0.24s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: #f0feff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.13), rgba(0, 245, 171, 0.08));
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-3px) scale(1.03);
}

.nav-link.is-active {
  border-color: rgba(0, 245, 171, 0.58);
  box-shadow: 0 0 18px rgba(0, 245, 171, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-smooth);
}

/* 2. Hero Section */
.hero-section {
  position: relative;
  padding: 130px 0 70px 0;
  overflow-x: clip;
  /* Halo del doctor integrado como segunda capa de fondo — sin caja separada, sin líneas */
  background:
    radial-gradient(ellipse 38% 72% at 72% 56%, rgba(0, 229, 255, 0.10) 0%, rgba(0, 229, 255, 0.025) 60%, transparent 85%),
    radial-gradient(circle at 10% 20%, rgba(11, 43, 78, 0.15) 0%, transparent 50%);
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.16) 0%, rgba(0, 229, 255, 0.04) 45%, transparent 70%);
  z-index: 1;
  animation: float-glow-1 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.16) 0%, rgba(0, 229, 255, 0.04) 45%, transparent 70%);
  z-index: 1;
  animation: float-glow-2 18s ease-in-out infinite alternate;
}

@keyframes float-glow-1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(50px, -30px) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translate(-30px, 40px) scale(0.92);
    opacity: 0.75;
  }
}

@keyframes float-glow-2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-40px, 50px) scale(0.88);
    opacity: 0.7;
  }
  100% {
    transform: translate(30px, -20px) scale(1.08);
    opacity: 0.95;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
}

.hero-tag {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 30px;
  color: var(--brand-cyan);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 22px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-loop-wrapper {
  display: inline-flex;
  position: relative;
  vertical-align: top;
  min-width: 580px;
  justify-content: flex-start;
}

.text-loop-active {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-loop-active.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}

.text-loop-active.fade-in {
  opacity: 0;
  transform: translateY(12px);
}

@media (max-width: 768px) {
  .text-loop-wrapper {
    display: block;
    min-width: auto;
    text-align: center;
  }
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 35px;
  max-width: 580px;
}

/* WhatsApp Contact Widget */
.hero-whatsapp-container {
  margin: 30px 0;
  display: flex;
}

.hero-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(4, 16, 30, 0.60);
  border: 2px solid rgba(0, 229, 255, 0.30);
  padding: 17px 34px;
  border-radius: 18px;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.05);
  transition: var(--transition-smooth);
  animation: pulse-neon-mint 2.5s infinite;
}

.hero-whatsapp-btn:hover {
  transform: translateY(-3px);
  background: var(--brand-mint);
  border-color: var(--brand-mint);
  box-shadow: 0 0 30px rgba(0, 245, 171, 0.40);
  animation: none;
}

.hero-whatsapp-btn:hover .whatsapp-label,
.hero-whatsapp-btn:hover .whatsapp-number {
  color: #02060c !important;
  opacity: 1;
}

.hero-whatsapp-btn:hover .whatsapp-icon-svg {
  fill: #02060c !important;
}

.whatsapp-icon-svg {
  width: 40px;
  height: 40px;
  fill: #00f5ab;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.whatsapp-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.whatsapp-label {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  transition: var(--transition-smooth);
}

.whatsapp-number {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  transition: var(--transition-smooth);
}

.hero-subtitle strong {
  color: var(--brand-cyan);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 45px;
}

.hero-features {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 35px;
  margin-top: 25px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
}

.feature-svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand-cyan);
  display: inline-block;
  flex-shrink: 0;
}

/* Hero Image Wrapper (Backlight radial gradient layout) */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
  width: 100%;
  position: relative;
  transition: var(--transition-smooth);
  min-height: min(760px, calc(100vh - 115px));
  padding-top: 18px;
  overflow: visible;
}

/* ::before eliminado — halo movido al background de .hero-section para evitar líneas de borde de caja */
.hero-image-wrapper::before {
  display: none;
}

.hero-portrait-image {
  position: relative;
  z-index: 2;
  width: auto;
  height: min(760px, calc(100vh - 135px));
  max-width: min(450px, 100%);
  max-height: 760px;
  object-fit: contain;
  object-position: center bottom;
  /* Sombra cyan que sigue la silueta real del doctor — fusiona los bordes con el halo del fondo */
  filter:
    drop-shadow(0 0 30px rgba(0, 229, 255, 0.30))
    drop-shadow(0 0 60px rgba(0, 229, 255, 0.15))
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.40));
  transition: var(--transition-smooth);
  /* NOTA TECNICA: no usar mask-image aqui — el filter drop-shadow sigue los bordes del
     rectangulo enmascarado y genera lineas verticales a los lados y horizontal arriba.
     Ver: documentacion/LECCION_HALOS_Y_BORDES_IMAGEN_TRANSPARENTE.md */
}

.hero-portrait-image:hover {
  /* Halo perimetral ampliado en hover — sigue la silueta real del WebP */
  filter:
    drop-shadow(0 0 35px rgba(0, 229, 255, 0.85))
    drop-shadow(0 0 70px rgba(0, 229, 255, 0.45))
    drop-shadow(0 0 110px rgba(0, 229, 255, 0.20))
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
  transform: translateY(-4px) scale(1.01);
}

/* 3. Services Section */
#servicios,
#reserva-hora {
  scroll-margin-top: var(--nav-scroll-offset) !important;
}

.services-section {
  padding: 50px 0 65px 0;
  background-color: var(--bg-dark);
}

#reserva-hora {
  padding: 50px 0 65px 0 !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px 22px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45) !important;
}

.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(0, 229, 255, 0.03);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
  border-color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  transform: scale(1.06);
}

.service-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.3));
  transition: var(--transition-smooth);
}

.service-card-title {
  font-size: 1.20rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.service-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* 4. How It Works Section */
#como-funciona {
  scroll-margin-top: var(--nav-scroll-offset) !important;
}

.how-works-section {
  padding: 45px 0 55px 0;
  background-color: var(--bg-deep);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 16px;
}

/* Line connecting timeline items */
.timeline::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-cyan) 50%, var(--brand-navy) 100%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.timeline-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--brand-navy);
  color: var(--brand-cyan);
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 20px rgba(2, 6, 12, 0.5);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-number {
  border-color: var(--brand-cyan);
  box-shadow: var(--glow-shadow);
  transform: scale(1.05);
}

.timeline-content {
  padding: 0 10px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 28px;
  }

  .timeline::after {
    display: none;
  }
}

/* 5. About Section */
#sobre-mi {
  scroll-margin-top: var(--nav-scroll-offset) !important;
}

.about-section {
  padding: 45px 0 55px 0;
  background-color: var(--bg-dark);
}

.about-section .container {
  max-width: 1400px;
}

.about-grid {
  display: grid;
  /* Recupera la presencia editorial de la identidad sin perder legibilidad. */
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 110px;
  align-items: start;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
  /* Centra visualmente la tarjeta de identidad dentro de la primera vista. */
  padding-top: 113px;
}

.doctor-badge-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  padding: 36px 24px 16px;
  text-align: center;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.doctor-badge-logo {
  /* Recupera el tamaño amplio de 120 px usado en la versión de la semana anterior. */
  height: 120px;
  width: 120px;
  object-fit: contain;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  margin-bottom: 22px;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  filter: brightness(1.03) saturate(0.96);
  transition: var(--transition-smooth);
}

.doctor-badge-card:hover .doctor-badge-logo {
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
  border-color: rgba(0, 229, 255, 0.85);
  transform: scale(1.04);
}

.doctor-badge-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.doctor-badge-sub {
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.doctor-badge-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doctor-badge-meta span {
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 500;
}

.about-info {
  text-align: left;
  max-width: 800px;
}

.about-text {
  color: #cbd5e1;
  font-size: 1.10rem;
  line-height: 1.68;
  margin-bottom: 14px;
}

.about-text strong {
  color: var(--text-white);
}

.academic-stamps {
  margin-top: 20px;
  display: grid;
  /* Credenciales en orden de lectura: UANDES arriba, MINSAL debajo. */
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 660px;
}

.stamp-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: 0 4px 20px rgba(2, 6, 12, 0.3);
}

.stamp-logo {
  height: 55px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(0, 229, 255, 0.35));
  flex-shrink: 0;
}

.minsal-stamp-logo {
  height: 55px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain;
  filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 4px !important;
}

.stamp-icon {
  font-size: 1.8rem;
  color: var(--brand-cyan);
  font-weight: 900;
  background: rgba(0, 229, 255, 0.08);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stamp-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 4px;
}

.stamp-item span {
  font-size: 1.15rem;
  color: #ffffff !important;
  font-weight: 500;
}

/* 6. Document Validator Section */
.validator-section {
  padding: 100px 0;
  background-color: var(--bg-deep);
}

.validator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.validator-form {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.input-group label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-group input {
  background: rgba(2, 6, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  border-radius: 10px;
  color: var(--text-white);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-group input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.validator-form .btn {
  height: 48px;
}

/* Results styling */
.validator-result {
  margin-top: 30px;
  animation: fadeIn 0.4s ease-out;
}

.result-card {
  background: rgba(2, 6, 12, 0.4);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 28px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.result-status-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}

.result-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 1rem;
  color: var(--text-white);
}

.result-document-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-sig-img {
  height: 48px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: brightness(0.9) contrast(1.1);
}

.result-signature span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.result-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mini-qr-code {
  width: 48px;
  height: 48px;
  background-color: var(--text-white);
  border: 3px solid var(--text-white);
  border-radius: 4px;
  background-image: radial-gradient(#000000 25%, transparent 25%),
                    radial-gradient(#000000 25%, transparent 25%);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
}

.result-qr-box span {
  font-size: 0.65rem;
  color: var(--brand-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.validator-empty {
  margin-top: 30px;
  padding: 30px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 7. CTA / Contact Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(185deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
}

.cta-box {
  background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.06), transparent 50%),
              linear-gradient(135deg, rgba(11, 43, 78, 0.4) 0%, rgba(3, 10, 22, 0.8) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 18px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 35px auto;
}

/* 8. Footer Area */
.main-footer {
  background-color: #020710;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.55rem;
}

.footer-brand span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.footer-logo {
  height: 68px;
  width: 68px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.34);
  filter: brightness(1.03) saturate(0.96);
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-cyan);
  margin-bottom: 22px;
}

.footer-subheading {
  margin-top: 18px;
  margin-bottom: 8px !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.footer-contact p {
  font-size: 0.95rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.footer-contact a {
  color: var(--text-white);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-version-footer {
  color: var(--brand-mint);
  font-family: var(--font-title);
  font-weight: 800;
}

.regulatory-notice {
  font-size: 0.75rem;
  color: #57657a;
  max-width: 900px;
  line-height: 1.5;
}

/* Legal and informational pages */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.08), transparent 36%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

.legal-main {
  padding: 150px 0 90px;
}

.legal-hero {
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-title {
  font-size: 3.20rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.legal-lead {
  color: var(--text-main);
  font-size: 1.12rem;
  max-width: 780px;
  margin: 0 auto;
}

.legal-meta {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  background: rgba(3, 10, 22, 0.72);
  box-shadow: var(--card-shadow);
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  color: var(--brand-cyan);
}

.legal-section p,
.legal-section li {
  color: var(--text-main);
  font-size: 0.98rem;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0 20px;
}

.legal-callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.06);
}

.legal-callout strong {
  color: var(--text-white);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.back-home-link {
  color: var(--brand-cyan);
  font-weight: 800;
}

.back-home-link:hover {
  color: var(--text-white);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mockup-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    order: -1;
    padding-top: 0;
  }
}

@media (max-width: 1180px) {
  .main-navbar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
    padding: 10px 18px;
    padding-right: 58px;
    gap: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
  }

  .nav-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-version-badge {
    display: none;
  }

  .nav-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
  }

  .nav-brand-text {
    min-width: 0;
    max-width: calc(100vw - 128px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1.08rem, 4vw, 1.45rem);
  }

  .nav-menu {
    display: none; /* Controlled by JavaScript menu class */
  }

  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 2px solid rgba(0, 229, 255, 0.72);
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.18);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 2;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
  }

  /* Mobile menu active state */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-glass);
    padding: 30px 24px;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero-section {
    padding-top: 112px;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    gap: 28px;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-tag {
    max-width: min(100%, 340px);
    font-size: clamp(0.8rem, 3.6vw, 0.92rem);
    padding: 10px 16px;
    white-space: normal;
  }

  .hero-title {
    width: 100%;
    max-width: 340px;
    font-size: clamp(1.85rem, 8.6vw, 2.12rem);
    line-height: 1.18;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 340px;
  }

  .hero-whatsapp-btn {
    width: 100%;
    max-width: min(340px, 100%);
    justify-content: center;
    gap: 14px;
    padding: 16px 18px;
  }

  .hero-whatsapp-container {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-number {
    font-size: 1.35rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .whatsapp-label {
    font-size: 0.78rem;
  }

  .hero-features {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 330px);
    gap: 8px;
    justify-content: center;
  }

  .hero-feature-item {
    min-width: 0;
    font-size: clamp(0.74rem, 3vw, 0.86rem);
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .hero-portrait-image {
    height: min(560px, 72vh);
    max-width: 320px;
  }

  .hero-image-wrapper {
    min-height: min(560px, 72vh);
    padding-top: 0;
  }

  .clinical-intake-note {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    margin-top: 26px;
  }

  .clinical-intake-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.55rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .timeline::after {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .validator-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .legal-main {
    padding-top: var(--nav-scroll-offset);
  }

  .legal-title {
    font-size: 2.4rem;
  }

  .legal-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 10px 14px;
    padding-right: 54px;
  }

  .nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .nav-brand {
    gap: 10px;
  }

  .nav-brand-text {
    max-width: calc(100vw - 112px);
    font-size: clamp(1rem, 5.3vw, 1.28rem);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    right: 14px;
  }

  .hero-section {
    padding-top: 104px;
  }

  .hero-container {
    padding: 0 18px;
  }

  .hero-title {
    max-width: 318px;
    font-size: clamp(1.72rem, 8.4vw, 1.98rem);
    letter-spacing: -0.25px;
  }

  .hero-subtitle {
    max-width: 318px;
    font-size: 0.98rem;
  }

  .hero-whatsapp-btn {
    max-width: 318px;
    padding: 15px 16px;
  }

  .hero-image-wrapper {
    min-height: min(500px, 68vh);
  }

  .hero-portrait-image {
    height: min(500px, 68vh);
    max-width: 285px;
  }

  .whatsapp-icon-svg {
    width: 34px;
    height: 34px;
  }

  .whatsapp-number {
    font-size: clamp(1.05rem, 6vw, 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Refinamiento visual v2.0.6: legales, densidad y consentimiento. */
.legal-content {
  background:
    linear-gradient(145deg, rgba(125, 255, 255, 0.07), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(0, 229, 255, 0.13), transparent 30rem),
    linear-gradient(155deg, rgba(7, 27, 53, 0.84), rgba(3, 10, 22, 0.80));
  border-color: rgba(0, 229, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(125, 255, 255, 0.08), 0 22px 55px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  backdrop-filter: blur(18px) saturate(1.14);
}

.legal-section {
  border-radius: 12px;
}

.cookie-consent {
  position: fixed;
  z-index: 5000;
  left: 50%;
  bottom: 22px;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  color: var(--text-main);
  border: 1px solid rgba(0, 229, 255, 0.33);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(125, 255, 255, 0.08), transparent 32%),
    linear-gradient(155deg, rgba(7, 27, 53, 0.96), rgba(3, 10, 22, 0.96));
  box-shadow: inset 0 1px 0 rgba(125, 255, 255, 0.10), 0 28px 70px rgba(0, 0, 0, 0.58), 0 0 24px rgba(0, 229, 255, 0.11);
  -webkit-backdrop-filter: blur(20px) saturate(1.16);
  backdrop-filter: blur(20px) saturate(1.16);
}

.cookie-consent-copy {
  display: grid;
  gap: 6px;
  max-width: 590px;
}

.cookie-consent-copy strong {
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.cookie-consent-copy p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-consent-copy a {
  width: fit-content;
  color: var(--brand-cyan);
  font-weight: 750;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent-button {
  min-height: 44px;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .services-section,
  .how-works-section,
  .about-section,
  .booking-payment-section,
  .faq-section,
  .testimonials-section,
  .cta-section {
    padding-top: 84px;
    padding-bottom: 84px;
  }
}

@media (max-width: 768px) {
  .hero-feature-item {
    font-size: clamp(0.80rem, 3vw, 0.9rem);
  }

  .cookie-consent {
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .cookie-consent-actions,
  .cookie-consent-button {
    width: 100%;
  }
}

/* Floating WhatsApp Button */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: float-pulse 2s infinite alternate;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  background: #20ba5a;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 211, 102, 0.6);
}

@keyframes float-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 25px rgba(37, 211, 102, 0.6);
  }
  100% {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 35px rgba(37, 211, 102, 0.8);
  }
}

/* FAQs Section Accordion */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(0, 229, 255, 0.66);
  box-shadow: 0 14px 30px rgba(0, 229, 255, 0.11);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: var(--text-white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
}

.faq-icon-arrow {
  font-size: 1.4rem;
  color: var(--brand-cyan);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(45deg);
  color: var(--brand-turquoise);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  background: rgba(2, 6, 12, 0.25);
}

.faq-item.active .faq-answer {
  max-height: 250px;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Security Badges in CTA */
.security-badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.12);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.badge-pill:hover {
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.badge-svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand-cyan);
  display: inline-block;
  flex-shrink: 0;
}

/* WhatsApp Floating Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: var(--bg-dark);
  color: var(--text-white);
  border: 1px solid var(--border-glow);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--card-shadow), 0 0 10px rgba(0, 229, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(10px);
}

.whatsapp-floating-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Show tooltip automatically after delay */
.whatsapp-tooltip.show {
  opacity: 1;
  transform: translateX(0);
}

/* Validator Notice Text */
.validator-notice-text {
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  background: rgba(0, 229, 255, 0.03);
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.08);
}

/* Emergency Warning Box */
.emergency-warning-box {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 25px;
}

.emergency-warning-box p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  text-align: center;
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.08);
  padding: 16px 22px;
  border-radius: 10px;
}

/* Glow Divider */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
  width: 100%;
  margin: 0;
  border: none;
}

/* ==========================================================================
   6. Testimonials Section
   ========================================================================== */

@keyframes pulse-neon-mint {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 245, 171, 0.45), 0 10px 25px rgba(0, 229, 255, 0.05);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 245, 171, 0), 0 10px 25px rgba(0, 229, 255, 0.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 171, 0), 0 10px 25px rgba(0, 229, 255, 0.05);
  }
}

.testimonials-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(0, 229, 255, 0.33);
  box-shadow: 0 18px 38px rgba(0, 229, 255, 0.11);
}

.testimonial-stars {
  color: var(--brand-mint);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.testimonial-author strong {
  color: var(--text-main);
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
}

.testimonial-author span {
  color: var(--brand-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   7. Booking and Payment Section
   ========================================================================== */
.booking-payment-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.payment-card-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.payment-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px -5px rgba(0, 229, 255, 0.15), var(--card-shadow);
  transform: translateY(-5px);
}

.payment-card-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-mint) 100%);
  color: #020813;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 245, 171, 0.3);
}

.payment-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--text-white);
}

.payment-card-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 25px;
  color: var(--text-white);
}

.payment-card-price .currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-right: 4px;
}

.payment-card-price .amount {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-title);
  line-height: 1;
}

.payment-card-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.payment-card-description {
  color: var(--text-muted);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.payment-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
}

.feature-check {
  width: 18px;
  height: 18px;
  stroke: var(--brand-mint);
  flex-shrink: 0;
  margin-top: 2px;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.payment-btn-main {
  width: 100%;
}

.payment-btn-sub {
  width: 100%;
}

.payment-methods-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
}

.payment-methods-logos span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.method-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.method-badge.webpay {
  border-color: rgba(230, 20, 60, 0.3);
  color: #ff3366;
}

.method-badge.redcompra {
display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.testimonial-author strong {
  color: var(--text-main);
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
}

.testimonial-author span {
  color: var(--brand-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   7. Booking and Payment Section
   ========================================================================== */
.booking-payment-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.payment-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 50px auto 0 auto;
  max-width: 950px;
  align-items: stretch;
}

.clinical-intake-note {
  max-width: 950px;
  margin: 34px auto 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 28px;
  border: 1px solid rgba(0, 245, 171, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 245, 171, 0.08), rgba(0, 229, 255, 0.04)),
    rgba(3, 10, 22, 0.42);
  box-shadow: 0 18px 36px -24px rgba(0, 245, 171, 0.35);
}

.clinical-intake-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #020813;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 18px rgba(0, 245, 171, 0.28);
}

.clinical-intake-note h3 {
  margin-bottom: 8px;
  color: var(--text-white);
  font-size: 1.18rem;
}

.clinical-intake-note p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.clinical-intake-link {
  margin-top: 16px;
}

/* ==========================================================================
   Clinical Intake Page
   ========================================================================== */
.intake-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 229, 255, 0.08) 0%, transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(0, 245, 171, 0.06) 0%, transparent 30%),
    var(--bg-deep);
}

.intake-main {
  padding-top: 122px;
}

.intake-hero {
  padding: 70px 0 35px 0;
  text-align: center;
}

.intake-hero .section-subtitle {
  max-width: 780px;
  margin: 0 auto;
}

.intake-shell {
  padding: 35px 0 95px 0;
}

.intake-security-banner {
  max-width: 980px;
  margin: 0 auto 26px auto;
  padding: 18px 22px;
  border: 1px solid rgba(0, 245, 171, 0.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 245, 171, 0.08), rgba(0, 229, 255, 0.04));
  color: var(--text-main);
  box-shadow: 0 18px 34px -28px rgba(0, 245, 171, 0.5);
}

.intake-security-banner strong {
  color: var(--brand-mint);
}

.intake-form {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.intake-section {
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 28px;
  background: rgba(13, 27, 49, 0.56);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  min-width: 0;
}

.intake-section legend {
  padding: 0 10px;
  color: var(--brand-cyan);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
}

.intake-section.muted-section {
  opacity: 0.62;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
  font-size: 0.93rem;
  font-weight: 700;
  min-width: 0;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field.has-field-error > span {
  color: #ffc4cf;
}

.form-field.has-field-error .form-control {
  border-color: rgba(255, 76, 116, 0.82);
  background: rgba(42, 8, 24, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 76, 116, 0.16), 0 0 18px rgba(255, 76, 116, 0.16);
}

.form-field.has-field-error::after {
  content: attr(data-error);
  display: block;
  margin-top: -2px;
  color: #ff9fb4;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.intake-mode-choice {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.05);
}

.intake-mode-title {
  margin: 0 0 12px;
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 800;
}

.intake-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.intake-mode-card {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.intake-mode-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.intake-mode-card span {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: rgba(2, 8, 19, 0.72);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.intake-mode-card strong {
  color: var(--text-white);
  font-size: 1rem;
}

.intake-mode-card small {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.intake-mode-card input:focus-visible + span,
.intake-mode-card input:checked + span {
  border-color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.16);
}

.intake-mode-hint {
  margin: -6px 0 2px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 245, 171, 0.22);
  border-radius: 12px;
  background: rgba(0, 245, 171, 0.07);
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-field.optional-for-returning > span::after {
  content: " (opcional si ya esta en ficha)";
  color: var(--text-muted);
  font-weight: 500;
}

.form-control {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(2, 8, 19, 0.68);
  color: var(--text-white);
  font: inherit;
  line-height: 1.45;
  transition: var(--transition-smooth);
}

.form-control::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
  background: rgba(2, 8, 19, 0.88);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 14px;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--brand-mint);
}

.intake-section.has-consent-error {
  border-color: rgba(255, 76, 116, 0.68);
  background: linear-gradient(180deg, rgba(35, 11, 30, 0.72), rgba(13, 27, 49, 0.56));
  box-shadow: 0 0 0 1px rgba(255, 76, 116, 0.2), 0 0 30px rgba(255, 76, 116, 0.16);
}

.consent-validation-message {
  margin: 16px 0 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 76, 116, 0.64);
  border-radius: 12px;
  background: rgba(60, 12, 34, 0.78);
  color: #ffe1e8;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: inset 4px 0 0 rgba(255, 76, 116, 0.9), 0 0 20px rgba(255, 76, 116, 0.12);
}

.intake-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.intake-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.65), 0 4px 15px rgba(0, 229, 255, 0.25);
  filter: brightness(1.15);
}

.intake-actions .btn-secondary:hover {
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.intake-form-status {
  min-height: 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: right;
}

.intake-form-status[data-state="success"] {
  color: var(--brand-mint);
}

.intake-form-status[data-state="error"] {
  display: inline-flex;
  justify-content: flex-end;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 76, 116, 0.44);
  border-radius: 999px;
  background: rgba(60, 12, 34, 0.52);
  color: #ff8fa8;
  font-weight: 800;
}

.intake-preview {
  max-width: 1080px;
  width: 100%;
  margin: 34px auto 0 auto;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 20px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(13, 27, 49, 0.88), rgba(2, 8, 19, 0.82));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 26px rgba(0, 229, 255, 0.1);
}

.intake-technical-preview[hidden] {
  display: none !important;
}

/* Caja de alerta/instrucciones destacada */
.intake-alert-box {
  display: flex;
  gap: 16px;
  background: rgba(255, 179, 0, 0.08);
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0 25px 0;
  text-align: left;
  align-items: flex-start;
}

.intake-alert-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.intake-alert-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intake-alert-content strong {
  color: #ffb300;
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.intake-alert-content p {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.intake-alert-content p strong {
  color: #ffffff;
  text-transform: none;
  letter-spacing: normal;
}

.intake-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.intake-preview-header h2 {
  font-size: 1.45rem;
}

.intake-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.intake-preview-actions .btn {
  min-height: 44px;
}

.intake-preview-actions .copy-send-btn {
  min-height: 58px;
  min-width: 222px;
  padding: 16px 30px;
  border-color: rgba(0, 245, 171, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, #00e5ff 0%, #00f5ab 100%);
  color: #020813;
  font-size: 1.02rem;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.24), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.intake-preview-actions .copy-send-btn:hover,
.intake-preview-actions .copy-send-btn:focus-visible {
  background: linear-gradient(135deg, #00f5ab 0%, #00e5ff 100%);
  border-color: rgba(0, 229, 255, 1);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.75), 0 10px 25px rgba(0, 229, 255, 0.3);
  transform: translateY(-4px) scale(1.065);
  filter: brightness(1.15);
}

.btn-whatsapp-share {
  background: linear-gradient(135deg, #00f5ab 0%, #00e5ff 100%);
  color: #020813 !important;
  border-color: rgba(0, 245, 171, 0.8);
  box-shadow: 0 0 18px rgba(0, 245, 171, 0.24);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-whatsapp-share:hover,
.btn-whatsapp-share:focus-visible {
  background: linear-gradient(135deg, #00e5ff 0%, #00f5ab 100%);
  color: #020813 !important;
  box-shadow: 0 0 35px rgba(0, 245, 171, 0.6), 0 10px 25px rgba(0, 245, 171, 0.25);
  transform: translateY(-4px) scale(1.065);
  filter: brightness(1.15);
}

.intake-share-note {
  margin: -2px 0 16px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.intake-share-output-field {
  margin: 0 0 16px 0;
}

.intake-share-output-field textarea {
  min-height: 260px;
  resize: vertical;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
}

.intake-preview pre {
  max-height: 520px;
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #020813;
  color: var(--text-main);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.intake-footer {
  padding-top: 42px;
}

@media (max-width: 768px) {
  .intake-main {
    padding-top: calc(var(--nav-scroll-offset) + 8px);
  }

  .intake-hero {
    padding: 48px 0 24px 0;
  }

  .intake-hero .section-title {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.72rem;
    line-height: 1.18;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .intake-hero .section-subtitle,
  .intake-security-banner,
  .intake-share-note {
    overflow-wrap: break-word;
  }

  .intake-section,
  .intake-preview {
    padding: 22px 18px;
  }

  .form-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .intake-mode-options {
    grid-template-columns: 1fr;
  }

  .intake-actions,
  .intake-preview-header {
    flex-direction: column;
  }

  .intake-actions .btn,
  .intake-preview-actions,
  .intake-preview-actions .btn {
    width: 100%;
  }

  .intake-form-status {
    text-align: left;
  }
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 30px;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.payment-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px -5px rgba(0, 229, 255, 0.15), var(--card-shadow);
  transform: translateY(-5px);
}

.payment-card.highlighted {
  border-color: var(--border-glow);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), var(--card-shadow);
}

@media (min-width: 1025px) {
  .payment-card.highlighted {
    transform: scale(1.04);
  }
  .payment-card.highlighted:hover {
    transform: scale(1.07) translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 229, 255, 0.25), var(--card-shadow);
  }
}

.payment-card-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-mint) 100%);
  color: #020813;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 245, 171, 0.3);
  white-space: nowrap;
}

.payment-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--text-white);
  line-height: 1.3;
}

.payment-card-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 25px;
  color: var(--text-white);
}

.payment-card-price .currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-right: 4px;
}

.payment-card-price .amount {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-title);
  line-height: 1;
}

.payment-card-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.payment-card-description {
  color: var(--text-muted);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.5;
  min-height: 60px;
}

.payment-features {
  list-style: none;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.payment-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.35;
}

.feature-check {
  width: 16px;
  height: 16px;
  stroke: var(--brand-mint);
  flex-shrink: 0;
  margin-top: 2px;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.payment-btn-main {
  width: 100%;
}

.payment-btn-fallback {
  background: rgba(0, 229, 255, 0.12);
  color: var(--text-white);
  border-color: rgba(0, 245, 171, 0.42);
}

.payment-btn-fallback:hover,
.payment-btn-fallback:focus-visible {
  background: rgba(0, 245, 171, 0.18);
  border-color: var(--brand-mint);
}

.payment-btn-sub {
  width: 100%;
}

.payment-methods-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.payment-methods-logos span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.method-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.method-badge.webpay {
  border-color: rgba(230, 20, 60, 0.3);
  color: #ff3366;
}

.method-badge.redcompra {
  display: inline-flex;
  flex-direction: row;
  gap: 0;
  padding-top: 3px;
  border-top: 1px solid rgba(0, 168, 204, 0.3);
  border-color: rgba(0, 168, 204, 0.3);
  color: #00e5ff;
}

@media (max-width: 768px) {
  .payment-cards-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .payment-card {
    padding: 35px 25px;
    border-radius: 20px;
  }

  .payment-card-price .amount {
    font-size: 2.8rem;
  }

  .clinical-intake-note {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    margin-top: 26px;
  }

  .clinical-intake-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.55rem;
  }
}

/* ==========================================================================
   8. Digital Scheduler Widget on Success Page
   ========================================================================== */
.booking-widget-section {
  margin: 30px 0;
  width: 100%;
}

.booking-widget-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.booking-widget-wrapper:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 25px -5px rgba(0, 229, 255, 0.1), var(--card-shadow);
}

.booking-fallback-card {
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 18px;
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 12px 30px rgba(2, 6, 12, 0.22);
  text-align: center;
}

.booking-fallback-card h2 {
  margin-bottom: 10px;
  color: var(--text-white);
  font-size: 1.35rem;
}

.booking-fallback-card p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--text-muted);
  line-height: 1.55;
}

.booking-fallback-card .btn-success-whatsapp {
  max-width: 360px;
  margin: 0 auto;
}

#booking-widget-container {
  width: 100%;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  #booking-widget-container {
    min-height: 600px;
  }
}

/* ==========================================================================
   9. Test Mode Modal Notice
   ========================================================================== */
.test-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 8, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.test-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.test-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  padding: 35px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--card-shadow);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-main);
  text-align: left;
}

.test-modal-overlay.active .test-modal-content {
  transform: scale(1);
}

.test-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.test-modal-icon {
  width: 32px;
  height: 32px;
  stroke: #ff9800;
  flex-shrink: 0;
}

.test-modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
}

.test-modal-body p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.test-modal-service-details {
  background: rgba(0, 229, 255, 0.04);
  border-left: 4px solid var(--brand-cyan);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-modal-service-details strong {
  color: var(--text-white);
  font-size: 1.05rem;
}

.test-modal-service-details span {
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 0.95rem;
}

.test-modal-instructions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.test-modal-instructions strong {
  display: block;
  color: var(--text-white);
  margin-bottom: 6px;
}

.test-modal-instructions code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--brand-mint);
}

.test-modal-footer {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
}

.test-modal-footer .btn {
  padding: 10px 24px;
}

/* ==========================================================================
   10. Header WhatsApp CTA Button Customization
   ========================================================================== */
.main-navbar .nav-cta {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16) 0%, rgba(0, 245, 171, 0.1) 100%) !important;
  color: #e8feff !important;
  border: 1.5px solid rgba(0, 245, 171, 0.42) !important;
  border-radius: 14.64px !important;
  padding: 12.2px 29.28px !important;
  /* El menú y su CTA usan la misma familia; la marca conserva su tipografía propia. */
  font-family: var(--font-body);
  font-size: 1.1224rem !important;
  font-weight: 700 !important;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9.76px;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.main-navbar .site-version-badge {
  font-family: var(--font-body);
}

/* En Servicios, el título ya identifica la sección: eliminamos la etiqueta redundante
   y recuperamos espacio sin reducir ni las tarjetas ni la tipografía del contenido. */
#servicios .section-header {
  margin-bottom: 24px;
}

.main-navbar .nav-cta svg {
  width: 19.52px;
  height: 19.52px;
  flex: 0 0 19.52px;
}

.main-navbar .nav-cta:hover,
.main-navbar .nav-cta:focus-visible {
  background: var(--gradient-primary) !important;
  color: #020813 !important;
  border-color: rgba(0, 245, 171, 0.95) !important;
  text-shadow: none;
  box-shadow: 0 0 26px rgba(0, 245, 171, 0.46), 0 0 42px rgba(0, 229, 255, 0.22) !important;
  transform: translateY(-2px) scale(1.02);
}

@media (max-width: 1500px) and (min-width: 1361px) {
  .nav-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-menu {
    gap: 6px;
  }

  .nav-link {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .nav-container {
    padding: 10px 18px;
  }

  .nav-logo {
    width: 60px;
    height: 60px;
  }

  .nav-brand-text {
    font-size: 1.45rem;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-link {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 0.88rem;
  }

  .main-navbar .nav-cta {
    padding: 10.98px 17.08px !important;
    font-size: 1.0248rem !important;
  }
}


/* ==========================================================================
   11. Booking Loading Skeleton on Success Page
   ========================================================================== */
.booking-loading-skeleton {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: opacity 0.4s ease;
}

.shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer-pulse 1.6s infinite linear;
  border-radius: 8px;
}

@keyframes shimmer-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.skeleton-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.skeleton-title {
  width: 180px;
  height: 20px;
}

.skeleton-subtitle {
  width: 240px;
  height: 14px;
}

.skeleton-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .skeleton-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.skeleton-calendar {
  height: 300px;
}

.skeleton-times {
  height: 300px;
}

.skeleton-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 10px;
}

/* Agenda de citas en línea */
#reserva-hora {
  scroll-margin-top: var(--nav-scroll-offset);
}

#reserva-hora .section-header {
  margin-bottom: 22px;
}

.booking-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(4, 16, 30, 0.94), rgba(2, 6, 12, 0.98));
  box-shadow: 0 18px 45px rgba(0, 229, 255, 0.08);
  overflow: hidden;
}

.booking-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(0, 255, 179, 0.2);
  border-radius: 999px;
  background: rgba(0, 255, 179, 0.06);
  color: var(--brand-mint);
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.booking-whatsapp-link:hover,
.booking-whatsapp-link:focus-visible {
  color: var(--brand-cyan);
  border-color: rgba(0, 229, 255, 0.42);
  background: rgba(0, 229, 255, 0.1);
}

#bookingWidget {
  position: relative;
  min-height: 600px;
  background: var(--bg-card);
}

.calendar-loading-message,
.calendar-fallback-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  color: var(--text-muted);
  text-align: center;
}

.calendar-loading-message {
  flex-direction: row;
  grid-column: 1 / -1;
}

.calendar-fallback-card h3 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-title);
}

.calendar-fallback-card p {
  margin: 0 0 10px;
  max-width: 470px;
  line-height: 1.55;
}
/* ── Icono del calendario en fallback de agenda ── */
.calendar-fallback-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(123,97,255,0.12));
  border: 1.5px solid rgba(0,229,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  margin-bottom: 4px;
}

/* Nota inferior con link a ficha previa */
.calendar-fallback-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.calendar-fallback-note a {
  color: var(--brand-cyan);
  text-decoration: none;
  font-weight: 600;
}
.calendar-fallback-note a:hover {
  text-decoration: underline;
}

/* Fallback inline dentro del grid de horas (estado error de conectividad) */
.booking-fallback-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.booking-fallback-inline > svg {
  color: var(--brand-cyan);
  opacity: 0.7;
}
.booking-fallback-inline p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 340px;
  line-height: 1.5;
}
.booking-fallback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.booking-retry-inline {
  min-width: 110px;
}


.booking-app {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  min-height: 600px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 229, 255, 0.1), transparent 35%),
    linear-gradient(145deg, rgba(5, 22, 39, 0.97), rgba(3, 10, 18, 0.99));
}

.booking-picker,
.booking-form {
  padding: 30px;
}

.booking-picker {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-form {
  background: rgba(1, 7, 13, 0.48);
}

.booking-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.booking-step-number {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 50%;
  color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.08);
  font-family: var(--font-title);
  font-weight: 800;
}

.booking-step-heading h3,
.booking-time-heading h4 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-title);
}

.booking-step-heading h3 {
  font-size: 1.25rem;
}

.booking-step-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.booking-date-strip {
  display: flex;
  gap: 12px;
  padding: 16px 12px 20px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.4) transparent;
  scroll-snap-type: x proximity;
}

.booking-date-button {
  position: relative;
  flex: 0 0 74px;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 7px 14px 7px;
  border: 2px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.booking-date-button:hover:not(:disabled):not(.is-selected),
.booking-date-button:focus-visible:not(.is-selected) {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.85);
  color: var(--text-main);
  background: rgba(0, 229, 255, 0.08);
}

.booking-date-button.is-selected {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
  color: #020813;
  background: linear-gradient(150deg, var(--brand-cyan), var(--brand-mint));
}

.booking-date-button.is-selected strong {
  color: #020813;
}

.booking-date-button.is-selected .booking-date-weekday,
.booking-date-button.is-selected .booking-date-month {
  color: #020813;
  opacity: 0.85;
}

.booking-date-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Indicador visual para el día actual (hoy) */
.booking-date-button.is-today:not(.is-selected) {
  border-width: 3px;
  border-color: var(--brand-mint);
  background: rgba(0, 245, 171, 0.08);
  padding: 9px 6px 13px 6px; /* Compensamos 1px por el borde de 3px para evitar deformaciones */
}

.booking-date-button.is-today::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-mint);
}

.booking-date-button.is-selected.is-today::after {
  background: #020813;
}

/* Bordes rojos para errores de validación de campos en reserva */
.booking-field.has-booking-error input {
  border-color: #ff8f9a !important;
  background: rgba(255, 143, 154, 0.05) !important;
  box-shadow: 0 0 10px rgba(255, 143, 154, 0.15) !important;
}

.booking-field-error,
.booking-consent-error {
  color: #ff8f9a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.booking-field-error[hidden],
.booking-consent-error[hidden] {
  display: none;
}

/* Bordes rojos para cuando falta seleccionar la hora */
.booking-time-grid.has-booking-error .booking-time-button {
  border-color: #ff8f9a !important;
  background: rgba(255, 143, 154, 0.05) !important;
  box-shadow: 0 0 8px rgba(255, 143, 154, 0.2) !important;
}

.booking-date-button strong {
  color: inherit;
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.booking-date-weekday,
.booking-date-month {
  font-size: 0.76rem;
  text-transform: capitalize;
}

.booking-time-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
}

.booking-time-heading h4 {
  font-size: 1rem;
  text-transform: capitalize;
}

.booking-retry-button {
  border: 0;
  color: var(--brand-cyan);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.booking-time-grid {
  display: grid;
  grid-template-columns: repeat(var(--booking-time-columns, 3), minmax(0, 1fr));
  gap: 10px;
  min-height: 190px;
  align-content: start;
}

.booking-time-button {
  min-height: 44px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 12px;
  color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.045);
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.booking-time-button:hover,
.booking-time-button:focus-visible,
.booking-time-button.is-selected {
  transform: translateY(-1px);
  border-color: var(--brand-mint);
  color: #021018;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-mint));
  box-shadow: 0 7px 22px rgba(0, 229, 255, 0.18);
}

.booking-empty-state {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.booking-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 245, 171, 0.24);
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(0, 245, 171, 0.055);
  font-size: 0.86rem;
}

.booking-selection[hidden] {
  display: none;
}

.booking-selection strong {
  color: var(--brand-mint);
  text-align: right;
}

.booking-field,
.booking-channel-group {
  display: grid;
  gap: 7px;
  margin: 0 0 15px;
}

.booking-field-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.booking-field > span,
.booking-channel-group legend {
  color: #c7d6e2;
  font-size: 0.82rem;
  font-weight: 700;
}

.booking-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  outline: none;
  color: var(--text-main);
  background: rgba(2, 10, 18, 0.9);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-field input:focus {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.booking-channel-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border: 0;
}

.booking-channel-group legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
}

.booking-channel-option {
  position: relative;
  cursor: pointer;
}

.booking-channel-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-channel-option span {
  display: grid;
  place-items: center;
  min-height: 55px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.booking-channel-option input:focus-visible + span,
.booking-channel-option input:checked + span {
  border-color: rgba(0, 229, 255, 0.56);
  color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.09);
}

.booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.booking-consent input {
  margin-top: 2px;
  accent-color: var(--brand-cyan);
}

.booking-consent.has-booking-error {
  color: #ff8f9a;
}

.booking-consent.has-booking-error input {
  outline: 2px solid rgba(255, 143, 154, 0.33);
  outline-offset: 2px;
}

.booking-honeypot,
.booking-response-frame,
.booking-post-form {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.booking-form-status {
  min-height: 21px;
  margin: 12px 0 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.booking-form-status[data-status="error"] {
  color: #ffffff !important;
  background: rgba(225, 29, 72, 0.28) !important;
  border: 2px solid rgba(244, 63, 94, 0.9) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.45) !important;
  display: block !important;
  margin: 16px 0 !important;
  line-height: 1.5 !important;
}

@keyframes bookingErrorPulse {
  0% {
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.8), 0 0 18px rgba(244, 63, 94, 0.35);
    border-color: #f43f5e !important;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.95), 0 0 28px rgba(244, 63, 94, 0.55);
    border-color: #fb7185 !important;
  }
  100% {
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.8), 0 0 18px rgba(244, 63, 94, 0.35);
    border-color: #f43f5e !important;
  }
}

.booking-calendar-card.has-booking-error,
.booking-selection.has-booking-error,
.booking-time-grid.has-booking-error,
.booking-date-strip.has-booking-error {
  border: 2px solid #f43f5e !important;
  border-radius: 12px !important;
  animation: bookingErrorPulse 0.9s ease-in-out 3 !important;
  background: rgba(244, 63, 94, 0.08) !important;
}

.booking-form-status[data-status="loading"] {
  color: var(--brand-cyan);
}

.booking-form-status[data-status="hint"] {
  color: #f9e9c4 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.58) !important;
  border-radius: 12px !important;
  padding: 9px 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.16) !important;
  display: block !important;
  margin: 10px 0 !important;
  line-height: 1.35 !important;
}

.booking-form-status[data-status="ready"] {
  color: var(--brand-mint);
}

.booking-submit {
  width: 100%;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-submit:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 4px 15px rgba(0, 229, 255, 0.25);
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-mint) 100%) !important;
  color: #01070e !important;
  border-color: var(--brand-cyan);
  font-weight: 800;
}

.booking-submit:not(:disabled):hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.8), 0 6px 20px rgba(0, 229, 255, 0.35);
  filter: brightness(1.15);
}

.booking-submit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.booking-confirmation-card {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 245, 171, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(5, 22, 39, 0.97), rgba(3, 10, 18, 0.99));
}

.booking-confirmation-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 245, 171, 0.5);
  border-radius: 50%;
  color: #021018;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-mint));
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(0, 245, 171, 0.2);
}

.booking-confirmation-kicker {
  color: var(--brand-mint);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.booking-confirmation-card h3 {
  margin: 4px 0 0;
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-transform: capitalize;
}

.booking-confirmation-card > strong {
  color: var(--brand-cyan);
  font-family: var(--font-title);
  font-size: 1.6rem;
}

.booking-confirmation-card > p {
  max-width: 500px;
  margin: 8px 0 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.booking-confirmation-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-confirmation-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7);
  filter: brightness(1.15);
}

.booking-confirmation-actions .btn-secondary:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.booking-confirmation-actions .booking-whatsapp-link:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 30px rgba(0, 255, 171, 0.6);
  border-color: var(--brand-mint);
  background: rgba(0, 255, 171, 0.15);
  color: var(--text-white);
}

@media (max-width: 900px) {
  .booking-app {
    grid-template-columns: 1fr;
  }

  .booking-picker {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 600px) {
  .booking-panel {
    border-radius: 16px;
  }

  .booking-picker,
  .booking-form {
    padding: 22px 17px;
  }

  .booking-field-row,
  .booking-channel-group {
    grid-template-columns: 1fr;
  }

  .booking-channel-group legend {
    grid-column: 1;
  }

  .booking-channel-option span {
    min-height: 44px;
  }

  .booking-selection {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-selection strong {
    text-align: left;
  }
}

/* Identidad DG unificada: mismo contraste, expansión y halo proporcional. */
.nav-logo,
.doctor-badge-logo,
.footer-logo {
  --dg-logo-size: 68px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  filter: brightness(1.1) contrast(1.12) saturate(1.02);
  box-shadow:
    0 0 0 1px rgba(125, 255, 255, 0.18),
    0 0 calc(var(--dg-logo-size) * 0.16) rgba(0, 229, 255, 0.42),
    0 0 calc(var(--dg-logo-size) * 0.30) rgba(0, 229, 255, 0.18);
  transition: transform 0.28s ease, filter 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  transform-origin: center;
  cursor: pointer;
  will-change: transform, filter, box-shadow;
}

.nav-logo {
  --dg-logo-size: 56px;
}

.doctor-badge-logo {
  --dg-logo-size: 120px;
}

.nav-logo:hover,
.nav-brand:hover .nav-logo,
.doctor-badge-logo:hover,
.doctor-badge-card:hover .doctor-badge-logo,
.footer-logo:hover,
.footer-brand:hover .footer-logo {
  border-color: rgba(0, 229, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(125, 255, 255, 0.52),
    0 0 calc(var(--dg-logo-size) * 0.24) rgba(0, 229, 255, 0.76),
    0 0 calc(var(--dg-logo-size) * 0.48) rgba(0, 229, 255, 0.34);
}

.nav-logo:hover,
.nav-brand:hover .nav-logo,
.doctor-badge-logo:hover,
.doctor-badge-card:hover .doctor-badge-logo,
.footer-logo:hover,
.footer-brand:hover .footer-logo {
  transform: scale(1.11);
  filter: brightness(1.22) contrast(1.22) saturate(1.05);
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .nav-logo {
    --dg-logo-size: 60px;
  }
}

@media (max-width: 1180px) {
  .nav-logo {
    --dg-logo-size: 56px;
  }
}

@media (max-width: 900px) {
  .doctor-badge-logo {
    --dg-logo-size: 104px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    --dg-logo-size: 48px;
  }
}

@media (max-width: 420px) {
  .nav-logo {
    --dg-logo-size: 50px;
  }
}

/* ==========================================================================
   REVISIÓN VISUAL v1.6.0 — LEGIBILIDAD, TACTO Y PANTALLAS PEQUEÑAS
   ========================================================================== */
.nav-toggle,
.nav-link,
.footer-links a,
.footer-contact a,
.blog-card-link,
.back-home-link {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
  .hero-section {
    padding-bottom: 46px;
  }

  .hero-image-wrapper {
    min-height: 430px;
  }

  .hero-portrait-image {
    height: 430px;
  }

  .about-image-wrapper,
  .about-info,
  .doctor-badge-card,
  .academic-stamps,
  .stamp-item {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .services-section,
  .how-works-section,
  .about-section,
  .booking-payment-section,
  .faq-section,
  .testimonials-section,
  .cta-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-section {
    padding-top: 104px;
    padding-bottom: 32px;
  }

  .hero-container {
    gap: 18px;
  }

  .hero-image-wrapper {
    min-height: 390px;
  }

  .hero-portrait-image {
    height: 390px;
    max-width: 290px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-menu.active {
    gap: 6px;
    padding: 16px 20px 22px;
  }

  .nav-menu.active .nav-link,
  .nav-menu.active .nav-cta,
  .footer-links a,
  .footer-contact a,
  .blog-card-link,
  .back-home-link {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .about-grid {
    gap: 30px;
  }

  .doctor-badge-card {
    padding: 34px 24px;
  }

  .doctor-badge-logo {
    width: 104px;
    height: 104px;
  }

  .stamp-item {
    padding: 14px 16px;
  }

  .stamp-logo,
  .minsal-stamp-logo {
    height: 92px !important;
    max-width: 125px !important;
  }

  .blog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 28px !important;
  }

  .blog-filter-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .blog-grid {
    gap: 20px;
    margin-bottom: 40px;
  }

  .blog-card-image-wrapper {
    height: 155px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card-meta {
    margin-bottom: 10px;
  }

  .blog-card-title {
    font-size: 1.15rem;
    margin-bottom: 9px;
  }

  .blog-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 12px;
  }

  .article-reader-container {
    padding-top: calc(var(--nav-scroll-offset) + 16px);
  }

  .article-body {
    font-size: 1.02rem;
    line-height: 1.72;
  }
}

@media (max-width: 420px) {
  .container,
  .hero-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-container {
    padding-left: 12px;
    padding-right: 58px;
  }

  .nav-logo {
    width: 50px;
    height: 50px;
  }

  .nav-brand-text {
    max-width: calc(100vw - 118px);
    font-size: 1.04rem;
  }

  .hero-image-wrapper {
    min-height: 360px;
  }

  .hero-glow-1,
  .hero-glow-2 {
    display: none;
  }

  .hero-portrait-image {
    height: 360px;
    max-width: min(275px, 92vw);
  }

  .doctor-badge-card {
    width: 100%;
    padding: 28px 16px;
    border-radius: 18px;
  }

  .doctor-badge-meta span {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .stamp-item {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .stamp-item > div,
  .stamp-item strong,
  .stamp-item span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .intake-mode-option-grid {
    grid-template-columns: 1fr !important;
  }

  .intake-mode-option {
    width: 100%;
    min-width: 0;
  }

  .intake-mode-option > div {
    min-width: 0;
  }

  .intake-mode-option strong,
  .intake-mode-option span {
    overflow-wrap: anywhere;
  }

  .payment-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  #reserva-pago .payment-card {
    width: 100%;
    min-width: 0;
  }

  #reserva-pago .payment-card-price {
    min-width: 0;
    flex-wrap: wrap;
  }

  .blog-filters {
    grid-template-columns: 1fr;
  }

  .article-reader-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-author-card,
  .article-cta-box {
    padding: 22px 18px;
  }
}

@media (max-width: 340px) {
  .hero-tag,
  .hero-title,
  .hero-subtitle,
  .hero-whatsapp-btn,
  .hero-features {
    max-width: 100%;
  }

  .whatsapp-number {
    font-size: 1.16rem;
  }

  .doctor-badge-card h3 {
    font-size: 1.25rem;
  }
}

.spinner-shimmer {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 229, 255, 0.2);
  border-top-color: var(--brand-cyan);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ocultar el wrapper por defecto mientras carga */
.booking-widget-wrapper {
  opacity: 0;
  display: none;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   11. BLOG DE SALUD Y RESPUESTAS FAQ - ESTILOS NEÓN
   ========================================================================== */

/* Blog Hero */
#blog,
#articulos {
  scroll-margin-top: var(--nav-scroll-offset) !important;
}

.blog-hero {
  padding: calc(var(--nav-scroll-offset) + 10px) 0 40px 0;
  text-align: center;
  position: relative;
}

/* Filtros del Blog */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.blog-filter-btn {
  background: rgba(4, 16, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 26px;
  border-radius: 50px;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.blog-filter-btn.active {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-mint) 100%);
  border-color: transparent;
  color: #02060c;
  box-shadow: 0 0 20px rgba(0, 245, 171, 0.3);
}

/* Grid del Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Tarjeta del Blog */
.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-mint));
  opacity: 0;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.12);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(2, 6, 12, 0.4);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-placeholder-icon {
  font-size: 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  color: rgba(0, 229, 255, 0.55);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  transition: var(--transition-smooth);
}

svg.blog-card-placeholder-icon {
  stroke: rgba(0, 229, 255, 0.55);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.2));
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-placeholder-icon {
  color: rgba(0, 229, 255, 0.85);
  text-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
  transform: scale(1.08);
}

.blog-card:hover svg.blog-card-placeholder-icon {
  stroke: rgba(0, 229, 255, 0.85);
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.5));
  transform: scale(1.08);
}

.blog-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.blog-card-category {
  color: var(--brand-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-white);
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-title {
  color: var(--brand-cyan);
}

.blog-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-mint);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--text-white);
  gap: 10px;
}

/* Lector de Artículos */
.intake-main,
.legal-main {
  padding-top: var(--nav-scroll-offset);
}

.intake-hero,
.legal-hero {
  padding: 35px 0 20px 0;
  text-align: center;
}

.article-reader-container {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-scroll-offset) + 10px) 24px 45px 24px;
}

.article-header {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 30px;
}

.article-category-badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  color: var(--brand-cyan);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.article-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.article-body p {
  margin-bottom: 25px;
}

.article-body h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 45px;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  border-left: 4px solid var(--brand-cyan);
  padding-left: 15px;
}

.article-body h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 35px;
  margin-bottom: 15px;
}

.article-body ul, .article-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  background: rgba(4, 16, 30, 0.4);
  border-left: 4px solid var(--brand-mint);
  padding: 20px 25px;
  border-radius: 0 16px 16px 0;
  margin: 35px 0;
  font-style: italic;
  color: #cbd5e1;
}

.article-body strong {
  color: var(--brand-cyan);
}

/* Caja de Autoría */
.article-author-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 24px;
  padding: 32px;
  margin-top: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 26px;
  align-items: center;
}

@media (max-width: 600px) {
  .article-author-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.article-author-img-wrapper {
  width: 95px;
  height: 95px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition-smooth);
}

.article-author-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.55));
  transition: var(--transition-smooth);
}

.article-author-card:hover .article-author-img-wrapper img {
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.9)) drop-shadow(0 0 45px rgba(0, 229, 255, 0.45));
  transform: scale(1.08);
}

.article-author-info h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-white);
}

.article-author-sub {
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.article-author-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.article-author-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.article-author-meta span {
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* CTA de lectura del artículo */
.article-cta-box {
  background: linear-gradient(135deg, rgba(4, 16, 30, 0.9) 0%, rgba(0, 229, 255, 0.04) 100%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin: 45px 0;
  text-align: center;
}

.article-cta-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-white);
}

.article-cta-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Responsive del Blog Grid */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding-top: calc(var(--nav-scroll-offset) + 12px);
  }
}

/* Estilos específicos para nuevos iconos WebP de blog con resplandor neón */
.blog-card-icon-img {
  height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-icon-img {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.7));
}

.blog-hero .section-subtitle {
  font-size: 1.15rem;
  max-width: 760px;
  margin: 15px auto 0 auto;
  line-height: 1.6;
}

/* Blog: compacta el ritmo vertical tras retirar la etiqueta superior. */
.legal-main .blog-hero {
  padding: calc(var(--nav-scroll-offset) - 63px) 0 25px;
}

.legal-main .blog-filters {
  margin-bottom: 35px;
}

@media (max-width: 768px) {
  .legal-main .blog-hero {
    padding-top: calc(var(--nav-scroll-offset) - 20px);
  }
}

/* Cohesión visual v1.6.0: replica el lenguaje de la agenda */
#servicios .services-grid {
  gap: 20px;
}

#servicios .service-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-color: rgba(0, 229, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.09), transparent 38%),
    linear-gradient(145deg, rgba(5, 22, 39, 0.97), rgba(3, 10, 18, 0.99));
}

#servicios .service-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-mint));
  opacity: 0.62;
}

#servicios .service-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(0, 229, 255, 0.66) !important;
  box-shadow: 0 18px 38px rgba(0, 229, 255, 0.11) !important;
}

#servicios .service-icon-wrapper {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-width: 1px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.12), rgba(0, 245, 171, 0.05));
}

#servicios .service-icon-img {
  width: 40px;
  height: 40px;
}

#servicios .service-card:hover .service-icon-wrapper {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(0, 229, 255, 0.99);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.66);
}

#como-funciona .timeline {
  gap: 16px;
}

#como-funciona .section-header {
  padding-top: 12px;
}

#como-funciona .section-tag {
  margin-bottom: 18px;
}

#como-funciona .section-title {
  margin-bottom: 20px;
}

#como-funciona .timeline::after {
  display: none;
}

#como-funciona .timeline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 235px;
  padding: 24px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.08), transparent 40%),
    linear-gradient(145deg, rgba(5, 22, 39, 0.96), rgba(3, 10, 18, 0.98));
  text-align: left;
  transition: var(--transition-smooth);
}

#como-funciona .timeline-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(0, 229, 255, 0.66);
  box-shadow: 0 18px 38px rgba(0, 229, 255, 0.22);
}

#como-funciona .timeline-number {
  width: 38px;
  height: 38px;
  margin: 0 0 32px;
  border-width: 1px;
  border-color: rgba(0, 229, 255, 0.48);
  background: rgba(0, 229, 255, 0.08);
  font-size: 1rem;
  box-shadow: none;
}

#como-funciona .timeline-item:hover .timeline-number {
  transform: scale(1.11);
  border-color: var(--brand-cyan);
  box-shadow: var(--glow-shadow);
}

#como-funciona .timeline-content {
  padding: 0;
}

#como-funciona .timeline-title {
  min-height: 3.1rem;
  margin-bottom: 14px;
  line-height: 1.25;
}

#como-funciona .timeline-desc {
  line-height: 1.55;
}

#reserva-pago .payment-cards-grid {
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 769px) {
  #reserva-pago.booking-payment-section {
    padding-top: 70px;
  }
}

#reserva-pago .section-header {
  margin-bottom: 24px;
}

#reserva-pago .payment-card {
  padding: 26px 32px;
  border-color: rgba(0, 229, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(5, 22, 39, 0.97), rgba(3, 10, 18, 0.99));
}

#reserva-pago .payment-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(0, 229, 255, 0.66);
  box-shadow: 0 18px 38px rgba(0, 229, 255, 0.22);
}

#reserva-pago .payment-card-title,
#reserva-pago .payment-card-description {
  text-align: left;
}

#reserva-pago .payment-card-title {
  min-height: 3.8rem;
  margin-top: 0;
  margin-bottom: 16px;
}

#reserva-pago .payment-card-price {
  justify-content: flex-start;
  margin-bottom: 20px;
}

#reserva-pago .payment-card-description {
  min-height: 4.3rem;
  margin-bottom: 12px;
}

#reserva-pago .payment-actions {
  margin-bottom: 0;
}

#reserva-pago .payment-btn-main {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.64);
  color: #ecfeff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

#reserva-pago .clinical-intake-note {
  position: relative;
  border-radius: var(--dg-radius-22);
  background:
    radial-gradient(circle at 0 0, rgba(0, 245, 171, 0.08), transparent 42%),
    rgba(4, 16, 30, 0.9);
  transition: transform var(--dg-motion-base), border-color var(--dg-motion-base), box-shadow var(--dg-motion-base);
}

#reserva-pago .clinical-intake-link {
  margin-top: 14px;
  border-color: rgba(0, 245, 171, 0.82);
  background: rgba(0, 245, 171, 0.2);
  color: #effff9;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 245, 171, 0.28), 0 7px 18px rgba(0, 0, 0, 0.2);
}

@media (min-width: 769px) {
  #reserva-pago .clinical-intake-note {
    margin-top: 20px;
    padding: 20px 24px;
  }

  #reserva-pago .clinical-intake-note > div:last-child {
    padding-right: 210px;
  }

  #reserva-pago .clinical-intake-link {
    position: absolute;
    top: 8px;
    right: 24px;
    margin-top: 0;
  }
}

#reserva-pago .clinical-intake-icon {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Los anclajes muestran el encabezado del contenido, no solo el borde de la seccion. */
#servicios,
#como-funciona,
#sobre-mi,
#reserva-pago,
#faqs,
#testimonios,
#blog-preview {
  scroll-margin-top: calc(var(--nav-scroll-offset) + var(--anchor-content-gap) - 84px) !important;
}

#reserva-hora {
  scroll-margin-top: calc(var(--nav-scroll-offset) + var(--anchor-content-gap) - 50px) !important;
}

@media (max-width: 900px) {
  #servicios .services-grid,
  #como-funciona .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #como-funciona .timeline-item {
    min-height: 210px;
  }
}

@media (max-width: 768px) {
  #servicios,
  #como-funciona,
  #sobre-mi,
  #reserva-pago,
  #faqs,
  #testimonios,
  #blog-preview {
    scroll-margin-top: calc(var(--nav-scroll-offset) + var(--anchor-content-gap) - 64px) !important;
  }
}

@media (max-width: 600px) {
  #servicios .services-grid,
  #como-funciona .timeline {
    grid-template-columns: 1fr;
  }

  #servicios .service-card,
  #como-funciona .timeline-item,
  #reserva-pago .payment-card {
    padding: 22px;
  }

  #como-funciona .timeline-item,
  #como-funciona .timeline-title,
  #reserva-pago .payment-card-title,
  #reserva-pago .payment-card-description {
    min-height: 0;
  }

}

/* ==========================================================================
   SISTEMA VISUAL DG v1.0 - CTAs, blog y ficha previa
   ========================================================================== */
.dg-final-whatsapp {
  min-height: var(--dg-fib-55);
  margin-bottom: var(--dg-space-33);
  padding: var(--dg-fib-13) var(--dg-fib-34);
  border: 1px solid var(--dg-mint-66);
  border-radius: var(--dg-radius-22);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.94), rgba(0, 245, 171, 0.94));
  box-shadow: 0 0 var(--dg-space-22) var(--dg-mint-22), 0 6px 22px rgba(0, 0, 0, 0.22);
  animation: dg-whatsapp-pulse 3300ms ease-in-out infinite alternate;
  transform-origin: center;
}

.dg-final-whatsapp svg,
.blog-all-articles,
.blog-filter-btn,
.clinical-intake-link,
.intake-mode-option,
.intake-section,
.intake-preview-actions .copy-send-btn {
  transition: transform var(--dg-motion-base), border-color var(--dg-motion-base), box-shadow var(--dg-motion-base), background var(--dg-motion-base), color var(--dg-motion-base), filter var(--dg-motion-base);
}

@keyframes dg-whatsapp-pulse {
  from { box-shadow: 0 0 var(--dg-space-11) var(--dg-mint-22), 0 6px 22px rgba(0, 0, 0, 0.22); }
  to { box-shadow: 0 0 var(--dg-space-33) var(--dg-mint-33), 0 11px 22px var(--dg-cyan-22); }
}

.blog-filters {
  gap: var(--dg-space-11);
  margin-bottom: var(--dg-fib-55);
}

.blog-filter-btn {
  min-height: var(--dg-fib-55);
  padding: var(--dg-space-11) var(--dg-space-22);
  border: 1px solid var(--dg-cyan-22);
  border-radius: var(--dg-radius-34);
}

.blog-filter-btn.active,
.blog-filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-mint) 100%) !important;
  border-color: transparent !important;
  color: #02060c !important;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 245, 171, 0.4);
}

.blog-filter-btn.active:hover,
.blog-filter-btn[aria-pressed="true"]:hover,
.blog-filter-btn.active:focus-visible,
.blog-filter-btn[aria-pressed="true"]:focus-visible {
  color: #02060c !important;
}

.blog-all-actions {
  margin-top: var(--dg-fib-34);
  text-align: center;
}

.blog-all-articles {
  min-height: var(--dg-fib-55);
  padding: var(--dg-fib-13) var(--dg-fib-34);
  border-color: var(--dg-cyan-33);
  border-radius: var(--dg-radius-22);
  box-shadow: 0 0 var(--dg-space-11) var(--dg-cyan-11);
}

.intake-mode-group {
  margin-bottom: var(--dg-space-22);
}

.intake-mode-question {
  display: block;
  margin-bottom: var(--dg-space-11);
  color: #e2f6f8;
  font-size: 0.95rem;
  font-weight: 700;
}

.intake-mode-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dg-fib-13);
  margin-bottom: var(--dg-fib-13);
}

.intake-mode-option {
  display: flex;
  align-items: center;
  gap: var(--dg-space-11);
  margin: 0;
  padding: var(--dg-fib-13) var(--dg-fib-21);
  border: 1px solid var(--dg-cyan-22);
  border-radius: var(--dg-radius-11);
  background: rgba(13, 36, 56, 0.66);
  cursor: pointer;
}

.intake-mode-option input {
  width: var(--dg-fib-21);
  height: var(--dg-fib-21);
  flex: 0 0 auto;
  accent-color: var(--brand-turquoise);
  cursor: pointer;
}

.intake-mode-option strong,
.intake-mode-option span {
  display: block;
  text-align: left;
}

.intake-mode-option strong {
  color: #e2f6f8;
  font-size: 0.9rem;
}

.intake-mode-option span {
  margin-top: var(--dg-space-3);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.intake-mode-option:has(input:checked) {
  border-color: var(--dg-cyan-99);
  background: var(--dg-cyan-11);
  box-shadow: 0 0 var(--dg-space-22) var(--dg-cyan-22);
}

@media (hover: hover) and (pointer: fine) {
  .dg-final-whatsapp:hover,
  .dg-final-whatsapp:focus-visible {
    animation: none;
    transform: translateY(var(--dg-lift-6)) scale(var(--dg-scale-3));
    border-color: var(--dg-mint-99);
    box-shadow: 0 0 var(--dg-space-33) var(--dg-mint-33), 0 11px 22px var(--dg-cyan-22);
  }

  .dg-final-whatsapp:hover svg,
  .dg-final-whatsapp:focus-visible svg {
    transform: scale(var(--dg-scale-11));
    filter: drop-shadow(0 0 var(--dg-space-11) var(--dg-mint-66));
  }

  .blog-all-articles:hover,
  .blog-all-articles:focus-visible,
  .blog-filter-btn:hover,
  .blog-filter-btn:focus-visible,
  .clinical-intake-link:hover,
  .clinical-intake-link:focus-visible {
    transform: translateY(var(--dg-lift-3)) scale(var(--dg-scale-3));
    border-color: var(--dg-cyan-66);
    box-shadow: 0 0 var(--dg-space-22) var(--dg-cyan-22);
  }

  .blog-filter-btn:hover,
  .blog-filter-btn:focus-visible {
    color: var(--brand-cyan);
  }

  .dg-final-whatsapp:active,
  .blog-all-articles:active,
  .blog-filter-btn:active,
  .clinical-intake-link:active {
    transform: translateY(0) scale(var(--dg-scale-press));
  }

  #reserva-pago .clinical-intake-note:hover,
  #reserva-pago .clinical-intake-note:focus-within {
    z-index: 2;
    transform: translateY(var(--dg-lift-6)) scale(var(--dg-scale-3));
    border-color: var(--dg-mint-66);
    box-shadow: 0 18px 36px var(--dg-mint-22), 0 0 24px var(--dg-cyan-11);
  }

  #reserva-pago .clinical-intake-note:hover .clinical-intake-icon,
  #reserva-pago .clinical-intake-note:focus-within .clinical-intake-icon {
    transform: scale(var(--dg-scale-11));
    box-shadow: 0 0 24px var(--dg-mint-66);
  }

  .intake-mode-option:hover,
  .intake-mode-option:focus-within {
    transform: translateY(var(--dg-lift-3)) scale(var(--dg-scale-3));
    border-color: var(--dg-cyan-66);
    box-shadow: 0 0 var(--dg-space-11) var(--dg-cyan-11);
  }

  .intake-section:hover {
    transform: translateY(var(--dg-lift-3));
    border-color: var(--dg-cyan-33);
    box-shadow: 0 0 var(--dg-space-11) var(--dg-cyan-11), var(--card-shadow);
  }

  .intake-section:focus-within {
    transform: translateY(var(--dg-lift-3));
    border-color: var(--dg-cyan-66);
    box-shadow: 0 0 var(--dg-space-22) var(--dg-cyan-22), var(--card-shadow);
  }

  .intake-preview-actions .copy-send-btn:hover,
  .intake-preview-actions .copy-send-btn:focus-visible {
    transform: translateY(var(--dg-lift-3)) scale(var(--dg-scale-3));
    border-color: var(--dg-mint-99);
    box-shadow: 0 0 var(--dg-space-33) var(--dg-mint-33), 0 11px 22px rgba(0, 0, 0, 0.22);
  }

  #reserva-pago .clinical-intake-link:hover,
  #reserva-pago .clinical-intake-link:focus-visible {
    transform: translateY(var(--dg-lift-3)) scale(var(--dg-scale-3));
    border-color: var(--brand-mint);
    background: rgba(0, 245, 171, 0.32);
    color: #f4fffb;
    box-shadow: 0 0 26px rgba(0, 245, 171, 0.46), 0 10px 24px rgba(0, 245, 171, 0.18);
  }

  #reserva-pago .payment-btn-main:hover,
  #reserva-pago .payment-btn-main:focus-visible {
    transform: translateY(var(--dg-lift-3)) scale(var(--dg-scale-3));
    background: rgba(0, 229, 255, 0.16);
    border-color: rgba(0, 245, 171, 0.9);
    color: #f8ffff;
    box-shadow: 0 0 26px rgba(0, 229, 255, 0.36), 0 10px 24px rgba(0, 229, 255, 0.18);
  }
}

.intake-form .form-control:focus {
  border-color: var(--dg-cyan-99);
  box-shadow: 0 0 0 var(--dg-space-3) var(--dg-cyan-22), 0 0 var(--dg-space-11) var(--dg-cyan-11);
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
  .blog-filter-btn {
    width: 100%;
    min-height: 55px;
  }

  .intake-mode-option-grid {
    grid-template-columns: 1fr;
  }

  #reserva-pago .clinical-intake-note:hover,
  #reserva-pago .clinical-intake-note:focus-within,
  .dg-final-whatsapp:hover,
  .blog-all-articles:hover,
  .blog-filter-btn:hover,
  .clinical-intake-link:hover,
  .intake-mode-option:hover,
  .intake-section:hover,
  .intake-section:focus-within {
    transform: translateY(var(--dg-lift-3));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dg-final-whatsapp,
  .dg-final-whatsapp:hover,
  .blog-all-articles:hover,
  .blog-filter-btn:hover,
  #reserva-pago .clinical-intake-note:hover,
  .intake-mode-option:hover,
  .intake-section:hover,
  .intake-section:focus-within {
    animation: none !important;
    transform: none !important;
    transition-duration: 1ms !important;
  }
}
