html,
body {
  overflow-x: hidden;
}

/* ---------- GLOBAL ---------- */
body {
  font-family: 'Urbanist', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overflow-x: clip !important;
  color: #5a5a5a;
}

@media (max-width: 768px) {

  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ---------- LOGO ---------- */
.logo-img {
  max-height: 280px;
}

/* ---------- VIDEO BANNER ---------- */
#banner {
  position: relative;
  z-index: 0;
}

#banner video {
  object-fit: cover;
  z-index: 1;
}

/* ---------- NAVBAR GENERAL ---------- */
.custom-navbar {
  z-index: 3;
  background-color: transparent;
}

.navbar-nav .nav-link {
  font-weight: 500;
}

/* ---------- TOGGLER ICON ---------- */
.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  filter: brightness(10);
}

/* Quitar borde negro al hacer clic en el botón hamburguesa */
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* ---------- ESCRITORIO (> 992px) ---------- */
@media (min-width: 992px) {
  .custom-navbar {
    background-color: transparent !important;
  }

  .nav-main-link {
    color: white !important;
  }

  /* Hover abre el dropdown */
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .navbar .dropdown-toggle::after {
    transition: transform 0.3s ease;
  }

  .navbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .dropdown-menu a {
    color: #83b2e5 !important;
  }

  .dropdown-menu a:hover {
    background-color: #f8f9fa;
  }
}

/* ---------- MÓVIL (< 992px) ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
    padding: 1rem;
  }

  .nav-main-link {
    color: #222 !important;
  }

  .dropdown-menu {
    background-color: white;
    border-radius: 0.5rem;
  }

  .dropdown-menu a {
    color: #83b2e5 !important;
  }

  .dropdown-menu a:hover {
    background-color: #f1f1f1;
  }
}

/* ---------- ANIMACIONES ---------- */
.animate-fade-in {
  animation: fadeIn 1.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.logo-img:hover {
  animation: pulse 1s ease-in-out;
}

/* Evitar borde o sombra azul al dar clic en Safari (móvil) */
.nav-link:focus,
.nav-link:active,
.dropdown-item:focus,
.dropdown-item:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}



/* NAVBAR blanco*/
.navbar-blanco {
  background-color: white !important;
}

.navbar-blanco .nav-link,
.navbar-blanco .navbar-brand,
.navbar-blanco .dropdown-toggle {
  color: black !important;
}

.navbar-blanco .dropdown-menu {
  background-color: white;
  border: 1px solid #ccc;
}

.navbar-blanco .dropdown-item {
  color: black;
}

.navbar-blanco .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #468ba9;
}

.navbar-blanco .navbar-toggler {
  border-color: black;
}

.navbar-blanco .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* CINTILLO CON FONDO FIJO Y DEGRADADO */
.cintillo-section {
  background: url('../images/cintillo.webp') center center no-repeat;
  position: relative;
  overflow: hidden;
  height: 80px;
  /* ALTURA FIJA RECOMENDADA */
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.cintillo-overlay {
  background: transparent;
  width: 100%;
}

/* MARQUESINA */
.logos-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;

}

.logos-track {
  display: flex;
  width: max-content;
  animation: scroll-left 45s linear infinite;
  gap: 3rem;
  align-items: center;
}

.logos-track img {
  height: 50px;
  flex-shrink: 0;
  opacity: 0.95;
  filter: drop-shadow(0 0 3px #000);
}

/* ANIMACIÓN SUAVE Y LENTA HACIA LA IZQUIERDA */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* TEXTO BANNER */
.banner-text-container {
  position: absolute;
  bottom: 4rem;
  left: 35px;
  width: 100%;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.banner-text-container .container {
  text-align: left;
}

.banner-text-container h1 {
  font-size: 6rem;
  /* Más grande que display-3 */
  line-height: 1.0;
}

.banner-text-container .slogan {
  font-size: 2.4rem;
  font-weight: 400;
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .banner-text-container h1 {
    font-size: 3.5rem;
  }

  .banner-text-container .slogan {
    font-size: 1.5rem;
  }

  .banner-text-container {
    left: 0;
  }

}

@media (max-width: 1200px) {
  .banner-text-container h1 {
    font-size: 3.0rem !important;
  }

  .banner-text-container .slogan {
    font-size: 1.5rem !important;
  }

  .banner-text-container {
    left: 0;
  }

}

/* COLORES PERSONALIZADOS */
.text-color-primary {
  color: #64c4c3;
}

/* FRASE PRINCIPAL */
.frase-principal {
  font-size: 1.7rem;
  line-height: 1.3;
  color: #1f3c88;
  /* Azul oscuro */
}

/* SUBFRASE */
.subfrase {
  font-size: 1.2rem;
  color: #64c4c3;
}

/* DESCRIPCIÓN */
.descripcion-lab .descripcion {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.6;
}



@media (max-width: 768px) {
  .frase-principal {
    font-size: 2rem;
  }

  .subfrase {
    text-align: center;
  }

  .descripcion-lab .descripcion {
    text-align: left;
  }

  .buscador-seccion .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
}


/* Tarjetas de servicio */
.servicio-card {
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.servicio-image-wrapper img {
  width: 100%;
  border-radius: 12px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.servicio-info {
  position: relative;
  padding-top: 1rem;
}

/* Número y título en línea */
.servicio-header {
  display: flex;
  align-items: center;
}

.servicio-numero {
  font-weight: bold;
  color: #ccc;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-10px);
}

.servicio-titulo {
  font-weight: bold;
  font-size: 1.1rem;
  color: #111;
  transition: transform 0.3s ease;
}

.servicio-linea {
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #ddd 0%, #ddd 100%);
  transition: background 0.5s ease;
}

/* EFECTO HOVER */
.servicio-card:hover .servicio-image-wrapper img {
  filter: brightness(0.85);
  transform: scale(1.03);
}

.servicio-card:hover .servicio-numero {
  opacity: 1;
  transform: translateX(0);
}

.servicio-card:hover .servicio-titulo {
  transform: translateX(5px);
}

.servicio-card:hover .servicio-linea {
  background: linear-gradient(to right, #64c4c3 0%, #1f3c88 100%);
}

.modal-logo {
  max-height: 45px;
  margin-bottom: 0;
}

/* PROMOCIONES */
.promociones {
  background-color: rgb(136, 185, 181);
  color: white;
}

.btn-promocion {
  background-color: rgb(70, 124, 168);
  color: white;
  border: none;
}

.btn-promocion:hover {
  background-color: rgb(60, 110, 150);
}

/* FOOTER */
.footer-principal {
  background-color: #ffffff;
  color: #333;
}

.footer-principal a:hover {
  text-decoration: underline;
}

.footer-principal hr {
  border-top: 1px solid #333;
}

.footer-principal a {
  color: #1f3c88 !important;
  text-decoration: none;
}

.footer-principal a:hover {
  text-decoration: underline;
}

/* ÍCONOS FLOTANTES */
.floating-icons-horizontal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 16px;
  z-index: 9999;
}

.icon-lg {
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  border-radius: 50%;
  background-color: #2d3d94;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.icon-lg:hover {
  background-color: #64c4c3;
}

.icon-lg.whatsapp {
  background-color: #25d366;
}

.icon-lg.whatsapp:hover {
  background-color: #1ebc5c;
}

.back-to-top {
  display: none;
}

/* Mueve el bloque al lado izquierdo sólo con CSS */
.social-icons-banner {
  right: auto !important;
  left: 0 !important;
  margin-left: 1rem;
  /* similar a ms-3 */
  margin-right: 0 !important;
}

.social-icons-banner .social-icon {
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-icons-banner .umg {
  font-size: 1.2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s ease;
  padding: 6px;
}

.social-icons-banner .umg:hover {
  background-color: #64c4c3;
}

.social-icons-banner .social-icon:hover {
  background-color: #64c4c3;
}

/* Móviles grandes y pequeños (<768px) → ocultar */
@media (max-width: 767.98px) {
  .social-icons-banner {
    display: none !important;
  }
}

/* SECCION NUTRICION*/

.seccion-clinicas {
  position: relative;
  background-blend-mode: screen;
  z-index: 1;
}

.titulo-clinicas span {
  font-size: 2.5rem;
  color: #1f3c88;
}

.borde-imagen {
  display: inline-block;
  padding: 0;
  /* sin espacio extra */
  border: 6px solid #64c4c3;
  /* borde exterior celeste */
  border-radius: 36px;
  /* bastante redondeado */
  overflow: hidden;
  /* para que la imagen se mantenga dentro del borde */
  box-sizing: border-box;
  max-width: 100%;
}

.imagen-nutricion {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  /* sin redondeo interno, el borde ya lo da */
}


section.servicio-slide-clinicas {
  position: relative;
  background: linear-gradient(to left, #A6D3D6 100%, #F0F7F7 72%), linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%), linear-gradient(to top, rgba(255, 255, 255, 0) 50%, #ffffff 100%);
  background-blend-mode: screen;
  z-index: 1;
}

h2.titulo-clinicas {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.swiper {
  padding-bottom: 4rem;
  position: relative;
}


.swiper a {
  text-decoration: none;
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  width: auto;
}

.swiper-is-dragging .servicio-clinicas {
  pointer-events: none;
}

.card.servicio-clinicas {
  width: 310px;
  /* antes 260px */
  height: 480px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: white;
}


.servicio-bg {
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.servicio-content {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  overflow: hidden;
  height: 120px;
  transition: height 0.4s ease;
}

.servicio-content h4 {
  margin-bottom: 0.5rem;
}

.servicio-content p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-bottom: 0;
}

.card.servicio-clinicas:hover .servicio-content {
  height: 210px;
}

.card.servicio-clinicas:hover .servicio-content p {
  opacity: 1;
  transform: translateY(0);
}

.card.servicio-clinicas:hover {
  transform: translateY(-6px);
}

/* Ocultar flechas nativas de Swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}

/* Flechas personalizadas con Bootstrap Icons */
.swiper-button-next,
.swiper-button-prev {
  all: unset;
  position: absolute !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background-color: #64c4c3 !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
}


.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #64c4c3 !important;
  color: white !important;
}

.swiper-pagination {
  bottom: 0px !important;
}

.swiper-pagination-bullet {
  background-color: #ccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #1f3c88;
}

@media (max-width: 768px) {

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}


.video-custom-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.video-frame {
  border: none;
  width: 100%;
  height: 100%;
  display: block;
}


.icon-box {
  width: 120px;
  height: 120px;
  border-radius: 1.25rem;
  /* esquinas redondeadas */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  /* sombra */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* efecto hover */
.icon-box:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* OBJETIVOS CLINICA DE NUTRICION*/
.objetivos-clinica-nutricion .objetivos-img {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* ✅ evita que se duplique */
  min-height: 450px;
  position: relative;
  overflow: hidden;
  transition: background-position 0.3s ease-out;
}

.objetivos-clinica-nutricion .objetivos-left {
  background-image: url('../images/nutricion/objetivos1.webp');
  /* imagen izquierda */
}

.objetivos-clinica-nutricion .objetivos-right {
  background-image: url('../images/nutricion/objetivos2.webp');
  /* imagen derecha */
}

/* Oscurecer fondo para legibilidad */
.objetivos-clinica-nutricion .objetivos-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.objetivos-clinica-nutricion .objetivos-img>.text-white {
  position: relative;
  z-index: 2;
}

.objetivos-clinica-nutricion ul {
  padding-left: 1.2rem;
}

.objetivos-clinica-nutricion li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* OBJETIVOS CLINICA SALUD FEMENINA */
.objetivos-clinica-femenina .objetivos-img {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* ✅ evita que se duplique */
  min-height: 600px;
  position: relative;
  overflow: hidden;
  transition: background-position 0.3s ease-out;
}

.objetivos-clinica-femenina .objetivos-left {
  background-image: url('../images/salud-femenina/objetivo1.webp');
  /* imagen izquierda */
}

.objetivos-clinica-femenina .objetivos-right {
  background-image: url('../images/salud-femenina/objetivo3.webp');
  /* imagen derecha */
}

/* Oscurecer fondo para legibilidad */
.objetivos-clinica-femenina .objetivos-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.objetivos-clinica-femenina .objetivos-img>.text-white {
  position: relative;
  z-index: 2;
}

.objetivos-clinica-femenina ul {
  padding-left: 1.2rem;
}

.objetivos-clinica-femenina li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}


.parallax-section {
  background-image: url('../images/nutricion/educacion-alimentaria.webp');
  /* <-- reemplaza por la imagen */
  background-size: cover;
  background-attachment: fixed;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  color: #333;
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
    background-position: center;
  }
}


.contact-section {
  /*background: url('../images/nutricion/formulario-contacto.png') no-repeat center center;*/
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding-top: 4rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

.contact-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20, 40, 100, 0.9), rgba(0, 160, 200, 0.5));
  z-index: 1;
}

.contact-section a {
  color: #fff;
  text-decoration: none;
}

.icon-circle {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}


.contacto-section {
  background: linear-gradient(to left, #e3f1f1 30%, #f9fafa 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, #ffffff 100%),
    linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, #ffffff 100%);
}



.card-title {
  font-weight: bold;
  color: #1f3c88;
}

.card-footer a {
  font-size: 1.2rem;
  color: #468ba9;
}


.bg-gradient-blue {
  background: linear-gradient(to right, #f1f7f7, #e6f0f0);
}


/* Foto investigador modal */
.img-investigador {
  object-fit: cover;
  height: 250px;
  width: 100%;
  border-radius: 0.5rem;
}

.img-investigador-card {
  object-fit: cover;
  height: 320px;
  width: 100%;
}


/* Redes sociales investigadores */
.iconos-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.iconos-redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

/* Para ícono SVG (ResearchGate) */
.icono-svg {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(51%) sepia(24%) saturate(607%) hue-rotate(165deg) brightness(92%) contrast(89%);
}


/* Para ícono de Bootstrap (Google Scholar) */
.icono-bootstrap {
  font-size: 24px;
  color: #468ba9;
}


#nosotros ul li {
  margin-bottom: 0.5rem;
}

#nosotros .list-group-item {
  border: none;
  background-color: transparent !important;
  /* esto elimina el fondo blanco */
  padding-left: 0;
  font-size: 1.05rem;
}

.lista-iconos-bootstrap {
  list-style: none;
  padding-left: 0;
}

.lista-iconos-bootstrap li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  display: flex;
  align-items: start;
}

.lista-iconos-bootstrap li i {
  color: #468ba9;
  /* o el color institucional que desees */
  margin-right: 0.5rem;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mi-banner.especial {
  --overlay-opacity: 0.6; /* ajusta la opacidad */
  position: relative;
  overflow: hidden;
  min-height: 70vh; /* asegura altura para que ::before tenga área */
}

.mi-banner.especial {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.mi-banner.especial > video {
  filter: brightness(0.8); /* 0.4–0.7 según gusto */
}



/* Servicios Home */

/* Tarjeta principal con borde degradado */
.servicio-umg {
  position: relative;
  border-radius: 25px;
  padding: 0px 35px 20px 35px;
  background-color: white;
  color: #333;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 330px;

  /* Borde degradado */
  border: 3px solid transparent;
  background-image:
    linear-gradient(white, white),
    /* fondo interior */
    linear-gradient(135deg, #1ca8a6, #1f4fa4);
  /* borde degradado */
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Hover: fondo con degradado, texto blanco, borde desaparece */
.servicio-umg:hover {
  background-image:
    linear-gradient(135deg, #1ca8a6, #1f4fa4),
    linear-gradient(135deg, #1ca8a6, #1f4fa4);
  /* fondo y borde iguales */
  color: white;
}

/* Ícono superior SVG inline */
.servicio-icon {
  margin-bottom: -20px;
}

.servicio-icon svg {
  width: 130px;
  height: auto;
  display: block;
}

/* Color del ícono SVG con clase .st0 */
.servicio-icon svg .st0 {
  fill: #1f4fa4;
  transition: fill 0.3s ease;
}

.servicio-umg:hover .servicio-icon svg .st0 {
  fill: white;
}

/* Título */
.servicio-info .titulo {
  font-weight: bold;
  color: #007bba;
  font-size: 1.1rem;
  margin-bottom: 0px;
  transition: color 0.3s ease;
}

.servicio-umg:hover .titulo {
  color: white;
}

/* Descripción */
.servicio-info .descripcion {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0px;
  transition: color 0.3s ease;
}

.servicio-umg:hover .descripcion {
  color: white;
}

/* Footer: logo + flecha */
.servicio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-top: 30px;
}

/* Logo UMG Labs */
.logo-umg {
  height: 50px;
  width: auto;
  transition: filter 0.3s ease;
}

.servicio-umg:hover .logo-umg {
  filter: brightness(0) invert(1);
}

/* Flecha (Bootstrap icon) */
.boton-flecha i {
  font-size: 32px;
  color: #1ca8a6;
  transition: transform 0.3s ease, color 0.3s ease;
}

.servicio-umg:hover .boton-flecha i {
  color: white;
}

.boton-flecha:hover i {
  transform: scale(1.2);
}

.servicio-icon svg .st0 {
  fill: #2f4091;
  transition: fill 0.3s ease;
}

.servicio-umg:hover .servicio-icon svg .st0 {
  fill: white;
}

.servicio-slide-umglabs {
  margin-top: 90px !important;
  background: linear-gradient(to left, #A6D3D6 100%, #F0F7F7 72%), linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%), linear-gradient(to top, rgba(255, 255, 255, 0) 50%, #ffffff 100%);
  background-blend-mode: screen;
}

.seccion-ayuda {
  padding: 60px 0;
}

/* ---------- TARJETAS GENERALES ---------- */
.seccion-ayuda {
  position: relative;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  background-blend-mode: screen;
}

.container-ayuda {
  position: relative;
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-ayuda {
  width: 480px;
  height: 600px;
  overflow: hidden;
  border-radius: 30px;
  position: relative;
  z-index: 1;
}

.imagen-ayuda img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.card-ayuda {
  position: absolute;
  width: 400px;
  padding: 25px;
  border-radius: 25px;
  background-color: white;
  border: 4px solid transparent;
  background-image:
    linear-gradient(white, white),
    linear-gradient(135deg, #1ca8a6, #1f4fa4);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 2;
}

.card-ayuda:hover {
  background-image:
    linear-gradient(135deg, #1ca8a6, #1f4fa4),
    linear-gradient(135deg, #1ca8a6, #1f4fa4);
  color: white;
  border: 4px solid transparent;
}

.card-ayuda:hover * {
  color: white !important;
}

.card-ayuda span {
  color: #1f4fa4;
}

.card-izquierda {
  left: 20px;
  bottom: -80px;
}

.card-derecha {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.lista-horario {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-horario li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 5px;
}

.lista-horario .icono {
  font-size: 22px;
  margin-right: 10px;
  margin-top: 6px;
  color: #1f4fa4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container-ayuda {
    flex-direction: column;
    align-items: center;
  }

  .card-ayuda,
  .imagen-ayuda {
    position: static;
    transform: none;
    width: 90%;
    margin-bottom: 20px;
  }

  .imagen-ayuda {
    height: auto;
  }
}


.seccion-beneficios {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  flex-wrap: wrap;
  text-align: center;
  gap: 40px;
}

.beneficio {
  max-width: 280px;
  margin: 0;
}

.icono-beneficio {
  display: inline-block;
  transition: all 0.3s ease;
}

.icono-beneficio img {
  width: 180px;
  height: auto;
  margin: -30px;
  transition: all 0.3s ease;
}

/* Aplica el efecto hover al contenedor */
.icono-beneficio:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
}

.beneficio h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.beneficio h4 strong,
.beneficio h4 .normal {
  display: block;
  font-size: 22px;
  color: #1f4fa4;
}

.beneficio h4 .normal {
  font-weight: normal;
}

.beneficio p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .seccion-beneficios {
    flex-direction: column;
    align-items: center;
    padding: 40px 10px;
    gap: 30px;
  }

  .beneficio {
    max-width: 90%;
  }
}



.seccion-nosotros {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  background: linear-gradient(to left, #A6D3D6 100%, #F0F7F7 72%), linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%), linear-gradient(to top, rgba(255, 255, 255, 0) 50%, #ffffff 100%);
  background-blend-mode: screen;
}

.contenedor-nosotros {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  align-items: flex-start;
  gap: 40px;
}

.imagen-nosotros {
  flex: 1 1 400px;
  border-radius: 25px;
  padding: 5px;
  background-image: linear-gradient(135deg, #1ca8a6, #1f4fa4);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;

}

.imagen-nosotros img {
  height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.contenido-nosotros {
  flex: 1 1 500px;
}

.contenido-nosotros h2 {
  font-size: 45px;
  margin-bottom: 20px;
}

.contenido-nosotros h2 strong,
.contenido-nosotros h2 .normal {
  color: #1f4fa4;
}

.contenido-nosotros h2 .normal {
  font-weight: normal;
}

.contenido-nosotros h4 {
  font-size: 25px;
  margin-top: 20px;
  color: #1f4fa4;
  font-weight: bold;
}

.contenido-nosotros p {
  text-align: justify;
  font-size: 15px;
  margin-bottom: 10px;
}

.numeros-nosotros {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 20px;
}

.numero {
  text-align: center;
  flex: 1 1 100px;
}

.numero .contador {
  font-size: 64px;
  font-weight: bold;
  color: #1f4fa4;
}

.numero p {
  font-size: 24px;
  font-weight: bold;
  color: #1f4fa4;
}

.numero .simbolo {
  font-size: 42px;
  font-weight: bold;
  color: #1f4fa4;
}

@media (max-width: 768px) {
  .contenedor-nosotros {
    flex-direction: column;
    align-items: center;
  }

  .imagen-nosotros {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
  }

  .contenido-nosotros {
    width: 100%;
  }

  .numeros-nosotros {
    flex-direction: column;
    align-items: center;
  }

  .numero {
    width: 100%;
  }

  .numero .contador {
    font-size: 48px;
  }

  .numero p {
    font-size: 18px;
  }
}




.galeria-section {
  padding: 60px 20px;
  background: linear-gradient(to left, #A6D3D6 28%, #F0F7F7 67%), linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%), linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  background-blend-mode: screen;
}

.titulo-galeria {
  font-size: 32px;
  color: #1f4fa4;
  margin-bottom: 40px;
}

.titulo-galeria .normal {
  font-weight: bold;
}

.galeriaSwiperCustom {
  width: 100%;

  margin: 0 auto;
}

.galeriaSwiperCustom .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.galeriaSwiperCustom .swiper-slide img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.galeriaSwiperCustom .swiper-slide img:hover {
  transform: scale(1.03);
}

/* Lightbox */
#galeriaLightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

#galeriaLightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}


.equipo-section {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.titulo-equipo {
  font-size: 36px;
  margin-bottom: 40px;
  color: #1f4fa4;
  text-align: center;
}

.titulo-equipo .normal {
  font-weight: 400;
  color: #1f4fa4;
  text-align: center;
}

.titulo-equipo .bold {
  font-weight: 700;
  color: #1f4fa4;
  text-align: center;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: stretch;
  /* fuerza altura uniforme */
}

.miembro {
  max-width: 220px;
  background-color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* o 'space-between' si deseas equilibrar */
  padding: 10px;
  height: 330px;
  /* o ajustable si lo deseas dinámico */
}

.foto {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #30cfd0 0%, #1f4fa4 100%);
  display: flex;
  /* AÑADIDO */
  align-items: center;
  /* AÑADIDO */
  justify-content: center;
  /* AÑADIDO */
}

.foto img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  align-items: center;
  justify-content: center;
}

.nombre {
  font-weight: 700;
  margin-top: 15px;
  color: #1f4fa4;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
  /* fuerza quiebres */
  hyphens: auto;
  /* opcional para mejor manejo */
}

.nombre span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-top: 5px;
}

.correo {
  font-size: 0.9rem;
  color: #1f4fa4;
  margin-top: 5px;
  word-break: break-word;
  text-align: center;
}

.foto i {
  font-size: 64px;
  color: #1f4fa4;
  background: white;
  border-radius: 50%;
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
  box-sizing: border-box;
}

.tarjeta {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}

.titulo {
  color: #007ea8;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Esquinas tipo "L" curva */
.esquina-superior,
.esquina-inferior {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 3px solid #007ea8;
  border-radius: 40px;
}

/* Misión: esquina superior izquierda y esquina inferior derecha */
.mision .esquina-superior {
  top: 0;
  left: 0;
  border-bottom: none;
  border-right: none;
  border-radius: 40px 0 0 0;
}

.mision .esquina-inferior {
  bottom: 0;
  right: 0;
  border-top: none;
  border-left: none;
  border-radius: 0 0 40px 0;
}


.valores-section {
  background-color: #e9fcfc;
}

.titulo-azul {
  color: #2c358f;
  font-weight: 400;
}

.titulo-bold {
  color: #2c358f;
  font-weight: 700;
}

.titulo-valor {
  color: #2c358f;
  display: block;
  font-weight: bold;
}

.descripcion-valor {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.icono {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono img {
  width: 64px;
  height: 63px;
}

.swiper-slide .card[data-bs-toggle="modal"] {
  cursor: pointer !important;
}

.carrera-card,
.ubicacion-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.carrera-card:hover,
.ubicacion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carrera-card img {
  height: 400px;
  object-fit: cover;
  object-position: 40% 20%;
  /* 0% horizontal (izquierda), 20% vertical (ligeramente abajo) */
  width: 100%;
}

.carrera-card a {
  text-decoration: none;
}


.galeria-img {
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

figure {
  margin: 0;
  padding-bottom: 2.5rem;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.99rem;
  color: #6c757d;
  text-align: center;
}

#galeriaLightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

#galeriaLightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 10px;
  object-fit: contain;
  margin-bottom: 1rem;
}

#galeriaLightbox .descripcion {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 80%;
}

#galeriaLightbox .cerrar-lightbox {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}


.accordion-body {
  background-color: #f8f9fa;
  /* gris muy claro */
  border-left: 4px solid #0d6efd;
  /* línea azul a la izquierda */
  padding: 1rem;
}

.accordion-button:not(.collapsed) {
  background-color: #0d6efd;
  color: white;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #dee2e6;
}


/* ===== SECCIÓN BUSCADOR UNIFICADA ===== */
.hero-section,
.buscador-seccion {
  background-color: #2d3d94;
  color: white;
  padding: 60px 20px;
  position: relative;
  /* ayuda con z-index si se necesita */
  z-index: 1;
}

.hero-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Input group con esquinas suaves */
.input-group {
  border-radius: 10px;
  overflow: hidden;
}

.input-group input[type="text"],
#busqueda {
  padding: 15px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px 0 0 10px;
  outline: none;
}

/* Placeholder */
.buscador-seccion input::placeholder {
  color: #ccc;
  opacity: 1;
}

/* Focus del input */
.buscador-seccion .form-control:focus {
  box-shadow: none;
  border-color: #64c4c3;
}

/* Botón (si lo usas) */
.buscador-seccion .btn-success,
#btnBuscar {
  background-color: #64c4c3;
  border-color: #64c4c3;
  padding: 0 25px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 0 10px 10px 0;
  transition: background-color 0.2s ease-in-out;
}

.buscador-seccion .btn-success:hover,
#btnBuscar:hover {
  background-color: #52a9a8;
  border-color: #52a9a8;
}

/* Lupa (bloque visual a la derecha) */
.buscador-group .input-group-text {
  background-color: #64c4c3;
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
}

/* Altura pareja para input + lupa */
.input-group.input-group-lg .form-control,
.input-group.input-group-lg .input-group-text {
  height: 56px;
}

/* Wrapper para anclar el dropdown */
.buscador-wrapper {
  position: relative;
}

/* ===== Resultados (dropdown flotante debajo del buscador) ===== */
#resultados {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 2000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(13, 38, 76, 0.20);
  padding: 12px;
  max-height: 60vh;
  overflow: auto;

  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-in-out;

  color: #212529;
  /* reset de color para no heredar blanco */
}

#resultados.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Tarjetas base (dropdown y listado) ===== */
.resultado-card {
  position: relative;
  background-color: #ffffff;
  border-left: 5px solid #64d3d1;
  /* acento */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13, 38, 76, 0.08);
  padding: 16px 18px;
  transition: transform 120ms ease, box-shadow 180ms ease, background-color 180ms ease;
  will-change: transform, box-shadow;
  cursor: pointer;
}

/* Hover/focus */
.resultado-card:hover,
.resultado-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 38, 76, 0.16);
  background-color: #f9fbfc;
  outline: none;
}

/* Títulos y texto */
.resultado-card h5 {
  margin: 0 0 6px 0;
  font-weight: 700;
  color: #1b1f3b;
  /* contraste */
  line-height: 1.2;
}

.resultado-card p {
  margin: 0;
  color: #6c757d;
  font-size: 0.95rem;
}

/* Badge del grupo */
.resultado-card .tag-grupo {
  display: inline-block;
  margin-top: 8px;
  background: #eaf7f7;
  color: #157b7a;
  border: 1px solid #cceeee;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Separación entre items del dropdown */
#resultados .resultado-card+.resultado-card {
  margin-top: 10px;
}

/* Variante para el grid del listado completo */
#listado-completo .resultado-card {
  height: 100%;
  border-left-width: 6px;
  padding: 18px 20px;
}

/* Flecha decorativa (opcional; requiere Bootstrap Icons) */
.resultado-card::after {
  content: "\F285";
  /* bi-arrow-right-short */
  font-family: "bootstrap-icons";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #9aa4b2;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}

.resultado-card:hover::after {
  opacity: .9;
}

/* Scrollbar del dropdown */
#resultados::-webkit-scrollbar {
  width: 10px;
}

#resultados::-webkit-scrollbar-thumb {
  background: #e1e6ef;
  border-radius: 8px;
}

#resultados::-webkit-scrollbar-thumb:hover {
  background: #cfd7e4;
}

/* Alert dentro del dropdown */
#resultados .alert {
  border-radius: 10px;
  margin: 6px 2px;
}

/* Skeleton loader (opcional) */
#resultados.loading .resultado-card,
#resultados.loading .skeleton {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
  border-left-color: #d9eef0;
}

#resultados.loading .skeleton-line {
  height: 12px;
  width: 80%;
  background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
  margin: 8px 0;
}

#resultados.loading .skeleton-line.short {
  width: 40%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}


section.gradient {
  position: relative;
  background:
    /* degradado principal de izquierda a derecha */
    linear-gradient(to left, rgba(166, 211, 214, 0.85) 0%, rgba(240, 247, 247, 0.95) 100%),
    /* un velo suave desde abajo */
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%),
    /* un velo suave desde arriba */
    linear-gradient(to top, rgba(255, 255, 255, 0) 50%, #ffffff 100%);
  background-blend-mode: overlay;
}


/* Si quieres efecto parallax suave */
@media (min-width: 992px) {
  section.gradient {
    background-attachment: fixed;
  }
}


.footer-umg-title {
  font-weight: 400;
  color: var(--bs-body-color);
}

.footer-umg-link {
  text-decoration: none;
}

.footer-umg-link:hover {
  text-decoration: underline;
}

/* quítalo si no quieres subrayado */

.footer-social a {
  font-size: 1.5rem;
  color: var(--bs-body-color);
  text-decoration: none;
  opacity: .9;
  transition: opacity .15s ease;
}

.footer-social a:hover {
  opacity: 1;
}

/* hover sutil, sin círculos */

.footer-umg-logo {
  height: 128px;
}

/* ajusta 108–128px si lo quieres aún más grande */
@media (max-width:576px) {
  .footer-umg-logo {
    height: 96px;
  }
}


/* Reducir el área clickeable al círculo y mantener por encima de overlays */
#banner .carousel-control-prev,
#banner .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  /* área clickeable = círculo */
  height: 3rem;
  padding: 0;
  bottom: auto;
  /* anula el 15% de ancho por defecto de Bootstrap */
  opacity: 1;
  z-index: 1100;
  /* por debajo de redes (ver .social-icons-banner) */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}

/* Posición horizontal (desktop) */
#banner .carousel-control-prev {
  left: 16px;
}

#banner .carousel-control-next {
  right: 16px;
}

/* Círculo turquesa detrás del ícono, centrado y sin bloquear clics */
#banner .carousel-control-prev::before,
#banner .carousel-control-next::before {
  content: "";
  position: absolute;
  inset: 0;
  /* llena el cuadro 3rem x 3rem */
  border-radius: 50%;
  background: #64c4c3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  pointer-events: none;
}

/* Íconos de flecha (conserva el SVG de Bootstrap) */
#banner .carousel-control-prev-icon,
#banner .carousel-control-next-icon {
  width: 1.25rem;
  height: 1.25rem;
  background-size: 100% 100%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

/* Feedback sutil en hover (opcional) */
#banner .carousel-control-prev:hover::before,
#banner .carousel-control-next:hover::before {
  transform: scale(1.04);
}

/* Asegura que tus redes estén por encima y sean clickeables */
.social-icons-banner {
  z-index: 1200;
  /* mayor que 1100 de las flechas */
  pointer-events: auto;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Desktop (>= 992px): usa un inset fluido entre 64px y 144px */
@media (min-width: 992px) {
  #banner .carousel-control-prev {
    left: clamp(64px, 6vw, 144px);
  }

  #banner .carousel-control-next {
    right: clamp(64px, 6vw, 144px);
  }
}

/* Móvil: mete las flechas hacia adentro y círculo un poco más pequeño */
@media (max-width: 576px) {
  #banner .carousel-control-prev {
    left: 74px;
  }

  /* ajusta según el ancho de tus redes */
  #banner .carousel-control-next {
    right: 74px;
  }

  #banner .carousel-control-prev,
  #banner .carousel-control-next {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Tablet chica: inset más ligero */
@media (min-width: 577px) and (max-width: 768px) {
  #banner .carousel-control-prev {
    left: 60px;
  }

  #banner .carousel-control-next {
    right: 60px;
  }
}


/* ====== TIPOGRAFÍA DEL MENÚ ====== */
/* Base (aplica a todos los tamaños) */
.custom-navbar .nav-main-link {
  font-size: 1.06rem;
  /* antes ~1rem */
  line-height: 1.2;
}

.custom-navbar .dropdown-item {
  font-size: 1.02rem;
  /* items del menú desplegable */
  line-height: 1.2;
}

/* Opcional: un poco más de área clickeable y respiro entre items */
.custom-navbar .nav-link {
  padding: .5rem .8rem;
}

.custom-navbar .navbar-nav {
  gap: .25rem;
}

/* ---------- ESCRITORIO (>= 992px) ---------- */
@media (min-width: 992px) {
  .custom-navbar .nav-main-link {
    font-size: 1.18rem;
  }

  /* sube en desktop */
  .custom-navbar .dropdown-item {
    font-size: 1.08rem;
  }

  /* Más espacio entre items en pantallas grandes (opcional) */
  .custom-navbar .navbar-nav {
    gap: .5rem;
  }
}

/* ---------- PANTALLAS XL (>= 1400px) — opcional ---------- */
@media (min-width: 1400px) {
  .custom-navbar .nav-main-link {
    font-size: 1.22rem;
  }

  .custom-navbar .dropdown-item {
    font-size: 1.1rem;
  }
}

/* ---------- MÓVIL (< 992px) — opcional ---------- */
/* Si en móvil notas que se corta o salta de línea, deja estos límites un pelín menores */
@media (max-width: 991.98px) {
  .custom-navbar .nav-main-link {
    font-size: 1.06rem;
  }

  /* ya definido arriba; aquí por claridad */
  .custom-navbar .dropdown-item {
    font-size: 1.02rem;
  }
}


/* Logo más grande de forma progresiva */
.custom-navbar .logo-img {
  width: clamp(240px, 22vw, 380px);
  height: auto;
  display: block;
  /* evita espacio fantasma bajo la imagen */
}

/* Si en móvil quieres limitarlo un poco */
@media (max-width: 576px) {
  .custom-navbar .logo-img {
    max-width: 240px;
  }
}

/* Ajuste de respiración vertical de la marca (opcional) */
.custom-navbar .navbar-brand {
  padding-top: .25rem;
  padding-bottom: .25rem;
}


/* === Flechas: apiladas a la derecha, cerca del borde, clic sólo en el círculo === */
#banner {
  --arrow-size: clamp(44px, 4.5vw, 56px);
  /* un poquito más grandes */
  --arrow-edge: 12px;
  /* distancia al borde derecho (viewport) */
  --prev-top: 47%;
  /* arriba del centro */
  --next-top: 57%;
  /* abajo del centro; cercanas entre sí */
}

/* Anula el 15% de ancho de Bootstrap y deja área clickeable = círculo */
#banner .carousel-control-prev,
#banner .carousel-control-next {
  position: absolute;
  left: auto !important;
  right: var(--arrow-edge) !important;
  /* pegadas al borde (ajusta 10–16px) */
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size) !important;
  height: var(--arrow-size) !important;
  padding: 0;
  bottom: auto;
  opacity: 1;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Apiladas verticalmente (cerca entre sí) */
#banner .carousel-control-prev {
  top: var(--prev-top);
}

#banner .carousel-control-next {
  top: var(--next-top);
}

/* Círculo turquesa detrás del ícono */
#banner .carousel-control-prev::before,
#banner .carousel-control-next::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #64c4c3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  pointer-events: none;
}

#banner .carousel-control-prev-icon,
#banner .carousel-control-next-icon {
  width: 1.2rem;
  height: 1.2rem;
  background-size: 100% 100%;
}

/* Ajustes por tamaño de pantalla */
@media (max-width: 576px) {
  #banner {
    --arrow-edge: 10px;
    --prev-top: 46%;
    --next-top: 60%;
    --arrow-size: 46px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  #banner {
    --arrow-edge: 12px;
    --prev-top: 46%;
    --next-top: 58%;
  }
}

@media (min-width: 769px) and (max-width: 991.98px) {
  #banner {
    --arrow-edge: 14px;
    --prev-top: 46%;
    --next-top: 58%;
  }
}

@media (min-width: 1400px) {
  #banner {
    --arrow-edge: 16px;
    --prev-top: 46%;
    --next-top: 56%;
  }
}

/* Si la altura del viewport es baja (ej. 1366x768), júntalas un poco al centro */
@media (max-height: 750px) {
  #banner {
    --prev-top: 46%;
    --next-top: 56%;
  }
}



.seccion-acreditacion {
  display: grid;
  grid-template-areas:
    "titulo titulo"
    "col1 col2";
  grid-template-columns: 300px 300px;
  /* columnas más angostas */
  justify-content: center;
  /* centra el bloque de columnas */
  align-items: start;
  gap: 66px;
  /* columnas más juntas */
  max-width: 660px;
  /* controla el ancho total del bloque */
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

/* Título centrado arriba */
.seccion-acreditacion h2 {
  grid-area: titulo;
  text-align: center;
  margin-bottom: 10px;
}

/* Ubicación de las dos tarjetas */
.seccion-acreditacion .beneficio:nth-of-type(1) {
  grid-area: col1;
}

.seccion-acreditacion .beneficio:nth-of-type(2) {
  grid-area: col2;
}

/* Ajustes SOLO para esta sección: tamaño de logo y sin márgenes negativos */
.seccion-acreditacion .icono-beneficio img {
  height: 100px;
  /* altura uniforme para todos los logos */
  width: auto;
  /* respeta la proporción */
  margin: 0 auto 10px;
  /* centrado */
  display: block;
  object-fit: contain;
  /* mantiene el logo completo dentro del espacio */
}

/* Texto más legible y compacto */
.seccion-acreditacion .beneficio p {
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
  font-size: 15px;
}

/* Responsive: 1 columna en móvil */
@media (max-width: 768px) {
  .seccion-acreditacion {
    grid-template-areas:
      "titulo"
      "col1"
      "col2";
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}


.card-img-top.img-fija {
  height: 160px;
  /* altura fija (ajústala a tu gusto) */
  object-fit: cover;
  /* recorta y rellena sin deformar */
  object-position: center;
  /* centra el recorte */
}





.ubicacion-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.img-fija {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.ubicacion-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-align: center;
  font-weight: 600;
}

.stretched-link {
  z-index: 1;
}


.galeria {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; /* opcional si quieres que bajen en móviles */
}

.foto-galeria {
  height: 200px;       /* define la altura estándar */
  width: 100%;         /* o un ancho fijo si quieres */
  max-width: 250px;    /* opcional, controla el tamaño */
  object-fit: cover;   /* recorta sin deformar */
  border-radius: 8px;  /* opcional */
  display: block;
}