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

:root {
  /* Paleta extraída de cenea.cl */
  --teal: #00857C;
  --teal-dark: #006B63;
  --teal-light: #E0F2F0;
  --navy: #1B2A4A;
  --navy-soft: #2C3E5A;
  --gold: #C5A55A;
  --gold-light: #F5EFD8;
  --white: #FFFFFF;
  --off-white: #F7F9F8;
  --gray-100: #F0F2F1;
  --gray-200: #D8DDD9;
  --gray-300: #B0B8B3;
  --text: #3A4A42;
  --text-light: #6B7B73;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 12px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 50px;
  border: 1px solid transparent;
  /* Only animate shape, not colors — colors swap instantly to avoid FOUC */
  transition: padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Capsule only activates with navbar--scrolled-active */
.navbar.navbar--scrolled-active .nav-container {
  background: rgba(27, 42, 74, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 6px 6px 6px 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(2px);
}

/* Subpages: logo starts in color (scrolled but capsule not active yet) */
.navbar.scrolled:not(.navbar--scrolled-active) .logo img {
  filter: none;
}

/* When capsule active: logo always white */
.navbar.navbar--scrolled-active .logo img {
  filter: brightness(0) invert(1);
  height: 34px;
}

/* Pills nav — estilo Luxxera */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(27, 42, 74, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* When capsule active, pills lose their own background instantly */
.navbar.navbar--scrolled-active .nav-pills {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

.nav-pills a {
  padding: 13px 23px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-pills a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-pills a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* CTA nav */
.nav-cta {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(197, 165, 90, 0.25);
}

.nav-cta:hover {
  background: #d4b46a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 165, 90, 0.35);
}

/* CTA scrolled — gold inside the capsule
   Container: border-radius 50px, padding 6px (top/right/bottom)
   Button stretches full height → 6px uniform gap on all sides
   Button border-radius: 50 - 6 = 44px (concentric curves) */
.navbar.navbar--scrolled-active .nav-cta {
  background: var(--gold);
  color: var(--navy);
  box-shadow: none;
  border-radius: 44px;
  padding: 0 24px;
  margin-left: 12px;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.navbar.navbar--scrolled-active .nav-cta:hover {
  background: #d4b46a;
  box-shadow: none;
  transform: none;
}

/* CTA mobile — hidden on desktop */
.nav-pills__cta-mobile {
  display: none;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Subpages: hamburger dark before capsule */
.navbar.scrolled:not(.navbar--scrolled-active) .menu-toggle span {
  background: var(--navy);
}

/* Capsule active: hamburger white */
.navbar.navbar--scrolled-active .menu-toggle span {
  background: var(--white);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 86px;
  box-sizing: border-box;
}

/* Video background */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 42, 74, 0.88) 0%,
    rgba(27, 42, 74, 0.7) 30%,
    rgba(0, 133, 124, 0.5) 60%,
    rgba(27, 42, 74, 0.75) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 32px 0 80px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.hero-cta:hover {
  background: #d4b46a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 165, 90, 0.3);
}

/* Hero badges — bottom bar, estilo Luxxera */
.hero-badges {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 12px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-icon {
  font-size: 1.1rem;
}

/* Estado inicial para animación GSAP */
.hero .hero-badge {
  opacity: 0;
  transform: translateY(20px);
}

/* ===== AGENDA CTA BAR ===== */
.agenda-cta {
  background: var(--navy);
  padding: 48px 0;
}

.agenda-cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.agenda-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.agenda-cta-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 480px;
}

.agenda-cta-buttons {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.agenda-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.agenda-btn--doctor {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(197, 165, 90, 0.3);
}

.agenda-btn--doctor:hover {
  background: #d4b46a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 165, 90, 0.4);
}

.agenda-btn--especialidad {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.agenda-btn--especialidad:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.agenda-btn--telemedicina {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--gold);
  gap: 8px;
}

.agenda-btn--telemedicina:hover {
  background: rgba(197, 165, 90, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.agenda-btn--telemedicina svg {
  stroke: var(--gold);
  flex-shrink: 0;
}

/* ===== ABOUT / CENEA INTRO ===== */
.about {
  background: var(--off-white);
  padding: 100px 0;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
  min-height: 480px;
}

/* Card de texto */
.about-card--text {
  background: var(--white);
  border-radius: 16px;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--gray-200);
}

.about-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  padding: 4px 14px;
}

.about-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.about-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-description:last-of-type {
  margin-bottom: 28px;
}

.about-cta {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  align-self: flex-start;
}

.about-cta:hover {
  background: var(--navy);
  color: var(--white);
}

/* Cards de imagen */
.about-card--img {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.about-card--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card--img:hover img {
  transform: scale(1.04);
}

/* ===== ESPECIALIDADES ===== */
.especialidades {
  background: var(--white);
  padding: 100px 0;
}

.especialidades-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.especialidades-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  padding: 4px 14px;
}

.especialidades-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.especialidades-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.pills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pill::after {
  content: '→';
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
}

.pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  padding-right: 44px;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.2);
}

.pill:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* CTAs especialidades */
.especialidades-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.esp-cta {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.esp-cta--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(197, 165, 90, 0.25);
}

.esp-cta--primary:hover {
  background: #d4b46a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 165, 90, 0.35);
}

.esp-cta--secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.esp-cta--secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.2);
}

/* ===== RESERVAR CTA (Index) ===== */
.reservar-cta {
  background: var(--navy);
  padding: 72px 0;
}

.reservar-cta-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.reservar-cta-header {
  text-align: center;
  margin-bottom: 40px;
}

.reservar-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(197, 165, 90, 0.15);
  border: 1px solid rgba(197, 165, 90, 0.25);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.reservar-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.reservar-cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.reservar-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.reservar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reservar-card:hover::before {
  height: 6px;
}

.reservar-card--doctor {
  background: var(--white);
}

.reservar-card--doctor::before {
  background: var(--gold);
}

.reservar-card--esp {
  background: var(--teal-light);
}

.reservar-card--esp::before {
  background: var(--teal);
}

.reservar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.reservar-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.reservar-card--doctor .reservar-card__icon {
  background: rgba(197, 165, 90, 0.12);
  color: var(--gold);
}

.reservar-card--esp .reservar-card__icon {
  background: rgba(0, 133, 124, 0.12);
  color: var(--teal);
}

.reservar-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.reservar-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.reservar-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.reservar-card--doctor .reservar-card__action {
  color: var(--gold);
}

.reservar-card--esp .reservar-card__action {
  color: var(--teal);
}

.reservar-card:hover .reservar-card__action {
  gap: 12px;
}

.reservar-card__action svg {
  transition: transform 0.3s ease;
}

.reservar-card:hover .reservar-card__action svg {
  transform: translateX(3px);
}

/* ===== PROFESIONALES ===== */
.profesionales {
  background: var(--off-white);
  padding: 100px 0;
}

.profesionales-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.profesionales-header {
  text-align: center;
  margin-bottom: 52px;
}

.profesionales-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}

.profesionales-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.profesionales-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards grid — 3 columnas, primera más ancha */
.pro-cards {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
  min-height: 480px;
}

/* Card featured (con imagen) */
.pro-card--featured {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
}

.pro-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-card--featured:hover .pro-card__img {
  transform: scale(1.04);
}

.pro-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 42, 74, 0.9) 0%,
    rgba(27, 42, 74, 0.4) 50%,
    rgba(27, 42, 74, 0.1) 100%
  );
}

.pro-card__content {
  position: relative;
  z-index: 1;
  padding: 36px;
  color: var(--white);
}

.pro-card__content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.pro-card__content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pro-card__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pro-card__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
}

.pro-card__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cards light */
.pro-card--light {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 30px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pro-card--light:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.08);
}

.pro-card__icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pro-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
}

.pro-card--light h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.pro-card--light p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pro-card__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pro-card__list li {
  padding: 6px 14px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
}

.pro-card__list li:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== MISIÓN STATEMENT ===== */
.mision {
  background: var(--white);
  padding: 140px 0;
  overflow: hidden;
}

.mision-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.mision-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.mision-text .word {
  display: inline-block;
  margin: 0 0.15em;
  transition: color 0.4s ease;
}

.mision-text .word.bold {
  font-weight: 700;
  color: var(--gray-300);
}

.mision-text .word.accent {
  font-weight: 700;
  color: var(--gray-300);
}

.mision-text .word.em {
  font-style: normal;
  color: var(--gray-300);
}

/* Active states when revealed by GSAP */
.mision-text .word.is-active {
  color: var(--navy);
}

.mision-text .word.bold.is-active {
  color: var(--navy);
}

.mision-text .word.accent.is-active {
  color: var(--gold);
}

.mision-text .word.em.is-active {
  color: var(--navy-soft);
}

/* ===== UBICACIÓN / MAPA ===== */
.ubicacion {
  background: var(--off-white);
  padding: 100px 0;
}

.ubicacion-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.ubicacion-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 500px;
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.1);
}

.ubicacion-map {
  width: 100%;
  height: 500px;
}

.ubicacion-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

/* Overlay card */
.ubicacion-card {
  position: absolute;
  top: 40px;
  right: 40px;
  background: rgba(27, 42, 74, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 28px 26px;
  max-width: 340px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ubicacion-card .section-label {
  margin-bottom: 12px;
  color: var(--gold);
}

.ubicacion-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 24px;
}

.ubicacion-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}

.ubicacion-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.ubicacion-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ubicacion-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.ubicacion-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.ubicacion-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.ubicacion-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.ubicacion-cta:hover {
  background: #d4b46a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 165, 90, 0.3);
}

/* ===== FOOTER ===== */

/* Footer top — CTA bar */
.footer-top {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-top-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-top-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.footer-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.footer-cta-btn:hover {
  background: #d4b46a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 165, 90, 0.3);
}

.footer-top-contact {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-contact-item:hover {
  color: var(--white);
}

/* Phone — highlighted */
.footer-contact-item--phone {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(197, 165, 90, 0.3);
}

.footer-contact-item--phone svg {
  color: var(--gold);
}

.footer-contact-item--phone:hover {
  background: rgba(197, 165, 90, 0.15);
  border-color: var(--gold);
}

/* Footer main — columns */
.footer-main {
  background: var(--navy);
  padding: 60px 0 48px;
}

.footer-main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 40px;
}

/* Brand column */
.footer-col--brand {
  padding-right: 20px;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}

.footer-col--brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Generic columns */
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* Media column */
.footer-col--media p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-telefonos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-telefonos a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-telefonos a:hover {
  color: var(--white);
}

/* Icono WSP en verde */
.footer-telefonos a:last-child svg {
  color: #25D366;
}

.footer-img {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  height: 120px;
}

.footer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: transform 0.5s ease;
}

.footer-img:hover img {
  transform: scale(1.05);
}

/* Footer bottom */
.footer-bottom {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-payment span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.footer-payment img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-payment img:hover {
  opacity: 1;
}

/* ===== PAGE HEADER (subpages) ===== */
.page-header {
  padding: 160px 0 80px;
  background: var(--off-white);
  text-align: center;
}

.page-header-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-header-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.page-header-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.page-header-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 2px 12px rgba(197, 165, 90, 0.25);
}

.page-header-help:hover {
  background: #d4b46a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(197, 165, 90, 0.35);
}

.page-header-help svg {
  flex-shrink: 0;
  opacity: 0.9;
  stroke: var(--navy);
}

/* Nav pills dark variant (for subpages with scrolled navbar) */
.nav-pills--dark {
  background: rgba(27, 42, 74, 0.9);
}

/* Subpages: CTA starts navy before capsule activates */
.navbar.scrolled:not(.navbar--scrolled-active) .nav-cta {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.2);
}

.navbar.scrolled:not(.navbar--scrolled-active) .nav-cta:hover {
  background: var(--navy-soft);
  box-shadow: 0 6px 24px rgba(27, 42, 74, 0.3);
}

/* Subpages: when capsule is active, pills also go transparent */
.navbar.navbar--scrolled-active .nav-pills--dark {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

/* ===== SERVICIOS PAGE ===== */
.servicios {
  padding: 80px 0 100px;
  background: var(--white);
}

.servicios-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Service card */
.servicio-card {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  border-color: rgba(27, 42, 74, 0.15);
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.08);
  transform: translateY(-4px);
}

.servicio-card--highlight {
  background: var(--navy);
  border-color: transparent;
}

.servicio-card--highlight .servicio-title {
  color: var(--white);
}

.servicio-card--highlight .servicio-desc {
  color: rgba(255, 255, 255, 0.65);
}

.servicio-card--highlight .servicio-link {
  color: var(--gold);
}

.servicio-card--highlight .servicio-icon {
  background: rgba(197, 165, 90, 0.15);
  color: var(--gold);
}

.servicio-card--highlight:hover {
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.25);
}

/* Icon */
.servicio-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(27, 42, 74, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
  flex-shrink: 0;
}

.servicio-icon svg {
  width: 22px;
  height: 22px;
}

/* Title */
.servicio-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Description */
.servicio-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Link */
.servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
  margin-top: auto;
}

.servicio-link:hover {
  color: var(--gold);
  gap: 10px;
}

.servicio-link svg {
  transition: transform 0.3s ease;
}

.servicio-link:hover svg {
  transform: translateX(3px);
}

/* Servicios CTA section */
.servicios-cta {
  padding: 80px 0;
  background: var(--navy);
}

.servicios-cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.servicios-cta-content .section-label {
  color: var(--gold);
}

.servicios-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.servicios-cta-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}

.servicios-cta-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 480px;
}

.servicios-cta-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* Light variant of secondary button for dark backgrounds */
.esp-cta--secondary-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.esp-cta--secondary-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== ORIENTACIÓN CTA (Servicios) ===== */
.orientacion-cta {
  background: var(--teal);
  padding: 80px 0;
  text-align: center;
}

.orientacion-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}

.orientacion-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  margin-bottom: 24px;
}

.orientacion-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.orientacion-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 36px;
}

.orientacion-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.orientacion-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.orientacion-btn--wsp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.orientacion-btn--wsp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.orientacion-btn--tel {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.orientacion-btn--tel:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ===== TELEMEDICINA PASOS ===== */
.telemedicina {
  padding: 100px 0;
  background: var(--off-white);
}

.telemedicina-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.telemedicina-header {
  text-align: center;
  margin-bottom: 60px;
}

.telemedicina-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.telemedicina-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.telemedicina-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Steps row */
.telemedicina-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

/* Individual step */
.tele-step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 16px;
}

.tele-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.tele-step-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.tele-step-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Connector arrow */
.tele-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  color: rgba(27, 42, 74, 0.2);
  flex-shrink: 0;
}

/* CTA */
.telemedicina-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== QUIÉNES SOMOS — INTRO ===== */
.qs-intro {
  padding: 80px 0 100px;
  background: var(--white);
}

.qs-intro-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.qs-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.qs-intro-text .section-label {
  margin-bottom: 16px;
}

.qs-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 24px;
}

.qs-intro-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.qs-intro-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.qs-intro-desc strong {
  color: var(--navy);
  font-weight: 600;
}

.qs-intro-desc:last-of-type {
  margin-bottom: 0;
}

.qs-intro-img {
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
}

.qs-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.qs-intro-img:hover img {
  transform: scale(1.04);
}

/* ===== QUIÉNES SOMOS — FUNDADORES ===== */
.qs-fundadores {
  padding: 100px 0;
  background: var(--off-white);
}

.qs-fundadores-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.qs-fundadores-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.qs-fundadores-img {
  border-radius: 16px;
  overflow: hidden;
  height: 480px;
}

.qs-fundadores-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.qs-fundadores-img:hover img {
  transform: scale(1.03);
}

.qs-fundadores-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 24px;
}

.qs-fundadores-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.qs-fundadores-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.qs-fundadores-desc:last-of-type {
  margin-bottom: 32px;
}

/* ===== QUIÉNES SOMOS — VALORES ===== */
.qs-valores {
  padding: 100px 0;
  background: var(--white);
}

.qs-valores-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.qs-valores-header {
  text-align: center;
  margin-bottom: 52px;
}

.qs-valores-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.qs-valores-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.qs-valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.qs-valor-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.qs-valor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.08);
}

.qs-valor-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.qs-valor-icon svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
}

.qs-valor-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.qs-valor-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== QUIÉNES SOMOS — INSTALACIONES / GALERÍA ===== */
.qs-instalaciones {
  padding: 100px 0;
  background: var(--off-white);
}

.qs-instalaciones-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.qs-instalaciones-header {
  text-align: center;
  margin-bottom: 52px;
}

.qs-instalaciones-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.qs-instalaciones-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.qs-instalaciones-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.qs-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.qs-galeria-item {
  border-radius: 12px;
  overflow: hidden;
  height: 260px;
}

.qs-galeria-item--wide {
  grid-column: 1 / 3;
  height: 300px;
}

.qs-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.qs-galeria-item:hover img {
  transform: scale(1.05);
}

/* ===== QUIÉNES SOMOS — CTA ===== */
.qs-cta {
  padding: 80px 0;
  background: var(--navy);
}

.qs-cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.qs-cta-content .section-label {
  color: var(--gold);
}

.qs-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.qs-cta-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}

.qs-cta-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 480px;
}

.qs-cta-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ===== CONTACTO PAGE ===== */
.contacto {
  padding: 80px 0 100px;
  background: var(--white);
}

.contacto-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

/* Info column */
.contacto-info-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.contacto-info-title em {
  font-style: normal;
  color: var(--navy-soft);
}

.contacto-info-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contacto-datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.contacto-dato {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacto-dato-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-dato-icon svg {
  width: 18px;
  height: 18px;
  color: var(--navy);
}

.contacto-dato strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.contacto-dato p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.contacto-dato p a {
  color: var(--text-light);
  transition: var(--transition);
}

.contacto-dato p a:hover {
  color: var(--navy);
}

/* Form wrapper */
.contacto-form-wrapper {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px 36px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7B73' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27, 42, 74, 0.2);
}

.form-submit svg {
  transition: transform 0.3s ease;
}

.form-submit:hover svg {
  transform: translateX(2px) translateY(-2px);
}

/* ===== CONTACTO — INFO CARDS ===== */
.contacto-cards {
  padding: 0 0 100px;
  background: var(--white);
}

.contacto-cards-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.contacto-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contacto-card {
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  background: var(--off-white);
}

.contacto-card--accent {
  background: var(--navy);
  border-color: transparent;
}

.contacto-card--accent h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.contacto-card--accent p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 28px;
}

.contacto-card-actions {
  display: flex;
  gap: 12px;
}

/* Card info (derecha) */
.contacto-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.contacto-card-logo {
  height: 28px;
  width: auto;
}

.contacto-card-links {
  display: flex;
  gap: 20px;
}

.contacto-card-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

.contacto-card-links a:hover {
  color: var(--navy);
}

.contacto-card-contact {
  margin-bottom: 20px;
}

.contacto-card-contact p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.contacto-card-contact p a {
  color: var(--navy);
  font-weight: 500;
  transition: var(--transition);
}

.contacto-card-contact p a:hover {
  color: var(--gold);
}

.contacto-card-social {
  display: flex;
  gap: 10px;
}

.contacto-card-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  transition: var(--transition);
}

.contacto-card-social a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== CONTACTO — MAPA ===== */
.contacto-mapa {
  padding: 80px 0 100px;
  background: var(--white);
}

.contacto-mapa-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 0;
}

.contacto-mapa-wrapper {
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.08);
}

.contacto-mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

/* ===== EQUIPO MÉDICO PAGE ===== */
.equipo {
  padding: 80px 0 100px;
  background: var(--white);
}

.equipo-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Filter buttons */
/* Buscador equipo médico */
.equipo-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
}

.equipo-search__icon {
  position: absolute;
  left: 16px;
  color: var(--gray-300);
  pointer-events: none;
  flex-shrink: 0;
}

.equipo-search__input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.equipo-search__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 133, 124, 0.1);
}

.equipo-search__input::placeholder {
  color: var(--gray-300);
}

.equipo-search__clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-300);
  display: none;
  padding: 4px;
  line-height: 0;
}

.equipo-search__clear:hover {
  color: var(--text);
}

.equipo-search__clear.visible {
  display: flex;
}

/* Sin resultados */
.equipo-no-results {
  display: none;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  padding: 40px 0;
  grid-column: 1 / -1;
}

.equipo-filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.equipo-filtro {
  padding: 12px 24px;
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipo-filtro:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--white);
}

.equipo-filtro.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Doctor cards grid */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Individual card */
.doc-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card:not(.bio-open):hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(27, 42, 74, 0.12);
  border-color: transparent;
}

.doc-card.hidden {
  display: none;
}

.doc-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: linear-gradient(135deg, var(--off-white) 0%, #e8ebe9 100%);
}

.doc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card:not(.bio-open):hover .doc-card__img img {
  transform: scale(1.04);
}

.doc-card__info {
  padding: 22px 24px 24px;
  text-align: center;
}

.doc-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.doc-card__role {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.4;
}

.doc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card__cta:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.2);
}

.doc-card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.doc-card__cta:hover svg {
  transform: translateX(2px);
}

/* "Ver perfil" link */
.doc-card__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 0;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--accent, #004d40);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 500;
  padding: 6px 0;
  transition: opacity 0.2s ease;
  opacity: 0.7;
}

.doc-card__more:hover {
  opacity: 1;
}

.doc-card__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card__more.active svg {
  transform: rotate(180deg);
}

/* Bio overlay — slides up from bottom of image, size fits content */
.doc-card__bio {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 30, 50, 0.96), rgba(15, 30, 50, 0.88));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 22px 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.doc-card__bio.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.doc-card__bio p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* Bio modal (mobile) */
.bio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 25, 45, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bio-modal.active {
  display: flex;
}

.bio-modal__content {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: bioModalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bioModalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bio-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}

.bio-modal__close:hover {
  background: var(--navy);
  color: var(--white);
}

.bio-modal__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 16px;
  border: 3px solid var(--teal-light);
}

.bio-modal__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.bio-modal__role {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.bio-modal__text p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* Equipo CTA section */
.equipo-cta {
  padding: 80px 0;
  background: var(--navy);
}

.equipo-cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.equipo-cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.equipo-cta-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
}

.equipo-cta-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== RESERVAR PAGES ===== */
.reservar-content {
  padding: 80px 0 100px;
  background: var(--white);
}

.reservar-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 200px;
}

/* Filtros reutiliza .equipo-filtro */
.rd-filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

/* Search */
.rd-search {
  position: relative;
  margin-bottom: 40px;
}

.rd-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-300);
  pointer-events: none;
}

.rd-search input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.rd-search input::placeholder {
  color: var(--gray-300);
}

.rd-search input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
  background: var(--white);
}

/* Doctor rows */
.rd-list {
  display: flex;
  flex-direction: column;
}

.rd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.rd-row:first-child {
  border-top: 1px solid var(--gray-200);
}

.rd-row:hover {
  background: var(--off-white);
  padding-left: 32px;
}

.rd-row.hidden {
  display: none;
}

.rd-row__info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.rd-row__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.rd-row__role {
  font-size: 0.82rem;
  color: var(--text-light);
  white-space: nowrap;
  padding: 4px 14px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
}

.rd-row:hover .rd-row__role {
  background: var(--white);
}

.rd-row__arrow {
  color: var(--gray-300);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.rd-row:hover .rd-row__arrow {
  color: var(--navy);
  transform: translateX(4px);
}

/* Empty state */
.rd-empty {
  text-align: center;
  padding: 48px 20px;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.25);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-soft);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(27, 42, 74, 0.35);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== WHATSAPP FLOAT ===== */
.wsp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  flex-direction: row-reverse;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wsp-float__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.wsp-float:hover .wsp-float__btn {
  background: #20bd5a;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.wsp-float__btn svg {
  width: 22px;
  height: 22px;
  color: #fff;
  fill: #fff;
}

.wsp-float__tag {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 7px 16px 7px 14px;
  margin-right: -10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wsp-float:hover .wsp-float__tag {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.2);
}

.wsp-float__info {
  display: none;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 10px 18px 10px 14px;
  margin-right: -10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.wsp-float:hover .wsp-float__info {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.wsp-float__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #25D366;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3px;
}

.wsp-float__number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

  /* ── Nav container: grid 3 columnas logo | cta | hamburguesa ── */
  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "logo cta toggle";
    align-items: center;
    padding: 0 20px;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: transparent !important;
  }

  .logo {
    grid-area: logo;
    justify-content: flex-start;
  }

  /* nav-pills sale del flujo grid — solo visible como overlay */
  .nav-pills {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(27, 42, 74, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0;
    border: none;
    padding: 24px;
    z-index: 999;
    grid-area: unset;
  }

  .nav-pills.active {
    display: flex;
  }

  .nav-pills a {
    font-size: 1.1rem;
    padding: 14px 32px;
    color: rgba(255, 255, 255, 0.85);
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .nav-pills a:hover,
  .nav-pills a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-cta {
    grid-area: cta;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 9px 18px !important;
    font-size: 0.8rem !important;
    align-self: center !important;
    border-radius: 50px !important;
  }

  .menu-toggle {
    grid-area: toggle;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  /* ── Barra de fondo al hacer scroll ── */
  /* Home: al scrollear >60px se añade .scrolled + .navbar--scrolled-active */
  /* Subpages: .scrolled ya está desde el inicio en el HTML */
  .navbar.scrolled {
    background: rgba(27, 42, 74, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
  }

  /* Logo blanco sobre barra navy — altura fija para que no crezca al scrollear */
  .navbar.scrolled .logo img,
  .navbar.navbar--scrolled-active .logo img {
    filter: brightness(0) invert(1);
    height: 32px !important;
  }

  /* Hamburguesa blanca sobre barra navy */
  .navbar.scrolled .menu-toggle span {
    background: var(--white) !important;
  }

  /* Sin barra en top del hero (home sin scroll) */
  .navbar:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
  }

  .navbar:not(.scrolled) .menu-toggle span {
    background: var(--white) !important;
  }

  /* CTA Reservar dentro del menú fullscreen */
  .nav-pills .nav-pills__cta-mobile {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    width: 100%;
    max-width: 280px;
  }

  /* X (close) siempre blanco sobre overlay navy */
  .menu-toggle.active span {
    background: var(--white) !important;
  }

  /* Hamburger → X animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .agenda-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .agenda-cta-text p {
    margin: 0 auto;
  }

  .hero-content {
    padding: 0 32px;
  }

  .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
    bottom: 24px;
    gap: 8px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-card--text {
    grid-column: 1 / -1;
  }

  .about {
    padding: 70px 0;
  }

  .especialidades {
    padding: 70px 0;
  }

  .pill {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  .profesionales {
    padding: 70px 0;
  }

  .pro-cards {
    grid-template-columns: 1fr 1fr;
  }

  .pro-card--featured {
    grid-column: 1 / -1;
    min-height: 400px;
  }

  .mision {
    padding: 100px 0;
  }

  .ubicacion {
    padding: 70px 0;
  }

  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .servicios {
    padding: 60px 0 80px;
  }

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

  .qs-intro-grid {
    gap: 32px;
  }

  .qs-intro-img {
    height: 360px;
  }

  .qs-fundadores {
    padding: 70px 0;
  }

  .qs-fundadores-grid {
    gap: 32px;
  }

  .qs-fundadores-img {
    height: 400px;
  }

  .qs-valores {
    padding: 70px 0;
  }

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

  .qs-instalaciones {
    padding: 70px 0;
  }

  .qs-galeria-item--wide {
    height: 260px;
  }

  .qs-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .qs-cta-text {
    margin: 0 auto;
  }

  .equipo {
    padding: 60px 0 80px;
  }

  .equipo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .equipo-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .equipo-cta-content p {
    margin: 0 auto;
  }

  .contacto {
    padding: 60px 0 70px;
  }

  .contacto-grid {
    gap: 40px;
  }

  .contacto-datos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contacto-cards {
    padding: 0 0 70px;
  }

  .contacto-mapa-wrapper {
    height: 350px;
  }

  .servicios-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .servicios-cta-text {
    margin: 0 auto;
  }

  .telemedicina {
    padding: 70px 0;
  }

  .tele-step-connector {
    display: none;
  }

  .telemedicina-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .tele-step {
    max-width: none;
  }

  .footer-top-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-top-cta {
    flex-direction: column;
    gap: 16px;
  }

  .footer-top-contact {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-main-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  /* Badge telemedicina: abajo al centro de la foto en mobile */
  .doc-tele-badge {
    top: auto !important;
    right: auto !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .reservar-content {
    padding: 40px 0 60px;
  }

  .reservar-container {
    padding: 0 16px;
  }

  .rd-filtros {
    gap: 8px;
    margin-bottom: 24px;
  }

  .rd-search {
    margin-bottom: 28px;
  }

  .rd-search input {
    padding: 14px 14px 14px 44px;
    font-size: 0.88rem;
    border-radius: 12px;
  }

  .rd-row {
    padding: 16px 12px;
  }

  .rd-row:hover {
    padding-left: 16px;
  }

  .rd-row__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .rd-row__name {
    font-size: 0.92rem;
  }

  .rd-row__role {
    font-size: 0.75rem;
    padding: 3px 10px;
  }

  .agenda-cta {
    padding: 36px 0;
  }

  .agenda-cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .agenda-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* ── HERO MOBILE REDESIGN ── */
  .hero {
    min-height: 100dvh;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  /* Overlay más rico en mobile: fuerte arriba, degradado teal al centro, navy abajo */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(27, 42, 74, 0.75) 0%,
      rgba(27, 42, 74, 0.35) 35%,
      rgba(0, 133, 124, 0.45) 60%,
      rgba(27, 42, 74, 0.92) 100%
    );
  }

  /* Contenido centrado con tarjeta frosted al fondo */
  .hero-content {
    width: 100%;
    padding: 0 0 32px;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .hero-tag {
    margin-bottom: 16px;
    font-size: 0.72rem;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 14px;
    padding: 0 24px;
  }

  /* Línea decorativa gold bajo el título */
  .hero-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto 0;
    border-radius: 2px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 320px;
    margin: 14px auto 24px;
    padding: 0 24px;
    color: rgba(255, 255, 255, 0.78);
  }

  .hero-cta {
    padding: 13px 34px;
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  /* Badges: barra inferior frosted glass, 3 ítems en fila */
  .hero-badges {
    position: absolute !important;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    padding: 0 !important;
    background: rgba(27, 42, 74, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
  }

  .hero-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 8px;
    font-size: 0.68rem;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.3;
  }

  .hero-badge:last-child {
    border-right: none;
    grid-column: auto;
  }

  .badge-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .wsp-float {
    bottom: 24px;
    right: 24px;
  }

  .wsp-float__btn {
    width: 42px;
    height: 42px;
  }

  .wsp-float__btn svg {
    width: 20px;
    height: 20px;
  }

  .wsp-float__tag {
    font-size: 0.7rem;
    padding: 5px 12px 5px 10px;
  }

  .wsp-float__info {
    display: none !important;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 10px 20px;
  }

  .nav-cta {
    display: inline-flex;
    padding: 9px 18px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1001;
  }

  .logo img {
    height: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card--text {
    padding: 32px 24px;
  }

  .about-title {
    font-size: 1.5rem;
  }

  .about-card--img {
    height: 280px;
  }

  .about {
    padding: 50px 0;
  }

  .especialidades {
    padding: 50px 0;
  }

  .especialidades-header {
    margin-bottom: 36px;
  }

  .pills-grid {
    gap: 8px;
  }

  .pill {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .especialidades-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
  }

  .esp-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .reservar-cta {
    padding: 52px 0;
  }

  .reservar-cta-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reservar-card {
    padding: 28px 24px;
  }

  .qs-intro {
    padding: 40px 0 50px;
  }

  .qs-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qs-intro-img {
    height: 280px;
  }

  .qs-fundadores {
    padding: 50px 0;
  }

  .qs-fundadores-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qs-fundadores-img {
    height: 300px;
    order: -1;
  }

  .qs-valores {
    padding: 50px 0;
  }

  .qs-valores-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qs-valor-card {
    padding: 24px 22px;
  }

  .qs-instalaciones {
    padding: 50px 0;
  }

  .qs-galeria {
    grid-template-columns: 1fr 1fr;
  }

  .qs-galeria-item--wide {
    grid-column: 1 / -1;
    height: 220px;
  }

  .qs-galeria-item {
    height: 200px;
  }

  .qs-cta {
    padding: 60px 0;
  }

  .qs-cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .qs-cta-buttons .esp-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .equipo {
    padding: 40px 0 60px;
  }

  .equipo-filtros {
    gap: 8px;
    margin-bottom: 32px;
  }

  .equipo-filtro {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .equipo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .doc-card__info {
    padding: 16px 18px 20px;
  }

  .doc-card__name {
    font-size: 0.95rem;
  }

  .doc-card__role {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  .doc-card__cta {
    padding: 8px 14px;
    font-size: 0.72rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .doc-card__cta svg {
    display: none;
  }

  .equipo-cta {
    padding: 60px 0;
  }

  .equipo-cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .equipo-cta-buttons .esp-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* === PAGE HEADER MOBILE === */
  .page-header {
    padding: 100px 0 48px;
  }

  .page-header-container {
    padding: 0 20px;
  }

  .page-header-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-header-subtitle {
    font-size: 0.88rem;
  }

  .page-header-help {
    padding: 12px 22px;
    font-size: 0.88rem;
  }

  /* === CONTACTO MOBILE === */
  .contacto {
    padding: 40px 0 60px;
  }

  .contacto-container {
    padding: 0 16px;
    overflow-x: hidden;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contacto-info-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    word-break: break-word;
  }

  .contacto-info-desc {
    font-size: 0.85rem;
  }

  .contacto-datos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contacto-dato {
    gap: 12px;
  }

  .contacto-dato-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .contacto-dato strong {
    font-size: 0.78rem;
  }

  .contacto-dato p,
  .contacto-dato p a {
    font-size: 0.8rem;
    word-break: break-word;
  }

  .contacto-form-wrapper {
    padding: 24px 16px;
    border-radius: 14px;
  }

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

  .form-submit {
    width: 100%;
    justify-content: center;
  }

  .contacto-cards {
    padding: 0 0 60px;
  }

  .contacto-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contacto-card-actions {
    flex-direction: column;
  }

  .contacto-card-actions .esp-cta {
    text-align: center;
  }

  .contacto-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contacto-card-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .contacto-mapa-container {
    padding: 0 16px;
  }

  .contacto-mapa-wrapper {
    height: 280px;
    border-radius: 16px;
  }

  .servicios {
    padding: 40px 0 60px;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .servicio-card {
    padding: 24px 22px;
  }

  .servicios-cta {
    padding: 60px 0;
  }

  .servicios-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .servicios-cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .servicios-cta-buttons .esp-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .orientacion-cta {
    padding: 60px 0;
  }

  .orientacion-buttons {
    flex-direction: column;
    align-items: center;
  }

  .orientacion-btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .telemedicina {
    padding: 50px 0;
  }

  .telemedicina-header {
    margin-bottom: 40px;
  }

  .telemedicina-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tele-step {
    display: flex;
    text-align: left;
    gap: 20px;
    padding: 0;
  }

  .tele-step-number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    border-radius: 12px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .telemedicina-cta {
    margin-top: 36px;
  }

  .profesionales {
    padding: 50px 0;
  }

  .pro-cards {
    grid-template-columns: 1fr;
  }

  .pro-card--featured {
    min-height: 360px;
  }

  .pro-card__content {
    padding: 28px 24px;
  }

  .pro-card--light {
    padding: 28px 24px;
  }

  .mision {
    padding: 70px 0;
  }

  .mision-container {
    padding: 0 24px;
  }

  .mision-text .word {
    margin: 0 0.08em;
  }

  .ubicacion {
    padding: 50px 0;
  }

  .ubicacion-container {
    padding: 0 16px;
  }

  .ubicacion-wrapper {
    border-radius: 16px;
    min-height: auto;
  }

  .ubicacion-map {
    height: 300px;
  }

  .ubicacion-card {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    border-radius: 0 0 16px 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--navy);
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 24px;
  }

  /* ── FOOTER MOBILE REDESIGN ── */

  /* TOP: CTA centrado + contactos en fila compacta */
  .footer-top {
    padding: 32px 0;
  }

  .footer-top-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 0 20px;
  }

  .footer-top-cta {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer-top-cta h3 {
    font-size: 1.1rem;
  }

  .footer-top-contact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    text-align: center;
    padding: 10px 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
  }

  /* MAIN: logo arriba centrado, luego 2 cols nav+esp, contacto abajo */
  .footer-main {
    padding: 36px 0 28px;
  }

  .footer-main-container {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 20px;
  }

  /* Brand: fila completa, centrado */
  .footer-col--brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-col--brand p {
    max-width: 300px;
    font-size: 0.82rem;
  }

  .footer-social {
    justify-content: center;
    margin-top: 16px;
  }

  /* Cols nav y especialidades: 2 columnas compactas */
  .footer-col:not(.footer-col--brand):not(.footer-col--media) {
    padding-bottom: 24px;
  }

  .footer-col:not(.footer-col--brand):not(.footer-col--media):first-of-type {
    padding-right: 16px;
  }

  .footer-col h4 {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-col ul li a {
    font-size: 0.8rem;
  }

  /* Col media/contacto: fila completa, sin imagen */
  .footer-col--media {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .footer-col--media h4 {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    margin-bottom: 0;
  }

  .footer-col--media p {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .footer-telefonos {
    gap: 8px;
  }

  /* Ocultar imagen en mobile */
  .footer-img {
    display: none;
  }

  /* BOTTOM */
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 0 20px;
  }

  .footer-payment {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
}

/* ===== NARROW PHONES (≤430px) ===== */
@media (max-width: 430px) {

  /* Navbar: reducir botón y espaciado para que no choquen */
  .nav-cta {
    padding: 7px 12px !important;
    font-size: 0.72rem !important;
  }

  .logo img,
  .navbar.scrolled .logo img,
  .navbar.navbar--scrolled-active .logo img {
    height: 26px !important;
  }

  .nav-container {
    padding: 0 14px;
  }

  /* Hero badges: reducir padding para que quepan en pantallas angostas */
  .hero-badge {
    padding: 12px 6px;
    font-size: 0.65rem;
  }

  .badge-icon {
    font-size: 1.1rem;
  }

  /* Hero: más padding-bottom para que los badges no queden bajo la UI del browser */
  .hero {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  }
}
