/* ============================================
   AFILIADOS Landing Page — prefix .afl-*
   Color scheme: emerald green (#059669) + navy (#0f172a)
   ============================================ */

.afl-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: 'Open Sans', sans-serif;
}

/* HERO */
.afl-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 5rem 2rem 0;
    text-align: center;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
}
.afl-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.afl-hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.afl-hero p strong {
    color: #fff;
    background: rgba(5, 150, 105, 0.35);
    padding: 0.1rem 0.45rem;
    border-radius: 0.25rem;
}
.afl-hero-img {
    display: block;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    border-radius: 1rem 1rem 0 0;
}

/* SECTION TITLES + ALTERNATING BACKGROUNDS */
.afl-section {
    padding: 3.5rem 0;
}
.afl-section--alt {
    background: #f0fdf4;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.afl-section--dark {
    background: #0f172a;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.afl-section--dark h2 {
    color: #fff;
}
.afl-section--dark h2 span {
    color: #34d399;
}
.afl-section h2 {
    font-size: 2.1rem;
    color: #0f172a;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}
.afl-section h2 span {
    color: #059669;
}
.afl-intro {
    text-align: center;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* HOW IT WORKS — 3 STEPS */
.afl-steps {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.afl-step {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 2px solid #bbf7d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.afl-step-num {
    display: inline-block;
    width: 52px;
    height: 52px;
    line-height: 52px;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.afl-step h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 0.6rem;
}
.afl-step p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}
.afl-step code {
    background: #f0fdf4;
    color: #059669;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

/* WHY APRENDER21 / STATS */
.afl-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}
.afl-stat {
    text-align: center;
    padding: 1.5rem 2rem;
    min-width: 150px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.afl-stat strong {
    display: block;
    font-size: 2.4rem;
    color: #059669;
    font-weight: 800;
}
.afl-stat span {
    font-size: 1rem;
    color: #475569;
    font-weight: 500;
}
.afl-section--alt .afl-subtitle {
    text-align: center;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* COMMISSIONS TABLE */
.afl-commissions {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    max-width: 700px;
    font-size: 1.05rem;
}
.afl-commissions th {
    background: #0f172a;
    color: #fff;
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
}
.afl-commissions td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.05rem;
}
.afl-commissions tr:nth-child(even) {
    background: rgba(255,255,255,0.5);
}
.afl-commissions .afl-highlight {
    background: rgba(5, 150, 105, 0.08);
    font-weight: 700;
    color: #059669;
    font-size: 1.15rem;
}

/* COMMISSION DETAILS (4 cards) */
.afl-commission-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem auto 0;
    max-width: 700px;
}
.afl-comm-detail {
    background: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #059669;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.afl-comm-detail strong {
    display: block;
    font-size: 0.9rem;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}
.afl-comm-detail span {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 600;
}

/* TERMS TABLE */
.afl-terms {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}
.afl-terms td {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.6;
    vertical-align: top;
}
.afl-terms tr:last-child td {
    border-bottom: none;
}
.afl-terms-label {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    width: 180px;
}
.afl-terms code {
    background: #f0fdf4;
    color: #059669;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.95rem;
}

/* CATALOG — CURSOS MÁS VENDIDOS */
.afl-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.afl-catalog-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.8rem 1.5rem 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.afl-catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #059669;
}
.afl-catalog-badge {
    display: inline-block;
    background: #059669;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.afl-catalog-badge--mod {
    background: #1e3a5f;
}
.afl-catalog-badge--semi {
    background: #7c3aed;
}
.afl-catalog-card h4 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.afl-catalog-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.afl-catalog-note {
    text-align: center;
    color: #475569;
    font-size: 1.05rem;
    margin-top: 1rem;
}

/* MATERIALS GRID */
.afl-materials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.afl-material {
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.afl-material-icon {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}
.afl-material h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.afl-material p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}

/* IDEAL FOR */
.afl-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.afl-profile {
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.afl-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.afl-profile-icon {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
}
.afl-profile h4 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.afl-profile p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}

/* FORM */
.afl-form-section {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    border: 2px solid #059669;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
}
.afl-form-section h2 {
    margin-bottom: 0.5rem;
}
.afl-form-section p.afl-form-sub {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.afl-form label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
    margin-top: 1.2rem;
    font-size: 1.05rem;
}
.afl-form label small {
    font-weight: 400;
    color: #64748b;
}
.afl-form input[type="text"],
.afl-form input[type="email"],
.afl-form input[type="url"],
.afl-form textarea,
.afl-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1.05rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.afl-form textarea {
    min-height: 90px;
    resize: vertical;
}
.afl-form input:focus,
.afl-form textarea:focus,
.afl-form select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.afl-btn {
    display: block;
    width: 100%;
    padding: 1.1rem;
    margin-top: 1.8rem;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.afl-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}
.afl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success/Error messages */
.afl-msg {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
    font-size: 1.05rem;
}
.afl-msg-ok {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
}
.afl-msg-err {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* FAQ */
.afl-faq {
    max-width: 700px;
    margin: 0 auto 3rem;
}
.afl-faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.afl-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 0;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    font-size: 1.1rem;
}
.afl-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: #059669;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.afl-faq-item.active .afl-faq-q::after {
    content: '-';
}
.afl-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}
.afl-faq-item.active .afl-faq-a {
    max-height: 400px;
    padding-bottom: 1.2rem;
}
.afl-faq-a code {
    background: #f0fdf4;
    color: #059669;
    padding: 0.1rem 0.35rem;
    border-radius: 0.2rem;
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .afl-hero { padding: 4rem 1.5rem 0; }
    .afl-hero h1 { font-size: 1.8rem; }
    .afl-hero p { font-size: 1.05rem; }
    .afl-steps { flex-direction: column; align-items: center; }
    .afl-step { max-width: 100%; }
    .afl-commissions { font-size: 0.95rem; }
    .afl-commissions th, .afl-commissions td { padding: 0.75rem 0.5rem; font-size: 0.95rem; }
    .afl-terms-label { white-space: normal; width: auto; }
    .afl-terms td { display: block; padding: 0.5rem 1rem; }
    .afl-terms tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid #e2e8f0; }
    .afl-terms td:first-child { padding-bottom: 0; }
    .afl-commission-details { grid-template-columns: 1fr 1fr; }
    .afl-catalog { grid-template-columns: 1fr; }
    .afl-section--alt, .afl-section--dark {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .afl-form-section { padding: 2rem 1.5rem; }
    .afl-container { padding: 0 1.5rem; }
}
