/* ====================================================== */
/* === JERARQUÍA TIPOGRÁFICA ==== */
/* ====================================================== */

/* Importamos los estilos globales principales */
@import url("main_styles.css");

/* Fuente general */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--color-texto);
}

/* Títulos principales */
h1, .titulo-principal {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--color-primario);
  margin-bottom: 20px;
}

/* Subtítulos grandes */
h2, .subtitulo-grande {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--color-secundario);
  margin-bottom: 18px;
}

/* Subtítulos medianos */
h3, .subtitulo-medio {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--color-secundario);
  margin-bottom: 15px;
}

/* Títulos pequeños */
h4, h5, .subtitulo-pequeño, .card-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-texto);
  margin-bottom: 10px;
}

/* Texto general */
p, .card-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--color-texto);
}

/* ajustar jerarquía */
@media (max-width: 576px) {
  h1, .titulo-principal { font-size: 1.9rem; }
  h2, .subtitulo-grande { font-size: 1.6rem; }
  h3, .subtitulo-medio { font-size: 1.4rem; }
  h4, h5, .card-title { font-size: 1.05rem; }
  p, .card-text { font-size: 0.95rem; }
}



/* ------------------------------------------------ */
/* --- CARRUSEL PRINCIPAL  --- */
/* ------------------------------------------------ */
.carousel-custom {
  width: 95%;
  max-width: 1600px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
}

.carousel-custom .carousel-inner {
  width: 100%;
}

/* Cada slide: proporción exacta + fallback en px */
.carousel-custom .carousel-item {
  position: relative;
  aspect-ratio: 1317 / 407;
  min-height: 200px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: transparent;
  width: 100%;
  border-radius: 20px;
}

/* Fallback extra: si el viewport es grande, aumentar mínimo */
@media (min-width: 992px) {
  .carousel-custom .carousel-item {
    min-height: 300px;
  }
}

/* Reglas específicas para fade de Bootstrap */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .6s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item.carousel-item-start,
.carousel-fade .carousel-item.carousel-item-end {
  opacity: 1;
}

/* Overlay */
.carousel-custom .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  z-index: 1;
}

/* Asegura que controles queden encima */
.carousel-control-prev,
.carousel-control-next {
  z-index: 5;
}

/* ------------------------------------------------ */
/* --- REEMPLAZO DE IMÁGENES PARA PANTALLAS PEQUEÑAS --- */
/* ------------------------------------------------ */

@media (max-width: 576px) {

  /* Slide 1 */
  #carouselExampleFade .carousel-item:nth-child(1) {
    background-image: url('../img/EUTN/CarruselUTN/Banner1celular.png') !important;
  }

  /* Slide 2 */
  #carouselExampleFade .carousel-item:nth-child(2) {
    background-image: url('../img/EUTN/CarruselUTN/Banner2celular.png') !important;
  }

  /* Slide 3 */
  #carouselExampleFade .carousel-item:nth-child(3) {
    background-image: url('../img/EUTN/CarruselUTN/Banner3celular.png') !important;
  }
}


/* ------------------------------------------------ */
/* --- MEDIA QUERIES PARA EL CARRUSEL --- */
/* ------------------------------------------------ */

/* Pantallas muy pequeñas (teléfonos mini) */
@media (max-width: 360px) {
  .carousel-custom {
    border-radius: 10px;
    margin: 15px auto;
  }
  .carousel-custom .carousel-item {
    min-height: 140px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 576px) {
  .carousel-custom {
    border-radius: 12px;
    margin: 20px auto;
  }
  .carousel-custom .carousel-item {
    min-height: 160px;
  }
}

/* Teléfonos grandes y tablets chicas */
@media (max-width: 768px) {
  .carousel-custom .carousel-item {
    min-height: 220px;
  }
}

/* Tablets / pantallas medianas */
@media (max-width: 992px) {
  .carousel-custom .carousel-item {
    min-height: 280px;
  }
}

/* Laptops pequeñas */
@media (max-width: 1200px) {
  .carousel-custom .carousel-item {
    min-height: 340px;
  }
}

/* Pantallas grandes (HD) */
@media (min-width: 1201px) and (max-width: 1600px) {
  .carousel-custom .carousel-item {
    min-height: 400px;
  }
}

/* Pantallas muy grandes (2K) */
@media (min-width: 1601px) and (max-width: 2000px) {
  .carousel-custom .carousel-item {
    min-height: 480px;
  }
}

/* Pantallas ultra anchas o 4K */
@media (min-width: 2001px) {
  .carousel-custom .carousel-item {
    min-height: 550px;
  }
}


/* ------------------------------------------------ */
/* --- TÍTULO CENTRADO --- */
/* ------------------------------------------------ */
.centrado {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 50px 0;
}

.izquierda {
  margin-right: 50px;
}

/* ------------------------------------------------ */
/* --- SECCIÓN EDUPUC --- */
/* ------------------------------------------------ */
.edupuc-section-full {
  background-color: #f4f4f5;
  border-radius: 10px;
  padding: 10px 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.edupuc-section-full p {
  font-size: 1.5rem;
  color: #222;
  line-height: 1.6;
  margin-top: 50px;
  text-align: justify;
}

@media (max-width: 768px) {
  .edupuc-section-full {
    text-align: center;
  }

  .logo-scroll {
    margin-top: 20px;
  }
}

/* ------------------------------------------------ */
/* --- IGUALAR TAMAÑO DE IMÁGENES --- */
/* ------------------------------------------------ */
.imagen {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.95);
}

.imagen:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* ------------------------------------------------ */
/* --- FOOTER --- */
/* ------------------------------------------------ */
.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;
  color: #fff;
}

.footer-logo {
  height: 100px;
  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: #f8f8f8;
  margin: 0;
  letter-spacing: 0.3px;
}

@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 DE PÁGINA --- */
/* ------------------------------------------------ */
html,
body {
  height: auto;
  min-height: 100%;
  background-color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
  margin: 0;
}

body {
  display: block;
}

/* ------------------------------------------------ */
/* --- TIMELINE --- */
/* ------------------------------------------------ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: #213469;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
}

/* --- Items --- */
.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background: white;
  border: 4px solid #213469;
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

/* --- Contenido --- */
.content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content .year {
  font-size: 22px;
  color: #213469;
  font-weight: bold;
  margin-bottom: 10px;
}

.content img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 15px;
  }

  .right {
    left: 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.25s ease, box-shadow 0.25s ease;
  text-align: center;
  width: 95px;
  height: 95px;
}

.editorial-btn img {
  width: 65px;
  height: 60px;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.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;
  }
}

/* ------------------------------------------------ */
/* --- NAVBAR TOGGLER PERSONALIZADO --- */
/* ------------------------------------------------ */
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ------------------------------------------------ */
/* --- LÍNEA DECORATIVA CENTRAL --- */
/* ------------------------------------------------ */
.linea-centro {
  width: 50%;
  margin: 20px auto;
  border: 0;
  border-top: 2px solid #333;
  border-radius: 2px;
}
