/* ===========================================
   COLORES INSTITUCIONALES FEMAP
=========================================== */
:root {
  --azul-femap: #00359a;
  --azul-claro: #4fc0f2;
  --naranja: orange;
  --blanco: #fff;
  --negro: #000;
  --green: green;
}

.white {
  color: var(--blanco);
}

.blue {
  color: var(--azul-femap);
}

.light-blue {
  color: var(--azul-claro);
}

.orange {
  color: var(--naranja);
}

.whiteback2 {
  background-color: var(--blanco);
  color: var(--naranja);
  border: 1px var(--azul-femap);
}

.whiteback {
  background-color: var(--blanco);
  color: var(--azul-femap);
  border: var(--azul-femap);
}

.blueback {
  background-color: var(--azul-femap);
  color: var(--blanco);
}

.oragenback {
  background-color: var(--naranja);
  color: var(--blanco);
}


body,
.wrapper {
  background-color: #fff !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
}

.section {
  padding: 10px 0;
}

.topmargin {
  margin-top: 50px;
}

/* ===========================================
   SLIDER PRINCIPAL
=========================================== */
#slider {
  overflow: hidden;
  width: 100%;
}

#slider figure {
  display: flex;
  width: 400%;
  /* si tienes 4 imágenes */
  margin: 0;
  left: 0;
  font-size: 0;
  animation: slidy 30s infinite;
  position: relative;
}

#slider figure img {
  width: 25%;
  height: auto;
  /* ✅ Importante para que se escale proporcionalmente */
  object-fit: contain;
  /* ✅ Opcional si quieres escalar sin cortar */
  float: left;
  display: block;
}

@keyframes slidy {
  0% {
    left: 0%;
  }

  20% {
    left: 0%;
  }

  25% {
    left: -100%;
  }

  45% {
    left: -100%;
  }

  50% {
    left: -200%;
  }

  70% {
    left: -200%;
  }

  75% {
    left: -300%;
  }

  95% {
    left: -300%;
  }

  100% {
    left: 0%;
  }

  /* vuelve al inicio sin mostrar blanco */
}

/* Contenedor de la imagen para que se ajuste al ancho */
.about-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* si quieres bordes redondeados */
  object-fit: cover;
}

/* Para el texto */
.heading-12 .blue.titulos {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 1rem;
}

.heading-12 .paragraph {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #00359a;
}

.heading-12 .heading-desc {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

/* ===========================================
   About  PRINCIPAL
=========================================== */
.about-img {
  width: 100%;
  height: auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Botón */
.btn--secondary-dark.butonpill {
  background-color: #00359a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn--secondary-dark.butonpill:hover {
  background-color: #002d7a;
  color: white;
}

.butonpill-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50rem;
  border: 2px solid var(--azul-femap);
  background-color: #fff;
  color: var(--naranja);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.butonpill-outline:hover,
.butonpill-outline:focus {
  background-color: var(--azul-femap);
  color: #fff;
  text-decoration: none;
}

.btn--secondary-bright.butonpill {
  background-color: #4fc0f2;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn--secondary-bright.butonpill:hover {
  background-color: #4fc0f2;
  color: white;
}

/* especialidade home */

.about.about-3 {
  padding-bottom: 0;
  /* Espacio para el footer */
}



.logo-consejo {
  height: 3.2em;
  /* Aproximadamente dos líneas de texto */
  object-fit: contain;
}

.logo-footer {
  /* margin-left: 25%; */
  width: 60%;
  /* margin-bottom: 5%; */
}

/* Responsive */


/* ===========================================
   BOTONES
=========================================== */
.btn-femap {
  background-color: var(--azul-femap);
  color: var(--blanco);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-femap:hover {
  background-color: #002e85;
  color: var(--blanco);
}

.butonpill {
  padding: 10px 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 16px;
}

/* ===========================================
   SECCIONES CON IMÁGENES
=========================================== */
.donations-img img,
#unidades-medicas img,
.about-img img,
.double-img-mobile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.donations-img,
.double-img-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===========================================
   LISTAS DE ESPECIALIDADES - CORREGIDA
=========================================== */
ul.column,
.especialidades-list {
  display: block;
  /* MÓVIL: Por defecto, los <ul> se comportan como bloque y se apilan */
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

ul.column li,
.especialidades-list li {
  font-size: 14px;
  line-height: 1.4;
  color: var(--blanco);
  font-weight: 600;
  margin-bottom: 5px;
  /* Añade un pequeño espacio entre ítems en móvil */
}

.bulletsheading {
  font-size: 40%;
}

.especialidades-list {
  display: block;
  /* MÓVIL: Confirmamos el comportamiento de apilamiento */
  gap: 0;
}

.especialidades-list li {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--blanco);
}

/* pagina um */
.especialidades-list2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.especialidades-list2 li {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--azul-femap);
}

/* ===========================================
   REGLA PARA ESCRITORIO (Dos Columnas)
=========================================== */
/* Aplica a partir de pantallas medianas (768px y más) */
@media (min-width: 768px) {

  /* Habilitamos el grid para las dos columnas de Bootstrap, y el grid interno para los ítems */
  .col-md-6 .especialidades-list {
    display: grid;
    /* Esta regla crea varias columnas dentro del 50% de ancho del col-md-6 */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
  }
}

/* ===========================================
seccion unidades medicas 
=========================================== */

#unidades-medicas ul.column.blue li {
  color: var(--azul-femap);
  /* color azul oscuro similar al de tu branding */
  list-style: none;
  /* ya lo tienes, por si acaso */
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 1rem;
}

#unidades-medicas ul.column.blue li i.fas.fa-circle.bulletsheading {
  color: var(--azul-femap);
  /* mismo azul para los bullets */
  margin-right: 0.5rem;
}

/* ===========================================
   CONTADORES
=========================================== */
.pq-counter-info {
  max-width: 300px;
  padding: 1rem;
  border-right: 1px solid #eee;
  margin: 0 auto;
  /* centra el bloque si cabe */
}

.pq-counter-info:last-child {
  border-right: none;
}

.pq-counter-info .stats {
  display: block;
  width: 60%;
  /* La imagen ocupa la mitad del ancho del contenedor */
  max-width: 90px;
  /* tamaño máximo para no crecer demasiado */
  height: auto;
  margin: 0 auto 10px auto;
  /* centrada y con separación abajo */
}

.pq-count {
  font-size: 60px;
  /* tamaño más pequeño para los números */
  /* font-weight: 700; */
  color: var(--blanco);
  line-height: 1.2;
  margin-bottom: 6px;
  display: block;
}

.pq-counter-title {
  font-size: 20px;
  color: var(--blanco);
  text-transform: uppercase;
  margin: 0;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--azul-femap);
  color: white;
  padding: 15px 0;
  text-align: center;
  z-index: 10;

}

footer.footer {
  display: block;
  /* posi tion: relative; */
  z-index: 1;
  background-color: var(--azul-femap);
  color: var(--blanco);
  /* padding: 60px 0 30px; */
  overflow: visible;
}

.footer-spacer {
  height: 40px;
}

.footer-copyright {
  height: 90px;
}


/* section:last-of-type {
  margin-bottom: 80px;
}


.section:last-of-type {
  margin-bottom: 60px; 
} */


.listas {
  margin-left: 25%;
  text-align: justify;
}


.footer .footer-top {
  padding: 20px 0;

}

.module-social-footer {
  align-items: left;
}

/* ===========================================
   escuela de enfermeria 
=========================================== */
.slider3 {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider3 .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide3 {
  min-width: 100%;
  box-sizing: border-box;
}

.btn-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 53, 154, 0.8);
  /* azul femap con opacidad */
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}

.btn-prev {
  left: 10px;
}

.btn-next {
  right: 10px;
}

.modal-gallery {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.modal-content {
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from {
    transform: scale(0.7);
  }

  to {
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-prev,
.modal-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 40px;
  user-select: none;
  transform: translateY(-50%);
}

.modal-prev {
  left: 0;
}

.modal-next {
  right: 0;
}

/* Ajustes del modal para que no sea fullscreen */
#imgModal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 2rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

#imgModal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 15px #000;
  margin-top: 2rem;
}

/* Flechas */
.modal-arrow {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transform: translateY(-50%);
}

#prevImg {
  left: 2rem;
}

#nextImg {
  right: 2rem;
}

/* Botón de cerrar */
#modalClose {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ===========================================
   about pagina
=========================================== */
.green {
  color: var(--green);
}

.donations.donations-2 {
  padding-bottom: o;
}

.icono {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #003399;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.titulos {
  font-weight: 700;
  font-size: 1.25rem;
  color: #003399;
  margin-top: 5%;
}

.text-muted {
  color: #8a8f9c;
}

/* ===========================================
   cancer
=========================================== */
.play-overlay {
  font-size: 4rem;
  color: white;
  cursor: pointer;
  /* pointer-events: none; */
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.play-overlay:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #ccc;
  /* Gris claro */
}

.video-container iframe {
  width: 100%;
  height: 500px;
  display: block;
}


/* RESPONSIVE
=========================================== */
@media (max-width: 768px) {
  .heading-12 .blue.titulos {
    font-size: 1.4rem;
  }

  .heading-12 .paragraph {
    font-size: 2rem;
    font-weight: bold;

  }

  .heading-12 .heading-desc {
    font-size: 1.4rem;
    font-weight: bold;
  }

  /* Opcional: Ajustar padding/margin para pantallas pequeñas */
  .about.about-3 {
    padding: 20px 15px;
  }

  .footer .widget-newsletter .widget-content {
    align-items: left;
  }
}

@media (max-width: 768px) {
  h3 {
    font-size: 28px;
  }

  .section {
    padding: 20px 0;
  }

  ul.column {
    grid-template-columns: repeat(2, 1fr);
  }

  .pleft {
    padding-left: 25%;
  }

  .titulos {
    font-size: 28px;
    text-align: justify;
  }

  .tituloss {
    font-size: 24px;
    text-align: start;
  }

  .pq-count {
    font-size: 30px;
  }

  .about-img img {
    width: auto;
    max-width: 80%;
    height: auto !important;
  }

  .stats {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .especialidades-list li {
    font-size: 20px;
  }

  .paragraph {
    font-size: 22px;
  }

  .especialidades img {
    max-width: 80%;
    margin: 1rem auto 0 auto;
  }

  #unidades-medicas img {
    width: 100% !important;
  }

  .heading.heading-1 {
    font-size: 30px;
    text-align: center;
  }

  .heading .paragraph {
    font-size: 22px;
    text-align: center;
  }

  .logo-footer {
    margin-left: 25%;
    width: 30%;
    margin-bottom: 5%;
  }

  .donations.donations-1 .donations-action,
  .donations.donations-3 .donations-action,
  .donations.donations-4 .donations-action,
  .heading.heading-4 {
    margin-bottom: 0;
  }

  .footer .footer-widget,
  .note,
  .team-modern.team-modern-1,
  .widget-tags .widget-content {
    text-align: left;
    margin-left: 15%;
  }

  .footer .container {
    overflow-x: hidden;
  }

  .footer-widget-title h3,
  .footer-widget p {
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
  }

  .footer .widget-links ul li a {
    font-size: 12px;
  }

  .footer .footer-widget {
    padding: 0;
    margin-top: 5px;
    align-items: left;
  }

  .footer .footer-top {
    padding: 20px 0;
    /* o el valor que quieras */
  }

  .footer .widget-newsletter .widget-content {
    align-items: left;
  }

  .follow {
    margin: 0 0 15px
  }

  section {
    padding: 20px 15px;
    /* o el valor que quieras */
  }

  /* La siguiente regla se quita ya que el cambio anterior resuelve el problema de columnas */
  /* .especialidades-list { column-count: 1; } */

  .pq-counter-info {
    max-width: 100%;
    border-right: none;
    padding: 0;
  }

  .mb-4 {
    margin-bottom: .5rem !important;
  }

  .pq-counter-info .stats {
    width: 40%;
    max-width: 60px;
  }

  .pq-count {
    font-size: 48px;
    /* más pequeño */
  }

  .pq-counter-title {
    font-size: 1rem;
    /* también un poco más pequeño */
    font-weight: bold;
  }

  .contact.contact-2,
  .donations.donations-2,
  .services.services-2 {
    padding-bottom: 0;
    /* o el valor que quieras */
  }

  .advantages-list li {
    font-size: 12px;
  }

  .membresia-list {
    padding-left: 1.5rem;
    text-align: justify;
    font-size: 12px;
  }

}

/* ===========================================
   extras
=========================================== */
.membresia-list li {
  list-style: disc;
  /* padding-left: 1.5rem; */
  text-align: justify;
}

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

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 120px;
  right: 10px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

.my-float {
  margin-top: 16px;
}

.module-social svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  /* o cualquier color que quieras */
}

.iconosredes {
  color: white;
  text-align: center;
}

@media screen and (max-width: 991.98px) {
  .module-contact .btn:first-child {
    background-color: rgba(0, 53, 154, 0.8);
    /* azul femap con opacidad */
    color: white;
  }

  .module-contact .btn:first-child :hover {
    background-color: white;
    color: rgb(0, 53, 154);
  }

}

.footer .widget-newsletter .widget-content {
  align-items: center;
}

.contact-body a:hover {
  color: var(--naranja);
  /* text-decoration: none; */
}

.top-bar .top-contact .contact-info .contact-icon svg {
  color: white;
}

/* ===========================================
   FIN
=========================================== */


/* pop up */

/* El fondo oscuro */
.popup-overlay {
  display: none;
  /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Fondo negro semitransparente */
  z-index: 10000;
  /* Para que quede encima de todo */
  justify-content: center;
  align-items: center;
}


/* El contenedor ahora solo "envuelve" la imagen */
.popup-content {
  position: relative;
  width: auto;
  /* Ya no forzamos el 50% */
  height: auto;
  /* Aseguramos que el contenedor no sea más grande que la pantalla */
  max-width: 95vw;
  max-height: 95vh;
  animation: fadeIn 0.5s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: transparent;
  /* Por si acaso, que no tenga fondo propio */
  display: flex;
  /* Ayuda a eliminar espacios fantasma alrededor de la img */
}

/* LA CLAVE: Configuración de la imagen para que se vea COMPLETA siempre */
.popup-content img {
  display: block;
  width: auto;
  /* Deja que el navegador calcule el ancho según la altura */
  height: auto;
  /* Deja que el navegador calcule el alto según el ancho */
  max-width: 90vw;
  /* Que nunca sea más ancha que el 90% de la pantalla */
  max-height: 90vh;
  /* Que nunca sea más alta que el 90% de la pantalla (ESTO SOLUCIONA TU PROBLEMA) */
  border-radius: 8px;
  /* object-fit asegura que la imagen se contenga dentro de las dimensiones sin estirarse */
  object-fit: contain;
}

/* El resto del CSS (overlay, botón cerrar) sigue igual */

/* El botón de cerrar (X) */
.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: white;
  color: black;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  cursor: pointer;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
  background: #f1f1f1;
}

/* Animación simple */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}