/* HERO CAROUSEL */
.hero-carousel-container {    
    display: flex;
    align-items: center;
    height: auto;    
}

#heroCarousel {
    width: 100%;
}

.descripcion {    
    position: relative;
    padding: 20px;
    z-index: 1;
}

.descripcion::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
        to left,
        rgba(0,0,0,0.30) 0%,
        rgba(0,0,0,0.20) 40%,
        rgba(0,0,0,0.1) 70%,
        rgba(0,0,0,0) 100%
    ); */
    padding: 15px;
    border-radius: 25px;
    z-index: -1;
}

.descripcion.text-end {
    text-align: right;
}

.descripcion.text-end .hero-title,
.descripcion.text-end .hero-sub {
    text-align: right;
}

.descripcion.text-end .d-flex {
    justify-content: flex-end;
}

.hero-slide {
    padding: 10px 0 50px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    padding: 10px 10px 0 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    animation: fadeInLeft 0.8s ease;    
}

.hero-title .highlight { color: var(--accent); }
.hero-title .highlight2 { color: var(--accent); }

.hero-sub {
    color: white;
    font-size: 1.1rem;
    margin: 14px 0 10px;
    padding: 5px 10px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    animation: fadeInRight 0.8s ease;    
}

.hero-sub strong { color: var(--accent); }


.btn-1 {
    background: var(--blue-light);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    border-radius: 25px;
    padding: 12px 32px;
    margin-bottom: 10px;
    transition: all .3s;
    animation: fadeInUp 0.8s ease;
}

.btn-1:hover { 
    background: var(--yellow-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-2 {
    background: white;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    border-radius: 25px;
    padding: 12px 32px;
    margin-bottom: 10px;    
    transition: all .3s;
    animation: fadeInUp 0.8s ease 0.1s;
}

.btn-2:hover { 
    background: var(--yellow-light);
    color: white;
    transform: translateY(-2px);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active { 
    background: var(--accent);
    transform: scale(1.2);
}

.carousel-img {
    width: 100%;
    height: 300px;
    max-width: 400px;        
    object-fit: contain;    
}

.custom-arrow {
    width: 50px;
    height: 50px;    
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.custom-arrow:hover {
    transform: scale(1.1);
    background: #fff;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 10;
    width: 70px;
    padding: 0 10px;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tarjetas */
.features-section {
    padding: 0 0 40px;
    background: #fff;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(30,70,150,0.15);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-bottom: 15px;
}

.feature-icon {
    width: 60px; 
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;     
    font-size: 2.5rem;
    color: var(--blue-light);     
    flex-shrink: 0; 
    transition: all 0.3s ease;
}

.feature-card h5 {
    color: var(--blue-light);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0; 
}

.feature-card p {
    color: black;
    font-size: .95rem;
    margin: 0;
    text-align: center; 
    line-height: 1.5;
}


/* Slider empresas */
.partners-section {
    padding: 40px 0 0 0;
}

.partners-section h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
    text-align: center;    
    margin-bottom: 10px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.logos-slider {
    overflow: hidden;
    padding: 20px 0;
    background: transparent;
    position: relative;
    width: 100%;
    margin: 0;
}

.logos-track {
    display: flex;
    align-items: center;
    animation: scrollLogos 200s linear infinite;
    gap: 30px;
    width: max-content;
}

.logo-item {
    width: 200px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logos-slider:hover .logos-track {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50%));
    }
}

/* Sección de Categorías */
.categorias-section {
    padding: 60px 0;    
}

.categorias-section h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
}

.categoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.categoria-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    color: inherit;
}

.categoria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(26,58,107,0.12);
    border-color: var(--primary);
}

.categoria-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #e8f0fe, #d4e2fc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue-light);
    transition: all 0.3s ease;
}

.categoria-card:hover .categoria-icon {
    background: linear-gradient(135deg, var(--primary), var(--blue-light));
    color: white;
    transform: scale(1.05);
}

.categoria-nombre {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
}

.categoria-card:hover .categoria-nombre {
    color: var(--blue-light);
}

.cat-toggle {
    border: 2px dashed var(--blue-light);
    background: linear-gradient(135deg, #e8f0fe, #f4f7fc);
    color: var(--primary);
}

.cat-toggle .cat-toggle-icon {
    background: linear-gradient(135deg, var(--primary), var(--blue-light));
    color: white;
}

.cat-toggle:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--blue-light));
    color: white;
}

.cat-toggle:hover .categoria-nombre {
    color: white;
}

/* Tarjeta FaceBol */
.card-cta-section {
    background: linear-gradient(135deg, #0d1f45 0%, #1a3a6b 55%, #1e4fa0 100%);
    background-image: url('../imagen/institucion/fondo_tarjeta.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: linear-gradient(135deg,#e040a0 0%, #7b2fff 100% );
    border-radius: 18px;
    padding: 30px 35px 25px;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.cta-box h3 .highlight { color: #ffe066; }
.cta-box h3 .highlight2 { color: #aef; }

.cta-check { 
    color: #c8d9f5; 
    font-size: 1rem; 
    margin-bottom: 12px;
}

.cta-check i { 
    color: var(--accent); 
    margin-right: 10px;
}

.cta-check strong { color: #fff; }

.btn-solicitar {
    background: var(--blue-light);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    border-radius: 25px;
    padding: 14px 40px;
    font-size: 1.1rem;
    border: none;
    transition: all .3s;
    margin-top: 15px;
}

.btn-solicitar:hover { 
    background: #1456b0; 
    color:#fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mision - Vision */
.mission-section {
    padding: 40px 0 0 0;
    background: #fff;
}

.badge-mission {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 40px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.badge-vision {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 40px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.mv-box {
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.mv-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.mv-box.vision-box { border-color: var(--primary); }

.allies-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.ally-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ally-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.ally-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
}

/*Carrusel instituciones aliadas*/

.carousel-custom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    overflow: visible;
    
}

.main-focus-card {
    width: 70%;
    z-index: 2;
    transition: all 0.7s ease-in-out;
    padding: 0 10px;
}

.allies-carousel {
    position: relative;
    z-index: 1;
}

.inner-card {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    text-align: center;
    height: 100%;
}

.inner-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
}

.side-peek {
    width: 15%; 
    opacity: 0.2;
    transition: all 0.7s ease-in-out;
    filter: grayscale(100%);
    display: flex;
    justify-content: center;
}

.side-peek img {
    width: 150%;
    height: 200px;
    object-fit: contain;
}

.left-peek { transform: translateX(20%) scale(0.8); }
.right-peek { transform: translateX(-20%) scale(0.8); }

.active.carousel-item-start .main-focus-card {
    transform: scale(0.8);
    opacity: 0.5;
}

.carousel-item-next .main-focus-card {
    transform: scale(0.8);
}

.carousel-item-next.carousel-item-start .main-focus-card {
    transform: scale(1);
    opacity: 1;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 3;
    color: #111;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.allies-carousel,
.carousel,
.carousel-item {
    z-index: 0 !important;
    position: relative;
}

@media (max-width: 768px) {   
    .btn-1, .btn-2 {
        padding: 8px 20px !important;
        font-size: 0.8rem !important;
    }
    
    .hero-section.mini-hero {
        height: auto !important;
        min-height: 100px !important;
        display: block;
    }

    .hero-section.mini-hero:before {
        display: none;
    }

    .hero-section {        
        min-height: 550px; 
        padding: 80px 0 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .hero-section::before {
        top: 0 !important; 
        height: 100% !important;
    }
    
    .hero-carousel-container {
        flex: 1; 
        display: flex;
        align-items: center; 
        min-height: auto !important; 
    }
    
    .hero-slide {
        display: flex !important;
        align-items: center !important; 
        justify-content: center !important; 
        text-align: center !important;
    }
    
    .hero-slide .row {
        width: 100%;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-title {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    .hero-sub {
        font-size: 1 rem !important;
        margin-bottom: 17px !important;
        line-height: 1.3 !important;
    }

    .hero-slide .d-flex.gap-3 {
        justify-content: center !important;
        width: 100%;
    }

    .carousel-indicators {
        bottom: 20px !important; 
        margin-bottom: 0;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px !important;
        height: 8px !important;
    }

    .custom-arrow:hover {
        background: none;
    }

    .carousel-custom-container {
        justify-content: center;
        height: auto;
    }

    .side-peek {
        width: 10%;
        opacity: 0.3;
    }

    .main-focus-card {
        width: 80%;
    }

    .inner-card {
        padding: 10px;
    }

    .inner-card img {
        width: 100%;
        height: 230px;   
        border-radius: 10%;     
        object-fit: contain;
    }
    
    .logos-slider {
        padding: 15px 0;
    }

    .logo-item {
        width: 150px;
        height: 150px;
    }

    .logos-track {
        animation: scrollLogos 200s linear infinite;
        gap: 15px;
    }

    .categoria-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
    }

    .categoria-card {
        padding: 18px 10px;
    }

    .categoria-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .categoria-nombre {
        font-size: 0.75rem;
    }

    .categorias-section {
        padding: 40px 0;
    }

}

@media (min-width: 768px) and (max-width: 992px) {
    .feature-header {
        flex-direction: column;
        text-align: center;
    }
}