/**
 * ============================================
 * CSS COMPONENTES INTERATIVOS
 * ============================================
 */

/* ===== PRICE CALCULATOR ===== */
.price-calculator-widget {
    background: #ffffff;
    border: 2px solid #64caad;
    border-radius: 16px;
    padding: 3rem;
    margin: 4rem auto;
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(11, 27, 84, 0.15);
}

.price-calculator-widget h3 {
    color: #0b1b54;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.calculator-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    font-weight: 600;
    color: #0b1b54;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.calculator-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #0b1b54;
}

.calculator-form .form-control:focus {
    outline: none;
    border-color: #64caad;
    box-shadow: 0 0 0 3px rgba(100, 202, 173, 0.1);
}

.calculator-result {
    background: linear-gradient(135deg, rgba(100, 202, 173, 0.08) 0%, rgba(11, 27, 84, 0.05) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid #64caad;
}

.result-header h4 {
    color: #0b1b54;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.price-range {
    text-align: center;
    padding: 2rem 0;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.price-range .currency {
    font-size: 1.5rem;
    color: #666666;
    vertical-align: top;
}

.price-range .price-min,
.price-range .price-max {
    font-size: 3rem;
    font-weight: 800;
    color: #64caad;
    font-family: 'Sora', sans-serif;
}

.price-range .separator {
    font-size: 1.5rem;
    color: #666666;
    margin: 0 0.5rem;
}

.price-range .period {
    font-size: 1.25rem;
    color: #666666;
}

.result-details {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.result-details p {
    margin-bottom: 0.75rem;
    color: #0b1b54;
}

.result-details strong {
    color: #0b1b54;
}

.urgency-message {
    text-align: center;
    font-size: 0.95rem;
    color: #0b1b54;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}


/* ===== EXIT-INTENT POPUP ===== */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-popup.active {
    opacity: 1;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 27, 84, 0.8);
    backdrop-filter: blur(5px);
}

.exit-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(11, 27, 84, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #0b1b54;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-close:hover {
    background: rgba(11, 27, 84, 0.2);
    transform: rotate(90deg);
}

.exit-popup-body {
    padding: 3rem;
}

.exit-popup-body h3 {
    color: #0b1b54;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.exit-popup-body > p {
    text-align: center;
    color: #666666;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.exit-benefits {
    background: rgba(100, 202, 173, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.exit-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #0b1b54;
}

.exit-benefit:last-child {
    margin-bottom: 0;
}

.exit-benefit svg {
    flex-shrink: 0;
    color: #64caad;
}

.exit-popup-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.exit-popup-form input:focus {
    outline: none;
    border-color: #64caad;
    box-shadow: 0 0 0 3px rgba(100, 202, 173, 0.1);
}

.exit-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: #999999;
    margin-top: 1rem;
}


/* ===== CONTACT FORM ===== */
.contact-form-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.contact-form {
    background: #ffffff;
    border: 2px solid rgba(100, 202, 173, 0.2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(11, 27, 84, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #0b1b54;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #0b1b54;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64caad;
    box-shadow: 0 0 0 3px rgba(100, 202, 173, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: #666666;
    cursor: pointer;
}

.form-checkbox label a {
    color: #64caad;
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: #999999;
    margin-top: 1rem;
    line-height: 1.6;
}

.form-success {
    background: linear-gradient(135deg, rgba(100, 202, 173, 0.1) 0%, rgba(11, 27, 84, 0.05) 100%);
    border: 2px solid #64caad;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #64caad;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.form-success h3 {
    color: #0b1b54;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: #666666;
    font-size: 1.125rem;
    line-height: 1.6;
}

.success-next-steps {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}


/* ===== CONVERSION NOTIFICATIONS ===== */
.conversion-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    border: 2px solid #64caad;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(11, 27, 84, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    z-index: 9999;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.conversion-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    font-size: 0.9rem;
    color: #0b1b54;
}

.notification-name {
    display: block;
    font-weight: 700;
    color: #0b1b54;
    margin-bottom: 0.25rem;
}

.notification-action {
    display: block;
    color: #666666;
}

.notification-time {
    display: block;
    font-size: 0.8rem;
    color: #999999;
    font-family: 'Space Mono', monospace;
    margin-top: 0.25rem;
}

.notification-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999999;
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #0b1b54;
}


/* ===== COUNTDOWN TIMER ===== */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    padding: 1.5rem;
    background: rgba(100, 202, 173, 0.08);
    border-radius: 12px;
    margin: 2rem 0;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 8px;
    min-width: 70px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0b1b54;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.countdown-separator {
    font-size: 1.5rem;
    color: #0b1b54;
    font-weight: 700;
}

.countdown-timer .expired {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.25rem;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .price-calculator-widget {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .price-calculator-widget h3 {
        font-size: 1.5rem;
    }
    
    .calculator-subtitle {
        font-size: 1rem;
    }
    
    .price-range .price-min,
    .price-range .price-max {
        font-size: 2rem;
    }
    
    .exit-popup-content {
        width: 95%;
    }
    
    .exit-popup-body {
        padding: 2rem 1.5rem;
    }
    
    .exit-popup-body h3 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .conversion-notification {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }
    
    .countdown-segment {
        min-width: 60px;
        padding: 0.5rem 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .notification-content {
        font-size: 0.85rem;
    }
    
    .notification-icon {
        font-size: 1.5rem;
    }
}
