/* Contenedor Principal de la Sección */
.section-container {
    background-color: #e9eff4;
    border-radius: 0;
    padding: 2.5rem 0 1.5rem;
    max-width: none;
    width: 100%;
    text-align: center;
    /* box-shadow: 0 10px 30px rgba(46, 77, 155, 0.08); */
    position: relative;
    overflow: hidden;
}

/* Títulos en fuente Rubik */
.main-title {
    font-family: 'Rubik', sans-serif;
    color: #2e4d9b;
    font-size: 3.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.subtitle {
    font-family: 'Rubik', sans-serif;
    color: #009ddd;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.75rem;
}

/* Estructura del Carrusel */
.carousel-wrapper {
    position: relative;
    margin: 0 auto 1.5rem;
    width: min(100%, 1540px);
    padding: 0 58px;
    box-sizing: border-box;
}

.carousel-track-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 1rem;
    box-sizing: border-box;
    outline: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
}

.carousel-track-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    width: 100%;
}

/* Tarjeta de Asesor */
.advisor-card {
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    flex: 0 0 194px;
    min-width: 0;
    box-shadow: none;
    overflow: hidden;
    border: 0;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 991px) {
    .advisor-card {
        flex-basis: calc((100% - 48px) / 3);
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding-inline: 50px;
    }

    .advisor-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 480px) {
    .team-section {
        padding-top: 2rem;
    }

    .carousel-wrapper {
        padding-inline: 46px;
    }

    .carousel-track-container {
        padding-inline: 0;
    }

    .carousel-track {
        gap: 16px;
    }

    .advisor-card {
        flex-basis: 100%;
    }

    .team-section .main-title {
        font-size: 1.75rem;
    }

    .team-section .subtitle {
        font-size: 1.15rem;
        padding-inline: 1rem;
    }
}

.advisor-card:hover {
    transform: translateY(-8px);
    border-color: #009ddd;
    box-shadow: 1px 2px 9px 0px #6c757da3;
}

.advisor-card:focus-visible {
    outline: 3px solid #009ddd;
    outline-offset: 3px;
}

.advisor-card.selected {
    border-color: #2e4d9b;
    box-shadow: 0 10px 25px rgba(46, 77, 155, 0.25);
    transform: translateY(-6px);
}

.advisor-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #009ddd;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-container {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: #f0f4f8;
    position: relative;
}

.advisor-card > a.image-container:focus-visible {
    outline: 3px solid #009ddd;
    outline-offset: -3px;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    object-position: top center;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.advisor-card:hover .image-container img {
    transform: scale(1.06);
}

.advisor-info {
    padding: 16px 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.advisor-name {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e4d9b;
}

.specialty-badge {
    display: inline-block;
    background-color: rgba(0, 157, 221, 0.12);
    color: #009ddd;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 2px auto;
}

.rating {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stars {
    color: #ffb400;
}

.advisor-desc {
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.35;
    margin-top: 4px;
}

/* Botones de navegación */
.nav-btn {
    position: absolute;
    top: calc(50% - 14px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: #2e4d9b;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background-color: #2e4d9b;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev-btn {
    left: 8px;
}

.nav-btn.next-btn {
    right: 8px;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Puntos indicadores */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: 0;
}

.dot.active {
    background-color: #009ddd;
    width: 26px;
    border-radius: 10px;
}

/* Banner de selección */
.selected-banner {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #2e4d9b;
    font-weight: 500;
    min-height: 28px;
    transition: all 0.3s ease;
}

.selected-banner strong {
    color: #009ddd;
}

/* Botón CTA */
.cta-container {
    margin-top: 0;
}

.cta-btn {
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #009ddd 0%, #2e4d9b 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 15px 45px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 157, 221, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(46, 77, 155, 0.45);
    background: linear-gradient(90deg, #2e4d9b 0%, #009ddd 100%);
}

.cta-btn:active {
    transform: translateY(-1px);
}

.dot:focus-visible,
.nav-btn:focus-visible {
    outline: 3px solid #2e4d9b;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track-container {
        scroll-behavior: auto;
    }

    .advisor-card,
    .image-container img,
    .nav-btn,
    .dot {
        transition: none;
    }
}
