/* Normalización básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

header {
    background-color: #003366;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #003366;
    padding: 15px 30px;
    gap: 20px;
    font-family: Arial, sans-serif;
    flex-wrap: wrap; /* Mejor para móviles */
   
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s ease;
}


.menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #c62828;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.menu a:hover,
.menu a.active {
    color: #c62828; /* Rojo en hover y activo */
}

.menu a:hover::after,
.menu a.active::after {
    width: 60%;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: whitesmoke;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .menu-toggle {
        display: block;
    }
}


.logo img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    image-rendering: auto;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* sombra base */
}

.logo img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.8); /* sombra al resaltar */
}



@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
        margin-bottom: 10px;
    }

  

    .menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
          transition: max-height 0.3s ease-out;
    overflow: hidden;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        width: 100%;
        padding: 10px 15px;
    }

    .Title h2 {
        font-size: 18px;
    }

    .logo img {
        height: 50px;
        width: 50px;
    }
}




.Title h2 {
    font-size: 2rem;
    background: linear-gradient(
        to right,
        #f4f4f4 20%,
        #38b6ff 40%,
        #38b6ff 60%,
        #f4f4f4 80%
    );
    background-size: 200%;
    color: transparent;
    background-clip: text;
    animation: shine 2s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.Title {
    margin-left: -12px;
}

nav {
    position: relative;
}

.menu-toggle {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}



.header-left {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

main {
    padding: 20px;
}

footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 10px;
}
.carousel-container {
    margin-top: 30px;
    position: relative;
    max-width: 2500px;
    margin-left: auto;
    margin-right: auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    text-align: center;
    font-weight: bold;
    z-index: 1;
    background: none;
    backdrop-filter: none;
    transition: color 0.3s ease;
}

.carousel-caption:hover {
    color: rgb(18, 51, 194);
}


.carousel-slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}

.carousel-btn:hover {
    color: #38b6ff;
    transform: translateY(-50%) scale(1.2);
    filter: drop-shadow(0 0 10px rgba(56, 182, 255, 0.8));
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
    color: #ffffffcc;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}


.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px 10px 0 0;

    
}
.Titulo {
    position: relative;
    font-size: 2.5rem;
    color: #003366;
    font-family: 'Helvetica Neue', sans-serif;
    margin: 40px auto;
    text-align: center;
    display: block;
    width: fit-content;
}

/* Línea decorativa debajo del título */
.Titulo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, #38b6ff, transparent);
}
@keyframes slide-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .mvv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: #f4f8fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .mvv-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    opacity: 0; /* Empieza invisible */
  }
  
  .mvv-card.visible {
    animation: slide-up 0.6s ease-out forwards;
  }
  
  .mvv-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .mvv-card h2 {
    color: #0066cc;
    margin-bottom: 1rem;
  }
  
  .mvv-card p, .mvv-card ul {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .mvv-card ul {
    list-style: none;
    padding: 0;
  }
  
  .mvv-card ul li {
    margin-bottom: 0.5rem;
    text-align: left;
    padding-left: 1.5rem;
    position: relative;
  }
  
  .mvv-card ul li::before {
    content: "✔";
    color: #27ae60;
    position: absolute;
    left: 0;
  }

.contact-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #eef2f5 100%);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
}

.contact-info, 
.contact-form {
    flex: 1 1 350px;
    padding: 40px;
}

.contact-info {
    background-color: #0066cc;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0066cc;
}

.form-group {
    margin-bottom: 20px;
}


.contact-section {
    padding: 50px;
    background-color: #f2f2f2;
}

.contact-container {
    display: flex;
    flex-direction: row;
    transition: all 0.6s ease-in-out;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.contact-info {
    flex: 1 1 40%;
    background-color: #1e52c3;
    color: white;
    padding: 30px;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.6s ease-in-out;
}

.contact-info a {
    color: #cddcff;
}

.contact-info i {
    margin-right: 8px;
}

.mapa-container {
    margin-top: 20px;
}

.toggle-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #1e52c3;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: #dbe5ff;
}

.email-text {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


.contact-form {
    flex: 0 0 0%;
    overflow: hidden;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 0;
    opacity: 0;
    transition: all 0.6s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-form.active {
    flex: 1 1 40%;
    max-width: 600px;
    opacity: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f8f8;
}

.contact-form button {
    padding: 12px 20px;
    background-color: #1e52c3;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #163f99;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form.active {
        max-width: 100%;
    }
}
.social-icons-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 25px;
}

.icon-link {
  color: white; /* ajusta según tu fondo */
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-link:hover {
  transform: scale(1.2);
  color: #ff4081; /* o el color que prefieras al hacer hover */
}





  
:root {
  --primary: #cc0000;       /* Rojo principal */
  --primary-dark: #990000;  /* Rojo oscuro */
  --primary-light: #ffe6e6; /* Rojo claro */
  --accent: #2c7be5;       /* Azul para acentos */
  --text: #333333;         /* Texto principal */
  --text-light: #666666;   /* Texto secundario */
  --bg: #f8fafc;          /* Fondo principal */
  --card-bg: #ffffff;     /* Fondo de tarjetas */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --radius: 10px;         /* Border radius */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --azul-marino: #001F3F;
  --rojo-salud: #C70039;
  --blanco: #ffffff;
  --gris-suave: #f8f9fa;
}

/* Estilos base mejorados */
body {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text);
}

/* Sección de servicios - Versión mejorada */
.servicios-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.servicios-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  font-weight: 700;
}

.servicios-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Grid de servicios moderno */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 2rem;
}

/* Tarjetas de servicio mejoradas */
.servicio {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.servicio-titulo {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.servicio-titulo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
  transition: var(--transition);
}

.servicio-titulo:hover {
  background-color: var(--primary-dark);
  padding-left: 1.8rem;
}

.servicio-titulo:hover::after {
  left: 100%;
}

.servicio-titulo i {
  transition: transform 0.3s ease;
}

.servicio-titulo.active i {
  transform: rotate(180deg);
}

/* Lista de servicios mejorada */
.servicio-lista {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
}

.servicio-lista.mostrar {
  max-height: 1000px;
  padding: 1.5rem;
}

.servicio-lista ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.servicio-lista li {
  background-color: var(--primary-light);
  margin: 0.8rem 0;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.servicio-lista li:hover {
  transform: translateX(5px);
  background-color: #ffd6d6;
}

.servicio-lista li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1rem;
  font-weight: bold;
}

/* Iconos mejorados */
.servicio-lista li i {
  margin-right: 0.8rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.servicio-lista li:hover i {
  transform: scale(1.2);
  color: var(--primary-dark);
}

/* Efectos especiales */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.servicio {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.servicio:nth-child(1) { animation-delay: 0.1s; }
.servicio:nth-child(2) { animation-delay: 0.2s; }
.servicio:nth-child(3) { animation-delay: 0.3s; }
.servicio:nth-child(4) { animation-delay: 0.4s; }

/* Responsive design mejorado */
@media (max-width: 768px) {
  .servicios-section {
    padding: 2rem 1.5rem;
  }
  
  .servicios-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .servicio-titulo {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
    #info-salud {
    padding: 3rem 0;
  }
  
  #info-salud .section-title {
    font-size: 2rem;
  }
  
  #info-salud .lead {
    font-size: 1rem;
  }
  
  #info-salud .search-input {
    padding: 12px 20px 12px 45px;
  }
  
  #info-salud .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  #lista-enfermedades .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
 
}


  .notificacion-exito {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 9999;
  font-weight: bold;
  animation: fadein 0.5s ease, fadeout 0.5s ease 4.5s;
}

.oculto {
  display: none;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeout {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

.info-contenedor {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  flex-wrap: wrap;
}

.descripcion-unidad {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  font-size: 16px;
  color: #333;
}

.instagram-section {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.instagram {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 20px auto;
  max-width: 500px;
}

.insta-box {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  padding: 10px;
}

.insta-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}


.instagram-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 40px auto;
  flex-wrap: wrap; /* para responsive */
}

.insta-texto {
  flex: 1;
  max-width: 400px;
}

.insta-texto h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.insta-texto p {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}





.insta-publicacion {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}



.descripcion-unidad {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f3faff;
  border-left: 6px solid #0057a8;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.descripcion-unidad h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #0057a8;
}

.descripcion-unidad p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.logos-cooperativa {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin: 20px auto 40px;
  max-width: 1000px;
  padding-left: 30px;
}

.logo-circular {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.logo-circular:hover {
  transform: scale(1.05);
}


.barra-localidades {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px auto;
  max-width: 600px;
  padding: 15px 20px;
  background: linear-gradient(to right, #fefefe, #f5f5f5);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  border: 1px solid #e0e0e0;
}

.btn-localidad {
  text-decoration: none;
  color: white;
  background: linear-gradient(to right, #007B7A, #009f9d);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-localidad:hover {
  background: linear-gradient(to right, #005f5f, #008b89);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.bio-accordion-container {
  font-family: 'Segoe UI', sans-serif;
  color: #0a1f44;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.bio-accordion-title {
  font-size: 2rem;
  color: #0a1f44;
  border-bottom: 3px solid #c62828;
  display: inline-block;
  margin-bottom: 20px;
}

.bio-accordion {
  margin-bottom: 15px;
  border-left: 5px solid #c62828;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.bio-accordion button {
  width: 100%;
  padding: 15px 20px;
  text-align: left;
  background: #f9f9f9;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: bold;
  color: #0a1f44;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.bio-accordion button i {
  margin-right: 10px;
  color: #0a1f44;
}

.bio-accordion-content {
  display: none;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.bio-accordion.active .bio-accordion-content {
  display: block;
}

.bio-accordion .arrow {
  transition: transform 0.3s ease;
}

.bio-accordion.active .arrow {
  transform: rotate(180deg);
}



   .banner-mapa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #f0f8ff;
  padding: 30px;
  gap: 20px;
}

.texto-mapa {
  flex: 1 1 300px;
}

.texto-mapa h1 {
  color: #001b4e;
  font-size: 1.8em;
  margin: 0;
}

.texto-mapa .azul {
  color: #4ec2e7;
}

.mapa-interactiva {
  flex: 1 1 400px;
  height: 300px;
  min-width: 280px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .banner-mapa {
    flex-direction: column;
    text-align: center;
  }
}


#map {
  
  width: 100%;
  height: 400px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}




.sucursal-titulo {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #b30000;
  border-bottom: 3px solid #b30000;
  display: inline-block;
  padding-bottom: 5px;
}

.bio-accordion {
  margin: 10px auto;
  max-width: 520px;
  background-color: #fff;
  border-radius: 10px;
  border-left: 6px solid #b30000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.bio-accordion button {
  background-color: #fff;
  color: #2b2b2b;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.bio-accordion button:hover {
  background-color: #f8f8f8;
}

.bio-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.bio-accordion-content ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  text-align: left;
}

.bio-accordion-content li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #444;
}

.arrow {
  transition: transform 0.3s ease;
  color: #b30000;
}

.active .bio-accordion-content {
  max-height: 400px;
}

.active .arrow {
  transform: rotate(180deg);
}

i.fas {
  margin-right: 10px;
  color: #b30000;
}



.servicios-section h2 {
  border-bottom: none !important;
}






/* Estilos para la sección "¿Por qué Unidad Médica Juárez?" */
#por-que-umj {
  padding: 5rem 0;
  background-color: #f8fafc;
}

#por-que-umj .section-title {
  color: #001F3F;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

#por-que-umj .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #001F3F, #C70039);
  margin: 1rem auto 0;
}

#por-que-umj ul {
  list-style: none;
  padding-left: 0;
}

#por-que-umj li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}



#por-que-umj strong {
  color: #001F3F;
}

#por-que-umj img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#por-que-umj img:hover {

  transform: scale(1.02);
}

/* Estilos para la sección "Salud Incluyente" */
#salud-incluyente {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #eef2f5 100%);
}

#salud-incluyente .badge {
  background-color: #C70039;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

#salud-incluyente h2 {
  color: #001F3F;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

#salud-incluyente p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

#salud-incluyente .quote {
  background-color: rgba(255, 255, 255, 0.8);
  border-left: 4px solid #C70039;
  padding: 1.5rem;
  font-style: italic;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

#salud-incluyente img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Estilo para la sección completa */
#info-salud {
  padding: 5rem 0;
  text-align: center;
  background-color: #f8fafc;
  background-image: linear-gradient(to bottom, #ffffff, #f0f7ff);
}

/* Título y descripción */
#info-salud .section-title {
  color: #001F3F;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

#info-salud .section-title::after {
  content: '';
  position: absolute;
  text-align: center;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #001F3F, #C70039);
  border-radius: 2px;
}

#info-salud .lead {
  color: #4a5568;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Barra de búsqueda mejorada */
#info-salud .search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

#info-salud .search-input {
  width: 100%;
  padding: 15px 25px 15px 50px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#info-salud .search-input:focus {
  outline: none;
  border-color: #C70039;
  box-shadow: 0 4px 20px rgba(199, 0, 57, 0.15);
}

#info-salud .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #C70039;
  font-size: 1.2rem;
}

/* Contenedor general */
#lista-enfermedades .list-group-item {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  font-size: 1rem;
  color: #333;
}

/* Ícono médico */
#lista-enfermedades .list-group-item i {
  color: var(--primary, #cc0000);
  font-size: 1.2rem;
  min-width: 20px;
}

/* Enlace de enfermedad */
#lista-enfermedades .list-group-item a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Hover efecto */
#lista-enfermedades .list-group-item:hover {
  transform: translateY(-3px);
  background-color: #fef6f6;
  border-color: #ffdcdc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#lista-enfermedades .list-group-item:hover a {
  color: var(--primary-dark, #990000);
}



/* Animaciones */
#info-salud .animate__animated {
  animation-duration: 0.8s;
}

.familia-section {
  text-align: center;
  padding: 30px 15px;
  background-color: #f8f8f8;
}

.familia-section h3 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 15px;
}

.familia-img {
  max-width: 40%; /* antes estaba en 100% */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


