* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
}
.logo-text p {
    font-size: 0.8rem;
    opacity: 0.9;
}
.lang-selector {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 30px;
    align-items: center;
}
.lang-selector a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0 4px;
    transition: color 0.2s;
}
.lang-selector a.active {
    color: #ffd700;
}
.lang-selector span {
    color: rgba(255,255,255,0.5);
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: #1e3c72;
    font-size: 1.2rem;
    padding: 12px 4px;
    cursor: pointer;
    margin-left: auto;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
    width: 100%;
}
.nav-menu li {
    display: flex;
}
.nav-menu a {
    text-decoration: none;
    color: #1e3c72;
    font-weight: 500;
    padding: 12px 0;
    display: inline-block;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: #ffd700;
    color: #2a5298;
}

/* ── Main content ────────────────────────────────────────────── */
main {
    min-height: 70vh;
}
/* .container sets padding: 0 20px — override for main to add vertical spacing */
main.container {
    padding: 30px 20px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&h=500&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 40px;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ffd700;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    margin: 4px;
}
.btn-outline {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
}
.btn:hover {
    background: #ffc800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-outline:hover {
    background: rgba(255,215,0,0.15);
}

/* ── Features grid (index) ───────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-card {
    text-align: center;
    padding: 24px 16px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.feature-icon {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 14px;
    display: block;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e3c72;
}

/* ── Content sections ────────────────────────────────────────── */
.content-section {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 36px 32px;
    margin-bottom: 30px;
}
.section-title {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 16px;
    font-weight: 700;
}
.section-desc {
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    line-height: 1.7;
}

/* ── Steps grid (afiliacion) ─────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.step-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #e5e9f0;
    position: relative;
}
.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #1e3c72;
    font-weight: 900;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon {
    font-size: 2rem;
    color: #2a5298;
    margin: 16px 0 12px;
    display: block;
}
.step-card h4 {
    font-size: 1rem;
    color: #1e3c72;
    margin-bottom: 8px;
    font-weight: 700;
}
.step-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

/* ── Video placeholder ───────────────────────────────────────── */
.video-placeholder {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 14px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    cursor: pointer;
}

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
    text-align: center;
}
.cta-section h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 10px;
    font-weight: 700;
}
.cta-section p {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ── Contact grid (contacto) ─────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8f9fc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e9f0;
}
.contact-icon {
    font-size: 1.5rem;
    color: #2a5298;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}
.contact-value {
    display: block;
    font-size: 0.95rem;
    color: #1e3c72;
    font-weight: 500;
    text-decoration: none;
}
a.contact-value:hover {
    text-decoration: underline;
}

/* ── Social buttons ──────────────────────────────────────────── */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}
.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e3c72;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 28px 0;
    margin-top: 50px;
}
.footer-content p {
    margin-bottom: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.footer-content p:last-child {
    margin-bottom: 0;
}
.footer-contact a {
    color: #ffd700;
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}
.footer-duns {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-duns-badges {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

/* ── DB note (legacy) ────────────────────────────────────────── */
.db-note {
    background: #e7f3ff;
    border-left: 4px solid #1e3c72;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    border-radius: 0 10px 10px 0;
}
.db-note i {
    color: #1e3c72;
    margin-right: 10px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .lang-selector {
        display: none;
    }
    .nav-hamburger {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        padding-bottom: 8px;
        border-top: 1px solid #f0f2f5;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        padding: 12px 4px;
        border-bottom: 1px solid #f5f5f5;
        border-left: none;
        border-right: none;
        width: 100%;
    }
    .hero h2 {
        font-size: 1.7rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .content-section {
        padding: 24px 16px;
    }
    .logo-text h1 {
        font-size: 1.4rem;
    }
}
@media (max-width: 768px) {
    .header-content {
        gap: 10px;
    }
}
