/* =============================================
   AFILIACIÓN - Requisitos + Formularios
   ============================================= */

/* =====================
   LAYOUT GENERAL
   ===================== */

.afil-section {
    padding: 40px 0 50px;
}

.afil-header {
    text-align: center;
    margin-bottom: 36px;
}

.afil-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f0faf2;
    border-radius: 50%;
    margin-bottom: 14px;
}

.afil-header-icon i {
    font-size: 28px;
    color: #0B5C21;
}

.afil-header h1 {
    font-family: 'Lato', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.afil-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb */
.afil-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
    font-family: 'Lato', sans-serif;
}

.afil-breadcrumb a {
    color: #0B5C21;
    text-decoration: none;
}

.afil-breadcrumb a:hover {
    text-decoration: underline;
}

.afil-breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

/* =====================
   TABS (Requisitos)
   ===================== */

.afil-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.afil-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.afil-tabs-nav li {
    flex: 1;
}

.afil-tabs-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.afil-tabs-nav button:hover {
    color: #0B5C21;
    background: #f8fdf9;
}

.afil-tabs-nav button.active {
    color: #0B5C21;
    border-bottom-color: #0B5C21;
}

.afil-tabs-nav button i {
    font-size: 16px;
}

/* Panel de contenido */
.afil-tab-panel {
    display: none;
    padding: 28px 0 0;
}

.afil-tab-panel.active {
    display: block;
}

/* Requisitos lista */
.afil-req-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    counter-reset: req;
}

.afil-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.afil-req-list li:hover {
    border-color: #c8e6cc;
}

.afil-req-list li::before {
    counter-increment: req;
    content: counter(req);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #0B5C21;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    margin-top: 1px;
}

/* Nota extra (hijos) */
.afil-req-extra {
    margin-top: 20px;
    padding: 18px 20px;
    background: #f0faf2;
    border-left: 4px solid #0B5C21;
    border-radius: 0 10px 10px 0;
}

.afil-req-extra-title {
    font-size: 14px;
    font-weight: 700;
    color: #0B5C21;
    margin: 0 0 10px 0;
}

.afil-req-extra ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.afil-req-extra ul li {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: none;
    margin: 0;
}

.afil-req-extra ul li::before {
    content: '\f067';
    font-family: FontAwesome;
    font-size: 10px;
    color: #0B5C21;
    width: auto;
    height: auto;
    min-width: auto;
    background: none;
    counter-increment: none;
}

/* Nota asterisco */
.afil-nota {
    margin-top: 24px;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.afil-nota i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Botón CTA */
.afil-cta {
    text-align: center;
    margin-top: 32px;
}

.afil-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #0B5C21;
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}

.afil-cta a:hover {
    background: #094a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 92, 33, 0.3);
    color: #fff;
}

/* =====================
   FORMULARIOS (Cards)
   ===================== */

.afil-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.afil-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.afil-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.afil-card-img {
    padding: 28px 28px 16px;
    background: #f8fdf9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afil-card-img img {
    width: 100px;
    height: auto;
    opacity: 0.85;
}

.afil-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.afil-card-title {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.afil-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.afil-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.afil-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0B5C21;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.afil-btn-download:hover {
    background: #094a1a;
    color: #fff;
}

.afil-btn-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.afil-btn-help:hover {
    background: #fef3c7;
}

.afil-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f0faf2;
    color: #0B5C21;
    border: 1px solid #c8e6cc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.afil-btn-link:hover {
    background: #e0f5e4;
    color: #094a1a;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 900px) {
    .afil-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .afil-header h1 {
        font-size: 24px;
    }

    .afil-tabs-nav button {
        font-size: 13px;
        padding: 12px 10px;
        gap: 6px;
    }

    .afil-tabs-nav button i {
        font-size: 14px;
    }

    .afil-req-list li {
        padding: 12px 14px;
        font-size: 13px;
        gap: 12px;
    }

    .afil-req-list li::before {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 11px;
    }
}

@media (max-width: 560px) {
    .afil-section {
        padding: 24px 0 36px;
    }

    .afil-header {
        margin-bottom: 24px;
    }

    .afil-header-icon {
        width: 50px;
        height: 50px;
    }

    .afil-header-icon i {
        font-size: 22px;
    }

    .afil-header h1 {
        font-size: 20px;
    }

    .afil-header p {
        font-size: 13px;
    }

    .afil-tabs-nav button {
        font-size: 12px;
        padding: 10px 6px;
        gap: 4px;
    }

    .afil-tabs-nav button i {
        display: none;
    }

    .afil-req-list li {
        padding: 10px 12px;
        font-size: 13px;
    }

    .afil-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .afil-card {
        flex-direction: row;
        text-align: left;
    }

    .afil-card-img {
        width: 100px;
        min-width: 100px;
        padding: 16px;
    }

    .afil-card-img img {
        width: 60px;
    }

    .afil-card-body {
        padding: 16px;
    }

    .afil-card-title {
        font-size: 15px;
    }

    .afil-card-desc {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .afil-btn-download {
        font-size: 13px;
        padding: 10px 14px;
    }

    .afil-cta a {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 12px 20px;
    }

    .afil-nota {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}
