/* ===== VARIABLES ===== */
:root {
    --primary: #0900b9;
    --primary-light: #3a72f6;
    --accent: #ffffff;
    --dark: #1a1a2e;
    --gray-100: #f8f9fc;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-100);
    overflow-x: hidden;
}

/* ===== HERO ===== */
.afiliacion-hero {
    position: relative;
    height: 100vh;
    min-height: 450px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.afiliacion-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/fondos/afiliacion.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.30;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 5%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary);
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

/* ===== INTRO ===== */
.intro-section {
    padding: 60px 5%;
    background: white;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.intro-title span {
    color: var(--primary);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 30px;
}

.intro-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

/* ===== TARJETAS DE AFILIACIÓN ===== */
.cards-section {
    padding: 60px 5%;
    background: var(--gray-100);
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.afiliacion-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(9, 0, 185, 0.08);
    transition: all 0.4s ease;
    border: 1px solid var(--gray-200);
}

.afiliacion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(9, 0, 185, 0.15);
}

.card-header {
    padding: 40px 30px 20px;
    text-align: center;
    background: linear-gradient(145deg, #f8faff, white);
    border-bottom: 1px solid var(--gray-200);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 15px 25px rgba(9, 0, 185, 0.2);
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

.card-body {
    padding: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--success);
    font-size: 1.1rem;
    margin-top: 2px;
}

.card-footer {
    padding: 0 30px 30px;
}

.btn-card {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-card:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(9, 0, 185, 0.2);
}

.badge-info {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* ===== PREGUNTAS FRECUENTES ===== */
.faq-section {
    padding: 60px 5%;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 50px;
}

.section-title span {
    color: var(--primary);
}

.faq-item {
    background: var(--gray-100);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.faq-question {
    padding: 20px 25px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--gray-800);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    color: var(--gray-600);
    line-height: 1.6;
}

.faq-answer.active {
    padding: 20px 25px;
    max-height: 300px;
    border-top: 1px solid var(--gray-200);
}

/* ===== FORMULARIO MULTIPASO ===== */
.form-section {
    padding: 60px 5%;
    background: linear-gradient(145deg, var(--primary), #1a1a4e);
    color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.form-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--gray-600);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    position: relative;
    flex: 1;
}

.progress-step.active {
    color: var(--primary);
}

.progress-step.completed {
    color: var(--success);
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 5px;
    color: currentColor;
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.form-step {
    padding: 30px;
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(58, 114, 246, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 15px 30px;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-prev {
    background: var(--gray-200);
    color: var(--gray-600);
}

.btn-prev:hover {
    background: var(--gray-300);
}

.btn-next,
.btn-submit {
    background: var(--primary);
    color: white;
    flex: 1;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(9, 0, 185, 0.2);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CONTACTO DIRECTO ===== */
.contacto-section {
    padding: 60px 5%;
    background: white;
}

.contacto-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contacto-item {
    text-align: center;
    padding: 30px;
    background: var(--gray-100);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.contacto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(9, 0, 185, 0.1);
}

.contacto-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.contacto-titulo {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.contacto-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .intro-stats {
        gap: 25px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .card-title {
        font-size: 1.6rem;
    }
}