/* ------------------------------------------------ */
/* --- CARRUSEL PRINCIPAL --- */
/* ------------------------------------------------ */
.carousel-custom {
  width: 95%;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.carousel-custom img {
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
}

.carousel-custom .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}

/* --- RESPONSIVE --- */

/* --- Pantallas muy grandes --- */
@media (min-width: 1600px) {
  .carousel-custom img {
    height: 45vh;
  }
}

@media (max-width: 992px) {
  .carousel-control-prev span,
  .carousel-control-next span {
    margin: 0;
  }
  .carousel-custom img {
    height: 650px;
  }
}

@media (max-width: 768px) {
  .carousel-custom img {
    height: 300px;
  }

  img[alt="Logo EDUPUC"] {
    width: 80px;
  }
}

@media (max-width: 576px) {

  img[alt="Logo EDUPUC"] {
    width: 60px;
  }

} 

@media (max-width: 480px) {

  img[alt="Logo EDUPUC"] {
    width: 50px;
  }

} 

  .carousel-control-prev span,
  .carousel-control-next span {
    margin: 0;
  }



/* ------------------------------------------------ */
/* --- BOTONES DE EDITORIALES --- */
/* ------------------------------------------------ */
.editorial-btn {
  display: inline-block;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  width: 150px;
}

.editorial-btn img {
  width: 100px;
  height: 90px;
  border-radius: 10px;
}

.editorial-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.editorial-btn:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.container .row.g-3 {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .editorial-btn img {
    max-width: 100px;
  }
}

@media (max-width: 576px) {
  .editorial-btn img {
    max-width: 80px;
  }

  .editorial-btn {
    padding: 10px;
  }
}

/* ------------------------------------------------ */
/* --- TÍTULO CENTRADO --- */
/* ------------------------------------------------ */
.centrado {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 40px 0;
}

.izquierda {
  margin-right: 50px;
}

/* ------------------------------------------------ */
/* --- SECCIÓN EDUPUC --- */
/* ------------------------------------------------ */
.edupuc-section-full {
  background-color: #f2f2f3;
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.edupuc-section-full p {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
}

.resaltado {
  color: #e49b2e;
  font-weight: 600;
}

/* --- Imagen con animación de aparición --- */
.logo-scroll {
  transition: transform 0.8s ease; /* transición más lenta */
}

.logo-scroll.mover {
  transform: translateY(-10px); /* pequeño “salto” hacia arriba */
}


/* --- Responsive para la sección --- */
@media (max-width: 768px) {
  .edupuc-section-full {
    text-align: center;
  }

  .logo-scroll {
    margin-top: 20px;
  }
}

/* ------------------------------------------------ */
/* --- NUEVOS AJUSTES: IGUALAR TAMAÑO DE IMÁGENES --- */
/* ------------------------------------------------ */
.imagen {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.imagen:hover {
  transform: scale(1.1);
}

/* ------------------------------------------------ */
/* --- CARRUSEL DE PORTADAS --- */
/* ------------------------------------------------ */
.carousel-libros {
  width: 95%;
  margin: 40px auto;
  position: relative;
  background: transparent;
  box-shadow: none;
  border: none;
}

.portada-libro {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portada-libro:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 60% 60%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* Responsivo */
@media (max-width: 992px) {
  .portada-libro {
    width: 160px;
    height: 230px;
  }
}

@media (max-width: 768px) {
  .portada-libro {
    width: 140px;
    height: 200px;
  }
}

@media (max-width: 576px) {
  .portada-libro {
    width: 120px;
    height: 170px;
  }
}

/* ------------------------------------------------ */
/* --- FOOTER A PANTALLA COMPLETA --- */
/* ------------------------------------------------ */
.footer-custom {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background-color: #939598;
  padding: 15px 10px;
  text-align: center;
  margin-top: 50px;
}

/* Logos del footer */
.footer-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.footer-divider {
  width: 80%;
  margin: 20px auto;
  border: none;
  height: 1px;
  background-color: #ddd;
}

.footer-copy {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-logo {
    width: 85px;
  }
  .footer-copy {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .footer-logo {
    width: 70px;
  }
  .footer-custom {
    padding: 30px 15px 20px;
  }
}

/* ------------------------------------------------ */
/* --- AJUSTE FINAL: PERMITIR SCROLL Y EVITAR DESAPARICIÓN --- */
/* ------------------------------------------------ */
html, body {
  height: auto;
  min-height: 100%;
}

body {
  display: block;
}

/* ------------------------------------------------ */
/* --- OVERLAY DE INFORMACIÓN EN PORTADAS --- */
/* ------------------------------------------------ */
.libro {
  position: relative;
  width: 200px;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.libro img.portada-libro {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Capa de información (oculta por defecto) */
.info-libro {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
}

.info-libro h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.info-libro p {
  color:#fff;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* Hover: oscurecer y mostrar texto */
.libro:hover img.portada-libro {
  filter: brightness(0.6);
  transform: scale(1.05);
}

.libro:hover .info-libro {
  opacity: 1;
}

/* Responsivo */
@media (max-width: 768px) {
  .libro {
    width: 140px;
    height: 200px;
  }
}

@media (max-width: 576px) {
  .libro {
    width: 120px;
    height: 170px;
  }

  .info-libro h5 {
    font-size: 0.9rem;
  }

  .info-libro p {
    font-size: 0.75rem;
  }
}

/* Botón “Más información” */
.btn-info {
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-info:hover {
  background: #fff;
  color: #000;
}
/* Overlay información libros */
.info-libro h5 {
  font-size: 1.1rem;  
  margin-bottom: 5px;
  font-weight: 600;
}

.info-libro p {
  color: white;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* Botón “Más información” */
.btn-info {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 5px;
}

/* --- Media Queries para responsive --- */

/* Tablets (menos de 768px) */
@media (max-width: 768px) {
  .info-libro h5 {
    font-size: 0.9rem;
  }

  .info-libro p {
    font-size: 0.75rem;
  }

  .btn-info {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

/* Móviles pequeños (menos de 576px) */
@media (max-width: 576px) {
  .info-libro h5 {
    font-size: 0.6rem;
  }

  .info-libro p {
    font-size: 0.45rem;
  }

  .btn-info {
    padding: 6px 9px;
    font-size: 0.6rem;
  }
}

/* Pantallas muy pequeñas / teléfonos pequeños (menos de 480px) */
@media (max-width: 480px) {
  .info-libro h5 {
    font-size: 0.7rem;
  }

  .info-libro p {
    font-size: 0.65rem;
  }

  .btn-info {
    padding: 6px 9px;
    font-size: 0.5rem;
  }

  .info-libro {
    padding: 4px;
  }
}


.info-libro p2 {
  color:white;
  font-size: 0.55rem;
  margin: 0;
  opacity: 0.9;
}

/* Overlay información libros */
.info-libro h51 {
  font-size: 0.7rem;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Pantallas muy pequeñas / teléfonos pequeños (menos de 480px) */
@media (max-width: 480px) {
  .info-libro h51 {
    font-size: 0.4rem;
  }

  .info-libro p2 {
    font-size: 0.50rem;
  }

  .btn-info {
    padding: 6px 9px;
    font-size: 0.5rem;
  }

  .info-libro {
    padding: 4px;
  }

  
} 

/* ------------------------------------------------ */
/* --- BOTONES DE EDITORIALES --- */
/* ------------------------------------------------ */
.editorial-btnn {
  display: inline-block;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  width: 125px;
}

.editorial-btnn img {
  width: 60px;
  height: 50px;
  border-radius: 10px;
}

.editorial-btnn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.editorial-btnn:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.container .row.g-3 {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .editorial-btnn img {
    max-width: 100px;
  }
}

@media (max-width: 576px) {
  .editorial-btnn img {
    max-width: 80px;
  }

  .editorial-btnn {
    padding: 10px;
  }
}

.video-section {
  background-color: #ffffff;
  text-align: center;
}

.video-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #002856;
  margin-bottom: 25px;
}

/* Contenedor principal */
.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Video más rectangular (relación 21:9 aprox) */
.responsive-video {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding-top: 42%; /* <-- Más ancho y menos alto que el 56.25% */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Asegura que el video llene el espacio */
.responsive-video iframe,
.responsive-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .video-title {
    font-size: 1.4rem;
  }
}

.enlace-destacado {
  color: #25B0AE;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.enlace-destacado::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #25B0AE;
  transition: width 0.3s;
}

.enlace-destacado:hover::after {
  width: 100%;
}

.enlace-destacado:hover {
  color: #1C8A88;
  cursor: pointer;
}

