/* Variables de color actualizadas */
:root {
  --primary-color: #003366;
  --secondary-color: #007BFF;
  --background-color: #F7F6F4;
  --text-color: #003366; /* Cambiado a azul según requerimiento */
  --font-family: 'Arial', sans-serif;
  --font-size-h3: 2rem;
  --font-size-h2: 1.5rem;
  --font-size-p: 1.2rem;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
  color: var(--text-color); /* Texto azul en todo el sitio */
}

/*-----------------------------------Inicio Barra de navegación-----------------------------------*/
header {
  background: var(--background-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 500;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  position: relative;
}

nav .logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: var(--primary-color);
}

nav img.logo {
  height: 90px;
  width: auto;
  margin-right: 10px;
  margin-left: 30px;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  justify-content: center; /* Centrado mejorado del menú */
  flex: 1;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Clase para ocultar elementos */
.invisible {
  display: none;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1000;
}

/* -------------------- Responsive Navbar -------------------- */
@media (max-width: 750px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 55vh;
    width: 50%;
    background: var(--background-color);
    transform: translateX(100%);
    opacity: 0;
    padding-top: 100px;
    align-items: center;
    justify-content: start;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
  }

  nav ul li {
    margin: 20px 0;
    font-size: 15px;
  }

  nav.active ul {
    transform: translateX(0);
    opacity: 1;
  }
}

/*-----------------------------------Fin Barra de navegación-----------------------------------*/

/*-----------------------------------Index-----------------------------------*/
/*-----------Primera sección-----------------------------------*/
.seccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 20px 25px 25px 25px;
  background: #F1EEEA;
  min-height: 50vh;
}

.seccion .contenido {
  max-width: 50%;
}

.seccion h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center; /* Centrado de títulos */
}

.seccion p {
  font-size: 1.2rem;
  color: var(--text-color); /* Texto azul */
  margin-bottom: 30px;
  text-align: center; /* Centrado de textos */
}

.seccion .imagen img {
  max-width: 60%;
  height: auto;
  object-fit: contain;
}

.seccion .contenido .btn-SacarTurno {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.seccion .contenido .btn-SacarTurno:hover {
  background-color: #005fa3;
}

/* Ocultar el botón de sacar turno*/
.seccion .contenido .btn-SacarTurno {
  display: none;
}

/* Sección en 2 columnas */
.seccionQuienes {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 10%;
  background-color: #f9f9f9;
  gap: 40px;
}

/* Columna izquierda/derecha */
.seccionQuienes .columna {
  flex: 1;
  text-align: center; /* Centrado de contenido */
}

.seccionQuienes h2 {
  color: var(--primary-color);
  font-size: var(--font-size-h2);
  margin-bottom: 15px;
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

.seccionQuienes p {
  color: var(--text-color); /* Texto azul */
  line-height: 1.6;
  font-size: var(--font-size-p);
  text-align: center; /* Centrado de textos */
}

.seccionQuienes ul {
  list-style-type: disc;
  list-style-position: inside;
  padding: 10 30%;
  margin-bottom: 15px;
  text-align: left;
}

.seccionQuienes ul li {
  margin-bottom: 8px;
  color: var(--primary-color); /* Texto azul */
  font-weight: 500;
  text-align: left;
}

/* Link de ver más */
.link-especialidades {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}

.link-especialidades:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* pasa a 1 columna en celular*/
@media (max-width: 600px) {
  .seccion {
    flex-direction: column;
    text-align: center;
  }

  .seccionQuienes {
    flex-direction: column;
    padding: 40px 20px;
  }
  .seccion .columna {
    width: 100%;
  }
}

.SectionNoticias {
  align-items: flex-start;
  padding: 30px 10%;
  background-color: #f9f9f9;
  gap: 40px;
}

.SectionNoticias h3 {
  color: var(--primary-color);
  font-size: var(--font-size-h3);
  margin-bottom: 15px;
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

.SectionNoticias h2 {
  color: var(--primary-color);
  font-size: 30px;
  margin-bottom: 15px;
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

/* Párrafos */
.SectionNoticias p {
  color: var(--text-color); /* Texto azul */
  line-height: 1.6;
  font-size: 25px;
  text-align: center; /* Centrado de textos */
}

.SectionNoticias .imagenNoticias {
  display: grid;
  height: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.SectionNoticias .imagenNoticias img {
  width: 80%;
  height: 70%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Efecto hover */
.SectionNoticias .imagenNoticias img {
  width: 80%;
  height: 70%;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.SectionNoticias .imagenNoticias img:hover {
  transform: scale(1.50);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal de imagen ampliada */
#modalImagen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#modalImagen img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
}





@media (max-width: 900px) {
  .SectionNoticias .imagenNoticias {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .SectionNoticias .imagenNoticias {
    grid-template-columns: 1fr;
  }
}

/*-----------------------------------Fin Index-----------------------------------*/

/*-----------------------------------Sobre-----------------------------------*/

.sobre {
  align-items: flex-start;
  padding: 60px 10%;
  background-color: #f9f9f9;
  gap: 40px;
  text-align: center; /* Centrado general */
}

.sobre h3 {
  font-size: var(--font-size-h3);
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

.sobre h2 {
  font-size: var(--font-size-h2);
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

.sobre p {
  color: var(--text-color); /* Texto azul */
  line-height: 1.6;
  font-size: var(--font-size-p);
  text-align: center; /* Centrado de textos */
}

.sobre ul {
  list-style-type: disc;
  list-style-position: inside;
  padding: 0;
  margin-bottom: 15px;
  text-align: left;
}

.sobre ul li {
  margin-bottom: 8px;
  color: var(--text-color); /* Texto azul */
  font-family: var(--font-family);
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
}

/* Misión y Visión lado a lado */
.MisionyVision {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 40px 0;
}

.Mision {
  flex: 1;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center; /* Centrado de contenido */
}

.Mision h2 {
  color: var(--primary-color);
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

.Mision p {
  text-align: center; /* Centrado de textos */
}

.Valores {
  margin: 40px 0;
  text-align: center; /* Centrado de contenido */
}

.Valores h2 {
  color: var(--primary-color);
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

.quienesSomos {
  margin: 40px 0;
  text-align: center; /* Centrado de contenido */
}

.quienesSomos h2 {
  color: var(--primary-color);
  font-weight: bold; /* Negrita en títulos */
  text-align: center; /* Centrado de títulos */
}

/* Responsive para Misión y Visión */
@media (max-width: 768px) {
  .MisionyVision {
    flex-direction: column;
  }
}

/*-----------------------------------Fin Sobre-----------------------------------*/

/*-----------------------------------Especialidades-----------------------------------*/
/* ===== CONTENEDOR PRINCIPAL DE TODAS LAS ESPECIALIDADES ===== */
.especialidades-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 3.75rem 10%;
  background-color: var(--light-gray);
}

/* ===== GRUPO INDIVIDUAL DE ESPECIALIDAD (lista + imagen) ===== */
.especialidades-group {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

/* ===== COLUMNA DE LA LISTA ===== */
.especialidades-list {
  flex: 1;
  max-width: 60%;
}

.especialidades-list h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.especialidades-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.especialidades-list li {
  padding: 0.75rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 1.5rem;
}

.especialidades-list li:before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== COLUMNA DE LA IMAGEN ===== */
.especialidades-imagen {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.especialidades-imagen img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .especialidades-container {
    padding: 2rem 5%;
    gap: 3rem;
  }
  
  .especialidades-group {
    flex-direction: column;
    gap: 2rem;
  }
  
  .especialidades-list {
    max-width: 100%;
  }
  
  .especialidades-list h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .especialidades-imagen {
    flex: none;
    width: 100%;
  }
  
  .especialidades-imagen img {
    max-height: 300px;
  }
}

/*-----------------------------------Fin Especialidades-----------------------------------*/

/*-----------------------------------Footer Mejorado-----------------------------------*/
.footer {
  background-color: #0d3b66;
  color: white;
  padding: 1.5rem 0.5rem; /* Achicado ligeramente */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 250px;
  margin: 1rem;
  text-align: center; /* Centrado de contenido */
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem; /* Tamaño reducido */
}

.footer-col p,
.footer-col a {
  margin: 0.5rem 0;
  font-size: 1rem; /* Tamaño reducido */
  color: #f0f0f0;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem; /* Margen reducido */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
  font-size: 0.9rem;
}

.map-container {
  margin-top: 10px;
}

.map-container iframe {
  border-radius: 10px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-col {
    margin: 1rem 0;
    text-align: center;
  }
}

/*-----------------------------------Fin Footer-----------------------------------*/