/* =========================
   BASE
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--white);
  color: var(--gray-900);
  scroll-behavior: smooth;
}

.container {
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-top {
  position: relative;
  display: block;
  text-align: center;
  padding: 0.8rem 1rem;
}

.logo-box picture img {
    height: 60px;         /* 🔧 Tamaño fijo del logo */
    width: auto;          /* Mantiene proporción */
    display: inline-block;
    margin: 0 auto;
    vertical-align: middle;
  }

.menu-mobile-btn-wrap {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.menu-mobile-btn {
  background: transparent;
  border: 0;
  color: var(--gray-800);
  cursor: pointer;
  padding: .25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-24 { width: 24px; height: 24px; }

/* ===== ANIMACIÓN FADE MENU MÓVIL ===== */
.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
    z-index: 70;
  
    /* animación */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  }
  
  .mobile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
.mobile-menu-inner { display:flex; flex-direction:column; gap: .75rem; }
.mobile-link { color: var(--gray-800); font-weight:500; text-decoration:none; }
.mobile-link:hover { color: var(--primary-600); }

.header-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  background: var(--white);
}
.navbar { display:flex; justify-content:center; }
.menu-desktop {
  display: none;
  gap: 2rem;
  padding: .75rem 0;
}
.nav-link {
  color: var(--gray-800);
  font-weight: 500;
  text-decoration: none; /* importante: no subrayado */
  transition: color .2s ease;
  margin-left:40px;
  margin-right:40px;
}
.nav-link:hover { color: var(--primary-600); }

@media (min-width: 1150px) {
  .menu-desktop { display:flex; }
  .menu-mobile-btn-wrap { display: none; }
  .mobile-menu { display: none !important; }
}

.hidden { display: none !important; }

/* =========================
   SECCIONES GENERALES
========================= */
.section-header.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-title {
  font-size: clamp(1.75rem, 1.2vw + 1rem, 2.25rem);
  font-weight: 700;
}
.section-underline {
  width: 5rem;
  height: 4px;
  background: var(--primary-600);
  margin: 1rem auto 0;
}
.section-description {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  color: var(--gray-600);
  font-size: 1.125rem;
}

/* ================== SECCIÓN PRESTACIONES ================== */
#especialidades {
  padding: 5rem 1.5rem;
  background: var(--white);
  text-align: center;
}

#especialidades .section-title {
  font-size: 2rem;
  color: var(--black);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#especialidades .section-description {
  color: var(--gray-700);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* ===== SUBSECCIONES ===== */
.prestacion-subseccion {
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prestacion-subseccion:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== COLORES DIFERENCIADOS ===== */
.bg-azul {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.bg-gris {
  background: linear-gradient(135deg, #6c757d, #adb5bd);
}

.bg-verde {
  background: linear-gradient(135deg, #2a9d8f, #52b788);
}

/* ===== TEXTO ===== */
.subtitulo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subtexto {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 500;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .prestacion-subseccion {
    padding: 2rem 1.5rem;
  }

  .subtitulo {
    font-size: 1.25rem;
  }

  .subtexto {
    font-size: 0.95rem;
  }
}

  
/* Footer */
.footer {
    background:#193e8e ;
    color: #fff;
    padding: 3rem 1.5rem;
  }
  .footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }
  
  .footer-logo{ margin-bottom: 1rem; }
  .footer-text { color: #e5e7eb; margin-bottom: 1.5rem; }
  .footer-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
  .footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
  .footer-link { color: #e5e7eb; text-decoration: none; transition: color .3s ease; }
  .footer-link:hover { color: #ffffff; }
  .footer-bottom {
    border-top: 1px solid #ffffff;
    margin-top: 2.5rem; padding-top: 1.5rem;
    text-align: center;
    color: #fff;
  }
  
  @media (min-width: 768px) { /* md */
    .footer-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .footer-col-span2 {
      grid-column: span 2;
    }
  }
  
  /* Espaciados heredados del diseño */
  .mb-6 { margin-bottom: 1.5rem; }
  
  /* Ajustes responsivos específicos */
  @media (min-width: 640px) { /* sm */
    .hero-cta { gap: 1rem; }
  }
  @media (min-width: 768px) { /* md */
    .section { padding: 5rem 3rem; }
  }
  

.social-row { display:flex; gap: .75rem; align-items:center; margin-top:.5rem; }
.footer-social {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px; height:42px;
  border-radius:9px;
  background: rgba(255,255,255,0.08);
  color: #d1d5db;
  text-decoration:none;
  transition: background .2s ease, transform .15s ease;
}
.footer-social:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.footer-social svg { width:20px; height:20px; display:block; }

/* Tamaño del logo en el footer */
.footer-col-span2 picture img {
    height: 60px;        /* 🔧 Fija el alto del logo */
    width: auto;         /* Mantiene la proporción */
    display: block;
    margin-bottom: 1rem;
  }
  
  /* Opcional: versión más pequeña en pantallas móviles */
  @media (max-width: 480px) {
    .footer-col-span2 picture img {
      height: 50px;
    }
  }
  