/* =========================================================
   HERO CARRUSEL
========================================================= */

.hero-carousel {
    width: 100%;
    background: linear-gradient(90.21deg,
            rgba(251, 251, 251, 1) 0%,
            rgba(127, 158, 225, 0.30) 71.32%,
            rgba(127, 158, 225, 0.30) 100%);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

/* CONTENEDOR CARRUSEL */
.carousel-container {
    width: 100%;
}

.carousel-track {
    width: 100%;
}

/* SLIDES */
.carousel-slide {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.carousel-slide.active-slide {
    display: flex;
}

/* CONTENIDO DEL SLIDE */
.slide-content {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.slide-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slide-title {
    font-family: 'Roboto', sans-serif;
    font-size: 52px;
    font-weight: 500;
    line-height: 60px;
    letter-spacing: 0.25px;
    color: #535353;
}

.slide-description {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.25px;
    color: #535353;
}

/* BOTÓN PRIMARIO */
.btn-primary {
    width: fit-content;
    padding: 12px 24px;
    border-radius: 4px;
    background: #FF8A2A;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: none;
    margin: 0 auto;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary span {
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.25px;
}

/* IMAGEN DEL SLIDE */
.slide-image {
    width: 588px;
    height: 480px;
    object-fit: contain;
    flex-shrink: 0;
}

/* FLECHAS DEL CARRUSEL */
.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    background: transparent;
    border: none;
}

.carousel-arrow:hover {
    opacity: 0.7;
}

/* INDICADORES (DOTS) */
.carousel-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FBFBFB;
    opacity: 0.6;
    padding: 0;
}

/* Dot activo */
.indicator-dot--active {
    background: #28365D !important;
    opacity: 1 !important;
}

/* Efecto hover */
.indicator-dot:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* CONTENEDOR DEL CARRUSEL - para el desplazamiento */
.carousel-container {
    width: 100%;
    overflow: hidden;  
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;  
    width: 100%;
}

/* SLIDES - ahora en línea para desplazarse */
.carousel-slide {
    flex: 0 0 100%;  
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    /* Ya no usamos display: none */
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
    .main-nav {
        margin-left: 60px;
        gap: 40px;
    }

    .btn-login--desktop {
        font-size: 16px;
    }

    .hero-carousel {
        padding: 40px 30px;
    }

    .carousel-slide {
        gap: 40px;
    }

    .slide-title {
        font-size: 42px;
        line-height: 50px;
    }

    .slide-description {
        font-size: 16px;
        line-height: 26px;
    }

    .slide-image {
        width: 480px;
        height: auto;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
    .main-header {
        padding: 16px 20px;
        min-height: 72px;
    }

    .logo {
        width: 120px;
        height: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #121E52;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 20px;
        margin-left: 0;
        z-index: 100;
    }

    .main-nav.active {
        display: flex;
    }

    .menu-hamburger {
        display: block;
    }

    .btn-login--desktop {
        display: none;
    }

    .btn-login--mobile {
        display: flex;
        margin-top: 8px;
    }

    .hero-carousel {
        flex-direction: column;
        padding: 32px 20px;
        gap: 24px;
    }

    .carousel-slide,
    .carousel-slide.active-slide {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .slide-content {
        align-items: center;
    }

    .slide-text {
        align-items: center;
    }

    .slide-title {
        font-size: 32px;
        line-height: 40px;
    }

    .slide-description {
        font-size: 16px;
        line-height: 26px;
    }

    .slide-image {
        width: 100%;
        max-width: 588px;
        height: auto;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-indicators {
        position: relative;
        bottom: unset;
        left: unset;
        transform: none;
        margin-top: 8px;
    }
}

/* =========================================================
   SECCIÓN DE BENEFICIOS
========================================================= */

.benefits-section {
    width: 100%;
    padding: 64px 40px;
    background: #F4F6FA;
}

/* Título */
.benefits-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0.25px;
    color: #1B1B1B;
    text-align: left;
    margin-bottom: 16px;
    padding-left: 40px;
}

.benefits-grid {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* BENEFIT CARD */
.benefit-card {
    background: #FBFBFB;
    border-radius: 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
    width: 280px;
    min-height: 440px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

/* Imagen del card */
.benefit-card__image {
    width: calc(100% - 48px);
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    margin: 24px 24px 20px 24px;
    border-radius: 16px;
}

/* Contenido del card (texto) */
.benefit-card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    width: calc(100% - 48px);
    margin: 0 24px 24px 24px;
}

/* Título del card */
.benefit-card__title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.25px;
    color: #1B1B1B;
    text-align: center;
    width: 100%;
    margin: 0;
}

/* Descripción del card */
.benefit-card__description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.25px;
    color: #1B1B1B;
    text-align: center;
    width: 100%;
    margin: 0;
}

/* =========================================================
   RESPONSIVE BENEFICIOS
========================================================= */
@media (min-width: 1200px) {
    .benefits-grid {
        justify-content: center;
    }

    .benefit-card {
        width: 280px;
    }
}

/* Para tablet */
@media (max-width: 1199px) and (min-width: 769px) {
    .benefits-section {
        padding: 48px 20px;
    }

    .benefits-title {
        padding-left: 20px;
        font-size: 28px;
    }

    .benefits-grid {
        gap: 20px;
        padding: 0 10px;
    }

    .benefit-card {
        width: 260px;
    }

    .benefit-card__image {
        width: calc(100% - 40px);
        margin: 20px 20px 16px 20px;
        height: 160px;
    }

    .benefit-card__content {
        width: calc(100% - 40px);
        margin: 0 20px 20px 20px;
    }

    .benefit-card__title {
        font-size: 16px;
        line-height: 20px;
    }

    .benefit-card__description {
        font-size: 13px;
        line-height: 18px;
    }
}

/* Para mobile */
@media (max-width: 768px) {
    .benefits-section {
        padding: 40px 16px;
    }

    .benefits-title {
        font-size: 24px;
        line-height: 32px;
        text-align: center;
        margin-bottom: 24px;
        padding-left: 0;
    }

    .benefits-grid {
        gap: 16px;
        padding: 0;
        justify-content: center;
    }

    .benefit-card {
        width: 100%;
        max-width: 300px;
        min-height: auto;
    }

    .benefit-card__image {
        width: calc(100% - 32px);
        margin: 16px 16px 12px 16px;
        height: 150px;
        border-radius: 12px;
    }

    .benefit-card__content {
        width: calc(100% - 32px);
        margin: 0 16px 16px 16px;
        gap: 8px;
    }

    .benefit-card__title {
        font-size: 16px;
        line-height: 20px;
    }

    .benefit-card__description {
        font-size: 13px;
        line-height: 18px;
    }
}


/* =========================================================
   SECCIÓN HERO CON CARRUSEL
========================================================= */

.hero-carousel {
    width: 100%;
    background: linear-gradient(90.21deg,
            rgba(251, 251, 251, 1) 0%,
            rgba(127, 158, 225, 0.30) 71.32%,
            rgba(127, 158, 225, 0.30) 100%);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

/* =========================================================
   SECCIÓN DE BENEFICIOS
========================================================= */

.benefits-section {
    width: 100%;
    padding: 48px 40px;
    background: #F4F6FA;
}

/* =========================================================
   SECCIÓN DE PLANES / PRUEBA GRATUITA
========================================================= */

.planes-section {
    width: 100%;
    background: linear-gradient(90.21deg,
            rgba(251, 251, 251, 1) 0%,
            rgba(127, 158, 225, 0.30) 71.32%,
            rgba(127, 158, 225, 0.30) 100%);
    padding: 48px 80px;
    position: relative;
    overflow: hidden;
}

/* Contenido de texto */
.planes-content {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.planes-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0.25px;
    color: #121E52;
    text-align: left;
    width: 100%;
    margin: 0;
}

.planes-description {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: 0.25px;
    color: #1B1B1B;
    text-align: left;
    width: 100%;
    margin: 0;
}

/* Botón de la sección planes */
.btn-planes {
    background: #495E9A;
    border-radius: 4px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.btn-planes:hover {
    background: #5a72b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-planes:active {
    transform: translateY(0);
}

.btn-planes span {
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.25px;
}

/* Contenedor de la sección planes */
.planes-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* Imagen de la sección planes */
.planes-image {
    width: 556px;
    height: 392px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE PLANES
========================================================= */

/* Tablet */
@media (max-width: 1100px) {
    .hero-carousel {
        padding: 48px 30px;
    }

    .benefits-section {
        padding: 48px 30px;
    }

    .planes-section {
        padding: 48px 40px;
    }

    .planes-container {
        gap: 50px;
    }

    .planes-title {
        font-size: 28px;
        line-height: 36px;
    }

    .planes-description {
        font-size: 15px;
        line-height: 22px;
    }

    .planes-image {
        width: 450px;
        height: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-carousel {
        padding: 48px 20px;
    }

    .benefits-section {
        padding: 48px 20px;
    }

    .planes-section {
        padding: 48px 20px;
    }

    .planes-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .planes-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        gap: 24px;
    }

    .planes-title {
        font-size: 24px;
        line-height: 32px;
        text-align: center;
    }

    .planes-description {
        font-size: 14px;
        line-height: 22px;
        text-align: center;
    }

    .planes-image {
        width: 100%;
        max-width: 450px;
        height: auto;
    }
}

/* =========================================================
   SECCIÓN DE TESTIMONIOS
========================================================= */

.testimonials-section {
    width: 100%;
    padding: 48px 40px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.testimonials-title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: 0.25px;
    color: #1B1B1B;
    text-align: left;
    margin-bottom: 32px;
    padding-left: 76px;
}

/* Carrusel de testimonios */
.testimonials-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-left: 76px;
}

.testimonials-container {
    width: 100%;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    flex-direction: row;
    gap: 24px;
    will-change: transform;
    width: fit-content;
}

/* Tarjeta de testimonio */
.testimonial-card {
    flex-shrink: 0;
    width: 280px;
    min-height: 400px;
    background: linear-gradient(150.9deg, rgba(73, 94, 153, 0.03) 17.07%, rgba(127, 158, 225, 0.10) 74.27%, rgba(18, 30, 82, 0.10) 100%);
    border-radius: 24px;
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(149.99deg, rgba(127, 158, 225, 1) 0%, rgba(73, 94, 154, 1) 50.36%, rgba(18, 30, 82, 1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.testimonial-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

/* Avatar */
.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

/* Texto del testimonio */
.testimonial-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    flex: 1;
}

.testimonial-name {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name .name {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 22px;
    letter-spacing: 0.25px;
    color: #1B1B1B;
    display: block;
}

.testimonial-name .role {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.25px;
    color: #1B1B1B;
    display: block;
}

.testimonial-quote {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.25px;
    color: #000000;
    text-align: center;
    margin: 0;
}

/* =========================================================
   RESPONSIVE TESTIMONIOS
========================================================= */

@media (min-width: 1300px) {
    .testimonial-card {
        width: 280px;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .testimonials-section {
        padding: 48px 30px;
    }

    .testimonials-title {
        padding-left: 40px;
        font-size: 36px;
    }

    .testimonials-carousel {
        padding-left: 40px;
    }

    .testimonial-card {
        width: 260px;
        min-height: 380px;
    }

    .testimonial-content {
        padding: 20px;
        gap: 16px;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .testimonial-avatar img {
        width: 80px;
        height: 80px;
    }

    .testimonial-name .name {
        font-size: 16px;
    }

    .testimonial-name .role {
        font-size: 14px;
    }

    .testimonial-quote {
        font-size: 12px;
        line-height: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 48px 20px;
    }

    .testimonials-title {
        padding-left: 0;
        font-size: 32px;
        text-align: center;
        margin-bottom: 24px;
    }

    .testimonials-carousel {
        padding-left: 0;
    }

    .testimonial-card {
        width: 260px;
        min-height: 380px;
    }

    .testimonial-content {
        padding: 20px;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .testimonial-avatar img {
        width: 80px;
        height: 80px;
    }

    .testimonial-name .name {
        font-size: 16px;
    }

    .testimonial-name .role {
        font-size: 14px;
    }

    .testimonial-quote {
        font-size: 12px;
        line-height: 16px;
    }
}

