/* Body */
:root {
    --bluey-grey: #b0b0b0;
    --pink: #cd126a;
    --white: #fff;
    --text: #000000;
}

body {
    background-color: #f8f9fa !important;
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: 70px;
}

.page-header h1 {
    font-family: "Nunito", sans-serif;
    font-weight: 500 !important;
}

.texto-justificado p {
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
    line-height: 2;
    overflow-wrap: break-word;
    margin: 0 auto;
    max-width: 350px;
    word-break: normal;
}

.custom-container {
    padding-left: 0;
}

.custom-container-sm {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .custom-container-sm {
        padding: 15px;
        margin: 30px 0;
    }
}

.img-small {
    width: 130px;
    height: auto;
}

.img-medium {
    width: 300px;
    height: auto;
}

@media (min-width: 769px) {
    .img-small {
        display: none;
    }

    .img-medium {
        display: block;
    }
}

@media (max-width: 768px) {
    .img-small {
        display: block;
    }

    .img-medium {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .img-medium {
        display: block;
        width: 200px;
    }
    .img-small {
        display: none;
    }
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important; /* Blanco con ligera transparencia */
    backdrop-filter: blur(10px); /* Efecto de desenfoque detrás */
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 700; /* Más negrita para mayor impacto */
    font-family: "Nunito", sans-serif;
    color: #444 !important; /* Color de texto gris oscuro suave */
    transition: color 0.3s ease, background-color 0.3s ease;
    font-size: 0.75rem; /* Tamaño ligeramente ajustado */
    letter-spacing: 0.5px; /* Espaciado entre letras */
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: var(--pink) !important;
}

.navbar.fixed-top {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Sombra más suave y moderna */
}

.navbar.bg-body-tertiary {
    box-shadow: none; 
    background-color: transparent !important;
}


.nav-link.hvr-underline-reveal {
    position: relative;
    display: inline-block;
}

.nav-link.hvr-underline-reveal::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 3px; /* Línea un poco más gruesa */
    width: 0;
    background-color: var(--pink); /* Usar variable para consistencia */
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.nav-link.hvr-underline-reveal:hover::before {
    width: 100%;
    left: 0;
}

/* Ajuste de logo en la navbar */
.navbar-brand img {
    max-height: 60px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }
}

/* Botones */
.btn {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 5px;
    transition: ease-in-out .5s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.btn.btn-primary {
    background-color: #cd126a;
    color: white;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn.btn-primary:hover {
    background-color: #a5105b;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn.btn-primary:active {
    background-color: #820b44;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.btn.btn-secondary {
    background-color: #9e2d84;
    color: white;
    border-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn.btn-secondary:hover {
    background-color: #96237D;
}

/* Carrusel de imágenes */
.custom-carousel {
    width: 100%;
    max-height: 95vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.custom-carousel .carousel-inner {
    height: 100%;
}

.custom-carousel .carousel-item {
    height: 95vh;
    position: relative;
}

/* Overlay oscuro para mejorar legibilidad del texto */
.custom-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.custom-carousel .carousel-item img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate; /* Efecto de zoom lento */
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.custom-carousel .carousel-caption {
    z-index: 2;
    bottom: 20%;
    text-align: left;
    left: 10%;
    right: 10%;
}

.custom-carousel .carousel-caption h2 {
    font-family: "Poppins", sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.custom-carousel .carousel-caption p {
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .custom-carousel {
        height: 50vh;
        max-height: 50vh;
    }
    
    .custom-carousel .carousel-item {
        height: 100%;
    }

    .custom-carousel .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .custom-carousel .carousel-caption p {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .custom-carousel {
        height: 60vh;
    }
    
    .custom-carousel .carousel-item {
        height: 100%;
    }
}



/*CARDS*/
.cards-container {
    background-color: #fff;
    padding: 50px;
}

.cards-container-about {
    background-color: #fff;
    padding: 50px;
}

.cards-container-news {
    padding: 50px;
}

.card {
    border: none;
    font-family: "Nunito", sans-serif;
    color: #333;
    font-weight: 500;
    background-color: #fff;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-right: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-no-hover {
    border: none;
    font-family: "Nunito", sans-serif;
    color: #333;
    font-weight: 500;
    background-color: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-right: 20px;
}

/* Estilos para cards de 'Quiénes Somos' */
.separator { 
    display: block; 
    margin: 20px auto; 
    position: relative; 
    height: 3px; 
    width: 80%; 
    margin-bottom: 60px; 
} 

.separator::before { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 1px; 
    background: var(--bluey-grey); 
    z-index: 1; 
    transform: translateY(-50%); 
} 

.separator::after { 
    content: ''; 
    position: absolute; 
    left: 0%; 
    width: 20%; 
    height: 3px; 
    background: var(--pink); 
    z-index: 2; 
    transform: translateY(-50%); 
}

.hover-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Transición más lenta y suave */
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hover-card:hover {
    transform: translateY(-8px); /* Elevación ligeramente menor */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--pink); /* Línea superior decorativa */
    transition: height 0.4s ease;
    z-index: -1;
}

/* Eliminado el efecto de llenado de fondo al hacer hover */
.hover-card:hover::before {
    height: 5px; 
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pink), #a5105b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(205, 18, 106, 0.3);
    transition: transform 0.3s ease;
}

.hover-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .sections {
        grid-template-columns: 1fr;
    }

    .custom-carousel {
        width: 100%;
    }

    .cards-container {
        padding: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
        font-size: 18px;
        margin: 10px 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .btn {
        width: 150px;
        padding: 10px 20px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    color: #272727;
    text-align: center;
    font-weight: 500 !important;
    margin-bottom: 15px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.sombra {
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.2);
}

.card-container h3{
    font-family: "Source Sans 3", sans-serif;
}

/* ------------------------------------------------------------- */
/* C-O-M-P-L-E-J-O-S---P-A-G-E---C-S-S--------------------------
/* ------------------------------------------------------------- */

.same-size {
    width: 100%;
    max-width: auto;
    height: auto;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    filter: brightness(90%); /* Oscurece la imagen inicialmente */
}

.hover-1 {
    transition: color 0.3s ease-in-out;
}

.card-container {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.card-container:hover .hv {
    transform: scale(1.05);
    filter: brightness(100%); /* Restaura el brillo normal al hacer hover */
    border: 2px solid #db287c;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Efecto de sombra al hacer hover */
}

.card-container:hover .hover-1 {
    color: #db287c;
    font-weight: 600 !important;
    transform: translateY(-5px);
}


/* ------------------------------------------------------------- */
/* S-E-R-V-I-C-I-O-S---P-A-G-E---C-S-S---F-I-L-E----------------*/
/* ------------------------------------------------------------- */

header {
    position: relative;
    padding-left: 8%;
    margin: 40px 0;
}

header h1 {
    color: var(--text);
    font-size: 2rem;
    font-weight: 200;
}

header i {
    color: var(--pink);
    padding: 0.5em;
    font-size: 20px;
}

.page-header p {
    color: var(--text);
    font-size: 1rem;
    font-weight: 300;
    margin: 20px;
}

section {
    padding-left: 8%;
}

section h2 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 400;
}

section p {
    color: var(--text);
    font-size: 1rem;
    font-weight: 300;
}

.list-group-item {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    color: #333333;
    font-weight: 600;
}

.list-group-item i {
    font-size: 1.5rem;
}

.list-group-item .btn-secondary {
    margin-left: auto;
}

.section-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 0 15px;
}

.circle-title {
    width: 70px;
    height: 70px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50%;
    background-color: #141443;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
}

/* ------------------------------------------------------------- */
/* N-O-R-M-A-T-I-V-I-D-A-D---P-A-G-E---C-S-S---F-I-L-E---------- */
/* ------------------------------------------------------------- */

.dark-links a {
    color: #000000 !important;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.3s ease;
    text-decoration: none;
}

.dark-links a:hover {
    color: #db287c !important;
}

.link-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    font-family: "Nunito", sans-serif;  
}

.link-item:last-child {
    border-bottom: none;
}

.accordion-button {
    color: #000;
    font-size: 1.2rem;
}

.accordion-button:not(.collapsed) {
    color: #000;
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus,
.accordion-button:active {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.accordion-button i {
    color: #ffffff;
}

/* ------------------------------------------------------------- */
/* F-O-O-T-E-R---P-A-G-E---C-S-S---F-I-L-E---(footer.css) */
/* ------------------------------------------------------------- */

/* Footer */
footer {
    background-color: #141443;
    color: #fff;
    padding: 2rem 0;
}

@media (min-width: 769px) and (max-width: 1024px) {
    footer {
        padding: 1.5rem;
    }
    .footer-links h4 {
        font-size: 16px;
    }
}

.footer-top {
    padding-top: 2rem;
}

.footer-links h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.footer-links p {
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px !important;
}


.footer-contact p {
    font-family: "Source Sans 3", sans-serif;
    font-weight: normal;
    margin-bottom: 10px;
}

.footer-contact p + p {
    margin-top: 15px;
}

.building-image {
    width: 330px;
    height: auto;
    display: block;
    border-radius: 5px;
}

.footer-links a {
    color: #ffffff;
    font-size: 14px;
    font-family: "Source Sans 3", sans-serif;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1px;
}

.footer-links a:hover {
    color: #cd126a;
}

.footer-links h5 {
    font-size: .9rem;
    font-weight: bold;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #footer .copyright,
    #footer .credits {
        float: none;
        text-align: center;
        padding: 2px 0;
    }

    .list-group-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .building-image {
        width: 220px;
        height: auto;
    }

    h1 {
        font-size: 1.2rem !important;
    }

}

@media (min-width: 769px) {
    .btn {
        width: 200px;
        margin: 10px;
    }
}

.separator-footer {
    display: block;
    margin: 20px auto;
    position: relative;
    height: 3px;
    width: 90%;
    margin-bottom: 60px;
}

.separator-footer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--bluey-grey);
    z-index: 1;
    transform: translateY(-50%);
}

.separator-footer::after {
    content: '';
    position: absolute;
    left: 0%;
    width: 100%;
    height: 3px;
    background: var(--pink);
    z-index: 2;
    transform: translateY(-50%);
}
/*----------------------------------------------------------------------------------------------*/

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 1000px;
    }
}

.list-group {
    padding-left: 0;
    margin-bottom: 0;
}

.list-group-item {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.btn {
    white-space: nowrap;
}

.card.custom-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 0.5rem;
}

.custom-card-col {
    max-width: 600px;
}

.custom-card-col-2 {
    max-width: 450px;
}

.card-body p {
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 100;
    color: #333;
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #cd126a;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 24px;
}

.back-to-top:hover {
    background-color: #a5105b;
}

/*Text*/
/*Text-focus*/
.text-focus-in {
    -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
            animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}

@keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}


/*Text-pop-top*/
.text-pop-up-top {
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-animation: text-pop-up-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: text-pop-up-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes text-pop-up-top {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    text-shadow: none;
  }
  100% {
    -webkit-transform: translateY(-25px);
            transform: translateY(-25px);
    text-shadow: 0 1px 0 #cccccc, 0 2px 0 #cccccc, 0 3px 0 #cccccc, 0 4px 0 #cccccc, 0 5px 0 #cccccc, 0 6px 0 #cccccc, 0 7px 0 #cccccc, 0 8px 0 #cccccc, 0 9px 0 #cccccc, 0 50px 30px rgba(0, 0, 0, 0.3);
  }
}

@keyframes text-pop-up-top {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    text-shadow: none;
  }
  100% {
    -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
    text-shadow: 0 1px 0 #cccccc, 0 2px 0 #cccccc, 0 3px 0 #cccccc, 0 4px 0 #cccccc, 0 5px 0 #cccccc, 0 6px 0 #cccccc, 0 7px 0 #cccccc, 0 8px 0 #cccccc, 0 9px 0 #cccccc, 0 50px 30px rgba(0, 0, 0, 0.3);
  }
}


.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1055;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px; 
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.close:hover {
    color: #cd126a;
}

.texto-justificado-hist p {
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
    overflow-wrap: break-word;
    margin: 0 auto;
    word-break: normal;
}

ul.datesTimeLine li {
    transition: background-color 0.3s ease;
}

ul.datesTimeLine li:hover {
    /* transform: translateY(-5px); */
}

strong {
    font-weight: bold;
}

.lineTime {
    text-align: center;
    margin-bottom: 2rem;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 500 !important;
}
  
/* ------------------------------------------------------------- */
/* T-I-M-E-L-I-N-E---S-T-Y-L-E-S--------------------------------- */
/* ------------------------------------------------------------- */

.datesTimeLine {
    --col-gap: 2rem;
    --row-gap: 3rem;
    --line-w: 4px;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 100%);
    margin-inline: auto;
    padding-left: 0;
}

/* Line */
.datesTimeLine::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: #e0e0e0;
    border-radius: calc(var(--line-w) / 2);
}

/* Item */
.datesTimeLine li {
    grid-column: 2;
    margin-inline: 0; /* Reset margins */
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
    margin-bottom: var(--row-gap);
}

/* Date Bubble */
.datesTimeLine li .date {
    height: 3rem;
    width: 6rem;
    background-color: var(--accent-color);
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: grid;
    place-content: center;
    position: relative;
    border-radius: 1.5rem; /* Pill shape */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease; /* Transición muy sutil */
}

.datesTimeLine li:hover .date {
    opacity: 0.9; /* Ligera transparencia para indicar interacción */
    /* Sin cambios de tamaño ni sombras de color */
}

/* Connector Line (Date to Main Line) */
.datesTimeLine li .date::before {
    content: "";
    width: var(--col-gap);
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    z-index: -1;
}

/* Circle on Main Line */
.datesTimeLine li .date::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: white;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: calc(-1 * (var(--col-gap) + var(--line-w)/2)); /* Position exactly on line */
    z-index: 3;
    transition: background-color 0.3s ease; /* Solo transición de color */
}

.datesTimeLine li:hover .date::after {
    background: var(--accent-color); /* Solo se llena de color */
    /* Sin transformaciones ni sombras extra */
}

/* Content Card */
.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    transition: background-color 0.3s ease; /* Solo transición de fondo */
    border-left: 4px solid var(--accent-color);
}

.datesTimeLine li:hover .timeline-content {
    background-color: #f5f5f5; /* Cambio de fondo sutil pero visible */
    /* Sin sombras adicionales ni movimientos */
}

/* Title & Desc */
.datesTimeLine li .title {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.datesTimeLine li:hover .title {
    color: var(--accent-color);
}

.datesTimeLine li .descr {
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive - Alternating Layout for Larger Screens */
@media (min-width: 40rem) {
    .datesTimeLine {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }
    
    .datesTimeLine::before {
        grid-column: 2;
    }
    
    .datesTimeLine li:nth-child(odd) {
        grid-column: 1;
        text-align: right; /* Align text to line */
    }
    
    .datesTimeLine li:nth-child(even) {
        grid-column: 3;
        text-align: left;
    }
    
    /* Odd Items (Left Side) */
    .datesTimeLine li:nth-child(odd) .date {
        justify-self: end; /* Push date to right side of cell */
        margin-right: 0;
    }
    
    .datesTimeLine li:nth-child(odd) .date::before {
        left: 100%; /* Line goes to right */
        right: auto;
    }
    
    .datesTimeLine li:nth-child(odd) .date::after {
        left: auto;
        right: calc(-1 * (var(--col-gap) + var(--line-w)/2));
        transform: translate(50%, -50%);
    }
    
    .datesTimeLine li:nth-child(odd):hover .date::after {
        /* transform: translate(50%, -50%) scale(1.3); Removed scale effect */
        transform: translate(50%, -50%);
    }

    .datesTimeLine li:nth-child(odd) .timeline-content {
        border-left: none;
        border-right: 4px solid var(--accent-color);
        border-radius: 12px; /* Ensure rounded corners */
    }
    
    /* Even Items (Right Side) */
    .datesTimeLine li:nth-child(even) .date {
        justify-self: start; /* Push date to left side of cell */
        margin-left: 0;
    }
    
    /* Content spacing */
    .datesTimeLine li:nth-child(odd) .timeline-content {
        margin-right: 0; /* Stick to grid */
    }
    
    .datesTimeLine li:nth-child(even) .timeline-content {
        margin-left: 0;
    }
}


/*---------------------------------------------------*/
/*---------------MODAL-------------------------------*/
/*---------------------------------------------------*/
@media (max-width: 991px) { /* Dispositivos con un ancho de hasta 991px (tabletas y celulares) */
    .modal-dialog {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.modal-content {
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

.modal-header {
    padding-bottom: 10px;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
}

.modal-body {
    font-size: 16px;
    color: #555555;
}

.modal-body .form-label {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #cccccc;
    box-shadow: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #cd126a;
    box-shadow: 0 0 8px rgba(205, 18, 106, 0.2);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #cccccc;
    box-shadow: none;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #cd126a;
    box-shadow: 0 0 8px rgba(205, 18, 106, 0.2);
}

label {
    margin-bottom: 5px;
}

.card-title-news {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
    justify-content: center;
    color: #333;
}

.card-text-news {
    font-size: 1rem;
    color: #333 !important;
    font-weight: 400 !important;
    margin-bottom: 15px;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 10px 20px;
}

.date-news {
    font-size: 0.9rem;
    color: #6c757d;
}

.btn.btn-primary-news {
    background-color: #cd126a;
    color: white;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 5px 0;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn.btn-primary-news:hover {
    background-color: #a5105b;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn.btn-primary-news:active {
    background-color: #820b44;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.card-body-news {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Asegura que el contenido se distribuya */
    flex-grow: 1;
    padding: 20px;
}

.card-body-news .mt-auto {
    margin-top: auto; /* Empuja el botón hacia abajo */
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 10px 20px;
}

/* Estilo para los marcadores */
.marker {
    width: 2rem; /* Tamaño del icono */
    height: 2rem; /* Tamaño del icono */
    position: absolute;
    transform: translate(-50%, -50%); /* Centra el icono en el marcador */
    cursor: pointer;
    text-align: center; /* Centra el contenido */
    display: flex; /* Asegura que el contenido se centre */
    justify-content: center; /* Centra el contenido */
    align-items: center;
}

.marker i {
    font-size: 1.6rem;
    line-height: 1.5; /* Ajusta este valor para probar */
    color: #1d2aa3;
    transition: all 0.3s ease;
}

.marker:hover i {
    background: linear-gradient(#1d2aa3, #db287d);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 2rem; /* Asegúrate de que el tamaño se mantenga */
    line-height: 1.5; /* Mantén el valor aquí también */
}

.marker:hover i {
    background: linear-gradient(#1d2aa3, #db287d); /* Degradado */
    -webkit-background-clip: text; /* Clipa el fondo a las letras */
    color: transparent;
}

/* Pantallas pequeñas (celulares en modo vertical) */
@media (max-width: 767px) {
    .marker i {
        font-size: 0.8rem !important;
    }
    .marker:hover i {
        font-size: 1rem !important;
    }
    #map-container {
        max-width: 100vh !important; /* Tamaño completo para móviles */
    }
}

/* Pantallas medianas pequeñas (tabletas verticales y celulares grandes) */
@media (min-width: 768px) and (max-width: 999px) {
    .marker i {
        font-size: 1.1rem !important;
    }
    .marker:hover i {
        font-size: 1.3rem !important;
    }
    #map-container {
        max-width: 100vh !important; /* Reduce el tamaño para evitar scroll */
    }
}

/* Pantallas medianas grandes (laptops pequeñas y tabletas en modo horizontal) */
@media (min-width: 1000px) and (max-width: 1279px) {
    .marker i {
        font-size: 1.2rem !important;
    }
    .marker:hover i {
        font-size: 1.4rem !important;
    }
    #map-container {
        max-width: 80vh !important; /* Ajuste adicional para pantallas intermedias */
    }
}

/* Pantallas grandes (laptops grandes y monitores regulares) */
@media (min-width: 1280px) and (max-width: 1440px) {
    .marker i {
        font-size: 1.2rem !important;
    }
    .marker:hover i {
        font-size: 1.4rem !important;
    }
    #map-container {
        max-width: 80vh !important; /* Mantener tamaño moderado para evitar scroll */
    }
}

/* Pantallas extra grandes (monitores 4K y pantallas anchas) */
@media (min-width: 1441px) {
    .marker i {
        font-size: 1.3rem !important;
    }
    .marker:hover i {
        font-size: 1.6rem !important;
    }
    #map-container {
        max-width: 80vh !important; /* Ajuste mayor para pantallas grandes */
    }
}

/* Pantallas ultra grandes (monitores de 2560px y superiores) */
@media (min-width: 2560px) {
    .marker i {
        font-size: 1.8rem !important; /* Tamaño de ícono adecuado para pantallas muy grandes */
    }
    .marker:hover i {
        font-size: 2rem !important; /* Aumento de tamaño en hover */
    }
    #map-container {
        max-width: 80vh !important; /* Reducimos el tamaño del mapa para evitar que se vea demasiado grande */
    }
}


/* Asegurémonos de que el tooltip no tenga fondo */
#tooltip {
    background-color: transparent;   /* Quita el fondo negro */
    border: none;                    /* Elimina el borde, si no lo quieres */
    box-shadow: none;                /* Elimina la sombra */
    padding: 0;                      /* Elimina el espacio alrededor */
    display: flex;                   /* Flexbox para centrar el contenido */
    align-items: center;
    justify-content: center;
    z-index: 1050;
    position: absolute;
    visibility: hidden;              /* Lo dejamos oculto por defecto */
}

.tooltip-inner {
    background-color: transparent;   /* Asegura que el contenedor de la imagen también tenga fondo transparente */
    padding: 0;
}

.tooltip-inner img {
    width: 15vw;        /* Ajusta el tamaño de la imagen según el ancho de la ventana */
    height: auto;       /* Mantiene la proporción de la imagen */
    object-fit: contain;/* Mantiene la proporción de la imagen */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .tooltip-inner img {
        width: 50vw;        /* En móviles, la imagen puede ocupar hasta el 80% del ancho de la ventana */
        max-width: 250px;   /* Máximo de 300px de ancho en móviles */
    }
}

/* Media query para pantallas pequeñas de tabletas */
@media (max-width: 1024px) {
    .tooltip-inner img {
        width: 60vw;        /* En tabletas pequeñas, la imagen toma el 70% del ancho */
        max-width: 300px;   /* Máximo de 400px de ancho en tabletas */
    }
}

/* Media query para pantallas grandes */
@media (min-width: 1025px) {
    .tooltip-inner img {
        width: 20vw;        /* En pantallas grandes, la imagen ocupa el 50% del ancho */
        max-width: 400px;   /* Máximo de 500px de ancho en pantallas grandes */
    }
}

@media (max-width: 1024px) {
  .carousel {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .cards-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 1024px) {
  .cards-container .row {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 1024px) {
  .carousel-inner .carousel-item img {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 1024px) {
  .carousel-indicators {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}
