/*-ENCABEZADO-------------------*/

body {
  margin: 0;
  padding: 0;
  /* background-color: #053967;  */
}

.titulo-auditorio-fournier {
  color: #fff;
  margin-top: 20px;
}
/* HEADER */

.main-header {
  width: 100%;
  background: #053967;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .navbar {
  padding-top: 0.5rem;
  /* antes era 0.5–1rem en Bootstrap */
  padding-bottom: 0.25rem;
  min-height: auto;
  /* evita altura fija */
}

/* Ajustar alineación vertical */
.main-header .navbar-nav .nav-link {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Ajustar tamaño de los logos */
.main-header .logos img {
  max-height: 73px;
  /* controla altura de los logos */
  margin-right: 0.5rem;
  /* espacio entre logos */
}

.main-header .logos .logo-feria {
  max-width: 140px !important;
  max-height: none !important;
  height: auto !important;
}

.nav-item.dropdown .dropdown-menu {
  background: #053967 !important;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Ajustes generales */
.navbar-nav .nav-item {
  margin: 0;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 500;
  color: #cacac8 !important;
}

/* Hover */
.navbar-nav .nav-link:hover {
  /* background: rgba(255, 255, 255, 0.1); */
  color: #fff !important;
}

/* Dropdown */
.dropdown-menu {
  margin: 0;
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #ffffff !important;
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-weight: 800;

}

/* SOCIAL BAR */

.social-bar {
  background: #fff;
  padding: 5px 20px;
  display: flex;
  justify-content: flex-end;
}

.social-icons a img {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  margin-left: 10px;
}

/* Contenedor principal */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
}

/* Cada slide */
.slide {
  position: absolute;
  inset: 0;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto y botón */
.slide-caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
}

.slide-button {
  background: #053967;
  /* color institucional */
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.slide-button:hover {
  background: #002b7a;
}

/* Indicadores */
.slider-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.indicator.active {
  background: #fff;
}

/* Flechas */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

/* Transiciones */
.fade-enter {
  transition: opacity 0.7s ease-in-out;
  opacity: 0;
}

.fade-leave {
  transition: opacity 0.7s ease-in-out;
  opacity: 0;
}

/* FOOTER */

.main-footer {
  background: #333;
  color: #fff;
}

.main-footer p {
  color: #fff !important;
}

.main-footer h4 {
  color: #fff;
}

.footer-top {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 50px;
  flex-wrap: wrap;
}

.footer-col {
  width: auto;

  color: #fff;
}

.footer-legal {
  text-align: center;
  padding: 10px;
}

.faculty-social a img {
  width: 26px;
  height: 26px;
  margin: 2px;
}

.footer-logos img {
  width: 60px;
  margin: 5px;
}

.logo-475 {
  width: 80px !important;
}

.gaceta-logo {
  max-width: 35%;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* contacto */
.contacto {
  padding: 4% 4% 4% 4%;
  text-align: center;
}

.contacto h1 {
  color: #053967;
}

.caja {
  padding: 40px 10px 40px 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: center;
  border-radius: 15px;
}

.caja1 {
  background: #079893;
}

/* actividades académicas */
.caja2 {
  background: #2a78c0;
}

/* actividades culturales */
.caja3 {
  background: #4f44bc;
}

/* bienvenida */
.caja4 {
  background: #d14524;
}

/* expositores */
.caja5 {
  background: #d1a14d;
}

/* magistrales */
.caja6 {
  background: #cf88c0;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  font-size: 36px;
  color: #fff;
}

/* contacto */
.caja1 .icon-circle {
  background-color: #057a76;
}

/* actividades académicas */
.caja2 .icon-circle {
  background-color: #1f5a91;
}

.caja3 .icon-circle {
  background-color: #3f378d;
}

.caja4 .icon-circle {
  background-color: #a53418;
}

.caja5 .icon-circle {
  background-color: #a77a36;
}

/* Ajuste para que el texto nunca se salga */
.caja1,
.caja2,
.caja3,
.caja4,
.caja5 {
  word-wrap: break-word;
}

.contenedor-video-iframe {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

.contenedor-video {
  text-align: center;
  background: #053967;
  padding: 2% 2% 2% 2%;
  margin-bottom: 5%;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 15px;
  border: 2px solid #FFF;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Calendario */
.calendario {
  width: 100%;
  height: 150px;
  border: 2px solid #333;
  border-radius: 6px;
  text-align: center;
  font-family: Arial, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

/* efecto de resalte al pasar el mouse por el calendario */
.calendario:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.calendario-row {
  margin-bottom: 30px;
}

.calendario-header {
  color: #fff;
  font-weight: bold;
  padding: 8px;
  font-size: 20px;
  flex-shrink: 0;
}

.calendario .fecha {
  font-size: 48px;
  font-weight: bold;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  background: #fff;
}

.programa-titulo {
  margin-bottom: 20px;
  text-align: left;
  font-size: 28px;
  font-weight: bold;
  color: #053967;
}

.programa-opciones {
  display: flex;
}

.programa-option {
  display: flex;
  flex-direction: column;
  margin: 10px;

}

.option-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Efecto a la tarjeta para que en over haga un resalte */
.option-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.option-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #053967;
  margin-bottom: 15px;
}

.option-card svg {
  width: 100px;
  height: 100px;
  margin: 10px 0;

}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
}

.opciones-links {
  text-align: center;
  line-height: 1.8;
}

.opciones-links a {
  color: #053967;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.opciones-links a:hover {
  color: #d14524 !important;
  text-decoration: underline !important;

}

.opciones-links a:visited {
  color: #053967;
}

.croquis {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 25%;
  padding-top: 20px;
}

.croquis:hover {
  width: 100%;
  transition: all 0.3s ease;
  cursor: zoom-in;
}

.imagen_iso_uno video {
  padding: 5px;
  width: 80%;
  margin-top: 40px;
  margin-left: 10px;
  background-color: #053967;
  border-radius: 10px 2px;
}

.raya_2 {
  background-color: rgb(241, 241, 241);
  float: right;
  width: 70%;
  height: auto;
  margin-top: 40px;
  margin-left: 10px;
}

.fondoBlanco {
  margin-top: 40px;
  padding-top: 20px;
}

.programaEspacio {
  padding-top: 40px;
  padding-bottom: 40px;
}

.qr-container{
  display: flex;
  justify-content: start;
  align-items: center;
  margin-top: 20px;
}

.qr-container img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* ==================================================
   Carrusel infinito de pósteres
   ================================================== */

.poster-carousel {
    --posters-visible: 4;

    position: relative;
    width: 100%;
    margin: 0 0 30px;
    padding: 0 42px;
    box-sizing: border-box;
    isolation: isolate;
}

.poster-carousel__viewport {
    width: 100%;
    overflow: hidden;
    min-width: 0;
}

.poster-carousel__track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.5s ease;
    will-change: transform;
}

.poster-carousel__item {
    flex: 0 0 calc(100% / var(--posters-visible));
    min-width: 0;
    padding: 0 7px;
    box-sizing: border-box;
}

.poster-carousel__image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

}

.poster-carousel__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    cursor: zoom-in;
    transform: scale(1);
    transition: transform 0.25s ease;
}

/*
 * Vista ampliada flotante.
 * Se crea dinámicamente con JavaScript y queda fuera
 * del viewport del carrusel.
 */
.poster-preview {
    position: fixed;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    max-width: min(430px, 85vw);
    max-height: 85vh;
    padding: 8px;

    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.15);

    pointer-events: none;
    opacity: 0;
    visibility: hidden;

    transform: scale(0.9);
    transform-origin: center center;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.poster-preview.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.poster-preview img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(85vh - 16px);

    object-fit: contain;
    border-radius: 5px;
}

/*
 * El efecto solamente se utiliza en equipos
 * que realmente tienen mouse.
 */
@media (hover: none), (pointer: coarse) {
    .poster-carousel__image img {
        cursor: default;
    }

    .poster-preview {
        display: none;
    }
}

/* Controles */

.poster-carousel__control {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 36px;
    height: 48px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.55);
    border: 0;
    border-radius: 5px;
    cursor: pointer;

    font-size: 24px;
    line-height: 1;

    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.poster-carousel__control:hover,
.poster-carousel__control:focus {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
    outline: none;
}

.poster-carousel__control--prev {
    left: 0;
}

.poster-carousel__control--next {
    right: 0;
}

/* Tablet: dos pósteres visibles */

@media (max-width: 991.98px) {
    .poster-carousel {
        --posters-visible: 2;
    }

    .poster-carousel__image {
        height: 280px;
    }
}

/* Móvil: un póster visible */

@media (max-width: 575.98px) {
    .poster-carousel {
        --posters-visible: 1;

        padding-right: 34px;
        padding-left: 34px;
        margin-bottom: 24px;
    }

    .poster-carousel__item {
        padding-right: 5px;
        padding-left: 5px;
    }

    .poster-carousel__image {
        height: clamp(280px, 95vw, 400px);
    }

    .poster-carousel__control {
        width: 30px;
        height: 44px;
        font-size: 20px;
    }
}

/* Reduce animaciones cuando el usuario lo solicita */

@media (prefers-reduced-motion: reduce) {
    .poster-carousel__track {
        transition-duration: 0.01ms;
    }
}

@media (hover: hover) and (pointer: fine) {
    .poster-carousel__image:hover img {
        transform: scale(1.03);
    }
}

#modalAviso .modal-body {
  text-align: justify;
  font-size: 18px;
  line-height: 1.5;

}

/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 992px) {
  .slider-container {
    height: 400px;
  }

  .slide-button {
    font-size: 13px;
    padding: 8px 16px;
  }

  .arrow {
    font-size: 28px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: left;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .main-header .logos img {
    max-height: 50px;
    /* controla altura de los logos */
    margin-right: 0.5rem;
    /* espacio entre logos */
  }

  .main-header .logos .logo-feria {
    max-width: 100px !important;
    max-height: none !important;
    height: auto !important;
  }


  .slider-container {
    height: 280px;
  }

  .slide-caption {
    bottom: 20px;
  }

  .slide-button {
    font-size: 12px;
    padding: 6px 14px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .arrow {
    font-size: 24px;
  }
}

/* Muy pequeños (teléfonos chicos) */
@media (max-width: 480px) {
  .slider-container {
    height: 200px;
  }

  .slide-button {
    font-size: 11px;
    padding: 5px 12px;
  }

  .arrow {
    font-size: 20px;
  }
}