/* ==========================================================================
   SISTEMA SINERGIA SALUD - CSS PRINCIPAL
   Paleta de marca oficial:
   - Verde Azulado Profundo: #10544f
   - Azul Océano:            #1e4d67
   - Verde Salvia:           #6c8b81
   - Ocre Bronce:            #986f31
   - Arena Cálida / Oro:     #f5c37b
   - Coral Suave:            #f3706a
   - Lino Cálido:            #e4ded1
   - Terracota:              #ca4848
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Paleta Oficial */
  --teal-primary: #10544f;
  --teal-dark: #0b3b37;
  --teal-light: #18716b;
  --blue-ocean: #1e4d67;
  --blue-deep: #143547;
  --sage: #6c8b81;
  --sage-light: #8faea4;
  --sage-subtle: #edf3f1;
  --ochre: #986f31;
  --ochre-light: #b5863e;
  --sand: #f5c37b;
  --sand-soft: #fcf4e8;
  --coral: #f3706a;
  --coral-soft: #fde8e7;
  --linen: #e4ded1;
  --linen-subtle: #f7f4ee;
  --terracotta: #ca4848;

  /* Fondos y Neutros */
  --bg-page: #fbfaf7;
  --bg-surface: #ffffff;
  --bg-subtle: #f5f2eb;
  --text-main: #182624;
  --text-muted: #4e5f5b;
  --text-light: #7c8e8a;
  --border-subtle: rgba(108, 139, 129, 0.2);
  --border-hover: rgba(16, 84, 79, 0.35);

  /* Sombras y Elevación Volumétrica Multicapa */
  --shadow-xs: 0 1px 3px rgba(16, 84, 79, 0.05);
  --shadow-sm: 0 3px 10px -1px rgba(16, 84, 79, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 24px -4px rgba(16, 84, 79, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 42px -8px rgba(16, 84, 79, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 22px 46px -8px rgba(16, 84, 79, 0.14), 0 8px 18px -4px rgba(16, 84, 79, 0.06);
  --shadow-glow: 0 0 32px rgba(16, 84, 79, 0.16);

  /* Bordes Refinados de Precisión Clínica */
  --border-subtle: rgba(108, 139, 129, 0.18);
  --border-glass: rgba(16, 84, 79, 0.09);
  --border-hover: rgba(16, 84, 79, 0.28);
  --border-card-hover: rgba(16, 84, 79, 0.22);

  /* Tipografía */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Bordes y Transiciones */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

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

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--teal-primary);
  transition: width var(--transition-smooth);
  border-radius: var(--radius-pill);
}

.nav-links a:hover {
  color: var(--teal-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-primary);
  color: #ffffff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 84, 79, 0.2);
  transition: all var(--transition-smooth);
}

.btn-header-cta:hover {
  background: var(--blue-ocean);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 77, 103, 0.28);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-primary);
  transition: all var(--transition-smooth);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-pill.teal {
  background: var(--sage-subtle);
  color: var(--teal-primary);
  border: 1px solid rgba(108, 139, 129, 0.25);
}

.badge-pill.sand {
  background: var(--sand-soft);
  color: var(--ochre);
  border: 1px solid rgba(245, 195, 123, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: var(--teal-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 84, 79, 0.24);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 84, 79, 0.32);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--teal-primary);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--teal-primary);
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background: #1fae53;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION (ESTILO VENTARRÓN: FOTO FULL + PARALAJE + CONTENIDO SUPERPUESTO)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
  overflow: clip;
  width: 100%;
  max-width: 100%;
  color: #ffffff;
  text-align: center;
  background-color: #0b2624;
}

.hero-parallax-wrapper {
  position: absolute;
  top: -14%;
  bottom: -14%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

/* Parallax nativo ligado al scroll (renderizado por el compositor del navegador) */
@keyframes hero-parallax {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 20vh, 0);
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-parallax-wrapper {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
}

.hero-bg {
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background-image: url('../assets/clinic_hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center center;
}

@keyframes kenburns {
  from {
    transform: scale(1.0) translateY(0);
  }
  to {
    transform: scale(1.07) translateY(-1.5%);
  }
}

/* Capa de overlay con degradé multicapa para legibilidad médica óptima */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, 
    rgba(9, 32, 29, 0.78) 0%, 
    rgba(14, 48, 44, 0.65) 45%, 
    rgba(7, 24, 22, 0.92) 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   PORTADA LIMPIA (HERO CLEAN: FOTO FULL + PARALAJE + LOGO + SLOGAN)
   ========================================================================== */
.hero-clean {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-clean-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  width: 100%;
}

.hero-brand-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Contenedor interactivo para la animación de Respiración Zen y Enfoque Óptico */
.hero-logo-box {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  /* Animación compuesta: entrada con enfoque óptico + ciclo de respiración continua */
  animation: 
    heroLogoOpticalFocus 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    heroLogoZenBreathing 6.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1.4s infinite;
  will-change: transform, filter, opacity;
  cursor: default;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-brand-logo {
  width: clamp(230px, 34vw, 350px);
  max-width: 90vw;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65));
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

/* Microinteracción en hover: pausa sutil de respiración y toma presencia con aura salvia */
.hero-logo-box:hover {
  animation-play-state: running, paused;
  transform: translateY(-4px) scale(1.02);
}

.hero-logo-box:hover .hero-brand-logo {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.72))
          drop-shadow(0 0 24px rgba(101, 141, 131, 0.35));
}

.hero-slogan {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.015em;
  margin: 0 0 0.55rem;
  line-height: 1.25;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.75);
  animation: heroFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

.hero-subslogan {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.18rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 0 0 2.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  animation: heroFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}

.hero-action-wrap {
  display: flex;
  justify-content: center;
  animation: heroFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s backwards;
}

.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: all var(--transition-smooth);
}

.hero-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hero-scroll-icon {
  display: inline-block;
  animation: heroScrollBounce 2.4s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
  60% {
    transform: translateY(2.5px);
  }
}

/* 1. Entrada con enfoque óptico (desenfoque gradual como lente enfocando) */
@keyframes heroLogoOpticalFocus {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px) scale(0.95);
  }
  60% {
    opacity: 0.92;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }
}

/* 2. Respiración Zen: inhalación y exhalación orgánica rítmica de 6.5s */
@keyframes heroLogoZenBreathing {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.016);
  }
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SECCIÓN ABORDAJE / PROPUESTA (A CONTINUACIÓN DE LA PORTADA)
   ========================================================================== */
.intro-value-section {
  padding: 95px 0 85px;
  position: relative;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.intro-value-card {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-badge,
.intro-badge {
  background: var(--sage-subtle);
  color: var(--teal-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xs);
}

.intro-value-title,
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--teal-primary);
  margin: 0 0 1.25rem;
}

.intro-value-title .highlight,
.hero-title .highlight {
  color: var(--ochre);
  position: relative;
  display: inline-block;
}

.intro-value-title .highlight::after,
.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: rgba(245, 195, 123, 0.45);
  z-index: -1;
  border-radius: var(--radius-sm);
}

.intro-value-description,
.hero-description {
  font-size: clamp(1.04rem, 2.1vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.intro-value-description strong,
.hero-description strong {
  color: var(--text-main);
  font-weight: 600;
}

.intro-cta-group,
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.75rem;
  width: 100%;
}

.btn-whatsapp-hero {
  background: #25D366;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all var(--transition-smooth);
}

.btn-whatsapp-hero:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-secondary-hero {
  background: #ffffff;
  color: var(--teal-primary);
  border: 1.5px solid var(--teal-primary);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-smooth);
}

.btn-secondary-hero:hover {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.intro-trust-bar,
.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 820px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--teal-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.intro-feature-pill,
.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--sage-subtle);
  border: 1px solid rgba(16, 84, 79, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.35rem;
  font-size: 0.88rem;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.feature-pill-icon {
  font-size: 1rem;
}

.intro-feature-pill strong,
.hero-feature-pill strong {
  color: var(--teal-primary);
}

@media (max-width: 768px) {
  .hero-clean {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .intro-value-section {
    padding: 70px 0 60px;
  }

  .intro-trust-bar,
  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.35rem 1.25rem;
  }

  .intro-trust-bar .trust-item:not(:last-child),
  .hero-trust-bar .trust-item:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
  }

  .intro-cta-group,
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-whatsapp-hero,
  .btn-secondary-hero {
    width: 100%;
  }
}

/* ==========================================================================
   PHILOSOPHY & APPROACH SECTION
   ========================================================================== */
.section {
  padding: 95px 0;
  position: relative;
  overflow-x: clip;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.75rem;
}

.section-pretitle {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ochre);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Philosophy 2-col Layout */
.philosophy-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-image-col {
  position: relative;
}

.philosophy-img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.philosophy-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.philosophy-quote-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(16, 84, 79, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(16, 84, 79, 0.25);
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.4;
  z-index: 2;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.philo-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.45rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.philo-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
}

.philo-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.philo-card:hover .philo-icon {
  transform: scale(1.08);
}

.philo-icon.teal { 
  background: linear-gradient(135deg, var(--sage-subtle) 0%, rgba(108, 139, 129, 0.22) 100%); 
  color: var(--teal-primary);
  border: 1px solid rgba(16, 84, 79, 0.14);
}

.philo-icon.blue { 
  background: linear-gradient(135deg, rgba(30, 77, 103, 0.08) 0%, rgba(30, 77, 103, 0.18) 100%); 
  color: var(--blue-ocean); 
  border: 1px solid rgba(30, 77, 103, 0.15);
}

.philo-icon.ochre { 
  background: linear-gradient(135deg, var(--sand-soft) 0%, rgba(152, 111, 49, 0.16) 100%); 
  color: var(--ochre); 
  border: 1px solid rgba(152, 111, 49, 0.18);
}

.philo-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.philo-card-body p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   AREAS & ESPECIALIDADES
   ========================================================================== */
.areas-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
}

.area-card {
  background: var(--bg-surface);
  padding: 2.2rem 1.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-primary), var(--sage));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.area-card:hover::before {
  opacity: 1;
}

.area-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: transform var(--transition-smooth);
  border: 1px solid transparent;
}

.area-card:hover .area-icon-wrap {
  transform: scale(1.08) rotate(-1deg);
}

.area-card.atm .area-icon-wrap { 
  background: linear-gradient(135deg, var(--sage-subtle), rgba(108, 139, 129, 0.25)); 
  color: var(--teal-primary); 
  border-color: rgba(16, 84, 79, 0.15); 
}

.area-card.neck .area-icon-wrap { 
  background: linear-gradient(135deg, rgba(30, 77, 103, 0.08), rgba(30, 77, 103, 0.2)); 
  color: var(--blue-ocean); 
  border-color: rgba(30, 77, 103, 0.16); 
}

.area-card.physio .area-icon-wrap { 
  background: linear-gradient(135deg, var(--sand-soft), rgba(152, 111, 49, 0.2)); 
  color: var(--ochre); 
  border-color: rgba(152, 111, 49, 0.18); 
}

.area-card.fono .area-icon-wrap { 
  background: linear-gradient(135deg, var(--coral-soft), rgba(243, 112, 106, 0.22)); 
  color: var(--coral); 
  border-color: rgba(243, 112, 106, 0.2); 
}

.area-card.family .area-icon-wrap { 
  background: linear-gradient(135deg, #eaf1ed, rgba(108, 139, 129, 0.25)); 
  color: var(--sage); 
  border-color: rgba(108, 139, 129, 0.18); 
}

.area-card.massage .area-icon-wrap { 
  background: linear-gradient(135deg, #faede6, rgba(202, 72, 72, 0.2)); 
  color: var(--terracotta); 
  border-color: rgba(202, 72, 72, 0.18); 
}

.area-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.area-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.area-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
}

.area-features-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.area-features-list li svg {
  flex-shrink: 0;
  color: var(--teal-primary);
}

/* ==========================================================================
   TEAM / PROFESIONALES SECTION (CENTRAL REQUIREMENT)
   ========================================================================== */
.team-section {
  position: relative;
  background: var(--bg-page);
}

.team-filters-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.team-filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.team-filter-btn:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.team-filter-btn.active {
  background: var(--teal-primary);
  color: #ffffff;
  border-color: var(--teal-primary);
  box-shadow: 0 4px 14px rgba(16, 84, 79, 0.2);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.doctor-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.doctor-circle-header {
  padding: 2.3rem 1.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, rgba(245, 242, 235, 0.4) 100%);
  position: relative;
}

.doctor-avatar-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(16, 84, 79, 0.1), 0 10px 24px -4px rgba(16, 84, 79, 0.16);
  position: relative;
  background: var(--bg-subtle);
  margin-bottom: 1.15rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.doctor-card:hover .doctor-avatar-circle {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--teal-primary), 0 14px 30px -4px rgba(16, 84, 79, 0.24);
}

.doctor-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s var(--ease-reveal);
}

.doctor-card:hover .doctor-circle-img {
  transform: scale(1.05);
}

.doctor-role-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-primary);
  background: var(--sage-subtle);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 84, 79, 0.12);
  letter-spacing: 0.02em;
}

.doctor-header {
  padding: 0.75rem 1.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.doctor-info-title h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.doctor-credentials {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  padding: 0 1.75rem 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.doctor-body {
  padding: 1.35rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.doctor-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.doctor-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.doctor-card:hover .doctor-tag {
  background: var(--sage-subtle);
  color: var(--teal-primary);
  border-color: rgba(16, 84, 79, 0.15);
}

.doctor-card-footer {
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.btn-card-consult {
  width: 100%;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--bg-subtle);
  color: var(--teal-primary);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-smooth);
}

.btn-card-consult svg {
  transition: transform 0.3s var(--transition-smooth);
}

.btn-card-consult:hover,
.doctor-card:hover .btn-card-consult {
  background: var(--teal-primary);
  color: #ffffff;
  border-color: var(--teal-primary);
  box-shadow: 0 4px 16px rgba(16, 84, 79, 0.22);
}

.btn-card-consult:hover svg,
.doctor-card:hover .btn-card-consult svg {
  transform: translateX(4px);
}

/* ==========================================================================
   CIRCUITO DE ATENCIÓN (PASO A PASO)
   ========================================================================== */
.circuit-section {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, #ffffff 100%);
}

.circuit-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.circuit-step-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-smooth);
}

.circuit-step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-primary);
}

.circuit-step-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.3rem 1.7rem;
  border: 1px solid var(--border-glass);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.circuit-step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal-primary);
}

.step-num-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 14px rgba(16, 84, 79, 0.28);
  border: 2px solid #ffffff;
}

.circuit-step-card h4 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.circuit-step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* ==========================================================================
   UBICACIÓN, CONTACTO & TURNO
   ========================================================================== */
.contact-section {
  background: var(--bg-page);
  position: relative;
}

.contact-card-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-info-panel {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-panel-head h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-panel-head p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  min-width: 0;
  max-width: 100%;
}

.contact-detail-item > div:last-child {
  min-width: 0;
  flex: 1;
}

.contact-icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sage-subtle), rgba(108, 139, 129, 0.22));
  color: var(--teal-primary);
  border: 1px solid rgba(16, 84, 79, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.contact-detail-item:hover .contact-icon-bubble {
  transform: scale(1.08);
}

.detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ochre);
  margin-bottom: 0.2rem;
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-value a {
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline;
}

.detail-value a:hover {
  color: var(--teal-primary);
  text-decoration: underline;
}

.contact-action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   PANEL DE FORMULARIO DE CONTACTO POR CORREO
   ========================================================================== */
.contact-form-panel {
  background: linear-gradient(160deg, #fdfdfb 0%, #f6f4ee 100%);
  padding: 3.5rem 3rem;
  border-left: 1px solid rgba(16, 84, 79, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-panel-header {
  margin-bottom: 1.5rem;
}

.form-pretitle {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-primary);
  margin-bottom: 0.35rem;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.22;
  margin-bottom: 0.35rem;
}

.form-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.48;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  margin-bottom: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  letter-spacing: 0.01em;
}

.form-label .required {
  color: #d9534f;
  margin-left: 0.25rem;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 0.78rem 1rem;
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid rgba(16, 84, 79, 0.2);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-input::placeholder {
  color: rgba(44, 62, 80, 0.42);
}

.form-input:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(16, 84, 79, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.02);
  background: #ffffff;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--teal-primary);
  pointer-events: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.3rem;
  cursor: pointer;
  background: #ffffff;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-submit-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--teal-primary);
  color: #ffffff;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 84, 79, 0.25);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit-form:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 84, 79, 0.32);
}

.btn-submit-form:active {
  transform: translateY(0);
}

.form-secure-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-secure-note strong {
  color: var(--teal-primary);
  font-weight: 600;
}

.form-status-alert {
  margin-top: 1.25rem;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: formAlertFade 0.3s ease;
}

@keyframes formAlertFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status-alert.success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #0b612d;
}

.form-status-alert.error {
  background: rgba(217, 83, 79, 0.12);
  border: 1px solid rgba(217, 83, 79, 0.32);
  color: #a8201a;
}

.form-status-alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-smooth);
}

.whatsapp-pill-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  background: #20ba5a;
  color: #ffffff;
}

.whatsapp-icon-pulse {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 65px 0 35px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 380px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.91rem;
}

.footer-col a:hover {
  color: var(--sand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .areas-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .circuit-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card-box {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .contact-form-panel {
    border-left: none;
    border-top: 1px solid rgba(16, 84, 79, 0.08);
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header {
    height: 72px;
  }

  .nav-wrap {
    height: 72px;
  }

  .hero-section {
    padding-top: 96px;
    padding-bottom: 42px;
    min-height: 100svh;
  }

  .hero-badge {
    font-size: 0.76rem;
    padding: 0.4rem 0.95rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.18;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.98rem;
    margin-bottom: 1.6rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
    width: 100%;
  }

  .btn-whatsapp-hero, .btn-secondary-hero {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.94rem;
  }

  .hero-trust-bar {
    grid-template-columns: repeat(3, 1fr);
    padding: 0.85rem 0.6rem;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .trust-number {
    font-size: 1.2rem;
  }

  .trust-label {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .hero-feature-pill {
    font-size: 0.76rem;
    padding: 0.45rem 0.85rem;
    line-height: 1.3;
  }

  .areas-grid, .team-grid {
    grid-template-columns: 1fr;
  }

  .circuit-steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .contact-card-box {
    border-radius: var(--radius-lg);
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 2rem 1.25rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .contact-panel-head h2 {
    font-size: 1.7rem;
    line-height: 1.22;
    margin-bottom: 0.75rem;
  }

  .contact-panel-head p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.6rem;
  }

  .contact-details-list {
    gap: 1.15rem;
    margin-bottom: 1.85rem;
  }

  .contact-detail-item {
    gap: 0.85rem;
    min-width: 0;
  }

  .contact-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .detail-value {
    font-size: 0.94rem;
  }

  .form-title {
    font-size: 1.55rem;
    line-height: 1.22;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .form-footer-action {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
  }

  .btn-submit-form {
    width: 100%;
  }

  .form-secure-note {
    justify-content: center;
  }

  .whatsapp-floating {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 18px;
  }

  .philosophy-img-frame img {
    height: 380px;
  }

  .philosophy-quote-pill {
    top: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    font-size: 0.88rem;
    padding: 0.75rem 1.15rem;
  }

  .whatsapp-pill-btn span {
    display: none;
  }

  .whatsapp-pill-btn {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .philosophy-img-frame img {
    height: 320px;
  }

  .philosophy-quote-pill {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.82rem;
    padding: 0.62rem 0.95rem;
    border-radius: var(--radius-sm);
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 1.65rem 0.95rem;
  }

  .contact-panel-head h2 {
    font-size: 1.45rem;
  }

  .form-title {
    font-size: 1.35rem;
  }

  .contact-icon-bubble {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .contact-icon-bubble svg {
    width: 18px;
    height: 18px;
  }

  .detail-value {
    font-size: 0.88rem;
  }

  .detail-label {
    font-size: 0.72rem;
  }

  .form-input {
    padding: 0.72rem 0.85rem;
    font-size: 0.9rem;
  }

  .btn-submit-form {
    padding: 0.82rem 1.2rem;
    font-size: 0.92rem;
  }

  .whatsapp-floating {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: 14px;
  }
}

/* Mobile Navigation Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-120%);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-md);
  z-index: 998;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-nav-drawer a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.4rem 0;
}

/* ==========================================================================
   SCROLL REVEAL FLUIDO (ESTILO VENTARRÓN)
   Aparición suave con desplazamiento vertical y retardo escalonado (stagger)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-reveal), transform 0.85s var(--ease-reveal);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

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

/* Preservar elevaciones en hover al estar revelados */
.js .doctor-card.reveal.in:hover {
  transform: translateY(-6px);
}

.js .area-card.reveal.in:hover {
  transform: translateY(-6px);
}

.js .circuit-step-card.reveal.in:hover {
  transform: translateY(-5px);
}

.js .philo-card.reveal.in:hover {
  transform: translateY(-3px);
}

/* Accesibilidad: Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-logo-box {
    animation: none;
    transform: none;
    filter: none;
    transition: none;
    opacity: 1;
  }
}

