@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {

    --fice: #29ABE2;
    --fice-dark: #008ac1;
    --negro: #000000;
    --blanco: #ffffff;
    --amarillo: #FFC107;
    --amarillo-dark: #d39e00;
}
::selection {
    background-color: #00aef0;
    color: #000000;
}

body {
    font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
}

#navbar-principal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

#navbar-principal .navbar-brand img {
    height: 80px;
    width: auto;
}

#navbar-principal .navbar-nav .nav-item {
    margin-left: 1rem;
}

#navbar-principal .navbar-nav .nav-link {
    color: #fff;
    font-weight: bold;
}

#navbar-principal .navbar-nav .nav-link.enlace-activo {
    color: #FFC107;
}

.cabecera-parallax {
    background-image: url('../imagenes/cabecera-principal.jpg');
    min-height: 87.5vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.cabecera-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.franja-amarilla {
    background-color: #D4A22F;
    color: white;
    padding: 1rem 0;
}

.seccion-contenido-principal .texto-principal-seccion {
    color: #D4A22F;
    font-size: 1.5rem;
    font-weight: 500;
}

.seccion-contenido-principal .texto-secundario-seccion {
    color: #333;
    font-size: 1.1rem;
}

.carrusel-socios {
    padding: 20px 0;
}

.carrusel-socios .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carrusel-socios .swiper-slide img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carrusel-socios .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: #D4A22F;
}

#boton-volver-arriba {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #00AEEF;
    color: white;
    border: none;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    z-index: 1000;
    display: flex;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

#boton-volver-arriba.visible {
    opacity: 1;
    visibility: visible;
}

#boton-volver-arriba:hover {
    opacity: 0.8;
}

.seccion-estadisticas .titulo-seccion {
    color: #D4A22F;
    font-weight: bold;
}

.seccion-estadisticas .contador-numero {
    font-size: 6rem;
    font-weight: 700;
    color: #D4A22F;
}

.seccion-estadisticas .contador-texto {
    font-size: 1rem;
    color: #555;
    max-width: 300px;
    margin: 0 auto;
}

.btn-impacto {
    background-color: #29ABE2;
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-impacto:hover {
    background-color: #1f89b3;
    color: white;
}

.titulo-seccion {
    color: #D4A22F;
    font-weight: bold;
}

.contenedor-carrusel-testimonios {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carrusel-testimonios .swiper-slide {
    text-align: center;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.carrusel-testimonios .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio-nav-next,
.testimonio-nav-prev {
    color: #333;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.testimonio-nav-prev {
    left: -50px;
}

.testimonio-nav-next {
    right: -50px;
}

@media (max-width: 1024px) {
    .testimonio-nav-prev {
        left: -10px;
    }

    .testimonio-nav-next {
        right: -10px;
    }
}

#aliados {
    background-color: #fff;
}

.logo-aliado {
    max-width: 200px;
    /* Ancho máximo para los logos */
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.logo-aliado:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.enlace {
    color: #D4A22F;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.enlace:hover {
    color: #FFC107;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .container {
        max-width: 940px !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1000px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1100px !important;
    }
}

.tarjeta-impacto {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform .3s ease
}

.tarjeta-impacto-enlace {
    text-decoration: none
}

.tarjeta-impacto-enlace:hover .tarjeta-impacto {
    transform: scale(1.05)
}

.tarjeta-impacto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0, rgba(0, 0, 0, 0) 50%);
    transition: background .3s ease
}

.tarjeta-impacto-enlace:hover .tarjeta-impacto-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .1) 60%)
}

.tarjeta-impacto h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .7)
}

#modal-impacto-titulo {
    color: #D4A22F;
    font-size: 1.2rem;
}
.modal-content {
    border-radius: 15px !important
}

.modal-header .btn-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #fff;
    border-radius: 50%;
    padding: .5em;
    opacity: 1;
    z-index: 10
}

.modal-text-content {
    padding-top: 1rem
}

#modal-impacto-resultados ul {
    list-style-type: none;
    padding-left: 0;
}

#modal-impacto-resultados li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

#modal-impacto-resultados li::before {
    content: "•";
    color: #000;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 0.75rem;
    line-height: 1;
}

.franja-titulo-seccion {
    background-color: #29ABE2;
    padding: 1rem 0;
    text-align: center;
}

.franja-titulo-seccion h2 {
    font-weight: normal;
}

.titulo-amarillo-seccion {
    color: #D4A22F;
    font-weight: bold;
    margin-bottom: 1rem;
}

.texto-descripcion-seccion {
    color: #555;
    line-height: 1.7;
}

.lista-servicios {
    list-style-type: none;
    padding-left: 0;
}

.lista-servicios li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.lista-servicios li::before {
    content: "•";
    color: #29ABE2;
    font-weight: bold;
    margin-right: 0.75rem;
    line-height: 1;
}

.miembro-directorio {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid #dee2e6; 
}

.miembro-directorio:first-child {
    border-top: none; 
    padding-top: 0;
}

.experto-comunicacion {
    text-align: center;
}

.experto-comunicacion img {
    max-width: 180px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
}

.experto-comunicacion h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.iconos-sociales a {
    color: #adb5bd;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.iconos-sociales a:hover {
    color: #29ABE2;
}

.logo-flotante {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1010;
    padding: 10px;
    /*border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);*/
    transition: transform 0.3s ease;
}

.logo-flotante img {
    display: block;
    max-width: 70px;
    height: auto;
}

.logo-flotante:hover {
    transform: translateY(-50%) scale(1.05); 
}

.pie-de-pagina-alt {
    background-color: #333;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 20px solid var(--fice);
}

.footer-logo-alt {
    max-height: 50px;
    width: auto;
}

.footer-titulo-principal {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-tagline-alt {
    line-height: 1.6;
}

.footer-columna-titulo {
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-contact-info {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-link-alt {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-alt:hover {
    color: #fff;
}

.footer-copy-alt {
    background-color: #222;
    font-size: 0.8rem;
    color: #666;
}

#navbar-principal .navbar-nav .nav-link.minga {
    padding: 0.375rem 0.75rem 0.375rem 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    border-radius: 0.25rem;
    color: #000000 !important;
    background-color: var(--amarillo);
    border: 1px solid var(--amarillo-dark);
    background-image: url('../imagenes/logo-minga.png');
    background-repeat: no-repeat;
    background-position: left 0.75rem center; 
    background-size: 1.2em 1.2em;
    transition: all .15s ease-in-out;
}

#navbar-principal .navbar-nav .nav-link.minga:hover,
#navbar-principal .navbar-nav .nav-link.minga:focus {
    color: #fff !important;
    background-color: #b01c24;
    border-color: #b01c24;
    background-image: url('../imagenes/logo-minga-blanco.png');
}