/* ============================================
   COTIZADOR EXPRÉS AYRÉE - CSS v1
   Plugin version - works inside Elementor
   ============================================ */

/* Scoped variables */
.acx-wrap {
    --acx-primary: #7468A7;
    --acx-primary-dark: #594fa0;
    --acx-primary-light: #e8e4f3;
    --acx-primary-glow: rgba(116, 104, 167, 0.25);
    --acx-primary-gradient: linear-gradient(135deg, #7468A7, #9b8fd4);
    --acx-green: #2ecc71;
    --acx-yellow: #f39c12;
    --acx-blue: #3498db;
    --acx-text: #1b1b1b;
    --acx-text-muted: #5a5a5a;
    --acx-text-light: #8a8a8a;
    --acx-bg: #ffffff;
    --acx-bg-soft: #f7f5fc;
    --acx-bg-dark: #1a1625;
    --acx-radius: 16px;
    --acx-radius-sm: 10px;
    --acx-radius-pill: 999px;
    --acx-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --acx-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --acx-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --acx-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base reset */
.acx-wrap *,
.acx-wrap *::before,
.acx-wrap *::after {
    box-sizing: border-box;
}

.acx-wrap {
    font-family: var(--acx-font);
    color: var(--acx-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 60px;
    min-height: 720px;
    position: relative;
}

@media (max-width: 640px) {
    .acx-wrap {
        min-height: 640px;
    }
}

.acx-wrap h1,
.acx-wrap h2,
.acx-wrap h3 {
    font-family: var(--acx-font);
    padding: 0;
}

.acx-wrap p {
    font-family: var(--acx-font);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes acx-fadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes acx-fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-16px); }
}

@keyframes acx-scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes acx-slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes acx-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.acx-fade-in {
    animation: acx-fadeIn 0.5s ease-out;
}

.acx-fade-out {
    animation: acx-fadeOut 0.3s ease-in forwards;
}

/* ============================================
   WELCOME SCREEN
   ============================================ */
.acx-welcome {
    text-align: center;
    padding: 80px 20px 60px;
    animation: acx-fadeIn 0.6s ease-out;
}

.acx-welcome__badge {
    display: inline-block;
    background: var(--acx-primary-light);
    color: var(--acx-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: var(--acx-radius-pill);
    margin: 0 0 32px 0 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.acx-welcome__title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    color: var(--acx-text);
    line-height: 1.15;
    margin: 0 auto 24px !important;
    max-width: 650px;
}

.acx-welcome__subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--acx-text-muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 40px !important;
}

.acx-welcome__micro {
    font-size: 13px;
    color: var(--acx-text-light);
    margin-top: 24px !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.acx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--acx-font);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--acx-transition);
    line-height: 1;
}

.acx-btn--primary {
    background: var(--acx-primary-gradient);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: var(--acx-radius-pill);
    box-shadow: 0 8px 24px rgba(116, 104, 167, 0.35);
    font-size: 16px;
}

.acx-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(116, 104, 167, 0.45);
    background: linear-gradient(135deg, #8b7fc0, #7468A7);
    color: #ffffff;
}

.acx-btn--lg {
    padding: 18px 40px;
    font-size: 17px;
}

/* ============================================
   PROGRESS STEPS
   ============================================ */
.acx-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    padding-top: 20px;
    animation: acx-fadeIn 0.4s ease-out;
}

.acx-progress__steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.acx-progress__step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--acx-font);
    background: var(--acx-bg);
    border: 2px solid #e0dce8;
    color: var(--acx-text-light);
    transition: var(--acx-transition);
    flex-shrink: 0;
}

.acx-progress__step--active {
    background: var(--acx-primary);
    border-color: var(--acx-primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--acx-primary-glow);
}

.acx-progress__step--done {
    background: var(--acx-primary-light);
    border-color: var(--acx-primary);
    color: var(--acx-primary);
}

.acx-progress__line {
    width: 48px;
    height: 3px;
    background: #e0dce8;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.acx-progress__line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--acx-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.acx-progress__line-fill--active {
    width: 100%;
}

/* ============================================
   QUESTIONS
   ============================================ */
.acx-screen--question {
    padding: 20px 0 40px;
}

.acx-question {
    animation: acx-fadeIn 0.5s ease-out;
    max-width: 680px;
    margin: 0 auto;
}

.acx-question__num {
    font-size: 56px;
    font-weight: 800;
    color: var(--acx-primary-light);
    line-height: 1;
    margin: 0 0 16px 0 !important;
    display: block;
    font-family: var(--acx-font);
}

.acx-question__title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--acx-text);
    line-height: 1.3;
    margin: 0 0 36px 0 !important;
}

/* Options - Grid layout */
.acx-options--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
}

/* Options - List layout */
.acx-options--list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    overflow: hidden;
}

.acx-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--acx-bg);
    border: 2px solid #e8e4f3;
    border-radius: var(--acx-radius);
    cursor: pointer;
    transition: var(--acx-transition);
    font-family: var(--acx-font);
    text-align: left;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 64px;
    box-sizing: border-box !important;
    overflow: hidden;
}

.acx-option:hover {
    border-color: var(--acx-primary) !important;
    background: #fff !important;
    color: inherit !important;
    transform: translateY(-2px);
    box-shadow: var(--acx-shadow);
}

.acx-option--selected {
    border-color: var(--acx-primary) !important;
    background: var(--acx-primary-light) !important;
    color: inherit !important;
    box-shadow: 0 0 0 3px var(--acx-primary-glow) !important;
    pointer-events: none;
}

.acx-option__emoji {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.acx-option__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--acx-text);
    line-height: 1.45;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: unset !important;
    flex: 1;
    min-width: 0;
}

/* ============================================
   CAPTURE FORM SCREEN
   ============================================ */
.acx-screen--capture {
    padding: 20px 0 40px;
}

.acx-capture {
    text-align: center;
    animation: acx-fadeIn 0.5s ease-out;
    max-width: 560px;
    margin: 0 auto;
}

.acx-capture__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.acx-capture__title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--acx-text);
    line-height: 1.3;
    margin: 0 0 16px 0 !important;
}

.acx-capture__subtitle {
    font-size: 16px;
    color: var(--acx-text-muted);
    margin: 0 0 36px 0 !important;
    line-height: 1.6;
}

.acx-capture__form {
    background: var(--acx-bg);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--acx-shadow-lg);
    border: 1px solid #f0ecf7;
    text-align: left;
}

.acx-capture__no-form {
    font-size: 14px;
    color: var(--acx-text-muted);
    text-align: center;
    padding: 20px;
}

.acx-capture__no-form code {
    background: var(--acx-primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.acx-capture__privacy {
    font-size: 13px;
    color: var(--acx-text-light);
    margin: 24px 0 0 0 !important;
}

.acx-capture__icon {
    margin: 0 0 20px 0 !important;
}

/* ============================================
   RESULTS SCREEN
   ============================================ */
.acx-screen--results {
    padding: 20px 0 40px;
}

.acx-results {
    animation: acx-fadeIn 0.6s ease-out;
    max-width: 680px;
    margin: 0 auto;
}

.acx-results__header {
    text-align: center;
    margin-bottom: 48px;
}

.acx-results__badge {
    display: block;
    background: none;
    color: var(--acx-primary);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    padding: 0;
    border-radius: 0;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.acx-results__title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--acx-text);
    line-height: 1.2;
    margin: 0 0 16px 0 !important;
}

.acx-results__profile {
    font-size: 15px;
    color: var(--acx-text-muted);
    line-height: 1.6;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}

.acx-profile-item {
    background: var(--acx-primary-light);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* Services list */
.acx-results__services {
    background: var(--acx-bg-soft);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 32px;
}

.acx-results__services-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--acx-text);
    margin: 0 0 24px 0 !important;
}

.acx-results__service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e8e4f3;
    animation: acx-slideUp 0.4s ease-out both;
}

.acx-results__service:last-child {
    border-bottom: none;
}

.acx-results__service-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--acx-text);
    flex: 1;
}

.acx-results__service-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--acx-primary);
    white-space: nowrap;
    margin-left: 16px;
}

.acx-results__service-note {
    font-size: 12px;
    color: var(--acx-text-light);
    display: block;
    margin-top: 2px;
}

/* Investment range */
.acx-results__investment {
    background: var(--acx-primary);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    margin-bottom: 32px;
    color: #fff;
}

.acx-results__investment-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin: 0 0 10px 0 !important;
}

.acx-results__investment-range {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

/* Message */
.acx-results__message {
    background: var(--acx-bg);
    border: 1px solid #e8e4f3;
    border-left: 4px solid var(--acx-primary);
    border-radius: var(--acx-radius);
    padding: 28px 32px;
    margin-bottom: 40px;
    font-size: 15px;
    color: var(--acx-text-muted);
    line-height: 1.7;
}

/* CTA */
.acx-results__cta {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 48px;
    border-top: 1px solid #f0ecf7;
}

.acx-results__cta-text {
    font-size: 16px;
    color: var(--acx-text-muted);
    margin: 0 auto 32px auto !important;
    line-height: 1.6;
    max-width: 480px;
}

/* Calendly embed */
.acx-results__calendly {
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--acx-shadow);
}

/* Footer */
.acx-results__footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e8e4f3;
}

.acx-results__footer p {
    font-size: 14px;
    color: var(--acx-text-light);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .acx-wrap {
        padding: 24px 16px 40px;
        max-width: 100%;
    }

    .acx-welcome {
        padding: 40px 8px 40px;
    }

    .acx-welcome__title {
        font-size: 26px !important;
    }

    .acx-welcome__subtitle {
        font-size: 15px !important;
    }

    /* Grid → 1 column on mobile */
    .acx-options--grid {
        grid-template-columns: 1fr;
    }

    /* Options: full width, no overflow */
    .acx-option {
        padding: 14px 16px;
        gap: 12px;
        min-height: auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .acx-option__emoji {
        font-size: 22px;
        flex-shrink: 0;
        min-width: 28px;
    }

    .acx-option__text {
        font-size: 13px !important;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        flex: 1;
        min-width: 0;
    }

    /* Question */
    .acx-question {
        max-width: 100%;
        padding: 0 4px;
    }

    .acx-question__num {
        font-size: 44px !important;
    }

    .acx-question__title {
        font-size: 22px !important;
        margin: 0 0 24px 0 !important;
    }

    /* Progress */
    .acx-progress__line {
        width: 20px;
    }

    .acx-progress__step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Capture form */
    .acx-capture {
        max-width: 100%;
        padding: 0 4px;
    }

    .acx-capture__title {
        font-size: 22px !important;
    }

    .acx-capture__form {
        padding: 20px 14px;
    }

    /* Results */
    .acx-results {
        max-width: 100%;
    }

    .acx-results__title {
        font-size: 24px !important;
    }

    .acx-results__services {
        padding: 20px 14px;
    }

    .acx-results__service {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 0;
    }

    .acx-results__service-price {
        margin-left: 0;
        font-size: 14px;
    }

    .acx-results__investment {
        padding: 24px 16px;
    }

    .acx-results__investment-range {
        font-size: 22px !important;
    }

    .acx-results__message {
        padding: 20px 16px;
        font-size: 14px;
    }

    .acx-results__cta {
        padding: 28px 0;
    }

    .acx-btn--lg {
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .acx-results__calendly .calendly-inline-widget {
        height: 600px !important;
        min-width: 100% !important;
    }
}

/* ============================================
   ELEMENTOR OVERRIDES
   Prevent Elementor/theme from collapsing spacing
   ============================================ */
.elementor-widget-shortcode .acx-wrap,
.elementor-element .acx-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.elementor-widget-shortcode .acx-wrap .acx-option,
.elementor-element .acx-wrap .acx-option {
    margin-bottom: 0 !important;
}

.elementor-widget-shortcode .acx-wrap h1,
.elementor-widget-shortcode .acx-wrap h2,
.elementor-widget-shortcode .acx-wrap h3,
.elementor-element .acx-wrap h1,
.elementor-element .acx-wrap h2,
.elementor-element .acx-wrap h3 {
    font-family: var(--acx-font) !important;
}

.elementor-widget-shortcode .acx-wrap p,
.elementor-element .acx-wrap p {
    font-family: var(--acx-font) !important;
    margin-bottom: 0;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   PREGUNTA 5 - FLASH POR INTENSIDAD DE PLAZO
   Flash más intenso = más tiempo de servicio
   ============================================ */
.acx-wrap .acx-option--flash-1 .acx-option__emoji,
.acx-wrap .acx-option--flash-2 .acx-option__emoji,
.acx-wrap .acx-option--flash-3 .acx-option__emoji,
.acx-wrap .acx-option--flash-4 .acx-option__emoji {
    position: relative;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Flash 1 - 1-2 meses · más tenue */
.acx-wrap .acx-option--flash-1 .acx-option__emoji {
    filter: hue-rotate(0deg) saturate(0.4) brightness(1.4);
    background: rgba(116, 104, 167, 0.08);
    box-shadow: 0 0 0 0 rgba(116, 104, 167, 0.15);
}

/* Flash 2 - 3-6 meses */
.acx-wrap .acx-option--flash-2 .acx-option__emoji {
    filter: hue-rotate(0deg) saturate(0.7) brightness(1.2);
    background: rgba(116, 104, 167, 0.16);
    box-shadow: 0 0 8px 2px rgba(116, 104, 167, 0.2);
}

/* Flash 3 - 6-12 meses */
.acx-wrap .acx-option--flash-3 .acx-option__emoji {
    filter: hue-rotate(0deg) saturate(1) brightness(1);
    background: rgba(116, 104, 167, 0.28);
    box-shadow: 0 0 14px 4px rgba(116, 104, 167, 0.35);
}

/* Flash 4 - +1 año · más intenso */
.acx-wrap .acx-option--flash-4 .acx-option__emoji {
    filter: hue-rotate(0deg) saturate(1.3) brightness(0.95);
    background: rgba(116, 104, 167, 0.45);
    box-shadow: 0 0 22px 6px rgba(116, 104, 167, 0.55);
    animation: acx-flash-pulse 1.8s ease-in-out infinite;
}

@keyframes acx-flash-pulse {
    0%, 100% { box-shadow: 0 0 22px 6px rgba(116, 104, 167, 0.55); }
    50% { box-shadow: 0 0 32px 10px rgba(116, 104, 167, 0.75); }
}

.acx-wrap .acx-option--flash-1:hover .acx-option__emoji,
.acx-wrap .acx-option--flash-2:hover .acx-option__emoji,
.acx-wrap .acx-option--flash-3:hover .acx-option__emoji,
.acx-wrap .acx-option--flash-4:hover .acx-option__emoji {
    transform: scale(1.08);
}
