/* ═══════════════════════════════════════════
   TRAUMACED LARA — Sitio Web Público
   Paleta: teal #3DBFBF / #257A7A / #EEF6F6
   ═══════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --teal:         #3DBFBF;
  --teal-dark:    #257A7A;
  --teal-darker:  #1E6E6E;
  --teal-mid:     #4A9A9A;
  --teal-light:   #EEF6F6;
  --teal-lighter: #F4FAFA;
  --white:        #FFFFFF;
  --dark:         #1A202C;
  --dark-2:       #2D3748;
  --gray:         #718096;
  --gray-light:   #F7FAFC;
  --border:       #E2E8F0;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-full:  9999px;

  --shadow-sm:    0 2px 12px rgba(42,138,138,0.08);
  --shadow:       0 4px 24px rgba(42,138,138,0.12);
  --shadow-hover: 0 12px 40px rgba(42,138,138,0.22);
  --shadow-card:  0 2px 16px rgba(0,0,0,0.06);

  --transition:   0.3s ease;
  --transition-s: 0.5s ease;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: var(--font-body); background: none; }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, #7EDFDF 50%, var(--teal-dark) 100%);
  background-size: 200%;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2001;
  pointer-events: none;
  will-change: transform;
  animation: progress-glow 4s ease-in-out infinite;
}
@keyframes progress-glow {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ─── LAYOUT ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section    { padding: 100px 0; }
.section-light { background: var(--teal-light); }

/* ─── SECTION HEADER ─── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 45%, var(--teal) 100%);
  background-size: 200%;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  animation: tag-flow 6s ease-in-out infinite;
}
@keyframes tag-flow {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(61,191,191,0.38);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: btn-shimmer 5s ease-in-out infinite;
  animation-delay: 3s;
}
@keyframes btn-shimmer {
  0%,100% { left: -100%; }
  30%      { left: 150%; }
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(61,191,191,0.48); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); background: var(--teal-lighter); }

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.35);
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-outline-teal:hover { background: var(--teal-light); transform: translateY(-1px); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #20BE5B; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.42); }

.btn:active:not([disabled]) { transform: scale(0.97); transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1); }

.btn-lg  { padding: 16px 38px; font-size: 1rem; }
.btn-xl  { padding: 18px 46px; font-size: 1.05rem; }
.btn-sm  { padding: 10px 22px; font-size: 0.865rem; }


/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo { flex-shrink: 0; }
.logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); background: rgba(255,255,255,0.14); }

.navbar.scrolled .nav-link       { color: var(--dark-2); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--teal-dark); background: var(--teal-light); }

.nav-cta { margin-left: 16px; flex-shrink: 0; font-size: 0.875rem; padding: 11px 24px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  flex-shrink: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger.open span { background: var(--dark); }

/* Mobile overlay */
.nav-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-menu-overlay.open { display: block; }


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(18, 70, 70, 0.6));
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: var(--teal-dark);
  transform: scale(1.03);
  animation: hero-zoom 26s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.03) translateX(0); }
  to   { transform: scale(1.10) translateX(-0.8%); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    155deg,
    rgba(26,110,110,0.90) 0%,
    rgba(37,122,122,0.82) 45%,
    rgba(61,191,191,0.68) 100%
  );
  animation: pulse-overlay 7s ease-in-out infinite;
}
@keyframes pulse-overlay {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.87; }
}

/* ─── HERO AURORA ─── */
.hero-aurora {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-aurora::before,
.hero-aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.hero-aurora::before {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(61,191,191,0.22) 0%, transparent 70%);
  top: -160px; left: -120px;
  animation: aurora-a 18s ease-in-out infinite;
}
.hero-aurora::after {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37,122,122,0.18) 0%, transparent 70%);
  bottom: -120px; right: -80px;
  animation: aurora-b 24s ease-in-out infinite 3s;
}
@keyframes aurora-a {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(140px, 80px) scale(1.12); }
  66%      { transform: translate(-70px, 140px) scale(0.92); }
}
@keyframes aurora-b {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-130px, -90px) scale(1.18); }
}

/* ─── HERO LIGHT SWEEP ─── */
.hero-sweep {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-sweep::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 70%; height: 250%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(255,255,255,0.045) 50%,
    transparent 58%,
    transparent 100%
  );
  animation: light-sweep 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 2.5s;
}
@keyframes light-sweep {
  0%   { transform: translateX(0);    opacity: 0; }
  4%   { opacity: 1; }
  28%  { transform: translateX(380%); opacity: 1; }
  30%  { opacity: 0; }
  100% { transform: translateX(380%); opacity: 0; }
}

/* ─── HERO FLOATING SHAPES ─── */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  will-change: transform;
}
.hero-shape--1 { width: 380px; height: 380px; top: -100px; left: -120px; animation: shape-drift-a 22s ease-in-out infinite; }
.hero-shape--2 { width: 200px; height: 200px; bottom: 60px; right: 8%;   animation: shape-drift-b 13s ease-in-out infinite 1.5s; border-color: rgba(61,191,191,0.12); background: rgba(61,191,191,0.04); }
.hero-shape--3 { width: 560px; height: 560px; top: 15%; right: -160px;   animation: shape-drift-a 28s ease-in-out infinite 2s; }
.hero-shape--4 { width: 120px; height: 120px; top: 28%; left: 6%;        animation: shape-drift-b 10s ease-in-out infinite 4s; border-color: rgba(61,191,191,0.15); background: rgba(61,191,191,0.05); }
@keyframes shape-drift-a {
  0%,100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(18px, -28px) rotate(7deg); }
  50%      { transform: translate(-12px, -18px) rotate(-4deg); }
  75%      { transform: translate(8px, 22px) rotate(11deg); }
}
@keyframes shape-drift-b {
  0%,100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(-18px, -22px) scale(1.08) rotate(-8deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  padding: calc(var(--nav-h) + 20px) 28px 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.94);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5EFFD2;
  flex-shrink: 0;
  animation: badge-pulse 2.8s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(94,255,210,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(94,255,210,0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.8vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.14;
  margin-bottom: 22px;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.hero-title-accent {
  background: linear-gradient(90deg, #7EDFDF, #B8F0F0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 48px;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  z-index: 1;
  animation: bounce-down 2.4s ease-in-out infinite;
  transition: color var(--transition);
}
.scroll-indicator:hover { color: var(--white); }
@keyframes bounce-down {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(11px); }
}


/* ═══════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════ */
.stats-section {
  padding: 80px 0;
  background: var(--teal-light);
  border-top: 1px solid rgba(61,191,191,0.18);
  border-bottom: 1px solid rgba(61,191,191,0.18);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, rgba(61,191,191,0.3), transparent);
}
.stat-item { padding: 0 24px; }
.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
  text-shadow: 0 0 32px rgba(61,191,191,0.25);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2ch;
  text-align: center;
}
.stat-number[data-thousands] {
  min-width: 5ch;
}
.stat-symbol {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--teal);
}
.stat-time-wrap { flex-direction: column; gap: 4px; align-items: center; }
.stat-time {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.1;
}
.stat-time-hours {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--teal-mid);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--teal-mid);
  font-weight: 500;
  letter-spacing: 0.2px;
}


/* ═══════════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 30px 34px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(61,191,191,0.07) 50%,
    transparent 60%
  );
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(61,191,191,0.3);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { animation: card-sweep 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes card-sweep {
  to { transform: translateX(380%); }
}

.service-icon-wrap { margin-bottom: 26px; }
.service-icon {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--teal-light), #D4EDED);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--teal-dark);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(61,191,191,0.35);
  transform: rotate(-8deg) scale(1.08);
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   EQUIPO MÉDICO
   ═══════════════════════════════════════════ */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 16px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(61,191,191,0.35);
}
.doctor-card:hover .doctor-avatar {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 10px 28px rgba(61,191,191,0.45);
}
.doctor-card:hover .doctor-photo {
  transform: scale(1.05);
}
.doctor-card.featured {
  border: 2px solid var(--teal);
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-lighter) 100%);
  grid-column: span 1;
  animation: featured-glow 4s ease-in-out infinite;
}
@keyframes featured-glow {
  0%,100% { box-shadow: var(--shadow-card), 0 0 0 0 rgba(61,191,191,0); }
  50%      { box-shadow: var(--shadow-card), 0 0 28px 4px rgba(61,191,191,0.18); }
}
.doctor-card.featured:hover {
  box-shadow: 0 12px 40px rgba(61,191,191,0.32);
  animation: none;
}

.doctor-photo-wrap {
  position: relative;
  margin-bottom: 18px;
}
.doctor-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto;
  border: 3px solid var(--teal);
  background: var(--teal-light);
  transition: transform var(--transition);
}
.doctor-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(61,191,191,0.4);
}

.doctor-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 18px;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(61,191,191,0.28);
  transition: all var(--transition);
}

.doctor-card h4 {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.35;
}
.doctor-specialty {
  font-size: 0.78rem;
  color: var(--teal-mid);
  font-weight: 500;
  line-height: 1.5;
}
.doctor-sub {
  font-size: 0.73rem;
  color: var(--gray);
  margin-top: 2px;
}

.doctors-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.86rem;
  padding: 16px 28px;
  background: var(--white);
  border: 1px dashed rgba(61,191,191,0.5);
  border-radius: var(--radius-sm);
  max-width: 520px;
  margin: 0 auto;
}
.doctors-note i { color: var(--teal); margin-right: 8px; }


/* ═══════════════════════════════════════════
   SEDES
   ═══════════════════════════════════════════ */
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.sede-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 42px 38px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.sede-card:hover {
  box-shadow: inset 4px 0 0 var(--teal), var(--shadow-hover);
  border-color: rgba(61,191,191,0.3);
}
.sede-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.sede-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--teal-light), #D4EDED);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--teal-dark);
  flex-shrink: 0;
}
.sede-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.sede-pill {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sede-info { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.sede-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--dark-2);
  line-height: 1.6;
}
.sede-row i { color: var(--teal); font-size: 0.95rem; flex-shrink: 0; margin-top: 3px; }
.sede-phone { color: var(--teal-dark); font-weight: 600; transition: color var(--transition); }
.sede-phone:hover { color: var(--teal); text-decoration: underline; }
.sede-actions { display: flex; gap: 12px; flex-wrap: wrap; }


/* ═══════════════════════════════════════════
   ALIADOS COMERCIALES
   ═══════════════════════════════════════════ */
.aliados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.aliado-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.aliado-card::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(61,191,191,0.06) 50%,
    transparent 60%
  );
  pointer-events: none;
}
.aliado-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(61,191,191,0.3);
}
.aliado-card:hover::after { animation: card-sweep 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.aliado-icon {
  width: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin: 0 auto 16px;
  transition: all var(--transition);
}
.aliado-card:hover .aliado-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
}
.aliado-name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.aliado-cat {
  font-size: 0.78rem;
  color: var(--gray);
}


/* ═══════════════════════════════════════════
   CTA AGENDA
   ═══════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(145deg, var(--teal-darker) 0%, var(--teal-dark) 40%, var(--teal) 100%);
  overflow: hidden;
}
.cta-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.cta-section::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 28px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.2;
}
.cta-inner > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}
.cta-btn-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.cta-soon {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.8);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  pointer-events: none;
}
.cta-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.cta-note i { margin-right: 6px; }
.cta-note a { color: rgba(255,255,255,0.9); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.35); transition: color var(--transition); }
.cta-note a:hover { color: var(--white); }


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  height: 38px; width: auto;
  margin-bottom: 18px;
}
.footer-slogan {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.48);
  margin-bottom: 28px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}
.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-4px) rotate(8deg);
  border-color: var(--teal);
}
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}
.footer-col ul li i {
  color: var(--teal);
  font-size: 0.78rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal); }
.footer-sede-tag {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(61,191,191,0.18);
  color: var(--teal);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  white-space: nowrap;
  align-self: center;
}
.footer-bottom {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .stat-divider { display: none; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 76px 0; }
  .container { padding: 0 20px; }
  .section-header { margin-bottom: 52px; }

  /* Navbar mobile */
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 84vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 32px;
    gap: 4px;
    z-index: 999;
    transition: right var(--transition-s);
    box-shadow: -6px 0 40px rgba(0,0,0,0.12);
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-link { color: var(--dark-2) !important; width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-link:hover, .nav-link.active { color: var(--teal-dark) !important; background: var(--teal-light) !important; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero mobile */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; max-width: 380px; margin: 0 auto; }

  /* Stats */
  .stats-grid { text-align: center; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Doctors */
  .doctors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .doctor-card { padding: 22px 12px 18px; }
  .doctor-avatar { width: 80px; height: 80px; font-size: 1.3rem; }
  .doctor-photo { width: 100px; height: 100px; }

  /* Sedes */
  .sedes-grid { grid-template-columns: 1fr; gap: 24px; }
  .sede-card { padding: 28px 24px; }
  .sede-actions { flex-direction: column; }
  .sede-actions .btn { width: 100%; justify-content: center; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn,
  .cta-btn-wrap { width: 100%; max-width: 340px; }
  .cta-actions .btn { justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .stats-section { padding: 60px 0; }
  .cta-section { padding: 80px 0; }
}

/* ═══════════════════════════════════════════
   DOCTOR MODAL — flip card curriculum
   ═══════════════════════════════════════════ */
.doctor-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.doctor-modal.is-open { pointer-events: all; }
.doctor-modal.is-open .modal-backdrop {
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}

.modal-wrap {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  perspective: 1400px;
}
.modal-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 44px 44px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
  transform: rotateY(-90deg) scale(0.92);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  transform-origin: center center;
  will-change: transform;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-light) transparent;
}
.doctor-modal.is-open .modal-card {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}
.doctor-modal.is-closing .modal-card {
  transform: rotateY(90deg) scale(0.92);
  opacity: 0;
  transition-duration: 0.4s;
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover {
  background: var(--teal);
  color: var(--white);
  transform: rotate(90deg) scale(1.1);
}
.modal-close:active { transform: rotate(90deg) scale(0.95); }

/* CV content styles */
.cv-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--teal-light);
}
.cv-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--teal);
  flex-shrink: 0;
}
.cv-avatar-lg {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.cv-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.2;
}
.cv-title {
  font-size: 0.88rem;
  color: var(--teal-mid);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
}
.cv-badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.cv-section {
  margin-bottom: 26px;
}
.cv-section h3 {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--teal-light);
}
.cv-section p {
  font-size: 0.9rem;
  color: var(--dark-2);
  line-height: 1.78;
}
.cv-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.cv-section ul li {
  font-size: 0.875rem;
  color: var(--dark-2);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.cv-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cv-tags span {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(61,191,191,0.25);
  transition: all var(--transition);
}
.cv-tags span:hover {
  background: var(--teal);
  color: var(--white);
}

/* Clickable doctor cards */
.doctor-card[data-doctor] {
  cursor: pointer;
}
.doctor-card[data-doctor]:hover .doctor-badge {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-darker));
}
.doctor-card[data-doctor]::after {
  content: 'Ver perfil →';
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}
.doctor-card[data-doctor]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .modal-card { padding: 36px 24px 32px; }
  .cv-header { flex-direction: column; text-align: center; gap: 16px; }
  .cv-photo, .cv-avatar-lg { width: 80px; height: 80px; }
}


/* ═══════════════════════════════════════════
   TOUCH DEVICES — efectos sin hover
   ═══════════════════════════════════════════ */
@media (hover: none) {
  /* Service cards: top border siempre visible */
  .service-card::before { transform: scaleX(1); }

  /* Feedback táctil en cards */
  .service-card:active  { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
  .aliado-card:active   { transform: translateY(-3px); box-shadow: var(--shadow); }
  .doctor-card:active   { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .sede-card:active     { box-shadow: inset 4px 0 0 var(--teal), var(--shadow-hover); }

  /* Service icon: siempre en estado activo */
  .service-icon {
    background: linear-gradient(135deg, var(--teal-light), #D4EDED);
    color: var(--teal-dark);
  }

  /* Aliados icon: siempre muestra color */
  .aliado-card:active .aliado-icon {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
  }

  /* Shimmer en botón primario siempre activo en mobile */
  .btn-primary::after { animation-delay: 0.5s; }
}

/* ═══════════════════════════════════════════
   MOTION PREFERENCE
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero-bg            { animation: none; transform: scale(1.05); }
  .hero-overlay       { animation: none; }
  .hero-aurora::before,
  .hero-aurora::after { animation: none; }
  .hero-shape         { animation: none; }
  .hero-sweep::after  { animation: none; }
  .badge-dot          { animation: none; }
  .btn-primary::after { animation: none; }
  .scroll-indicator   { animation: none; }
  .scroll-progress    { animation: none; }
  .section-tag        { animation: none; }
  .doctor-card.featured { animation: none; }
  .service-card:hover::after,
  .aliado-card:hover::after { animation: none; }
}
