/* Reset y Variables CSS - TELCO Theme */
:root {
    /* Colores TELCO - Azul/Morado (del LP original) */
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --secondary-color: #EC4899;
    --accent-color: #8B5CF6;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #f59e0b;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94a3b8;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-gradient-start: #E0E7FF;
    --background-gradient-end: #F5E6FF;
    --border: #E2E8F0;
    --border-light: #f1f5f9;
    --shadow: 0 4px 6px rgba(99, 102, 241, 0.08);
    --shadow-lg: 0 8px 16px rgba(99, 102, 241, 0.12);
    --shadow-xl: 0 12px 24px rgba(99, 102, 241, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.header-left i, .header-right i {
    color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}

/* Form Section */
.form-section {
    max-width: 700px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
}

.form-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Progress Indicator */
.step-indicator {
    margin-bottom: 2rem;
}

.step-progress {
    height: 8px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.step-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 25%;
}

.step-counter {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step-counter span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Options Container */
.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    position: relative;
    cursor: pointer;
}

.option-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all 0.2s;
    min-height: 120px;
}

.option-content i {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.option-content span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.option-btn input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.option-btn input[type="radio"]:checked + .option-content i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.option-btn input[type="radio"]:checked + .option-content span {
    color: var(--primary-color);
}

.option-btn:hover .option-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.option-btn.full-width {
    grid-column: 1 / -1;
}

/* Provider Buttons */
.provider-container {
    grid-template-columns: repeat(3, 1fr);
}

.provider-btn .option-content {
    min-height: 80px;
    padding: 1rem;
}

.provider-btn .option-content span {
    font-size: 0.95rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group input::placeholder {
    color: var(--text-light);
}

/* Privacy Consent */
.privacy-consent {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Navigation Buttons */
.form-navigation {
    margin-top: 2rem;
}

.btn-primary, .btn-success {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-primary:disabled, .btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Thank You Screen */
.thank-you-screen {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.thank-you-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2rem;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.thank-you-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.thank-you-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

.next-steps {
    background: var(--background-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.next-steps h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.next-steps li i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.email-notice {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========================================
   FLOATING CALL BUTTON (MOBILE ONLY)
   ======================================== */
.floating-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #50086f 0%, #da27bc 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(129, 9, 109, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-family);
    animation: pulse-scale 2s ease-in-out infinite;
}

.floating-call-btn i {
    font-size: 16px;
    animation: shake 0.5s ease-in-out infinite;
}

.floating-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(129, 9, 109, 0.6);
}

.floating-call-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(129, 9, 109, 0.6);
}

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

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Mostrar solo en móvil */
@media (max-width: 768px) {
    .floating-call-btn {
        display: flex;
    }
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-left span, .header-right span {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .step-question {
        font-size: 1.25rem;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .provider-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .option-content {
        min-height: 100px;
    }
    
    .thank-you-content {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   PRIVACY CHECKBOXES — dual checkbox layout
   ======================================== */
.privacy-consent .form-check-container {
    margin-bottom: 12px;
}

.privacy-consent .form-check-container:last-of-type {
    margin-bottom: 0;
}

.privacy-consent .form-check-container.mb-1 {
    margin-bottom: 12px;
}

.privacy-consent .privacy-info a:hover {
    text-decoration: underline;
}

/* ========================================
   PHONE CTA — discreet inline link under Siguiente (mobile only)
   ======================================== */
.phone-cta-link {
    display: none; /* Hidden by default — mobile only */
}

@media (max-width: 768px) {
    .phone-cta-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        text-align: center;
        line-height: 1.4;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease;
    }

    .phone-cta-link i {
        color: var(--primary-color);
        font-size: 14px;
    }

    .phone-cta-link strong {
        color: var(--primary-color);
        font-weight: 700;
    }

    .phone-cta-link:active {
        color: var(--primary-color);
    }
}


/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1 1 280px;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-column {
    min-width: 160px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column li i {
    color: var(--primary-color);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

/* Responsive footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem 1.25rem;
        margin-top: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.75rem;
    }

    .footer-links {
        gap: 1.75rem;
    }

    .footer-brand,
    .footer-column {
        max-width: 100%;
    }
}
