/* ==========================================================================
   SISTEMA DE DISEÑO & ESTILOS — CLÍNICA PASSO S.A.
   Identidad visual basada en el logotipo oficial (Azul Real / Cobalto Médico)
   ========================================================================== */

:root {
  /* Paleta de Colores Institucional derivada del Logo */
  --primary-royal: #001FD1;         /* Azul Cobalto Institucional del Logo */
  --primary-royal-dark: #001489;    /* Azul Oscuro para contraste y bordes */
  --primary-navy: #06152B;          /* Navy profundo para Header y Footer */
  --primary-blue-mid: #0D47A1;      /* Azul medio institucional */
  
  --accent-cyan: #0284C7;           /* Celeste sanitario */
  --accent-cyan-light: #E0F2FE;
  --accent-teal: #00A896;
  
  --emergency-red: #DC2626;         /* Rojo Alerta Guardia 24 hs */
  --emergency-red-hover: #B91C1C;
  --emergency-red-light: #FEE2E2;

  --success-green: #10B981;         /* Verde confirmación / WhatsApp */
  --success-green-light: #D1FAE5;

  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  
  --text-dark: #0F172A;
  --text-main: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-light: #E2E8F0;
  --border-focus: var(--primary-royal);

  /* Sombras y Elevaciones */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(220, 38, 38, 0.35);
  --shadow-brand: 0 8px 20px rgba(0, 31, 209, 0.25);

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

  /* Transiciones y Bordes */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px) + 48px); /* Espacio para barra fija + iPhone + Netlify */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Contenedor General */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Utilidades */
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-royal);
  background: rgba(0, 31, 209, 0.08);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-tag.tag-white {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
}

.section-tag.tag-blue {
  color: var(--primary-royal);
  background: var(--accent-cyan-light);
}

.section-title {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.6rem;
  }
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary-royal);
  color: #FFFFFF;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--primary-royal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 31, 209, 0.35);
}

.btn-emergency {
  background: var(--emergency-red);
  color: #FFFFFF;
  font-weight: 700;
}

.btn-emergency:hover {
  background: var(--emergency-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.text-whatsapp {
  color: #25D366 !important;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-royal);
  color: var(--primary-royal);
}

.btn-outline:hover {
  background: var(--primary-royal);
  color: #FFFFFF;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--primary-navy);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background: var(--primary-navy);
  color: #E2E8F0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseAnimation 1.8s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.top-info-item {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .top-info-item {
    display: inline-flex;
  }
}

.top-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #FFFFFF;
  font-weight: 500;
}

.top-phone-link:hover {
  color: #38BDF8;
}

.top-social-link {
  display: inline-flex;
  align-items: center;
  color: #94A3B8;
  padding: 0.2rem;
}

.top-social-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   MAIN NAVBAR & LOGO
   ========================================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.main-nav.scrolled {
  box-shadow: var(--shadow-md);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--primary-navy);
  line-height: 1.1;
}

.logo-title strong {
  font-weight: 800;
  color: var(--primary-royal);
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .top-bar-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
  }
  .top-bar-left, .top-bar-right {
    gap: 0.6rem;
    font-size: 0.78rem;
  }
  .nav-container {
    height: auto;
    min-height: 66px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .brand-logo {
    gap: 0.55rem;
  }
  .brand-logo-img {
    width: 40px;
    height: 40px;
  }
  .logo-title {
    font-size: 1.12rem;
  }
  .logo-subtitle {
    font-size: 0.62rem;
  }
  .nav-actions .btn-primary {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
}

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

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.4rem 0;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-royal);
  border-radius: 2px;
}

.mobile-cta-item {
  display: none;
}

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

.mobile-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

@media (min-width: 992px) {
  .mobile-toggle-btn {
    display: none;
  }
}

/* Menú móvil expandido */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: var(--shadow-xl);
  border-top: 1px solid var(--border-light);
  gap: 1.25rem;
  align-items: flex-start;
}

.nav-links.mobile-open .mobile-cta-item {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #06152B 0%, #001FD1 60%, #001489 100%);
  color: #FFFFFF;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(0, 31, 209, 0.3) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #E0F2FE;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  color: #38BDF8;
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 2.4rem;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: #38BDF8;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.4);
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-item i {
  width: 32px;
  height: 32px;
  color: #38BDF8;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.trust-item span {
  font-size: 0.8rem;
  color: #94A3B8;
}

/* Quick Box Card Hero */
.emergency-quick-box {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.quick-box-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--emergency-red);
  border-radius: 50%;
  animation: pulseAnimation 1.5s infinite;
}

.quick-box-header h3 {
  font-size: 1.35rem;
  color: var(--primary-navy);
}

.quick-box-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.quick-action-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.action-card:hover {
  transform: translateX(4px);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.action-card.urgent {
  background: #FFF1F2;
  border-color: #FECDD3;
}

.action-card.urgent:hover {
  border-color: var(--emergency-red);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card.urgent .action-icon {
  background: var(--emergency-red);
  color: #FFFFFF;
}

.action-card.appointment .action-icon {
  background: var(--primary-royal);
  color: #FFFFFF;
}

.action-card.location .action-icon {
  background: var(--accent-teal);
  color: #FFFFFF;
}

.action-details {
  flex-grow: 1;
}

.action-details h4 {
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 0.15rem;
}

.action-details span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.action-details .phone-number {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--emergency-red);
  margin-top: 0.1rem;
}

.action-details .link-label {
  color: var(--primary-royal);
  font-weight: 600;
}

.action-card .arrow {
  color: var(--text-light);
  transition: var(--transition);
}

.action-card:hover .arrow {
  color: var(--primary-royal);
  transform: translateX(3px);
}

.quick-box-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.quick-box-footer i {
  color: var(--success-green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   PILARES DE ATENCIÓN
   ========================================================================== */
.pillars-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  background: #FFFFFF;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.bg-red-soft { background: #FEE2E2; color: #DC2626; }
.bg-blue-soft { background: #E0F2FE; color: var(--primary-royal); }
.bg-cyan-soft { background: #CCFBF1; color: #0D9488; }
.bg-teal-soft { background: #EEF2FF; color: #4338CA; }

.pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   QUIÉNES SOMOS & IDENTIDAD
   ========================================================================== */
.about-section {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
  }
}

.about-image-wrapper {
  position: relative;
  background: linear-gradient(145deg, var(--primary-navy), var(--primary-royal));
  border-radius: var(--radius-xl);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-xl);
}

.about-brand-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: fit-content;
}

.about-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  padding: 2px;
}

.brand-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  color: #CBD5E1;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin-top: 1rem;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-card {
  background: rgba(6, 21, 43, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

.quote-card i {
  color: #38BDF8;
  width: 24px;
  height: 24px;
  margin-bottom: 0.5rem;
}

.quote-card p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: #F1F5F9;
}

.quote-card strong {
  font-size: 0.85rem;
  color: #94A3B8;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.body-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item {
  display: flex;
  gap: 0.85rem;
}

.value-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-cyan-light);
  color: var(--primary-royal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

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

/* ==========================================================================
   ESPECIALIDADES Y SERVICIOS
   ========================================================================== */
.services-section {
  background: #F1F5F9;
  padding: 6rem 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-tab {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--primary-royal);
  color: var(--primary-royal);
}

.filter-tab.active {
  background: var(--primary-royal);
  color: #FFFFFF;
  border-color: var(--primary-royal);
  box-shadow: var(--shadow-sm);
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.service-card.highlight-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 2px solid var(--primary-royal);
}

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

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

.red-badge { background: #FEE2E2; color: #DC2626; }
.blue-badge { background: #E0F2FE; color: var(--primary-royal); }
.teal-badge { background: #CCFBF1; color: #0D9488; }
.pink-badge { background: #FCE7F3; color: #DB2777; }

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-card-alt);
  color: var(--text-muted);
}

.service-tag.tag-emergency {
  background: #FEE2E2;
  color: #DC2626;
}

.service-tag.tag-uti {
  background: #FEF3C7;
  color: #D97706;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.service-features {
  list-style: none;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.service-features li i {
  color: var(--success-green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.service-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-royal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.service-action-link:hover {
  color: var(--primary-navy);
  transform: translateX(3px);
}

.service-action-link.emergency-link {
  color: var(--emergency-red);
}

/* ==========================================================================
   UTI & QUIRÓFANOS BANNER
   ========================================================================== */
.uti-section {
  padding: 2rem 0;
}

.uti-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-royal) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .uti-banner {
    padding: 4.5rem;
  }
}

.uti-banner-content {
  max-width: 800px;
}

.uti-banner h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .uti-banner h2 {
    font-size: 2.8rem;
  }
}

.uti-banner p {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.uti-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .uti-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

.uti-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #F1F5F9;
}

.uti-highlight-item i {
  color: #38BDF8;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   GUÍA AL PACIENTE & FAQ
   ========================================================================== */
.patient-guide-section {
  padding: 6rem 0;
}

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

@media (min-width: 992px) {
  .guide-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--primary-royal);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

.accordion-header span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-header span i {
  color: var(--primary-royal);
  width: 20px;
  height: 20px;
}

.accordion-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary-royal);
}

.accordion-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-body ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.accordion-body li {
  margin-bottom: 0.4rem;
}

.human-care-card {
  background: linear-gradient(145deg, #F8FAFC, #EFF6FF);
  border: 1px solid #DBEAFE;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.care-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-royal);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.human-care-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--primary-navy);
}

.human-care-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.care-contact-box {
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.care-contact-box h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.care-contact-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   TURNOS & CONTACTO
   ========================================================================== */
.turnos-section {
  background: #F8FAFC;
  padding: 6rem 0;
}

.turnos-container-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .turnos-container-box {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 3.5rem;
    gap: 4rem;
  }
}

.turnos-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.turnos-info p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.contact-point {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-point i {
  width: 38px;
  height: 38px;
  background: var(--accent-cyan-light);
  color: var(--primary-royal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-point strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.contact-point span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.urgency-warning {
  display: flex;
  gap: 0.85rem;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: #9F1239;
}

.urgency-warning i {
  width: 22px;
  height: 22px;
  color: var(--emergency-red);
  flex-shrink: 0;
}

/* Formularios */
.turnos-form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
}

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

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

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 2.75rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-dark);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-royal);
  box-shadow: 0 0 0 3px rgba(0, 31, 209, 0.15);
}

.form-feedback, .modal-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--success-green-light);
  border: 1px solid #A7F3D0;
  color: #065F46;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.form-feedback i, .modal-feedback i {
  color: var(--success-green);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   CÓMO LLEGAR & MAPA
   ========================================================================== */
.location-section {
  padding: 6rem 0;
  background: #FFFFFF;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .location-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
  }
}

.location-info-card {
  background: var(--bg-card-alt);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.loc-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.loc-pin-icon {
  width: 40px;
  height: 40px;
  color: var(--emergency-red);
  flex-shrink: 0;
}

.loc-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.address-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.transport-options, .access-routes {
  margin-bottom: 1.75rem;
}

.transport-options h4, .access-routes h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.transport-options p, .access-routes p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.bus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bus-badge {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--primary-royal);
}

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .location-actions {
    flex-direction: row;
  }
}

.location-map-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  min-height: 380px;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

/* ==========================================================================
   FOOTER & LOGO
   ========================================================================== */
.main-footer {
  background: var(--primary-navy);
  color: #CBD5E1;
  padding-top: 4.5rem;
}

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

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 3rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  padding: 2px;
}

.text-white { color: #FFFFFF; }
.text-slate-400 { color: #94A3B8; }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #94A3B8;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

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

.social-btn:hover {
  background: var(--primary-royal);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

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

.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-links li a:hover {
  color: #38BDF8;
  transform: translateX(4px);
}

.footer-links li a i {
  width: 14px;
  height: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-contact-item i {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.text-red { color: #EF4444; }
.text-cyan { color: #38BDF8; }
.text-green { color: #34D399; }

.footer-contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: #FFFFFF;
}

.footer-contact-item span {
  font-size: 0.88rem;
  color: #94A3B8;
}

.footer-phone-highlight {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #EF4444;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: #64748B;
}

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

@media (min-width: 768px) {
  .footer-bottom-flex {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   BARRA FIJA INFERIOR OPTIMIZADA PARA MÓVILES (IPHONE / ANDROID / NETLIFY)
   ========================================================================== */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  z-index: 99999;
  box-sizing: border-box;
  
  /* Evita que se tape con la barra de gestos de iPhone y la insignia de Netlify */
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px) + 48px);
}

.btn-action {
  flex: 1;                     /* Cada botón ocupa exactamente el 50% */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                    /* Espacio entre el icono y el texto */
  min-height: 46px;            /* Altura táctil ideal */
  border-radius: 12px;         /* Bordes redondeados modernos */
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;         /* Nunca rompe el texto en 2 renglones */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-action:active {
  transform: scale(0.97);      /* Efecto de pulsación natural en el celular */
}

.btn-turnos {
  background-color: var(--primary-royal);
  color: #FFFFFF !important;
}

.btn-turnos:hover {
  background-color: var(--primary-royal-dark);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF !important;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
}

/* En Computadoras (Escritorio / Tablets) */
@media (min-width: 768px) {
  .fixed-bottom-bar {
    width: auto;
    left: auto;
    right: 24px;
    bottom: 24px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
  
  .btn-action {
    flex: initial;
    min-width: 170px;
    padding: 12px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }
}

/* ==========================================================================
   MODAL DE TURNOS & LOGO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 21, 43, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card-alt);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  padding: 2px;
  border: 1px solid var(--border-light);
}

.modal-title-group h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer-btns {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1100;
  font-size: 0.9rem;
  animation: fadeIn 0.2s ease;
}

.toast-notification i {
  color: var(--success-green);
  width: 18px;
  height: 18px;
}
