/* Ahorro-Garantizado - Hipotecas Landing Page CSS */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
}

.logo i {
    font-size: 28px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    padding: 60px 20px;
    min-height: 100vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-text {
    padding-top: 40px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 .highlight {
    color: #fbbf24;
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.feature-item i {
    color: #10b981;
    font-size: 20px;
    flex-shrink: 0;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #64748b;
    font-size: 16px;
}

/* Progress Indicator */
.progress-indicator {
    margin-bottom: 30px;
}

.progress-bar-container {
    background: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #1e40af, #0891b2);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 16.66%;
}

.step-counter {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* 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);
    }
}

.form-step h3 {
    color: #1e293b;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.option-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: #1e40af;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

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

.option-card.selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.option-content i {
    font-size: 32px;
    color: #1e40af;
}

.option-content span {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.option-content small {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

/* Form Inputs */
.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
}

.input-group label i {
    color: #1e40af;
    margin-right: 5px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.input-group input.error {
    border-color: #dc2626;
}

.input-group input.success {
    border-color: #10b981;
}

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    display: none;
    margin-top: 5px;
}

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

/* Privacy Notice */
.privacy-notice {
    margin-top: 20px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.privacy-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    background: white;
    transition: all 0.3s;
}

.privacy-checkbox:hover .checkmark {
    border-color: #1e40af;
}

.privacy-checkbox input:checked ~ .checkmark {
    background: #1e40af;
    border-color: #1e40af;
}

.privacy-checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.privacy-text a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

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

/* Navigation Buttons */
.form-navigation {
    margin-top: 30px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 32px;
    color: white;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.step-content p {
    color: #64748b;
    font-size: 15px;
}

/* Requirements Section */
.requirements-section {
    padding: 80px 20px;
    background: white;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.requirement-item i {
    font-size: 28px;
    color: #10b981;
}

.requirement-item span {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #94a3b8;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #1e293b;
}

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

.success-icon-large i {
    font-size: 40px;
    color: white;
}

.modal-header h2 {
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
}

.modal-body {
    padding: 40px;
}

.success-message-large h3 {
    color: #1e293b;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.contact-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    color: #1e40af;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-item h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-item p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.important-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #78350f;
}

.important-notice strong {
    color: #92400e;
}

.modal-footer {
    padding: 20px 40px 40px;
    text-align: center;
}

.privacy-content {
    color: #475569;
    line-height: 1.8;
}

.privacy-content h4 {
    color: #1e293b;
    margin-bottom: 15px;
}

.privacy-content p {
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text {
        padding-top: 0;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .benefits-grid,
    .process-steps,
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% 15px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-step h3 {
        font-size: 20px;
    }
    
    .option-content i {
        font-size: 28px;
    }
    
    .option-content span {
        font-size: 15px;
    }
}
