/* ==========================================================================
   SURGIVET CARACAS - SISTEMA DE DISEÑO QUIRÚRGICO VETERINARIO
   Especialidad en Cesáreas, Obstetricia y Cirugías de Alta Complejidad
   ========================================================================== */

:root {
  /* Paleta Quirúrgica y Clínica */
  --color-primary: #0d9488;         /* Teal quirúrgico principal */
  --color-primary-dark: #0f766e;    /* Teal oscuro */
  --color-primary-light: #14b8a6;   /* Teal vibrante */
  --color-primary-soft: #f0fdfa;    /* Fondo suave teal */
  
  --color-cyan: #06b6d4;           /* Cyan tecnológico */
  --color-cyan-dark: #0891b2;
  
  --color-navy: #0a1128;           /* Azul quirúrgico profundo / texto oscuro */
  --color-navy-surface: #111a38;   /* Superficie oscura */
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  
  --color-white: #ffffff;
  --color-emergency: #ef4444;       /* Rojo alerta urgencias 24/7 */
  --color-emergency-dark: #dc2626;
  --color-emergency-soft: #fef2f2;
  --color-amber: #f59e0b;          /* Acento cálido neonatal / reseñas */
  --color-amber-soft: #fffbeb;
  --color-green: #10b981;          /* Estado activo / éxito */

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

  /* Elevaciones y Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(10, 17, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 17, 40, 0.08), 0 2px 4px -2px rgba(10, 17, 40, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10, 17, 40, 0.08), 0 4px 6px -4px rgba(10, 17, 40, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(10, 17, 40, 0.1), 0 8px 10px -6px rgba(10, 17, 40, 0.05);
  --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.25);
  --shadow-emergency: 0 0 25px rgba(239, 68, 68, 0.35);

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-slate-50);
  color: var(--color-slate-700);
  line-height: 1.6;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-overflow-scrolling: touch;
}

main,
header,
footer,
aside,
section,
.container {
  max-width: 100% !important;
  box-sizing: border-box;
}

section {
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ==========================================================================
   BARRA SUPERIOR DE URGENCIAS QUIRÚRGICAS 24/7
   ========================================================================== */
.emergency-topbar {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #991b1b 100%);
  color: var(--color-white);
  padding: 0.55rem 0;
  font-size: 0.88rem;
  position: relative;
  z-index: 100;
}

.emergency-topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.emergency-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pulse-beacon {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.emergency-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.emergency-tel {
  color: var(--color-white);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.emergency-tel:hover {
  background: rgba(255, 255, 255, 0.3);
}

.emergency-location {
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   HEADER / NAVBAR ULTRA ESTÉTICO & RESPONSIVE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -4px rgba(10, 17, 40, 0.05);
  z-index: 90;
  transition: all var(--transition-base);
}

.site-header .container {
  max-width: 1360px;
  padding: 0 1.5rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-symbol {
  transform: scale(1.05) rotate(3deg);
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.brand-title span {
  color: var(--color-primary);
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(13, 148, 136, 0.12);
  color: var(--color-primary-dark);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.35rem;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-slate-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 1.15rem);
}

.nav-link {
  color: var(--color-slate-700);
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-block;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 60%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SISTEMA DE BOTONES PREMIUM, MODERNOS Y ESTÉTICOS
   ========================================================================== */
.btn-primary,
.btn-emergency,
.btn-secondary,
.btn-whatsapp-quote {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.7rem 1.35rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.22s ease,
              border-color 0.22s ease;
  will-change: transform, box-shadow;
  box-sizing: border-box;
}

/* Efecto Shimmer de Luz al Pasar el Cursor */
.btn-primary::after,
.btn-emergency::after,
.btn-whatsapp-quote::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::after,
.btn-emergency:hover::after,
.btn-whatsapp-quote:hover::after,
.btn-secondary:hover::after {
  left: 140%;
}

/* Botón Primario: Gradiente Teal Quirúrgico con Borde Cristalino */
.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 55%, #06b6d4 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 2px 4px rgba(10, 17, 40, 0.08),
    0 6px 18px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 8px rgba(10, 17, 40, 0.12),
    0 12px 26px rgba(13, 148, 136, 0.44);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(13, 148, 136, 0.25);
}

/* Botón Urgencia 24h: Rojo Radiante con Aura y Pulso */
.btn-emergency {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 4px rgba(220, 38, 38, 0.15),
    0 6px 20px rgba(239, 68, 68, 0.36);
  animation: emergency-glow 2.8s infinite ease-in-out;
}

@keyframes emergency-glow {
  0%, 100% {
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 2px 4px rgba(220, 38, 38, 0.15),
      0 6px 18px rgba(239, 68, 68, 0.36);
  }
  50% {
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 4px 8px rgba(220, 38, 38, 0.2),
      0 10px 28px rgba(239, 68, 68, 0.55);
  }
}

.btn-emergency:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  animation: none;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 10px rgba(220, 38, 38, 0.25),
    0 14px 32px rgba(239, 68, 68, 0.58);
}

.btn-emergency:active {
  transform: translateY(1px) scale(0.98);
}

/* Indicador Pulsante Live Dentro del Botón */
.emergency-live-pulse {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
  animation: pulse-beacon-white 1.6s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulse-beacon-white {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Botón Secundario Vidrio Pulido */
.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(10, 17, 40, 0.04);
}

.btn-secondary:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(13, 148, 136, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}

/* Botón Cotización WhatsApp */
.btn-whatsapp-quote {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 20px rgba(34, 197, 94, 0.35);
  font-size: 0.95rem;
  padding: 0.95rem 1.5rem;
}

.btn-whatsapp-quote:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 28px rgba(34, 197, 94, 0.45);
}

.btn-whatsapp-quote:active {
  transform: translateY(1px) scale(0.98);
}

/* Menú Móvil Toggle */
.mobile-nav-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  color: var(--color-navy);
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10, 17, 40, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.mobile-nav-toggle:active {
  background: var(--color-slate-100);
  transform: scale(0.93);
}

.mobile-nav-toggle svg {
  display: block;
}

/* ==========================================================================
   DRAWER DE NAVEGACIÓN MÓVIL OPTIMIZADO PARA IPHONE (iOS DESIGN SYSTEM)
   ========================================================================== */

/* Bloqueo de scroll cuando el drawer está abierto */
body.mobile-drawer-open {
  overflow: hidden !important;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

/* Backdrop difuminado estilo iOS */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mobile-drawer-open .mobile-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Panel lateral deslizable (Right slide-over con safe areas de iPhone) */
.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(10, 17, 40, 0.22);
  border-left: 1px solid rgba(226, 232, 240, 0.85);
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

body.mobile-drawer-open .mobile-drawer-panel {
  transform: translateX(0);
}

/* Cabecera del Drawer */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1.15rem, env(safe-area-inset-top)) 1.25rem 1rem;
  border-bottom: 1px solid var(--color-slate-100);
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
  flex-shrink: 0;
}

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

.drawer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.drawer-brand-name strong {
  color: var(--color-primary);
}

.drawer-brand-sub {
  font-size: 0.72rem;
  color: var(--color-slate-500);
  font-weight: 500;
}

/* Botón de Cierre "✕" con hit target de 44x44px */
.drawer-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--color-slate-100);
  border: 1px solid var(--color-slate-200);
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.drawer-close-btn:active {
  background: var(--color-slate-200);
  transform: scale(0.92);
}

/* Píldora de estado Urgencias 24h */
.drawer-status-pill {
  margin: 0.75rem 1.25rem 0.25rem;
  padding: 0.55rem 0.85rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dc2626;
  flex-shrink: 0;
}

.drawer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: pulseBeacon 1.8s infinite;
}

/* Cuerpo con scroll elástico nativo de iOS */
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.75rem 1.25rem max(2rem, env(safe-area-inset-bottom));
}

.drawer-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-slate-400);
  text-transform: uppercase;
  margin: 1rem 0 0.5rem 0.4rem;
}

/* Lista de navegación agrupada estilo iOS Table View */
.drawer-nav-list {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  gap: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: background-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.drawer-nav-item:last-child {
  border-bottom: none;
}

.drawer-nav-item:active {
  background-color: rgba(13, 148, 136, 0.1);
  transform: scale(0.99);
}

/* Iconos temáticos de cada opción */
.drawer-item-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-item-icon.icon-teal { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.drawer-item-icon.icon-cyan { background: rgba(8, 145, 178, 0.12); color: #0891b2; }
.drawer-item-icon.icon-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.drawer-item-icon.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.drawer-item-icon.icon-purple { background: rgba(147, 51, 234, 0.12); color: #7c3aed; }
.drawer-item-icon.icon-amber { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.drawer-item-icon.icon-rose { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
.drawer-item-icon.icon-slate { background: rgba(100, 116, 139, 0.12); color: #475569; }

.drawer-item-title {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-slate-800);
}

.drawer-item-arrow {
  color: var(--color-slate-400);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

/* Botones de acción directa en el drawer */
.drawer-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drawer-action-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-radius: 14px;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Footer de información médica en el drawer */
.drawer-footer-info {
  margin-top: 1.25rem;
  padding: 0.9rem;
  background: var(--color-slate-50);
  border-radius: 12px;
  border: 1px solid var(--color-slate-200);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drawer-info-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--color-slate-600);
  font-weight: 500;
}

.drawer-info-line svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Input auto-zoom fix para iOS Safari (Evita zoom automático al pulsar inputs en iPhone) */
input, select, textarea {
  font-size: 16px !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(204, 251, 241, 0.5) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(224, 242, 254, 0.6) 0%, transparent 45%),
              linear-gradient(180deg, #ffffff 0%, var(--color-slate-50) 100%);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.hero-title .highlight-teal {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-slate-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-slate-200);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate-700);
}

.guarantee-icon {
  color: var(--color-primary);
  display: flex;
}

/* Lado Derecho Hero (Visual Showcase) */
.hero-visual-card {
  position: relative;
}

.main-hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-white);
  height: 480px;
}

.main-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-visual-card:hover .main-hero-image {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 30px rgba(10, 17, 40, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 5;
}

.floating-cesarean {
  top: -20px;
  right: -15px;
  animation: float-gentle 4s ease-in-out infinite;
}

.floating-vitals {
  bottom: -20px;
  left: -20px;
  animation: float-gentle 4.5s ease-in-out infinite 0.5s;
}

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

.floating-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cesarean .floating-icon-box {
  background: var(--color-amber-soft);
  color: var(--color-amber);
}

.floating-vitals .floating-icon-box {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.floating-label {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.floating-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
}

/* ==========================================================================
   METRICS BANNER
   ========================================================================== */
.metrics-banner {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 2.75rem 0;
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-card {
  padding: 0.5rem 1rem;
  position: relative;
}

.metric-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.metric-number {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--color-cyan);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.metric-sub {
  font-size: 0.82rem;
  color: var(--color-slate-400);
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.section-pad {
  padding: 5.5rem 0;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.45rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.08rem;
  color: var(--color-slate-600);
  line-height: 1.7;
}

/* ==========================================================================
   ESPECIALIDADES QUIRÚRGICAS (SERVICES)
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.specialty-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 148, 136, 0.4);
}

.specialty-card.featured-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 2px solid var(--color-primary);
  background: linear-gradient(145deg, #ffffff 0%, var(--color-primary-soft) 100%);
}

.specialty-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.featured-card .specialty-image-wrap {
  height: 100%;
  min-height: 320px;
}

.specialty-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.specialty-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.specialty-badge.badge-emergency {
  background: rgba(220, 38, 38, 0.95);
}

.specialty-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.specialty-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.specialty-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.specialty-card-text {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.specialty-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.specialty-features li {
  font-size: 0.88rem;
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

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

.specialty-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.specialty-link:hover {
  gap: 0.7rem;
}

/* ==========================================================================
   PROTOCOLO PASO A PASO DE CESÁREAS Y NEONATOLOGÍA
   ========================================================================== */
.protocol-section {
  background: var(--color-slate-900);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.protocol-section .section-title {
  color: var(--color-white);
}

.protocol-section .section-description {
  color: var(--color-slate-300);
}

.protocol-section .section-tag {
  background: rgba(13, 148, 136, 0.2);
  color: var(--color-cyan);
}

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

.stepper-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: all var(--transition-base);
}

.stepper-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-cyan);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.step-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-cyan);
  font-family: var(--font-heading);
}

.step-icon {
  width: 44px;
  height: 44px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.22rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.92rem;
  color: var(--color-slate-300);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.step-checkpoints {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.step-checkpoints li {
  font-size: 0.84rem;
  color: var(--color-slate-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-checkpoints li svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* ==========================================================================
   CALCULADORA INTERACTIVA DE PRESUPUESTO QUIRÚRGICO
   ========================================================================== */
.calculator-section {
  background: linear-gradient(180deg, var(--color-slate-50) 0%, #ecfdf5 100%);
  position: relative;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-200);
}

.calc-form-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.calc-form-wrap p {
  color: var(--color-slate-600);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.65rem;
}

/* Selector de Especie */
.species-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.species-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-slate-200);
  background: var(--color-slate-50);
  font-weight: 700;
  color: var(--color-slate-700);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.species-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.form-select, .form-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px; /* 16px previene auto-zoom molesto en iOS Safari */
  color: var(--color-slate-800);
  background-color: var(--color-slate-50);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.form-select:focus, .form-input:focus {
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Weight radio chips */
.weight-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.weight-chip-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.35rem;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: var(--color-slate-50);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-fast);
}

.weight-chip-label input {
  position: absolute;
  opacity: 0;
}

.weight-chip-label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

/* Extras checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-slate-700);
  transition: background var(--transition-fast);
}

.checkbox-label:hover {
  background: var(--color-slate-100);
}

.checkbox-label input {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

/* Resumen Desglose (Calculadora Derecha) */
.calc-summary-wrap {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.summary-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-header h4 {
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.summary-header p {
  color: var(--color-slate-400);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-slate-300);
}

.summary-row.total-row {
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  align-items: baseline;
}

.summary-row.total-row .total-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-white);
}

.summary-row.total-row .total-amount {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--color-cyan);
  font-family: var(--font-heading);
}

.summary-inclusions {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.75rem;
}

.inclusions-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-slate-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.inclusions-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-slate-400);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inclusions-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inclusions-list li svg {
  color: #22c55e;
  flex-shrink: 0;
}

.btn-whatsapp-quote {
  background: #25d366;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-whatsapp-quote:hover {
  background: #20ba59;
  transform: translateY(-2px);
  color: var(--color-white);
}

/* ==========================================================================
   TECNOLOGÍA DE QUIRÓFANO Y EQUIPAMIENTO (FACILITY)
   ========================================================================== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.facility-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.facility-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.facility-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.facility-desc {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   GUÍA PRE Y POST OPERATORIA (TABS)
   ========================================================================== */
.care-guide-section {
  background: var(--color-slate-100);
}

.care-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.care-tab-btn {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-slate-600);
  border: 1.5px solid var(--color-slate-200);
  transition: all var(--transition-fast);
}

.care-tab-btn.active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.care-tab-content {
  display: none;
}

.care-tab-content.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  animation: fadeIn 0.4s ease;
}

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

.care-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.care-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.care-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.care-card h4 {
  font-size: 1.15rem;
  color: var(--color-navy);
}

.care-card p {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

.care-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.care-checklist li {
  font-size: 0.86rem;
  color: var(--color-slate-700);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.care-checklist li svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   TESTIMONIOS Y CASOS DE ÉXITO
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.case-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-img-wrap {
  height: 200px;
  position: relative;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-tag {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.case-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-rating {
  color: var(--color-amber);
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.case-quote {
  font-size: 0.95rem;
  color: var(--color-slate-700);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.case-owner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-slate-100);
  padding-top: 1rem;
}

.owner-name {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.92rem;
}

.owner-pet {
  font-size: 0.82rem;
  color: var(--color-slate-500);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ ACCORDION)
   ========================================================================== */
.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary);
}

.faq-button {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  background: transparent;
  gap: 1rem;
}

.faq-icon-arrow {
  color: var(--color-primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--color-slate-600);
  font-size: 0.96rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   URGENCIA 24 HORAS CTA BANNER
   ========================================================================== */
.emergency-cta-banner {
  background: linear-gradient(135deg, #0a1128 0%, #1e1b4b 50%, #881337 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.emergency-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.emergency-cta-text h3 {
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 0.85rem;
}

.emergency-cta-text p {
  color: var(--color-slate-300);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.emergency-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand p {
  color: var(--color-slate-400);
  font-size: 0.92rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--color-slate-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-cyan);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--color-slate-400);
  font-size: 0.9rem;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-info svg {
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-slate-500);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   BOTONES FLOTANTES (FAB)
   ========================================================================== */
.floating-actions-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 99;
}

.fab-btn {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.fab-btn:hover {
  transform: scale(1.1);
  color: var(--color-white);
}

.fab-whatsapp {
  background: #25d366;
}

.fab-emergency {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  animation: pulse-fab 2s infinite;
}

@keyframes pulse-fab {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.fab-tooltip {
  position: absolute;
  right: 70px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.fab-btn:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   MODAL DE AGENDAMIENTO / VALORACIÓN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 40, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 1.5rem;
}

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

.modal-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-slate-200);
  color: var(--color-navy);
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .specialty-card.featured-card {
    grid-column: span 2;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metric-card:nth-child(2)::after {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .emergency-cta-banner {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    text-align: center;
  }
  
  .emergency-cta-buttons {
    align-items: center;
  }
}

/* ==========================================================================
   ADAPTACIÓN TOTAL Y RÍGIDA A SMARTPHONES (IPHONE & ANDROID) - SIN DESBORDAMIENTO
   ========================================================================== */
@media (max-width: 900px) {
  .main-navigation {
    display: none !important;
  }
  
  .mobile-nav-toggle {
    display: flex !important;
  }

  .header-actions .btn-primary {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* 1. Barra de Emergencias Superior */
  .emergency-topbar {
    padding: 0.4rem 0.5rem;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .emergency-topbar-content {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .emergency-tag {
    font-size: 0.68rem;
    justify-content: center;
    text-align: center;
    width: 100%;
    letter-spacing: 0.01em;
    white-space: normal;
  }

  .emergency-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.75rem;
    width: 100%;
  }

  .emergency-location {
    font-size: 0.72rem;
  }

  .emergency-tel {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
  }

  /* 2. Header / Barra de Navegación */
  .site-header {
    padding-top: max(0.25rem, env(safe-area-inset-top));
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .site-header .container {
    padding: 0 0.85rem;
    max-width: 100%;
  }

  .header-content {
    min-height: 60px;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
  }

  .brand-logo {
    gap: 0.55rem;
    max-width: calc(100% - 55px);
    overflow: hidden;
  }

  .logo-symbol {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
  }

  .brand-title {
    font-size: 1.08rem;
    letter-spacing: -0.01em;
  }

  .brand-badge {
    display: none !important;
  }

  .brand-subtitle {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  /* En móvil, las acciones del header contienen EXCLUSIVAMENTE el botón menú */
  .header-actions {
    gap: 0;
    flex-shrink: 0;
  }

  .header-actions .btn-primary,
  .header-actions .btn-emergency {
    display: none !important;
  }

  .mobile-nav-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    margin-left: auto;
  }

  /* 3. Hero Section */
  .hero-section {
    padding: 2rem 0 3rem;
    overflow: hidden;
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
    white-space: normal;
    text-align: left;
  }

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

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-emergency {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    white-space: normal;
  }

  /* 4. Tarjetas Flotantes en Hero (Ajustadas para NO desbordar la pantalla) */
  .hero-visual-card {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-xl);
    width: 100%;
  }

  .hero-floating-card {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    max-width: calc(100% - 24px);
    box-shadow: 0 4px 14px rgba(10, 17, 40, 0.12);
  }

  .floating-cesarean {
    top: 10px;
    right: 10px;
    left: auto;
  }

  .floating-vitals {
    bottom: 10px;
    left: 10px;
    right: auto;
  }

  .floating-icon-box {
    width: 32px;
    height: 32px;
  }

  .floating-label {
    font-size: 0.65rem;
  }

  .floating-value {
    font-size: 0.78rem;
  }

  /* 5. Doctor Adolfo Hernández */
  .doctor-profile-card {
    padding: 1.5rem 1.15rem;
    border-radius: 20px;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .doctor-visual {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    max-height: 380px;
  }

  .doctor-exp-badge {
    bottom: 10px;
    right: 10px;
    left: auto;
    padding: 0.5rem 0.85rem;
  }

  .doctor-exp-badge .badge-icon {
    font-size: 1.25rem;
  }

  .doctor-exp-badge .badge-num {
    font-size: 1.1rem;
  }

  .doctor-exp-badge .badge-text {
    font-size: 0.68rem;
  }

  
  /* Adaptación 100% fluida del Cotizador Quirúrgico en Móviles */
  .calculator-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
    gap: 1.5rem !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(10, 17, 40, 0.08) !important;
  }

  .calc-form-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .calc-form-wrap h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.25 !important;
  }

  .calc-form-wrap p {
    font-size: 0.86rem !important;
    margin-bottom: 1.25rem !important;
  }

  .species-selector {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .species-btn {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.88rem !important;
    border-radius: 12px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .form-select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .weight-chips {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .weight-chip-label {
    padding: 0.65rem 0.35rem !important;
    font-size: 0.82rem !important;
    border-radius: 12px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  .checkbox-group {
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 0.55rem !important;
  }

  .checkbox-label {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.82rem !important;
    border-radius: 12px !important;
    line-height: 1.35 !important;
  }

  .checkbox-label input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-top: 0.15rem !important;
  }

  /* Tarjeta de Resumen (Derecha en desktop, Abajo completa en móvil) */
  .calc-summary-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1.5rem 1.15rem !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .summary-header {
    padding-bottom: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .summary-header h4 {
    font-size: 1.2rem !important;
    color: #ffffff !important;
  }

  .summary-header p {
    font-size: 0.82rem !important;
  }

  .summary-list {
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .summary-row {
    font-size: 0.85rem !important;
  }

  .summary-row.total-row {
    padding-top: 1rem !important;
    margin-top: 0.35rem !important;
  }

  .summary-row.total-row .total-label {
    font-size: 1.05rem !important;
  }

  .summary-row.total-row .total-amount {
    font-size: 2.15rem !important;
  }

  .summary-inclusions {
    padding: 0.85rem !important;
    margin-bottom: 1.25rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .inclusions-title {
    font-size: 0.78rem !important;
    margin-bottom: 0.5rem !important;
  }

  .inclusions-list li {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    gap: 0.45rem !important;
  }

  .btn-whatsapp-quote {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.92rem !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  /* 6. Grillas de Especialidades, Quirófano y Testimonios */
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  
  .specialty-card.featured-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  
  .timeline-stepper {
    grid-template-columns: 1fr;
  }
  
  .facility-grid {
    grid-template-columns: 1fr;
  }
  
  .care-tab-content.active {
    grid-template-columns: 1fr;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .weight-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* 7. Animaciones de scroll: eliminar traslaciones laterales en móvil para no generar ancho fantasma */
  .anim-reveal.anim-left,
  .anim-reveal.anim-right {
    transform: translateY(20px) !important;
  }

  /* 8. Botones Flotantes (FAB): Dejar únicamente el WhatsApp discreto y compacto */
  .floating-actions-container {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    gap: 0.5rem;
    z-index: 85;
  }

  .floating-actions-container .fab-emergency {
    display: none !important;
  }

  .floating-actions-container .fab-whatsapp {
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  }

  .floating-actions-container .fab-whatsapp svg {
    width: 24px;
    height: 24px;
  }

  .floating-actions-container .fab-tooltip {
    display: none !important;
  }
}

/* Pantallas pequeñas de iPhone (iPhone SE, Mini, 375px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.02rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

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

  

  .weight-chips {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .weight-chip {
    padding: 0.6rem 0.4rem;
    font-size: 0.78rem;
  }

  
  .modal-box {
    padding: 1.5rem 1.15rem;
    border-radius: 20px;
    margin: 1rem;
  }

  .mobile-drawer-panel {
    width: 88vw;
  }
}

@media (max-width: 375px) {
  .logo-symbol {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .brand-title {
    font-size: 0.94rem;
  }
  
  .mobile-drawer-panel {
    width: 90vw;
  }
}


/* ==========================================================================
   ANIMACIONES DINÁMICAS EN CADA SECCIÓN (SCROLL REVEAL & MICRO-INTERACCIONES)
   ========================================================================== */

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

.anim-reveal.anim-scale {
  transform: scale(0.94) translateY(20px);
}

.anim-reveal.anim-left {
  transform: translateX(-30px);
}

.anim-reveal.anim-right {
  transform: translateX(30px);
}

.anim-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Retardos Escalonados */
.anim-delay-1 { transition-delay: 0.08s; }
.anim-delay-2 { transition-delay: 0.16s; }
.anim-delay-3 { transition-delay: 0.24s; }
.anim-delay-4 { transition-delay: 0.32s; }
.anim-delay-5 { transition-delay: 0.40s; }
.anim-delay-6 { transition-delay: 0.48s; }

/* 2. Hero Section: Resplandor fluido en el texto principal */
.hero-title .highlight-teal {
  background: linear-gradient(
    120deg,
    #0d9488 0%,
    #06b6d4 25%,
    #14b8a6 50%,
    #06b6d4 75%,
    #0d9488 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textSheen 6s linear infinite;
}

@keyframes textSheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 3. Hero Visual: Resplandor ambiental de fondo */
.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 70%);
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
  animation: heroPulse 5s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { transform: scale(0.92) translate(-5px, -5px); opacity: 0.6; }
  100% { transform: scale(1.08) translate(10px, 10px); opacity: 1; }
}

/* 4. Métricas Animadas (Counter) */
.metric-card {
  transition: transform var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
}

.metric-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-fast);
}

/* 5. Especialidades Quirúrgicas: Micro-animaciones en Cards */
.specialty-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.specialty-card:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 
    0 16px 36px -10px rgba(10, 17, 40, 0.12),
    0 0 25px rgba(13, 148, 136, 0.16);
}

.specialty-card:hover .specialty-icon-circle {
  transform: scale(1.12) rotate(4deg);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.specialty-icon-circle {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
}

/* 6. Protocolo Stepper: Resplandor interactivo */
.stepper-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease;
}

.stepper-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-cyan);
  box-shadow: 0 14px 35px rgba(6, 182, 212, 0.22);
}

.stepper-card:hover .step-num {
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.7);
}

.stepper-card:hover .step-icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--color-cyan);
  color: var(--color-navy);
}

.step-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              color 0.3s ease;
}

/* 7. Calculadora: Bump al actualizar precio total */
.total-amount.bump-anim {
  animation: priceBump 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes priceBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); color: #22d3ee; }
  100% { transform: scale(1); }
}

.species-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.species-btn:active {
  transform: scale(0.96);
}

.species-btn.active {
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
  transform: translateY(-1px);
}

/* 8. Instalaciones / Facility Cards */
.facility-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.facility-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-cyan);
  box-shadow: 
    0 14px 32px -8px rgba(10, 17, 40, 0.1),
    0 0 20px rgba(6, 182, 212, 0.15);
}

.facility-card:hover .facility-icon {
  transform: scale(1.12);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.facility-icon {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Actions Animados */
.fab-whatsapp {
  animation: pulse-fab-green 3s infinite;
}

@keyframes pulse-fab-green {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
  }
}


/* ==========================================================================
   PERFIL DEL DIRECTOR MÉDICO: DR. ADOLFO HERNÁNDEZ
   ========================================================================== */
.doctor-section {
  background: linear-gradient(180deg, var(--color-slate-50) 0%, #f0fdfa 100%);
  position: relative;
  overflow: hidden;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(13, 148, 136, 0.2);
  position: relative;
}

.doctor-visual {
  position: relative;
}

.doctor-img-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(10, 17, 40, 0.18);
  border: 4px solid var(--color-white);
  aspect-ratio: 1 / 1;
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.doctor-visual:hover .doctor-img {
  transform: scale(1.03);
}

.doctor-exp-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(10, 17, 40, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
}

.doctor-exp-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.25);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-exp-badge .badge-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-cyan);
  font-family: var(--font-heading);
  line-height: 1;
}

.doctor-exp-badge .badge-txt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-300);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doctor-bio-header {
  margin-bottom: 1.5rem;
}

.doctor-name {
  font-size: 2.25rem;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.doctor-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.doctor-license {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.doctor-description {
  font-size: 0.98rem;
  color: var(--color-slate-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.doctor-credentials-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.doctor-credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-slate-700);
}

.doctor-credential-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.doctor-quote-box {
  background: rgba(13, 148, 136, 0.06);
  border-left: 3.5px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.35rem;
  font-style: italic;
  color: var(--color-slate-700);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.25rem;
  }
  .doctor-credentials-list {
    grid-template-columns: 1fr;
  }
}
