/* ==========================================================================
   CENTRO TERAPÉUTICO ID — DESIGN SYSTEM & STYLESHEET (TOP AGENCY GRADE)
   Diseño de nivel agencia internacional: Minimalismo cálido, espacios amplios,
   tipografía editorial, micro-interacciones suaves y soporte nativo Dark/Light.
   ========================================================================== */

/* --- 1. Variables de Diseño (Design Tokens) --- */
:root {
  /* Paleta de Marca Extraída del Logotipo e Identidad */
  --brand-charcoal: #221E27;
  --brand-charcoal-light: #36313D;
  --brand-sage: #7AA892;
  --brand-sage-light: #EBF4F0;
  --brand-sage-hover: #63927C;
  --brand-blush: #E8A2B9;
  --brand-blush-light: #FDF1F5;
  --brand-peach: #F29563;
  --brand-peach-light: #FDF3ED;
  --brand-mauve: #9B7894;
  --brand-mauve-light: #F6EDF3;
  --brand-blue: #2A68C2;
  --brand-blue-hover: #1E53A1;

  /* Modo Claro (Default Editorial Warm Minimalist) */
  --bg-primary: #FCFAF7;
  --bg-secondary: #F4EFEB;
  --bg-tertiary: #ECE5DE;
  --bg-surface: #FFFFFF;
  --bg-glass: rgba(252, 250, 247, 0.88);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;

  --text-primary: #221E27;
  --text-secondary: #585360;
  --text-muted: #847E8D;
  --text-light: #A5A0AE;
  --text-inverse: #FFFFFF;

  --border-subtle: rgba(34, 30, 39, 0.08);
  --border-card: rgba(34, 30, 39, 0.06);
  --border-highlight: rgba(122, 168, 146, 0.35);

  --shadow-sm: 0 2px 6px rgba(34, 30, 39, 0.03);
  --shadow-md: 0 8px 24px rgba(34, 30, 39, 0.05);
  --shadow-lg: 0 16px 40px rgba(34, 30, 39, 0.07);
  --shadow-xl: 0 24px 60px rgba(34, 30, 39, 0.09);
  --shadow-glow: 0 0 40px rgba(122, 168, 146, 0.2);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 86px;
  --container-max: 1260px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Oscuro (Velvet Charcoal & Luminous Accents) */
[data-theme="dark"] {
  --bg-primary: #121015;
  --bg-secondary: #19161F;
  --bg-tertiary: #221E2A;
  --bg-surface: #1B1822;
  --bg-glass: rgba(18, 16, 21, 0.88);
  --bg-card: #1B1822;
  --bg-card-hover: #221E2A;

  --text-primary: #F7F4FA;
  --text-secondary: #C8C3D0;
  --text-muted: #958F9E;
  --text-light: #6E6877;
  --text-inverse: #121015;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(122, 168, 146, 0.45);

  --brand-sage-light: rgba(122, 168, 146, 0.15);
  --brand-blush-light: rgba(232, 162, 185, 0.15);
  --brand-peach-light: rgba(242, 149, 99, 0.15);
  --brand-mauve-light: rgba(155, 120, 148, 0.15);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 45px rgba(122, 168, 146, 0.25);
}

/* --- 2. Reset y Estilos Globales --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- 3. Contenedor y Utilidades de Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.text-center {
  text-align: center;
}

.center-content {
  margin-left: auto;
  margin-right: auto;
}

/* --- 4. Tipografía Editorial & Encabezados --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-charcoal) 20%, var(--brand-sage) 60%, var(--brand-peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--brand-sage) 60%, var(--brand-peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--brand-sage);
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--brand-sage-light);
  border-radius: var(--radius-full);
  z-index: -1;
  opacity: 0.8;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-sage);
  background: var(--brand-sage-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(122, 168, 146, 0.2);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 840px;
}

.section-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 48px;
}

/* --- 5. Botones y Llamados a la Acción --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-charcoal);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(34, 30, 39, 0.15);
}

.btn-primary:hover {
  background-color: var(--brand-sage);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(122, 168, 146, 0.35);
}

[data-theme="dark"] .btn-primary {
  background-color: var(--brand-sage);
  color: #121015;
  box-shadow: 0 4px 18px rgba(122, 168, 146, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #92BEA9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 168, 146, 0.45);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-sage);
  color: var(--brand-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--brand-sage);
  color: var(--brand-sage);
  background-color: var(--brand-sage-light);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* --- 6. Barra de Navegación Sticky (Glassmorphism) --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 74px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.03);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-logo-text .name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-logo-text .sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu-mobile-cta {
  display: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-sage);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--brand-sage);
  border-color: var(--brand-sage);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-sun {
  display: block;
}
.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: block;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: transparent;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- 7. Hero Section (High Impact Agency Layout) --- */
.hero-section {
  position: relative;
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
}

/* Fondos Orgánicos Ambientales (Blur Shapes) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: var(--brand-sage-light);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: var(--brand-blush-light);
  top: 15%;
  right: -80px;
}

.glow-3 {
  width: 350px;
  height: 350px;
  background: var(--brand-peach-light);
  bottom: -60px;
  left: 30%;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 70px);
  align-items: center;
  margin-bottom: clamp(50px, 7vw, 90px);
}

.hero-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--brand-sage);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(122, 168, 146, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(122, 168, 146, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(122, 168, 146, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 168, 146, 0); }
}

.hero-badge-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.hero-micro-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-badge-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-badge-item svg {
  color: var(--brand-sage);
  flex-shrink: 0;
}

/* --- Hero Composición Artística de Marca & Showcase de Identidad --- */
.hero-media-wrapper {
  position: relative;
}

.hero-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.hero-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.showcase-visual-stage {
  position: relative;
  aspect-ratio: 4 / 3.4;
  min-height: 380px;
  background: radial-gradient(circle at 50% 45%, rgba(122, 168, 146, 0.12) 0%, rgba(232, 162, 185, 0.08) 50%, rgba(242, 149, 99, 0.05) 100%), var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .showcase-visual-stage {
  background: radial-gradient(circle at 50% 45%, rgba(122, 168, 146, 0.18) 0%, rgba(155, 120, 148, 0.15) 50%, rgba(18, 16, 21, 0.95) 100%), #17141C;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Halos Orgánicos Acuarela con animación sutil */
.halo-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  pointer-events: none;
  opacity: 0.6;
  animation: haloPulse 8s ease-in-out infinite alternate;
}

.halo-sage {
  width: 220px;
  height: 220px;
  background: rgba(122, 168, 146, 0.45);
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.halo-blush {
  width: 190px;
  height: 190px;
  background: rgba(232, 162, 185, 0.45);
  bottom: 12%;
  right: 12%;
  animation-delay: -3s;
}

.halo-peach {
  width: 150px;
  height: 150px;
  background: rgba(242, 149, 99, 0.35);
  top: 50%;
  right: 25%;
  animation-delay: -5s;
}

@keyframes haloPulse {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(8px, -8px); }
  100% { transform: scale(0.95) translate(-6px, 6px); }
}

/* Contenedor e Imagen de Ilustración Principal */
.brand-illustration-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 70px 20px;
}

.hero-brand-illustration {
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(34, 30, 39, 0.12));
  animation: floatIllustration 6s ease-in-out infinite;
  transition: transform var(--transition-normal);
}

.hero-showcase-card:hover .hero-brand-illustration {
  transform: scale(1.03);
}

@keyframes floatIllustration {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Insignia Flotante Superior */
.floating-pill-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  z-index: 3;
  backdrop-filter: blur(10px);
}

/* Micro-tarjeta de Contención Afectiva en la base del visual stage */
.showcase-quote-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .showcase-quote-overlay {
  background: rgba(26, 22, 33, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.showcase-quote-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.showcase-author {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-sage);
  letter-spacing: 0.02em;
}

/* Pie de Tarjeta con Símbolo Cursivo ID */
.showcase-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 4px 8px;
  gap: 16px;
}

.footer-logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.id-symbol-preview {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.footer-logo-meta strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo-meta span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.showcase-accent-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-sage-light);
  color: var(--brand-sage);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}


.floating-hero-badge {
  position: absolute;
  bottom: -22px;
  left: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.floating-hero-badge .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-sage-light);
  color: var(--brand-sage);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-hero-badge .badge-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.floating-hero-badge .badge-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Hero Estadísticas Animadas --- */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-suffix {
  font-size: 1.6rem;
  color: var(--brand-sage);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- 8. Sección Sobre Centro ID (Filosofía & Pilares) --- */
.section-about {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Marca de Agua Elegante en Fondo */
.section-about::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -5%;
  width: 520px;
  height: 520px;
  background-image: url('../logo-illustration.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  transform: translateY(-50%) rotate(-6deg);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .section-about::before {
  opacity: 0.03;
}

.about-editorial-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 48px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .about-editorial-grid {
    grid-template-columns: 1fr;
  }
}

.about-narrative-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 4vw, 52px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-quote-mark {
  position: absolute;
  top: 10px;
  left: 28px;
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--brand-sage);
  opacity: 0.18;
  user-select: none;
}

.about-lead-text {
  position: relative;
  z-index: 1;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  color: var(--text-secondary);
  line-height: 1.85;
}

.about-lead-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.about-signature-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.signature-stamp-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.signature-text-meta strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.signature-text-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tarjeta de Emblema de Marca */
.brand-seal-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 44px) 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-seal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.seal-halo-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(122, 168, 146, 0.25) 0%, rgba(232, 162, 185, 0.2) 60%, transparent 80%);
  filter: blur(30px);
  pointer-events: none;
}

.seal-stage {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md), 0 0 0 8px rgba(122, 168, 146, 0.08);
  border: 2px dashed rgba(122, 168, 146, 0.4);
  transition: transform var(--transition-normal);
}

.brand-seal-card:hover .seal-stage {
  transform: scale(1.05);
}

.seal-illustration-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(34, 30, 39, 0.12));
}

.seal-subtitle {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-sage);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.seal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.seal-quote {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}

.seal-values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.seal-tag {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--brand-sage-light);
  color: var(--brand-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.pillar-peach {
  background: var(--brand-peach-light);
  color: var(--brand-peach);
}

.pillar-mauve {
  background: var(--brand-mauve-light);
  color: var(--brand-mauve);
}

.pillar-teal {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- 9. Sección Terapias Psicológicas --- */
.section-services {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-primary);
}

.services-nav-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.service-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.service-pill-btn:hover {
  border-color: var(--brand-sage);
  color: var(--brand-sage);
}

.service-pill-btn.active {
  background: var(--brand-charcoal);
  color: #FFFFFF;
  border-color: var(--brand-charcoal);
}

[data-theme="dark"] .service-pill-btn.active {
  background: var(--brand-sage);
  color: #121015;
  border-color: var(--brand-sage);
}

.therapies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}

.therapy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.therapy-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-xl);
}

.therapy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.therapy-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.therapy-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.therapy-card:hover .therapy-avatar-wrap img {
  transform: scale(1.08);
}

.therapy-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-sage);
  background: var(--brand-sage-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.therapy-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.therapy-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.therapy-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.feature-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.therapy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.link-arrow:hover {
  color: var(--brand-sage);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --- 10. Sección Asesorías y Capacitaciones (Institucional) --- */
.section-corporate {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-secondary);
}

.corporate-intro-banner {
  background: linear-gradient(135deg, var(--brand-charcoal) 0%, #322A3B 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg);
}

.corporate-intro-text h3 {
  color: #FFFFFF;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 12px;
}

.corporate-intro-text p {
  color: #D3CEE0;
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.7;
}

.corporate-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.corporate-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.corporate-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-xl);
}

.card-accent-pill {
  width: 44px;
  height: 5px;
  background: var(--brand-sage);
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.corporate-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.corporate-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bullet-list li svg {
  width: 17px;
  height: 17px;
  color: var(--brand-sage);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- 11. Sección Supervisiones Clínicas --- */
.section-supervisions {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-primary);
}

.supervision-badge-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.supervision-badge-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.supervision-id-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.supervision-badge-text strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.supervision-badge-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.supervision-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-sage-light);
  color: var(--brand-sage);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

.supervision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.supervision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.supervision-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-xl);
}

.supervision-card.featured {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--brand-sage-light) 100%);
  border-color: rgba(122, 168, 146, 0.4);
}

.featured-corner-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--brand-sage);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.supervision-card h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.supervision-card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 26px;
}

.supervision-card .bullet-list {
  margin-bottom: 34px;
}

/* --- 12. Sección Equipo y Dirección --- */
.section-team {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-xl);
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.team-photo-frame {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--brand-sage);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-sage);
  background: var(--brand-sage-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.team-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.team-profession {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.team-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0A66C2;
}

.team-social-link svg {
  width: 16px;
  height: 16px;
}

.team-bio {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.team-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

/* --- 13. Sección Alianzas y Respaldo --- */
.section-alliances {
  padding: clamp(70px, 8vw, 100px) 0;
  background: var(--bg-primary);
}

.alliances-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.alliance-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.alliance-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.alliance-item img {
  max-width: 85%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(85%) opacity(0.85);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .alliance-item img {
  filter: brightness(0.9) invert(0.85) grayscale(1);
}

.alliance-item:hover img {
  filter: grayscale(0%) opacity(1);
}

.alliance-text-fallback {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* --- 14. Sección Contacto & Agendamiento --- */
.section-contact {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 70px);
  align-items: flex-start;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.channel-card:hover {
  transform: translateX(4px);
  border-color: var(--brand-sage);
  box-shadow: var(--shadow-md);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-sage-light);
  color: var(--brand-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.channel-icon svg {
  width: 24px;
  height: 24px;
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.channel-details strong {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* Formulario de Contacto */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-sage);
  box-shadow: 0 0 0 4px rgba(122, 168, 146, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --- 15. Footer Premium --- */
.site-footer {
  background-color: var(--brand-charcoal);
  color: #FFFFFF;
  padding: 80px 0 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-logo-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer-seal-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.92rem;
  color: #A5A0AE;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-btn:hover {
  background: var(--brand-sage);
  transform: translateY(-3px);
}

.footer-column h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: #A5A0AE;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #847E8D;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-seal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-id-stamp-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* --- 16. Modales Interactivos --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 21, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: min(90dvh, 90vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}

.modal-container input,
.modal-container select,
.modal-container textarea {
  font-size: 16px;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

/* --- 17. Botón Flotante de WhatsApp & Toasts --- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: all var(--transition-fast);
  animation: pulse-whatsapp 3s infinite;
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brand-charcoal);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .toast-msg {
  background: #FFFFFF;
  color: var(--brand-charcoal);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- 18. Animaciones al Scroll (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.12s; }
.stagger-2 { transition-delay: 0.24s; }
.stagger-3 { transition-delay: 0.36s; }

/* --- 19. Media Queries Responsivas (Mobile-First Polish & Viewport Hardening) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media-wrapper {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .floating-hero-badge {
    position: static;
    margin-top: 18px;
    left: auto;
    width: 100%;
    box-sizing: border-box;
  }

  .about-pillars-grid, .corporate-modules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .alliances-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .supervision-layout, .team-grid, .contact-grid, .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .corporate-intro-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 22px 18px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  /* Header y Navegación Móvil */
  .brand-logo-text {
    display: none;
  }

  .brand-logo img {
    max-height: 40px;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 22px 20px 32px;
    gap: 16px;
    box-shadow: var(--shadow-xl);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1200;
  }

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

  .nav-link {
    font-size: 1.02rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
  }

  .nav-menu-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding-top: 6px;
  }

  .nav-menu-mobile-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.98rem;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hero Mobile */
  .hero-section {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(2rem, 6.5vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .showcase-visual-stage {
    min-height: 290px;
    aspect-ratio: auto;
  }

  .brand-illustration-stage {
    padding: 18px 14px 62px 14px;
  }

  .hero-brand-illustration {
    max-height: 210px;
  }

  .floating-pill-badge {
    top: 10px;
    right: 10px;
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .showcase-quote-overlay {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 12px;
  }

  .showcase-quote-text {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .showcase-author {
    font-size: 0.7rem;
  }

  .showcase-card-footer {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 4px 2px;
  }

  /* Sobre ID */
  .about-narrative-card {
    padding: 24px 18px;
  }

  .about-quote-mark {
    font-size: 4rem;
    top: 4px;
    left: 14px;
    opacity: 0.12;
  }

  .about-lead-text {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .about-signature-wrap {
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
  }

  .about-pillars-grid, .corporate-modules-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pillar-card, .corporate-card {
    padding: 24px 18px;
  }

  /* Terapias */
  .therapies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .therapy-card {
    padding: 24px 18px;
  }

  .services-nav-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .services-nav-pills::-webkit-scrollbar {
    display: none;
  }

  .service-pill-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.86rem;
  }

  /* Capacitaciones */
  .corporate-intro-banner {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .corporate-intro-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Supervisiones */
  .supervision-badge-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 14px;
  }

  .supervision-badge-pill {
    width: 100%;
    justify-content: center;
  }

  .supervision-card {
    padding: 26px 18px;
  }

  .featured-corner-tag {
    position: static;
    align-self: flex-start;
    margin-bottom: 14px;
  }

  /* Alianzas */
  .alliances-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .alliance-item {
    padding: 12px 10px;
  }

  .alliance-item img {
    max-height: 42px;
  }

  /* Contacto */
  .contact-form-card {
    padding: 24px 18px;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .nav-actions {
    gap: 8px;
  }

  .nav-actions .trigger-appointment-modal {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-actions .trigger-appointment-modal span {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .brand-logo img {
    max-height: 36px;
  }

  /* Equipo */
  .team-card {
    padding: 24px 18px;
  }

  .team-card-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 16px;
  }

  .team-photo-frame {
    width: 90px;
    height: 90px;
  }

  .team-tags-row {
    justify-content: center;
  }

  .team-social-link {
    justify-content: center;
  }

  .floating-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn {
    white-space: normal;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats-bar {
    grid-template-columns: 1fr;
    padding: 18px 14px;
    gap: 16px;
  }

  .stat-item::after {
    display: none !important;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .alliances-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .channel-card {
    padding: 14px 16px;
  }

  .channel-icon {
    width: 42px;
    height: 42px;
  }

  .modal-container {
    padding: 22px 16px;
  }

  .footer-logo-preview {
    gap: 8px;
  }

  .id-symbol-preview {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .brand-logo img {
    max-height: 32px;
  }

  .nav-actions {
    gap: 6px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .floating-pill-badge {
    display: none;
  }
}
