.nav-tabs>li>a.linksCustom {
    color: #666;
    padding: 8px 14px;
    border-radius: 3px 3px 0 0;
    -webkit-border-radius: 3px 3px 0 0;
    -moz-border-radius: 3px 3px 0 0;
    -o-border-radius: 3px 3px 0 0;
    border: none;
    border-bottom: none;
    box-shadow: 0 0 15px rgba(0,0,0,.04) inset;
    -o-box-shadow: 0 0 15px rgba(0,0,0,.04) inset;
    -moz-box-shadow: 0 0 15px rgba(0,0,0,.04) inset;
    -webkit-box-shadow: 0 0 15px rgba(0,0,0,.04) inset;
    transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out
}

.nav-tabs>li>a.linksCustom:hover,.nav-tabs>li>a.linksCustom:focus {
    background-color: transparent;
}

.scroll{
  overflow-y: scroll;
  height: calc(100% - 50px);
}

@media (max-width: 1024px) {
  .scroll{
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .scroll{
  }
}
@media (min-width: 320px) and (max-width: 480px) {
  .scroll{
  }
}

.imgRedonda {
    height:150px;
    border-radius:160px;
    border:5px solid #666;
}

.nav-vertical>li{
  position: relative; !important;
  float: none;
  margin-bottom: 3px;
}

.header p {
  font-family: "Roboto Slab", serif;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.075em;
  margin-top: -0.5em;
  text-transform: uppercase; }

.header.major > :last-child {
  border-bottom: solid 3px #834298;
  display: inline-block;
  margin: 0 0 2em 0;
  padding: 0 0.75em 0.5em 0; }

.header.main > :last-child {
  margin: 0 0 1em 0; }



.label-iepc{
  background-color: #886ba4;
  color: white !important;
}

.blockquote-iepc
{
  border-left: solid 3px rgba(210, 215, 217, 0.75);
  font-style: italic;
  margin: 0 0 2em 0;
  padding: 0.5em 0 0.5em 2em;
  font-size: 15px;
}
.icon-effect-iepc
{
  color:#886aa4;
  box-shadow:0 0 0 0 #886aa4;
  -o-box-shadow:0 0 0 0 #886aa4;
  -moz-box-shadow:0 0 0 0 #886aa4;
  -webkit-box-shadow:0 0 0 0 #886aa4
}
.icon-effect-iepc:after
{
  background-color:#886aa4
}

.classic-list {
  margin-bottom: 25px!important;
}

.classic-list .list-content {
    position: relative;
    padding: 14px 18px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
}

.classic-list .list-content:before {
    content: "\2022";
    font-weight: 300;
    position: absolute;
    opacity: .5;
    top: 12px;
    left: 6px
}

/* Estilo para el overlay de carga */
    #loading-overlay {
      display: none; /* Oculto inicialmente */
      position: fixed;
      z-index: 100;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.8);
      text-align: center;
      justify-content: center;
      align-items: center;
      flex-direction: column; /* Alinea los GIFs verticalmente */
      transition: all 10s ease-in-out; /* Transición suave para el cambio de fondo */
      opacity: 0; /* Inicialmente invisible */
    }

    /* Contenedor del fondo */
    #background-layer {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover !important;
      transition: opacity 3s ease-in-out; /* Transición suave para el cambio de fondo */
      z-index: 0; /* Fondo detrás del GIF */
      opacity: 1;
    }

    /* Contenedor del GIF */
    #gif-layer {
      position: relative;
      z-index: 1; /* GIF sobre el fondo */
      width: 100%; /* Ocupa todo el ancho del overlay */
      height: 100%; /* Ocupa toda la altura del overlay */
      display: flex;
      justify-content: center;
      align-items: flex-end; /* Alinea el GIF al ras del fondo */
    }

    /* Fondos diferentes para el overlay */
    .bg-perro {
      background: url('../../images/pruebas/city.jpg') no-repeat center center !important;
    }

    .bg-oso-apareciendo {
      background: url('../../images/pruebas/bosque.jpg') no-repeat center center !important;
    }

    .gif1 {
      animation: caminar 5s linear forwards; /* Animación del perro */
      filter: grayscale(100%) brightness(40%);
    }

    .gif2 {
      opacity: 0; /* Inicialmente oculto */
      animation: aparecer 8s linear forwards; /* Animación de aparición del oso */
      top: 50%; /* Ajusta la posición vertical según el diseño */
      left: 50%; /* Ajusta la posición horizontal según el diseño */
      transform: translate(-50%, -50%); /* Centra el oso en el contenedor */
      height: 40%; /* se cambio el tamaño aqui */
    }

    .gif3 {
      opacity: 0; /* Inicialmente oculto */
      animation: caminarAtras 5s linear forwards;
    }

    @keyframes caminar {
      from {
        transform: translateX(-100px); /* Empieza fuera del contenedor */
      }
      to {
        transform: translateX(100vw); /* Sale del contenedor completamente usando viewport width */
      }
    }

    @keyframes aparecer {
      0% {
        opacity: 0;
      }
      25% {
        opacity: 0.6;
      }
      50% {
        opacity: 1;
      }
      75% {
        opacity: 0.6;
      }
      100% {
        opacity: 0;
      }
    }

    @keyframes caminarAtras {
      from {
        transform: translateX(0); /* Empieza desde fuera del contenedor, a la derecha */
      }
      to {
        transform: translateX(-100vw); /* Termina fuera del contenedor, a la izquierda */
      }
    }
    @media (min-width: 992px) and (max-width: 1199px){
      .gif {
        margin-top: 50%; /* Ajuste para pantallas pequeñas */
      }
    }
    @media (min-width: 768px) and (max-width: 991px) {
      .gif {
        margin-top: 62%; /* Ajuste para pantallas pequeñas */
      }
    }

    @media (min-width: 576px) and (max-width: 767px) {
      .gif {
        margin-top: 82%; /* Ajuste adicional para pantallas muy pequeñas */
      }
    }

    @media (max-width: 576px) {
      .gif {
        margin-top: 100%; /* Ajuste adicional para pantallas muy pequeñas */
      }
    }
    .btn-iepc {
      color: #fff !important;
      background-color:  rgb(96, 92, 168) !important;
      border-color:  rgb(96, 92, 168) !important;
      transition: all .2s ease-in-out;
      -moz-transition: all .2s ease-in-out;
      -webkit-transition: all .2s ease-in-out;
      -o-transition: all .2s ease-in-out
    }
    .btn-iepc:hover{
        background-color: #286090 !important;
        border-color: #204d74 !important;
    }

    /*Empieza estilos para lo antiguo*/
.historical {
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png'); /* Textura de papel antiguo */
    background-color: #f4f1e0; /* Un color base crema suave */
    border: 1px solid #d6c5a1; /* Borde que simula antigüedad */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    padding: 20px;
    border-radius: 8px;
    background-size: 150%; /* Aumenta el tamaño de la textura para mejor visibilidad */
}

@media (max-width: 768px) {
    .historical {
        background-size: 300%; /* Ajusta la escala para móviles */
    }
}

/* Estilos para el título y texto */
.historical h2.primary {
    font-family: 'Garamond', serif; /* Tipografía clásica para dar un toque antiguo */
    color: #5e4a2f; /* Un marrón oscuro para un estilo clásico */
    font-size: 28px;
    margin-bottom: 10px;
}

.historical p {
    font-family: 'Georgia', serif;
    color: #6e5a3c;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Estilo para el botón */
.btn-historical {
    background-color: #8b7a56; /* Color cálido y clásico */
    border-color: #705a3e;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-historical:hover {
    background-color: #ffffff;
    border-color: #000000;
}

/* Botón con bordes redondeados para suavizar el estilo */
.btn-historical.border-btn {
    border-radius: 5px;
}
/*Termina estilos de lo antiguo*/
.administration {
    background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png'); /* Textura que evoca estructura formal */
    background-color: #f5f5f5; /* Color gris claro que sugiere formalidad */
    background-size: 150%; /* Aumenta el tamaño de la textura para mejor visibilidad */
    border: 1px solid #cccccc; /* Borde gris suave para mayor formalidad */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave y limpia */
    padding: 20px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .administration {
        background-size: 300%; /* Ajusta la escala para móviles */
    }
}

/* Estilos para el título y texto */
.administration h2.primary {
    font-family: 'Roboto', sans-serif; /* Tipografía moderna y profesional */
    color: #2d3e50; /* Un tono azul oscuro para denotar seriedad y profesionalismo */
    font-size: 23px;
}

.administration p {
    font-family: 'Open Sans', sans-serif; /* Tipografía limpia y legible */
    color: #606060; /* Color gris medio para mantener un enfoque serio */
    font-size: 16px;
}

/* Estilo para el botón */
.btn-administration {
    background-color: #4a90e2; /* Azul que representa confianza y profesionalismo */
    border-color: #3e78c9;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-administration:hover {
    background-color: #3e78c9;
    border-color: #3468b0;
}

/* Sección estructura órganica*/
.structure {
    background-image: url('https://www.transparenttextures.com/patterns/connected.png'); /* Fondo de redes geométricas */
    background-color: #f7f9fb;
    padding: 20px;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-size: 150%; /* Aumenta el tamaño de la textura para mejor visibilidad */
}

@media (max-width: 768px) {
    .structure {
        background-size: 300%; /* Ajusta la escala para móviles */
    }
}

.structure:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); /* Resalta suavemente al pasar el mouse */
}

.structure h2.primary {
    font-family: 'Roboto', sans-serif;
    color: #2c4a6a;
    font-size: 24px;
    margin-bottom: 5px;
}

.structure p {
    font-family: 'Open Sans', sans-serif;
    color: #5a6b7c;
    font-size: 14px;
    margin-bottom: 15px;
}
/*Estilos para los botones que tienen relacion con el tiempo, calendario*/
.timerLine {
  background-image: url("https://www.transparenttextures.com/patterns/cartographer.png");
  background-color: #f7f7f7;
  background-size: auto;
  background-repeat: repeat;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #333; /* Color oscuro para el texto */
}
@media (max-width: 768px) {
    .timerLine {
        background-size: 300%; /* Ajusta la escala para móviles */
    }
}

/*.timerLine:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); 
}*/

.timerLine h2.primary {
    font-family: 'Montserrat', sans-serif; /* o 'Montserrat' */
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Ligero sombreado */
}

.timerLine p {
    font-family: 'Lora', sans-serif; /* o 'Lora' */
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 15px;
}
/*Fin*/
/*Estilos para las biografias y areas*/
.council-member-card {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.council-member-photo img {
    border-radius: 50%;
    width: 100%;
    max-width: 150px;
    border: 4px solid #886aa4;
    padding: 5px;
}

.council-member-photo {
    text-align: center; /* Centra la imagen dentro de su contenedor */
}

.council-member-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

.council-member-position {
    font-size: 1.3em;
    color: #886aa4;
    margin-bottom: 15px;
}

.council-member-contact li {
    list-style: none;
    margin: 5px 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.council-member-contact li i {
    margin-right: 10px;
    color: #886aa4;
}

.council-member-section {
    margin-top: 20px;
}

.council-member-section h3 {
    font-size: 1.5em;
    color: #34495e;
    margin-bottom: 10px;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 5px;
}

.council-member-details {
    list-style: none;
    padding-left: 0;
}

.council-member-details li {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #2c3e50;
    text-align: justify;
}

.council-member-details li i {
    margin-right: 8px;
    color: #886aa4;
}

.period {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-left: 10px;
}

.document {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-left: 10px;
}
/*Estilos para el buscador*/
/* Estilo del fondo de búsqueda (overlay) */
/* Estilos generales */
.navbar-form .input-group {
    transition: all 0.8s ease;
}

/* Ocultar menú cuando el buscador está activo */
.header-container.show-search .navbar-header, .header-container.show-search ul.navbar-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Estilos de la barra de búsqueda */
.search-bar {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Entrada de búsqueda inicial */
.search-input {
    transition: width 0.8s ease, background-color 0.8s ease;
}

.search-input:focus {
  border-color: #5D278F;
  box-shadow: 0 0 8px rgba(93, 39, 143, 0.5);
}

/*Estilos del boton de búsqueda*/
.navbar-form button.btnSearch {
    background-color: #ffffff;
    border: none;
    font-size: larger;
    color: #886AA4;
}

/* Al hacer clic en el input, expandir y ajustar fondo */
.header-container.show-search .search-bar {
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: block !important;
    transition: width 0.8s ease, opacity 0.8s ease, visibility 0.8s ease;
}
.header-container.show-search .search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    transition: width 0.8s ease, background-color 0.8s ease;
}
.header-container.show-search .btnSearch{
    display: none;
}

/* Fondo semitransparente */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.overlay-visible {
    opacity: 1;
    visibility: visible;
}
/*Estilos para el directorio*/
.directorio-card {
    background-color: #f9f9f9;
    border-left: 4px solid #886aa4;
    padding: 25px; /* Aumentamos el padding */
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    font-size: 1.1rem; /* Aumentamos el tamaño de la fuente en general */
}

.directorio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #2e73b5;
    font-weight: bold;
    margin-bottom: 15px;
}

.directorio-card.card-subtitle {
    font-size: 1.2rem; /* Subtítulo más grande */
    color: #555;
}

.directorio-card.card-text {
    font-size: 1.1rem; /* Texto más grande para facilitar la lectura */
    color: #333;
}

.directorio-card.card-text i {
    color: #2e73b5;
    margin-right: 8px;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Mejora para pantallas pequeñas */
@media (max-width: 768px) {
    .directorio-card {
        font-size: 1rem; /* Ajustamos un poco en pantallas pequeñas */
        padding: 20px;
    }

    .directorio-card.card-title {
        font-size: 1.3rem;
    }

    .directorio-card.card-subtitle {
        font-size: 1.1rem;
    }

    .directorio-card.card-text {
        font-size: 1rem;
    }
}
.modal {
  background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro para resaltar el contenido */
}

.modal-content {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 0;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden !important; /* Evitar scroll en el modal */
}

.modal-header {
  padding: 10px 20px;
  background-color: #f1f1f1;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
/*      padding: 0;*/
  overflow: hidden; /* Evitar overflow en x y y */
}

.modal-body iframe {
  width: 100%;
  height: 600px; /* Ajusta la altura según tu necesidad */
  border: none;
}

/* Estilización del botón de cierre */
.close {
  font-size: 20px;
  background-color: #886aa4 !important; /* Color personalizado */
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.8s ease;
  outline: none;
}

.close:hover {
  background-color: #6f5499 !important; /* Color al hacer hover */
  transform: scale(1.1); /* Efecto de agrandamiento al hacer hover */
}

.close:focus {
  outline: none;
  box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 0.7); /* Sombra más visible al enfocarse */
}

/* Estilización del pie del modal */
.modal-footer {
  padding: 10px 20px;
  border-top: 1px solid #e0e0e0;
  text-align: right;
  background-color: #f1f1f1;
}

.modal-footer .btn {
  background-color: #004a99; /* Color institucional */
  color: white;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 4px;
  border: none;
}

.modal-footer .btn+.btn{
    margin: 0 0 0 0;
}

.modal-footer .btn:hover,
.modal-footer .btn:focus {
  background-color: #003366; /* Color más oscuro al hacer hover o focus */
  outline: none;
}

/* Accesibilidad para el modal */
.modal-content:focus {
  outline: 2px solid #0056b3;
}

button:focus,
iframe:focus {
  outline: 2px solid #0056b3;
}
/* Ajustar el modal y el iframe para pantallas más pequeñas */
@media (max-width: 768px) {
  .modal-dialog {
    max-width: 100%; /* Asegura que ocupe todo el ancho disponible */
    margin: 10px; /* Reducir márgenes en pantallas pequeñas */
  }

  .modal-content {
    border-radius: 4px; /* Reducción del radio en pantallas pequeñas */
  }

  .modal-body iframe {
    height: 400px; /* Altura ajustada para pantallas pequeñas */
  }
}

/* Para pantallas muy pequeñas (teléfonos) */
@media (max-width: 576px) {
  .modal-body iframe {
    height: 300px; /* Ajustar la altura para teléfonos */
  }

  .modal-header {
    padding: 8px 15px;
  }

  .modal-footer {
    padding: 8px 15px;
  }

  .close {
    width: 35px; /* Ajustar el tamaño del botón de cierre en pantallas pequeñas */
    height: 35px;
  }
}
/*Estilos del cualquier botón*/
.btnSearch {
    background-color: transparent;
    border: none;
    font-size: larger;
    color: #886AA4;
}

.progress-bar {
    transition: width 0.4s ease;
}

.council-member-photo-pp img {
    width: auto; /* Mantiene la proporción original de la imagen */
    height: 120px; /* Define una altura fija */
    max-width: 100%; /* Evita que la imagen sea más ancha que su contenedor */
    object-fit: contain; /* Recorta la imagen si es necesario, para que encaje en las dimensiones definidas */
    display: block; /* Elimina espacios blancos debajo de la imagen */
    margin: 0 auto; /* Centra la imagen horizontalmente */
    border-radius: 50%; /* Aplica el estilo circular si lo deseas */
}

.image-service-box img {
    width: auto; /* Mantiene la proporción original de la imagen */
    height: 300px; /* Define una altura fija */
    max-width: 100%; /* Evita que la imagen sea más ancha que su contenedor */
    object-fit: contain; /* Recorta la imagen si es necesario, para que encaje en las dimensiones definidas */
    display: block; /* Elimina espacios blancos debajo de la imagen */
    margin: 0 auto; /* Centra la imagen horizontalmente */
}

.alert button.close
{
    margin-top: -10px;
}

input[type="submit"],  input[type="button"] {
    background-color: #886aa4;
    color: #ffff;
}

/* Botón flotante mejorado */
.accessibility-btn {
  position: fixed !important;
  bottom: 88px !important;
  left: 6px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000 !important;
}
.accessibility-btn:hover {
  background: #0056b3;
}

/* Menú de accesibilidad con grid */
.accessibility-menu {
  display: none;
  position: fixed !important;
  bottom: 100px !important;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
  z-index: 1000 !important;
  /*min-width: 280px;*/
}

.accessibility-menu button {
  flex: 1;
  background: #f8f9fa;
  border: none;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 19px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.accessibility-menu button:hover {
  background: #007bff;
  color: white;
}

@media (max-width: 768px) {
.accessibility-menu {
    bottom: 85px !important;
}

.accessibility-menu .row {
    width: min-content !important;
}

.accessibility-menu button {
    font-size: 14px !important;
}
}

.icon-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tooltip {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-btn.active .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(15px);
}

/* Estilos de accesibilidad */
.high-contrast * { background: black !important; color: yellow !important; }
.dyslexia-font { font-family: 'Arial', sans-serif; letter-spacing: 1px; word-spacing: 3px; }
.line-spacing { line-height: 2 !important; }
.dark-mode * { background: #121212 !important; color: white !important; }

/* Filtros para simular daltonismo aplicados al <html> o <body> */
body.protanopia *:not(.accessibility-menu):not(.accessibility-btn) {
filter: sepia(100%) hue-rotate(170deg) !important;
}

body.deuteranopia *:not(.accessibility-menu):not(.accessibility-btn) {
filter: sepia(80%) hue-rotate(50deg) !important;
}

body.tritanopia *:not(.accessibility-menu):not(.accessibility-btn) {
filter: sepia(90%) hue-rotate(300deg) !important;
}

.highlight {
  outline: 3px solid #552678 !important;
}

#gif-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 200px;
  display: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: white;
  padding: 5px;
  z-index: 1000;
}
#gif-container img {
  width: 100%;
  height: 100%;
}

/*Empieza sitio/buscador*/
.search-result-item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        text-align: center;
    }

    .search-result-item i {
        font-size: 24px;
    }

    .search-result-item button, input {
        font-size: 18px;
        padding: 12px;
    }
}

.search-result-item:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;
  border-color: #5D278F !important;
}

.search-result-item:focus {
    outline: 2px solid #5D278F;
    background-color: #f8f9fa;
}

.search-link {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  font-weight: bold;
}

.search-link:focus {
  outline: 3px solid #0056b3;
}

.pagination {
  display: flex;
  justify-content: center;
}

.page-item.active .page-link {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.page-link {
  color: #007bff;
}

.page-link:focus {
  outline: 3px solid #0056b3;
}

.search-result-item p {
  color: #333;
  font-size: 1.1em;
  line-height: 1.5;
}

.inputs-container {
  display: flex;
  justify-content: space-between; /* Distribuye los elementos */
  align-items: center;
  flex-wrap: wrap; /* Evita desbordamiento en pantallas pequeñas */
  gap: 15px; /* Espaciado uniforme */
  width: 100%; /* Asegura que ocupe todo el ancho */
}

/* Ambos contenedores ocupan su espacio sin modificar su orden */
.results-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sorting-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tamaño de los select para consistencia */
.results-container select {
  width: 100px;
}

.sorting-container select {
  width: 200px;
}

/* 🟢 Ajustes para móviles */
@media (max-width: 768px) {
  .inputs-container {
    flex-direction: column; /* Elementos en columna */
  }

  .results-container {
    width: 100%;
    justify-content: flex-start; /* Alineado a la izquierda */
  }

  .sorting-container {
    width: 100%;
    justify-content: flex-end; /* Alineado a la derecha */
  }
}

/*Para fijar el contenedor de busqueda*/
.search-container {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  padding: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.search-fragment mark {
    background-color: #FFEB3B; /* Amarillo fuerte */
    color: #000;
    font-weight: bold;
}

/* Mostrar cuando se activa la búsqueda */
.header-container.show-search .form-search {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999; /* Muy arriba para cubrir el resto */
    display: none; /* Oculta por defecto */
    align-items: center;
    padding: 1rem;
    border-radius: 50px;
}

.show-search {
    position: relative !important;
    display: block !important;
    
}

.show-search i {
    font-size: 1.2em !important;
    display: block;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -o-border-radius: 2px;
    line-height: 36px;
    text-align: center;
    background-color: #f2f2f2;
    transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.show-search:hover i {
    color: #666;
}

.visitor-count {
    font-weight: bold;
    display: inline-block;
    color: #333;
}

#contador {
    margin-top: 10px;
    font-size: 20px;
    color: #3498db;
    padding: 5px 15px;

}

.social-links{
    justify-content: center;
}

.svg-icon {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  display: block;
  margin: 0 auto;
}

/*.hookbgbody {
    
    background: #5e00bd;
    background: radial-gradient(circle,rgba(94, 0, 189, 1) 0%, rgba(161, 161, 161, 1) 100%);
    z-index: 1;
}
.hookbgbody::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('<?= base_url("/assets/image/casilla-iepc.png") ?>');
    background-size: repeat;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}*/

.testimonial-item.card{
    max-width: inherit !important;
    background-color: #f4f8fb; 
    width: 200px !important; /* o un valor relativo */
    height: 300px !important;
}

.testimonial-item.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../../images/textura_1.jpg');
    background-size: repeat;
    background-position: center;
    opacity: 0.15; /* ajusta según lo que necesites */
    z-index: -2;
}

.testimonial-item.card h3{
    color: #5d278f; 
    font-weight: bold; 
    margin-top: 10px;
}

.testimonial-item.card p{
    color: #5d278f;
}

/*Accordiones personalizados*/
.marco .accordion-button {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #444;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.marco .accordion-button:hover {
  background-color: #e2e6ea;
  color: #000;
}

.marco .accordion-button:not(.collapsed) {
  background-color: #886aa4;
  color: #fff;
}

.marco .accordion-button:focus {
  box-shadow: none;
  outline: 2px dashed #886aa4;
  outline-offset: 2px;
}

.marco .accordion-button .icon-toggle {
  transition: transform 0.2s ease;
}

.marco .accordion-button:not(.collapsed) .icon-toggle {
  transform: rotate(45deg); /* cambia de "+" a "x" visualmente */
}

.marco .accordion-button::after {
  display: none !important;
}

/* Estilo base para tabs y pills */
.marco .nav-tabs .nav-link,
.marco .nav-pills .nav-link,
.marco .list-group .list-group-item {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #444;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 64px;              /* altura pareja */
    display: attr(data-display, flex) !important;
    align-items: center !important;
}

.marco .nav-tabs .nav-link,
.marco .nav-pills .nav-link,
.marco .list-group .list-group-item p {
    color: #000000;
}

.marco .nav-tabs .nav-link,
.marco .nav-pills .nav-link,
.marco .list-group .list-group-item a {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Hover */
.marco .nav-tabs .nav-link:hover,
.marco .nav-pills .nav-link:hover,
.marco .list-group .list-group-item:hover {
    background-color: #e2e6ea;
    color: #000;
}

/* Focus cuando está activo */
.marco .nav-tabs .nav-link.active:focus,
.marco .nav-pills .nav-link.active:focus,
.marco .list-group .list-group-item:focus {
    box-shadow: none;
    outline: 2px dashed #886aa4;
    outline-offset: 2px;
}

/* Activo (sin collapsed) */
.marco .nav-tabs .nav-link.active:not(.collapsed),
.marco .nav-pills .nav-link.active:not(.collapsed),
.marco .list-group .list-group-item.active:not(.collapsed) {
    background-color: #886aa4;
    color: #fff;
}

/* Lightbox overlay más claro */
/* Solo cuando se abre un PDF */
body.lightbox-pdf-open .glightbox-clean .gprev,
body.lightbox-pdf-open .glightbox-clean .gnext {
  display: none !important;
}

body.lightbox-pdf-open .glightbox-clean .goverlay {
  background: rgba(255, 255, 255, 0.95); /* Fondo más claro para PDFs */
}

.ios-device .glightbox-pdf {
  display: none !important;
}

/*Menu principal*/
/* Solo afecta los <a> que son hijos directos de #navmenu > ul > li */
.navmenu > ul > li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: #886aa4;
  box-shadow: 0 0 6px #886aa4, 0 0 8px #886aa4;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navmenu > ul > li > a:hover::after {
  width: 100%;
}

.navmenu > ul > li > a:hover {
  color: #886aa4;
}
/*Estilos para listas en grupo (list-group), en un futuro podria aplicar a mas cosas*/
/*Por gradiente, color universal*/
.list-group-gradient li {
  background: linear-gradient(
    to right,
    #f3f0f9,
    #f9f9ff
  );
  color: #4a148c;
  border: none;
  margin-bottom: 4px;
  border-radius: 6px;
  transition: background 0.3s;
}

.list-group-gradient li:nth-child(even) {
  background: linear-gradient(
    to right,
    #f9f9ff,
    #f3f0f9
  );
}

.list-group-gradient li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #4a148c;
}

.list-group-gradient li:hover {
  background: #e0e0f8;
}
/*Por gradiente, colores alternos*/
.list-group-colored li {
  border: none;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.3s;
}

.list-group-colored li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #4a148c;
}

/* Elementos en posición impar (1, 3, 5...) */
.list-group-colored li:nth-child(odd) {
  background-color: #e0f7fa; /* azul pastel */
}

/* Elementos en posición par (2, 4, 6...) */
.list-group-colored li:nth-child(even) {
  background-color: #f3e5f5; /* lila pastel */
}

.list-group-colored li:hover {
  background-color: #d1c4e9; /* suave violeta */
}
/*Para la barra del mixup*/
    .filter-container {
      scrollbar-width: thin;
      scrollbar-color: var(--accent-color) transparent;
    }

    /* Para navegadores basados en WebKit */
    .filter-container::-webkit-scrollbar {
      height: 8px;
    }
    .filter-container::-webkit-scrollbar-track {
      background: #e0e0e0;
      border-radius: 10px;
    }
    .filter-container::-webkit-scrollbar-thumb {
      background-color: #007bff;
      border-radius: 10px;
      border: 2px solid transparent;
      background-clip: content-box;
    }
/**/
/* Sidebar fijo */
.revista-sidebar {
  position: fixed;
  top: 90px;
  right: 5px;
  width: 200px;
  background-color: transparent;
  padding: 0;
  z-index: 1050;
  transition: opacity 0.5s ease-in-out;
}

.revista-sidebar:hover {
    opacity: 1.0 !important;
}

.revista-sidebar img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  display: block;
}

.sitio-interes {
  text-align: center;
  margin: 20px 0;
}

.sitio-interes img {
  border: 1px solid #ccc;
  padding: 5px;
  max-width: 150px;
}

@media (max-width: 1200px) {
  .revista-sidebar {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .revista-sidebar {
    width: 200px !important;
  }

  .revista-sidebar img {
    max-width: 180px !important;
  }
}

.modal-revista img {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: auto;
  display: block;
  border-radius: 8px;
  z-index: 99999;
}

#revistaModal {
    overflow-y: hidden !important;
}

#revistaModal .modal-dialog {
  display: table;
  height: 100%;
  width: auto;
  margin: 0 auto;
}

#revistaModal .modal-content {
  background: transparent;
  border: none;
}

#revistaModal img {
  max-width: 100% !important;
}


  

    /*IOS css*/

.ios-device img, .ios-device video {
  max-width: 100%;
  height: auto;
}

.ios-device input[type="submit"], .ios-device input[type="button"] {
  background-color: #886aa4;
  color: #ffff;
  -webkit-appearance: none;
}

.ios-device .scroll {
  height: calc(100vh - 50px);
}

.ios-device .search-bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ios-device .header-container.show-search .search-bar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ios-device .image-service-box img, .ios-device .council-member-photo-pp img {
  object-fit: contain;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.ios-device .modal-body iframe {
  height: 100%;
  min-height: 400px;
  max-height: calc(100vh - 150px);
}

.ios-device #loading-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-in-out;
}

body.ios-device {
  font-size: clamp(14px, 1.2vw, 18px);
}

.ios-device .container, .ios-device .container-lg, .ios-device .container-xl {
  max-width: 1140px;
  margin: 0 auto;
}

/* Ajustes específicos para Windows 1280x1024 */
@media (min-width: 992px) and (max-width: 1290px) {
  .ios-device .modal-body iframe {
    max-height: calc(100vh - 120px);
  }
  body .ios-device {
    font-size: 15px;
  }
}

/* Ajustes para pantallas muy anchas (1920x1080) */
@media (min-width: 1600px) {
  .ios-device .container, .ios-device .container-lg, .ios-device .container-xl {
    max-width: 1280px;
  }
  .ios-device .hero .hero-content h1 {
    font-size: 3.8rem;
  }
}

@supports (-webkit-touch-callout: none) {
  .ios-device input, select, textarea {
    font-size: 16px;
  }
}

/* Se mantiene el resto de estilos originales intactos */
.main-container {
  background-color: white;
  position: relative;
  overflow: hidden; /* Ensures the background stays within bounds */
}

.diagonal-grid-background {
  z-index: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, #f3f4f6 2px, #f3f4f6 4px);
}

@media (min-width: 992px) {
  .row > .col-lg-4:nth-last-child(1):nth-child(3n+1) {
    margin-left: auto;
    margin-right: auto;
  }
}

.zoom-container {
    overflow: hidden;
}

.zoom-image {
    transition: transform 0.4s ease;
}

.zoom-container:hover .zoom-image {
    transform: scale(1.1);
}

.hover-opacity-100 {
    transition: opacity 0.4s ease;
}

.zoom-container:hover .hover-opacity-100 {
    opacity: 1 !important;
}

.alert-iepc2 {
    color: #6b396c;
    background-color: #dfcdf1;
    border-color: #b49fbd;
}

/* Contenedor de documentos */
.document-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Más separación entre tarjetas */
    max-width: 1200px;
    margin: 20px auto;
}
/* Tarjeta de documento */
.document-card {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-radius: 8px;
    flex-wrap: wrap; /* Permite que los elementos se acomoden en móviles */
}

/* Si tiene el atributo data-status */
.document-card[data-align] {
  align-items: center;
}

/* Si NO tiene el atributo data-status */
.document-card:not([data-align]) {
  align-items: baseline;
}


/* Información del documento */
.doc-text {
    flex: 1;
    min-width: 150px; /* Evita que el texto se encoja demasiado */
}

.doc-text h4 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

.doc-format {
    color: #555;
    font-weight: bold;
}

/* Botón de descarga */
.btn-download {
    text-decoration: none;
    color: white !important;
    background: #886aa4;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-flex; /* Asegura alineación horizontal */
    align-items: center; /* Centra ícono y texto verticalmente */
    gap: 5px; /* Espacio entre ícono y texto */
    min-width: 130px; /* Evita que el botón se haga demasiado pequeño */
    justify-content: center; /* Centra el texto en pantallas pequeñas */
}

.btn-download i {
    margin-right: 5px;
}

/* Responsividad para móviles */
@media (max-width: 600px) {
    .document-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-download {
        width: 100%; /* Botón de ancho completo en móviles */
        text-align: center;
        margin-top: 10px;
    }
}
.accordion-container {
    margin-top: 20px;
    font-family: Arial, sans-serif; /* Cambiar la fuente por una más moderna */
}

/* Estilo de la sección de año dentro del acordeón */
.accordion-year details {
    margin-top: 10px;
    background: #886aa4;
    border: 1px solid #f4f4f4;
}

.accordion-year .img-responsive {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.quote-container .social-list {
    list-style: none;
    padding-left: 0;
  }

  .accordion-year .social-list {
    list-style: none;
    padding-left: 0;
    display: flex;
  }

  .accordion-year ul.social-list{
    float: none !important;
  }

  .quote-container, .accordion-year .social-list li {
    display: inline-block;
    margin-right: 10px;
  }

  .quote-container, .accordion-year .social-list a {
    font-size: 1.5em;
    text-decoration: none;
  }
details {
    margin-bottom: 15px;
    background: #886aa4;
    border: 2px solid #f4f4f4;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 16px;
    color: #f4f4f4;
    transition: background 0.3s ease, border-color 0.3s ease;
}

details[open] {
    background: #e8e0f0;
    border-color: #886aa4;
    color: black;
}

summary {
    font-weight: bold;
    list-style: none;
    cursor: pointer;
    outline: none;
    position: relative;
    padding-right: 25px;
}

/* El ícono "+" para todos */
summary::after {
    content: "+";
    position: absolute;
    right: 10px;
    font-size: 22px;
    color: #f4f4f4;
    transition: transform 0.3s ease;
}

/* Para los "padres", cambiar a "-" al abrir */
details[open] > summary::after {
    content: "-";
    transform: rotate(180deg);
    color: black;
}

/* Para los "hijos", mantener el "+" incluso al abrir */
details > summary::after {
    content: "+";
    transform: rotate(0deg);
}


details ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
}

details li {
    margin-bottom: 5px;
}

details a {
    color: #886aa4;
    text-decoration: none;
    font-weight: 500;
}

details a:hover {
    text-decoration: underline;
}

.icons-list {
  counter-reset: atribucion;
  list-style: none;
  padding: 0;
  margin: 0;
}

.icons-list.columns-2 {
  column-count: 2;
  column-gap: 40px;
}

.icons-list li {
  break-inside: avoid;
  position: relative;
  padding-left: 45px;
  margin-bottom: 14px;
}

.icons-list li::before {
  counter-increment: atribucion;
  content: counter(atribucion);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(33,37,41,.08);
  font-weight: 600;
  text-align: center;
  line-height: 28px;
}

.carousel-inner {
    max-width: 100%;
    overflow: hidden; /* Oculta cualquier contenido que se salga del contenedor */
}

/* Contenedor principal */
.carousel-inner .carousel-item {
    height: 350px; /* Altura ideal para banners de navegación */
    /*background: #fdfdfd; */
    border-radius: 12px;
}

/* Imagen dentro del carrusel */
.carousel-inner .carousel-item img {
    width: 100%;
    height: 100%;
    /* 'contain' es mejor si la infografía tiene texto en los bordes */
    object-fit: contain; 
    object-position: center;
    padding: 20px; /* Evita que el contenido toque los bordes del carrusel */
    transition: transform 0.4s ease;
}

/* Efecto visual para indicar que es clickeable */
.carousel-inner .carousel-item:hover img {
    transform: scale(1.02);
}

/* --- Ajustes Responsivos --- */
@media (max-width: 992px) {
    .carousel-inner .carousel-item {
        height: 250px; /* Altura suficiente para que el texto sea legible en móvil */
    }
    
    .carousel-inner .carousel-item img {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-inner .carousel-item {
        height: 180px; /* Límite mínimo para no perder la legibilidad */
    }
}

.action-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 18px;
    transition: all .3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.action-card img {
    max-width: 110px;
}

.action-card-title {
    color: #552678;
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.infografias-swiper {
  height: 260px;
}

.infografias-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.infografias-swiper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.infografia-modal-swiper img {
  max-height: 85vh;
  object-fit: contain;
}
.infografia-trigger {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.infografia-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: #6b4fa3;
    font-weight: 600;
    font-size: .95rem;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.section-divider::before {
    margin-right: .75rem;
}

.section-divider::after {
    margin-left: .75rem;
}
.section-divider + .accordion-year {
    margin-top: 1rem;
}
.timeline-step {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background-color: #bdbdbd;
}

.timeline-step:last-child::before {
    display: none;
}

/* Marcador */
.timeline-marker {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4a235a; /* AAA */
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estados */
.timeline-step.completed .timeline-marker {
    background-color: #1b5e20; /* verde AAA */
}

.timeline-step.current .timeline-marker {
    background-color: #2c145a; /* morado más oscuro AAA */
    outline: 3px solid #000;
}

/* Texto */
.timeline-content h6 {
    margin: 0;
    font-weight: 700;
    color: #1a1a1a;
}

.timeline-content p {
    margin: 0.25rem 0 0;
    color: #212121;
}
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.document-item:last-child {
    border-bottom: none;
}

.doc-index {
    font-weight: 700;
    color: #4b2c6f;
    min-width: 1.5rem;
}

.doc-icon {
    font-size: 1.1rem;
}

.document-item a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.document-item a:hover,
.document-item a:focus {
    text-decoration: underline;
    outline: 3px solid #4b2c6f;
    outline-offset: 3px;
}
.custom-border {
    border: 2px dashed #5a377e;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #f9f9f9; /* Fondo claro */
    border-radius: 10px; /* Bordes redondeados */
}

.custom-border img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px; /* Espacio debajo de la imagen */
}

.custom-border h2 {
    font-family: 'Arial', sans-serif;
    color: #5a377e;
    font-size: 24px;
    margin-bottom: 15px;
}

.custom-border .btn-primary {
    background-color: #5a377e; /* Mismo color que el borde */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    color: #fff !important;
}

.custom-border .btn-primary:hover {
    background-color: #3e2254; /* Color más oscuro al pasar el mouse */
}
/* --- Estilo Base (Móviles y Tablets pequeñas) --- */
.banner {
    width: 90%;            /* En móvil deja un pequeño margen a los lados */
    max-width: 750px;      /* Límite para pantallas grandes */
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* --- Tablets y Escritorio (Pantallas > 768px) --- */
@media (min-width: 768px) {
    .banner {
        width: 60%;        /* En pantallas grandes, el título se vuelve más refinado */
        margin: 2.5rem auto; /* Más aire arriba y abajo para jerarquía visual */
    }
}

/* --- Escritorio Extra Grande (Pantallas > 1200px) --- */
@media (min-width: 1200px) {
    .banner {
        width: 50%;        /* Evita que la imagen se estire demasiado */
        max-width: 700px;  /* El "sweet spot" para títulos tipo banner */
    }
}

/* --- Feedback Visual (UX) --- */
@media (hover: hover) {
    .banner:hover {
        transform: translateY(-5px);
        /* Opcional: añade una sombra suave al pasar el mouse */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
}
/* --- ESTILOS ESPECÍFICOS PARA EL COMPARATIVO --- */

/* Refinamos solo el contenedor de esta sección */
.comparativo-seccion {
    border-style: dashed; /* Asegura que sea punteado aquí */
    display: flex;
    align-items: center;
}

/* Nuevo estilo para el título sin afectar otros H2 */
.titulo-pel {
    font-family: 'Montserrat', sans-serif;
    color: #333 !important;
    font-size: 1.6rem !important;
    margin-bottom: 0 !important;
    font-weight: 400;
}

.titulo-pel .year {
    color: #5a377e;
    font-weight: 800;
}

.titulo-pel .vs {
    font-style: italic;
    font-weight: 900;
    color: #5a377e;
    margin: 0 5px;
    font-size: 1.2rem;
}

/* Botón específico para que sea tipo "píldora" solo aquí */
.btn-comparativo {
    border-radius: 50px !important;
    padding: 12px 35px !important;
    text-transform: none !important; /* Quita el uppercase si prefieres algo más moderno */
    box-shadow: 0 4px 12px rgba(90, 55, 126, 0.2);
}

.btn-comparativo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(90, 55, 126, 0.3);
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .titulo-pel {
        font-size: 1.3rem !important;
    }
}
.btn-pdf {
    background-color: #e74c3c !important; /* Rojo PDF estándar */
    border: none;
}
.btn-pdf:hover {
    background-color: #c0392b !important;
}
/* Contenedor de la tarjeta */
.infografia-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.infografia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(90, 55, 126, 0.15);
    border-color: #5a377e;
}

/* Manejo de la imagen */
.img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1; /* Hace que todas las miniaturas sean cuadradas y uniformes */
    overflow: hidden;
    background: #f8f9fa;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Asegura que la miniatura llene el cuadro sin deformarse */
    transition: transform 0.5s ease;
}

.infografia-card:hover .img-wrapper img {
    transform: scale(1.1);
}

/* Efecto Overlay (Capa superior al pasar el mouse) */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(90, 55, 126, 0.7); /* Color púrpura con transparencia */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infografia-card:hover .overlay {
    opacity: 1;
}

.overlay i { font-size: 2rem; margin-bottom: 5px; }

/* Texto debajo de la miniatura */
.card-footer-info {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.card-footer-info small { color: #888; display: block; font-size: 0.7rem; }
.card-footer-info h6 { 
    margin: 0; 
    font-size: 0.85rem; 
    color: #5a377e; 
    font-weight: 700;
    line-height: 1.2;
}
/* Contenedor principal */
.cmm-icon-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra los iconos si la fila no se llena */
    gap: 20px; /* Espacio entre iconos sin pelear con márgenes */
    padding: 2rem 0;
}

/* El item individual */
.cmm-icon-item {
    flex: 0 1 180px; /* No crecen, pero pueden encogerse, base de 180px */
    text-align: center;
    transition: transform 0.3s ease;
}

.cmm-icon-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Estilo base para el contenedor del icono */
.icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    /* Efecto Glassmorphism Universal */
    background-color: rgba(255, 255, 255, 0.5); /* Blanco muy suave */
    backdrop-filter: blur(4px);                  /* Difumina el degradado de fondo */
    border: 1px solid rgba(255, 255, 255, 0.8);  /* Brillo en el borde */
    
    /* Sombra suave para dar volumen */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.icon-wrapper img {
    width: 120px; /* Tamaño controlado del icono interno */
    height: auto;
    filter: grayscale(20%); /* Efecto visual sutil */
}

/* Efectos Hover */
.cmm-icon-item:hover {
    transform: translateY(-10px);
}

/* Ajustes específicos cuando pasas el mouse */
.cmm-icon-item:hover .icon-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(90, 55, 126, 0.15); /* Sombra color púrpura */
    border-color: #5a377e;
}

/* El texto que acompaña al icono */
.icon-text {
    font-weight: 500;
    color: #444;
    transition: color 0.3s ease;
}

.cmm-icon-item:hover .icon-text {
    color: #5a377e; /* Cambia al púrpura institucional */
    font-weight: 700;
}

/* Ajuste móvil */
@media (max-width: 576px) {
    .cmm-icon-item {
        flex: 0 1 45%; /* 2 iconos por fila en móviles pequeños */
    }
    .icon-wrapper {
        width: 100px;
        height: 100px;
    }
}
.marco-intro{
    padding: 2rem 2.25rem;
    background: rgba(255,255,255,0.9);
    border-left: .45rem solid #8E3E63;
    border-radius: .5rem;
    box-shadow: 0 .75rem 1.25rem rgba(0,0,0,.08);
}

/* Subtítulo */
.marco-subtitle{
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8E3E63;
    margin-bottom: 1rem;
}

/* Texto */
.marco-intro p{
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #2f2f2f;
    text-align: justify;
}

.marco-intro p:last-child{
    margin-bottom: 0;
    font-weight: 500;
}