/* ============================================================
   COMPONENTE - CTA APP SECTION
   Sección con laptop + celular con video (igual al hero original)
   ============================================================ */

.cta-app {
    background-color: transparent;
    padding: clamp(3rem, 8vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   CONTENEDOR
   ============================================================ */

.cta-app__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ============================================================
   CONTENIDO (TEXTOS + BOTONES)
   ============================================================ */

.cta-app__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
}

/* Título */
.cta-app__title {
    font-family: var(--font-family-primary);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: var(--font-weight-extrabold);
    color: #0F172A;
    line-height: 1.15;
    margin: 0 0 1rem 0;
}

.cta-app__title--accent {
    color: #7C3AED;
    display: block;
}

/* Descripción */
.cta-app__description {
    font-family: var(--font-family-primary);
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    font-weight: var(--font-weight-regular);
    color: #64748B;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    max-width: 500px;
}

/* ============================================================
   BOTONES
   ============================================================ */

.cta-app__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* Botón morado (Prueba gratis) - DESTACADO */
.cta-app__btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: #FFFFFF;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
    padding: 0.9375rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.cta-app__btn--primary:hover {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.cta-app__btn-icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Botón grande - una sola línea y más visible */
.cta-app__btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.cta-app__btn--large:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

/* Botón blanco con borde (WhatsApp) - Secundario */
.cta-app__btn--whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FFFFFF;
    color: #475569;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    font-size: clamp(0.8125rem, 1.3vw, 0.875rem);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid #E2E8F0;
}

.cta-app__btn--whatsapp:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #334155;
    transform: translateY(-2px);
}

.cta-app__btn-icon--whatsapp {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* ============================================================
   MOCKUPS (LAPTOP + CELULAR CON VIDEO)
   ============================================================ */

.cta-app__mockups {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-app__devices {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Laptop */
.cta-app__laptop {
    width: clamp(280px, 65vw, 480px);
    height: auto;
    position: relative;
    z-index: 1;
}

/* Celular con frame */
.cta-app__phone {
    position: absolute;
    right: -8%;
    bottom: 0;
    z-index: 2;
}

.cta-app__phone-frame {
    width: clamp(65px, 16vw, 110px);
    height: clamp(130px, 32vw, 220px);
    background: #1a1a2e;
    border-radius: clamp(12px, 2.5vw, 20px);
    padding: clamp(4px, 0.8vw, 6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    position: relative;
}

.cta-app__phone-notch {
    position: absolute;
    top: clamp(5px, 1vw, 8px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(25px, 6vw, 40px);
    height: clamp(4px, 0.8vw, 6px);
    background: #0f0f1a;
    border-radius: 4px;
    z-index: 10;
}

.cta-app__phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: clamp(9px, 2vw, 15px);
    overflow: hidden;
}

.cta-app__phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   RESPONSIVE - MÓVIL PEQUEÑO (hasta 480px)
   ============================================================ */

@media (max-width: 480px) {
    .cta-app {
        padding: 2.5rem 0;
        overflow: hidden;
    }

    .cta-app__container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }

    .cta-app__content {
        padding: 0;
    }

    .cta-app__title {
        font-size: 1.5rem;
    }

    .cta-app__description {
        font-size: 0.9rem;
    }

    .cta-app__actions {
        gap: 0.625rem;
    }

    .cta-app__btn--primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .cta-app__btn--primary.cta-app__btn--large {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
        white-space: nowrap;
    }

    .cta-app__mockups {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    .cta-app__devices {
        width: 100%;
        justify-content: center;
        position: relative;
        align-items: flex-end !important;
    }

    .cta-app__laptop {
        width: 90% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

    .cta-app__phone {
        right: 3% !important;
        bottom: 8% !important;
        top: auto !important;
        position: absolute;
    }

    .cta-app__phone-frame {
        width: 80px;
        height: 160px;
        border-radius: 14px;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL (481px - 767px)
   ============================================================ */

@media (min-width: 481px) and (max-width: 767px) {
    .cta-app__container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        max-width: 100% !important;
    }

    .cta-app__content {
        padding: 0;
    }

    .cta-app__actions {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .cta-app__mockups {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    .cta-app__devices {
        width: 100%;
        justify-content: center;
    }

    .cta-app__laptop {
        width: 75% !important;
        max-width: none !important;
        margin-left: 5%;
    }

    .cta-app__phone {
        right: 5% !important;
    }

    .cta-app__phone-frame {
        width: 90px;
        height: 180px;
    }
}

/* ============================================================
   RESPONSIVE - TABLET (768px - 1023px)
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .cta-app__container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .cta-app__content {
        align-items: flex-start;
        text-align: left;
        flex: 0 0 45%;
        max-width: 45%;
    }

    .cta-app__actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .cta-app__mockups {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .cta-app__laptop {
        width: 100%;
        max-width: 380px;
    }

    .cta-app__phone {
        right: -5%;
    }

    .cta-app__phone-frame {
        width: 90px;
        height: 180px;
    }
}

/* ============================================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================================ */

@media (min-width: 1024px) {
    .cta-app {
        padding: 4rem 0;
    }

    .cta-app__container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }

    .cta-app__content {
        align-items: flex-start;
        text-align: left;
        flex: 0 0 42%;
        max-width: 42%;
    }

    .cta-app__title {
        font-size: 2.5rem;
    }

    .cta-app__description {
        font-size: 1.0625rem;
        margin-bottom: 1.5rem;
    }

    .cta-app__actions {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

    .cta-app__btn--primary {
        padding: 0.9375rem 2rem;
        font-size: 1rem;
    }

    .cta-app__btn--primary.cta-app__btn--large {
        padding: 1rem 2.25rem;
        font-size: 1.0625rem;
    }

    .cta-app__mockups {
        flex: 0 0 55%;
        max-width: 55%;
    }

    .cta-app__devices {
        justify-content: flex-end;
    }

    .cta-app__laptop {
        width: 450px;
    }

    .cta-app__phone {
        right: -3%;
    }

    .cta-app__phone-frame {
        width: 105px;
        height: 210px;
        border-radius: 18px;
        padding: 5px;
    }

    .cta-app__phone-notch {
        width: 35px;
        height: 5px;
    }

    .cta-app__phone-screen {
        border-radius: 14px;
    }
}

/* ============================================================
   RESPONSIVE - DESKTOP GRANDE (1440px+)
   ============================================================ */

@media (min-width: 1440px) {
    .cta-app {
        padding: 5rem 0;
    }

    .cta-app__title {
        font-size: 2.75rem;
    }

    .cta-app__description {
        font-size: 1.125rem;
    }

    .cta-app__laptop {
        width: 500px;
    }

    .cta-app__phone-frame {
        width: 115px;
        height: 230px;
    }
}
