:root {
    --pink-soft: #f2f0f7;
    --rose: #513682;
    --verde-claudia: #18C79A;
}

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

.reels-section {
    width: 100%;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin: 40px 0;
}

.section-title span {
    color: var(--verde-claudia);
    font-style: italic;
}

/* ================================================================
   1. CARRUSEL INFINITO Y TAMAÑOS
   ================================================================ */

.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0 30px;
    overflow: hidden;
}

.carousel-track-outer {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 520px;
    transform: translate(-50%, -50%) scale(0.7);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.3) blur(6px);
    z-index: 1;
    opacity: 0;
    border-radius: 20px;
}

.slide.active {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1) blur(0);
    z-index: 5;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.slide.prev {
    transform: translate(-160%, -50%) scale(0.85);
    filter: brightness(0.5) blur(2px);
    z-index: 4;
    opacity: 1;
    cursor: pointer;
}

.slide.next {
    transform: translate(60%, -50%) scale(0.85);
    filter: brightness(0.5) blur(2px);
    z-index: 4;
    opacity: 1;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(81, 54, 130, 0.3);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mute-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: 0.3s;
}

.mute-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.mute-btn svg {
    width: 24px;
    height: 24px;
}

/* FLECHAS PERFECTAMENTE CENTRADAS Y PEGADAS A LOS BORDES */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(81, 54, 130, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s;
}

.arrow:hover {
    background: var(--verde-claudia);
    transform: translateY(-50%) scale(1.1);
}

.arrow svg {
    width: 24px;
    height: 24px;
}

.arrow-prev {
    left: 15px;
}

.arrow-next {
    right: 15px;
}

/* ================================================================
   2. TARJETA DINÁMICA (ALINEADA Y PEGADA AL VIDEO)
   ================================================================ */

#productCardContainer {
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.product-card-container {
    width: 100%;
    max-width: 360px;
    margin: -10px auto 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-header {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--rose);
}

.product-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.4;
}

/* --- NUEVO BOTÓN DE WHATSAPP --- */
.btn-whatsapp-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    padding: 14px 20px;
    background: var(--verde-claudia);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    border-radius: 999px; /* Botón en forma de píldora */
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

.btn-whatsapp-plan:hover {
    background: var(--rose);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 54, 130, 0.2);
}
/* -------------------------------- */

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a4a4a;
    margin-bottom: 10px;
    font-family: 'Nunito Sans', sans-serif;
}

.product-features li svg {
    width: 18px;
    height: 18px;
    color: var(--verde-claudia);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ================================================================
   3. SECCIÓN DE TESTIMONIOS (TEXTO ENVOLVENTE)
   ================================================================ */

.testimonials-section {
    width: 100%;
    margin-top: 60px;
    padding-top: 40px;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.testimonial-horizontal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(81, 54, 130, 0.08);
    box-shadow: 0 10px 30px rgba(81, 54, 130, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Evita que el texto corto colapse la imagen */
    display: flow-root;
}

.testimonial-horizontal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(81, 54, 130, 0.1);
}

/* IMAGEN FLOTANTE (Permite que el texto la abrace) */
.testimonial-image {
    float: left;
    width: 250px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-right: 30px;
    margin-bottom: 15px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-horizontal-card:hover .testimonial-image img {
    transform: scale(1.05);
}

.testimonial-body {
    display: block;
}

.stars {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 20px;
    text-align: justify;
}

.testimonial-author {
    display: block;
    text-align: right;
    margin-top: 20px;
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--rose);
    font-size: 1.1rem;
}

/* ================================================================
   4. RESPONSIVE (MÓVILES Y TABLETS) - UNIFICADO
   ================================================================ */

@media (max-width: 768px) {

    /* Ajustes Carrusel */
    .carousel-wrapper {
        padding: 10px 0;
    }

    .carousel-track-outer {
        height: 420px;
    }

    .slide {
        width: 240px;
        height: 380px;
    }

    .slide.prev {
        transform: translate(-140%, -50%) scale(0.8);
        opacity: 0.6;
    }

    .slide.next {
        transform: translate(40%, -50%) scale(0.8);
        opacity: 0.6;
    }

    .arrow-prev {
        left: 5px;
    }

    .arrow-next {
        right: 5px;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Ajustes Tarjeta Dinámica */
    .product-card-container {
        max-width: 90%;
    }

    .product-card {
        padding: 20px;
    }

    /* Ajustes Testimonios */
    .testimonial-horizontal-card {
        padding: 25px;
    }

    .testimonial-image {
        float: none;
        /* Desactiva el envoltorio de texto en pantallas pequeñas */
        margin: 0 auto 25px auto;
        display: block;
        width: 100%;
        max-width: 280px;
        height: 280px;
    }

    .testimonial-text {
        text-align: left;
        /* Quitamos justificado en móviles para facilitar la lectura */
        font-size: 0.95rem;
    }

    .testimonial-author {
        text-align: left;
    }
}