.my-5{
  margin-top: 0rem !important;
}

.my-5{
  margin-bottom: 0rem !important;
}

/* Botón flotante circular */
.btn-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 110px;
  height: 110px;
  background: var(--color-terciario) !important;
  color: #fff;
  border: 3px solid #3d71bd;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
  z-index: 999;
  /* Animación */
  animation: pulse 2.5s infinite;
}

/* Efecto hover */
.btn-flotante:hover {
  background: #e64a19;
}

/* Animación de pulso */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.19);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive: botón más pequeño en pantallas chicas */
@media (max-width: 600px) {
  .btn-flotante {
    width: 80px;
    height: 80px;
    font-size: 0.8rem;
  }
}



/* Banner horario 


.banner__horario {
  background: linear-gradient(135deg, #073657, #04a8d5);
  color: #fff;
  padding: 20px;
  text-align: center;
  max-width: 1100px;
  width: 95%;
  margin: 2rem auto;
  border-radius: 20px;
  border: solid var(--color-terciario);
}

.banner__horario h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.horarios {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.horario {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 10px;
  min-width: 250px;
  transition: transform 0.3s ease;
}

.horario:hover {
  transform: scale(1.05);
}

.horario span {
  font-size: 1.5rem;
  margin-right: 10px;
}

.horario p {
  margin: 0;
  font-size: 1rem;
}


@media (max-width: 600px) {
  .banner__horario h1 {
    font-size: 1.5rem;
  }
  .horarios {
    flex-direction: column;
    align-items: center;
  }
  .horario {
    width: 100%;
    max-width: 300px;
  }
}

*/


    /* Estilo para el contenedor 
    .contenedor__lista {
      width: 95%;
      max-width: 450px;
      margin: 0 auto;
      padding: 15px;
      border: 2px solid transparent;
      border-radius: 8px;
    
    }


    .contenedor__lista ul {
      list-style-type: none; 
      padding: 0;
    }


    .contenedor__lista ul li {
      background-color: #335a96;
      color: #f9f9f9 !important;
      margin: 1rem 0;
      padding: 10px;
      border-radius: 5px;
      transition: background-color 0.3s;
    }

  
    .contenedor__lista ul li:hover {
      background-color: #c0c0c0;
      cursor: pointer;
    }

/*

/* Short */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "video text"
      "extra extra";
    gap: 1.5rem;
    max-width: 900px;
    margin: auto;
    padding: 2rem;
  }
  
  .video {
    grid-area: video;
  }
  
  .video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
  }
  
  .text ul,
  .extra ul {
    list-style: none;
    padding-left: 0;
  }
  
  .text li,
  .extra li {
    list-style-type: none !important;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
  }
  
  .text li::before,
  .extra li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .2em;
    width: 0.6em;
    height: 0.6em;
    background-color:  var(--color-terciario); /* Verde UNAM */
    border-radius: 50%;
  }
  



  .text {
    grid-area: text;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .text h2 {
    margin: 2rem auto;     
    color: var(--color-terciario);
  }
  
  .text ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
  }
  
  .text li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
  }
  
  .extra {
    grid-area: extra;
    background-color: #b7e8fa;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
  }
  
  .extra h3 {
    margin-top: 0;
    color: var(--color-terciario);
  }
  
  .extra p {
    font-size: 1rem;
    color: #333;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .info-grid {
      grid-template-columns: 1fr;
      grid-template-areas:
        "video"
        "text"
        "extra";
    }
  
    .extra {
      text-align: left;
    }
  }
  
  


/* Video Youtube */

  .video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 90%;
    margin: 2rem auto;
    position: relative;
  }
  
  .video-thumbnail {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 560px;
    display: block;
  }
  
  .video-thumbnail img {
    width: 100%;
    border-radius: 12px;
    display: block;
  }
  
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 1rem 1.2rem;
    pointer-events: none;
  }
  
  .video-embed {
    display: none;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
  }
  
  .video-embed iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }
  
  
  
  
  
 /* Contenedor Base Estilo Tarjeta */
.fade-carousel {
  margin: 2rem auto;
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 620px;
  background-color: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

input[type="radio"] {
  display: none;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.slide-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  z-index: 2;
}

/* --- LÓGICA DE VISIBILIDAD DE CAPAS (Añadida la capa 4) --- */
#img-1:checked ~ .slides-container .layer-1,
#img-2:checked ~ .slides-container .layer-2,
#img-3:checked ~ .slides-container .layer-3,
#img-4:checked ~ .slides-container .layer-4 {
  opacity: 1;
  z-index: 2;
}

/* --- MOSTRAR LAS FLECHAS CORRESPONDIENTES (Añadido el grupo 4) --- */
.arrow-group {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: none;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 10;
}

.arrow {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s, transform 0.2s;
  user-select: none;
}

.arrow:hover {
  background-color: #3b82f6;
  transform: scale(1.05);
}

#img-1:checked ~ .navigation-arrows .group-1,
#img-2:checked ~ .navigation-arrows .group-2,
#img-3:checked ~ .navigation-arrows .group-3,
#img-4:checked ~ .navigation-arrows .group-4 {
  display: flex;
}

/* --- DISEÑO DE LOS PUNTOS INDICADORES (Añadido el punto 4) --- */
.navigation-dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

#img-1:checked ~ .navigation-dots .dot:nth-child(1),
#img-2:checked ~ .navigation-dots .dot:nth-child(2),
#img-3:checked ~ .navigation-dots .dot:nth-child(3),
#img-4:checked ~ .navigation-dots .dot:nth-child(4) {
  background-color: #3b82f6;
  transform: scale(1.3);
}

/* Responsivo */
@media (max-width: 768px) {
  .fade-carousel {
      height: 300px;
  }
  .slide-text {
      left: 25px;
      bottom: 40px;
      font-size: 1.1rem;
  }
  .arrow {
      width: 40px;
      height: 40px;
      font-size: 0.9rem;
  }
}
  