:root {
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --accent-color: #ecf0f1;
    --text-color: #2c3e50;
    --highlight: #e67e22;
    --soft: #f4f7f6;
    --ink: #0f172a;
    --white: #ffffff;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    background: var(--soft);
    color: var(--text-color);
}

a {
    color: inherit;
}

/* Contenedor general */
.container {
    width: min(1080px, 90%);
    margin: 0 auto;
}

/* Header principal */
.hero-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.header-glow {
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.10), transparent 55%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

/* Navegación */
.topnav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    text-decoration: none;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.3px;
}

.brand span {
    color: #ffd9a3;
}

.nav-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-actions a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    font-size: 0.92rem;
    transition: 0.2s ease;
}

.nav-actions a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

/* Hero */
.hero {
    padding: 4rem 0 4.5rem;
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.tag.light {
    background: rgba(41, 128, 185, 0.12);
    color: var(--primary-color);
    border-color: rgba(41, 128, 185, 0.18);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.1;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    font-size: 1.08rem;
    opacity: 0.96;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 11px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--highlight);
    color: white;
}

.btn.secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.hero-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.hero-card ul {
    margin: 0;
    padding-left: 20px;
}

.hero-card li {
    margin: 0.45rem 0;
}

/* Secciones */
.section {
    margin: 2rem auto;
    background: var(--white);
    padding: 2.6rem;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.section-title h2,
.learning-box h2 {
    color: var(--primary-color);
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.section-title p,
.learning-box p {
    color: var(--muted);
    margin: 0;
}

/* Tarjetas de clases */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.class-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: var(--accent-color);
    color: var(--text-color);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-line {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--highlight), rgba(230, 126, 34, 0.15));
}

.class-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.class-number {
    display: inline-block;
    background: rgba(41, 128, 185, 0.12);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.88rem;
}

.class-status {
    display: inline-block;
    background: rgba(30, 132, 73, 0.12);
    color: #1e8449;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
}

.class-card h3 {
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: 1.35rem;
}

.class-card p {
    margin: 0 0 18px;
}

.class-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.class-tags span {
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(41, 128, 185, 0.14);
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
}

.card-action {
    color: var(--highlight);
    font-weight: 900;
}

/* Ruta sugerida */
.learning-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    align-items: center;
    background: linear-gradient(180deg, #fbfcfe, #f7fbff);
    border: 1px solid rgba(41, 128, 185, 0.16);
    border-radius: 14px;
    padding: 28px;
}

.steps {
    display: grid;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.step strong {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: grid;
    place-items: center;
}

.step span {
    font-weight: 900;
    color: var(--text-color);
}

/* Información */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.info-card {
    background: var(--accent-color);
    border-radius: 14px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin: 0 0 8px;
    color: var(--secondary-color);
}

.info-card p {
    margin: 0;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #cbd5e1;
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
}

/* Responsive */
@media (max-width: 820px) {
    .topnav {
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
        text-align: center;
    }

    .nav-actions {
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 0 3.5rem;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section {
        padding: 1.6rem;
    }

    .learning-box {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .class-card {
        padding: 22px;
    }
}