@charset "utf-8";

/* ================================== */
/* ESTILOS DEL SITIO GENERAL */
/* ================================== */
.site-title {
  background-color: #611232;
  color: white;
  position: relative;
}


/* Reset completo para eliminar todos los espacios */
* {
  margin: 0;
  padding: 0;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  padding-left: 8px !important;
  padding-right: 8px !important;
}


.sub-navbar {
  /*padding-block: 2rem !important;*/
  /* Equivale a padding-top y padding-bottom */
  padding-top: 3.5rem !important;
  padding-bottom: 2.5rem !important;
}


/* Asegurar que los links también tengan el color */
.sub-navbar .nav-link.subnav-link {
  color: #ffffff !important;
}


/* Cambiar el color del icono a blanco */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Opcional: hacer el botón un poco más grande */
.navbar-toggler {
  padding: 0.5rem 0.75rem;
}

/* ================================== */
/* ESTILOS DEL CARRUSEL - SEPARADOS Y PROTEGIDOS */
/* ================================== */
.carousel {
  /* Proteger el carrusel de interferencias del script de vistas */
  position: relative;
  overflow: hidden;
}

.carousel-indicators {
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 20px 0 0 0;
  justify-content: center;
  display: flex;
  width: auto;
  z-index: 15;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #9d2449;
  border: 1px solid #fff;
  margin: 0 5px;
  opacity: 0.8;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-indicators .active {
  background-color: #611232;
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.carousel-indicators [data-bs-target]:hover {
  opacity: 1;
  transform: scale(1.1);
  background-color: #7d1d3a;
}

/* Proteger elementos del carrusel y mejorar controles */
.carousel {
  /* Proteger el carrusel de interferencias del script de vistas */
  position: relative;
  overflow: hidden;
}

.carousel *,
.carousel-inner,
.carousel-item {
  /* Evitar que el script de vistas afecte el carrusel */
  position: relative;
}

/* Controles de navegación visibles debajo de los indicadores */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 10px;
}

.carousel-control-prev,
.carousel-control-next {
  position: static;
  width: auto;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(97, 18, 50, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(97, 18, 50, 1);
  transform: scale(1.1);
}

/* ================================== */
/* ESTILOS DE LA SECCIÓN DE ARTÍCULOS */
/* ================================== */
#prensa {
  margin-top: 2rem;
  /* Separación del carrusel */
  transition: opacity 0.15s ease-in-out;
}

/* Reset base para artículos */
#prensa article {
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#prensa article:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ================================== */
/* VISTA MOSAICO (GRID) - view-th */
/* ================================== */
#prensa.view-th>div {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease-in-out;
}

#prensa.view-th article.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
}

#prensa.view-th .card-img-top,
#prensa.view-th video.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.375rem 0.375rem 0 0;
}

#prensa.view-th .ratio {
  border-radius: 0.375rem 0.375rem 0 0;
  overflow: hidden;
}

#prensa.view-th .card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#prensa.view-th .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

#prensa.view-th .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ================================== */
/* VISTA LISTA - view-list */
/* ================================== */
#prensa.view-list>div {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease-in-out;
}

#prensa.view-list article {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  width: 100%;
}

#prensa.view-list .flex-shrink-0 {
  width: 200px;
  margin-right: 1.5rem;
  overflow: hidden;
  border-radius: 0.375rem;
}

#prensa.view-list .img-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.375rem;
  padding: 0;
  border: none;
}

#prensa.view-list video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.375rem;
}

#prensa.view-list .ratio {
  width: 200px;
  height: 120px;
  border-radius: 0.375rem;
  overflow: hidden;
}

#prensa.view-list .flex-grow-1 {
  min-width: 0;
}

#prensa.view-list h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

#prensa.view-list hr {
  margin: 1.5rem 0;
  border-top: 1px solid #dee2e6;
}

/* ================================== */
/* RESPONSIVE DESIGN */
/* ================================== */
@media (max-width: 768px) {

  /* Ajustes para centrar el menú en móviles */
  .navbar-collapse {
    text-align: center;
    padding: 1rem 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  /* Ajuste de posición del botón toggler */
  .navbar-toggler {
    position: absolute;
    bottom: 0;
    right: 10px;
    z-index: 1020;
  }

  /* Carrusel responsive */
  .carousel-indicators {
    margin: 15px 0 0 0;
    padding: 0 1rem;
  }

  /* Controles responsive */
  .carousel-controls {
    gap: 40px;
    /* Menos separación en móviles */
    margin-top: 8px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 35px;
    height: 35px;
  }

  /* Vista mosaico en móviles */
  #prensa.view-th>div {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  #prensa.view-th .card-img-top,
  #prensa.view-th video.card-img-top {
    height: 180px;
  }

  /* Vista lista en móviles */
  #prensa.view-list article {
    flex-direction: column;
    padding: 1rem;
  }

  #prensa.view-list .flex-shrink-0 {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  #prensa.view-list .img-thumbnail,
  #prensa.view-list video,
  #prensa.view-list .ratio {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 576px) {
  #prensa {
    margin-top: 1rem;
  }

  #prensa.view-th>div,
  #prensa.view-list>div {
    padding: 0 0.5rem;
  }

  #prensa.view-th .card-body,
  #prensa.view-list article {
    padding: 1rem;
  }
}

/* ================================== */
/* UTILIDADES Y LIMPIEZA */
/* ================================== */
/* Evitar conflictos entre vistas */
#prensa.view-th hr {
  display: none !important;
}

/* Separación visual clara entre secciones */
.blog-section {
  position: relative;
  z-index: 1;
}

/* Asegurar que los elementos multimedia no se desborden */
#prensa img,
#prensa video,
#prensa iframe {
  max-width: 100%;
  height: auto;
}

/* Mejorar la legibilidad de texto */
#prensa small.text-muted {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Botones consistentes */
#prensa .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}