/* ============================================================
   TEKNIA ACADEMY — HOME estilo plataforma
   ============================================================ */

:root {
    --color-primary: #0a2540;
    --color-primary-light: #1e4a6b;
    --color-accent: #2c7be5;
    --color-accent-light: #64b5f6;
    --color-accent-soft: #e6f0fa;
    --color-text: #0a2540;
    --color-text-soft: #4a6b8a;
    --color-text-muted: #7e9bb3;
    --color-border: #e2eaf2;
    --color-border-soft: #d0e2f0;
    --color-bg: #f6f9fc;
    --color-bg-alt: #ffffff;
    --color-success: #1a7f37;
    --color-warning: #d97706;
    --color-warning-bg: #fff4e0;
    --color-star: #f5a623;

    --radius-sm: 0.6rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 20px 45px -15px rgba(10, 37, 64, 0.2);
    --shadow-hover: 0 30px 60px -15px rgba(10, 37, 64, 0.25);

    --transition: 0.25s ease;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-soft);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-search {
    flex: 1;
    max-width: 420px;
    display: flex;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    transition: all var(--transition);
}

.nav-search:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(44, 123, 229, 0.1);
}

.nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--color-text);
    font-family: inherit;
}

.nav-search input::placeholder { color: var(--color-text-muted); }

.nav-search button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.nav-search button:hover {
    background: var(--color-primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.btn-nav-ghost,
.btn-nav-primary {
    padding: 0.55rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-nav-ghost {
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-nav-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-nav-primary {
    background: linear-gradient(135deg,
                var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: 0 6px 18px -6px rgba(10, 37, 64, 0.4);
}

.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(10, 37, 64, 0.5);
}

@media (max-width: 900px) {
    .nav-links, .nav-search { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg,
        #0a2540 0%,
        #1e4a6b 60%,
        #265f86 100%);
    color: white;
    padding: 5rem 1.5rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.25), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -40%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(44, 123, 229, 0.2), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: rgba(100, 181, 246, 0.15);
    border: 1px solid rgba(100, 181, 246, 0.3);
    color: #a9d4ff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.hero-highlight {
    background: linear-gradient(135deg, #64b5f6, #a9d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #c8dcf0;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Buscador grande */
.hero-search {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    display: flex;
    background: white;
    border-radius: 2rem;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition);
}

.hero-search:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 55px -15px rgba(0, 0, 0, 0.5);
}

.hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--color-text);
    font-family: inherit;
    padding: 0.8rem 0;
}

.hero-search input::placeholder { color: var(--color-text-muted); }

.hero-search button {
    background: linear-gradient(135deg,
                var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.hero-search button:hover {
    transform: scale(1.03);
}

/* Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    font-size: 0.88rem;
}

.tag-label {
    color: #a9d4ff;
    font-weight: 600;
}

.hero-tag {
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 2rem;
    transition: all var(--transition);
    font-size: 0.82rem;
    font-weight: 500;
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #a9d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 700px) {
    .hero { padding: 3rem 1rem 4rem; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-search { padding: 0.3rem 0.3rem 0.3rem 1rem; }
    .hero-search button { padding: 0.75rem 1.2rem; font-size: 0.88rem; }
    .hero-stats { gap: 1.2rem; }
    .stat-value { font-size: 1.4rem; }
    .stat-divider { display: none; }
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.seccion {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.seccion-header {
    text-align: center;
    margin-bottom: 3rem;
}

.seccion-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.seccion-header p {
    font-size: 1.05rem;
    color: var(--color-text-soft);
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.categorias { padding-top: 4rem; padding-bottom: 2rem; }

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.categoria-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.categoria-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.categoria-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.categoria-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.categoria-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================================
   FILTROS
   ============================================================ */
.filtros {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filtro {
    padding: 0.55rem 1.3rem;
    background: white;
    border: 1.5px solid var(--color-border);
    border-radius: 2rem;
    color: var(--color-text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filtro:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filtro.activo {
    background: linear-gradient(135deg,
                var(--color-primary), var(--color-primary-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(10, 37, 64, 0.4);
}

/* ============================================================
   GRID DE CURSOS
   ============================================================ */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.6rem;
}

.curso-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease-out backwards;
}

.curso-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border-soft);
}

/* Thumb */
.curso-thumb {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #e6f0fa 0%, #d0e2f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.curso-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%,
                rgba(44, 123, 229, 0.15), transparent 60%);
}

.curso-thumb-icon {
    font-size: 3.5rem;
    z-index: 1;
    filter: drop-shadow(0 8px 20px rgba(10, 37, 64, 0.2));
}

.curso-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 2;
}

.badge-gratis {
    top: 1rem;
    right: auto;
    left: 1rem;
    background: var(--color-success);
    color: white;
}

.nivel-basico { background: #e8f5ec; color: #1a7f37; }
.nivel-intermedio { background: #fff4e0; color: #d97706; }
.nivel-avanzado { background: #fdecea; color: #d93025; }
.nivel-inversion { background: #e6f0fa; color: #2c7be5; }

/* Body */
.curso-body {
    padding: 1.4rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.curso-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    min-height: 2.7rem;
}

.curso-descripcion {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    line-height: 1.5;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Instructor */
.curso-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.instructor-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg,
                var(--color-accent), var(--color-accent-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Rating */
.curso-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
}

.rating-stars {
    color: var(--color-star);
    letter-spacing: -1px;
    font-size: 0.9rem;
}

.rating-valor {
    font-weight: 700;
    color: var(--color-text);
}

.rating-alumnos {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Meta */
.curso-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Footer del curso */
.curso-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.curso-precio {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.precio-original {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-right: 0.3rem;
}

.precio-valor {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.precio-moneda {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.4px;
}

.precio-gratis {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-success);
    letter-spacing: 0.5px;
}

.btn-registrar {
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg,
                var(--color-primary), var(--color-primary-light));
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(10, 37, 64, 0.4);
}

.btn-registrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(10, 37, 64, 0.5);
    background: linear-gradient(135deg, #123a5e, #265f86);
}

/* Cupos */
.cupos-alerta {
    display: block;
    margin-top: 0.9rem;
    padding: 0.5rem 0.8rem;
    background: var(--color-warning-bg);
    color: var(--color-warning);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid #ffe0b2;
}

/* Ver todos */
.ver-todos-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-ver-todos {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: white;
    border: 1.5px solid var(--color-border);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 2rem;
    transition: all var(--transition);
}

.btn-ver-todos:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   INSTRUCTORES
   ============================================================ */
#instructores {
    background: var(--color-bg-alt);
    max-width: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

#instructores > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.instructores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.instructor-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.instructor-card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg,
                var(--color-primary), var(--color-primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 12px 24px -8px rgba(10, 37, 64, 0.4);
}

.instructor-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.instructor-rol {
    font-size: 0.82rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.instructor-bio {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.instructor-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonio-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.8rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonio-card::before {
    content: """;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--color-accent-soft);
    font-family: Georgia, serif;
    opacity: 0.7;
}

.testimonio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonio-stars {
    color: var(--color-star);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.testimonio-texto {
    font-size: 0.92rem;
    color: var(--color-text-soft);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.autor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg,
                var(--color-accent), var(--color-accent-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonio-autor strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
}

.testimonio-autor span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
    padding: 4rem 1.5rem;
}

.cta-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg,
                var(--color-primary) 0%,
                var(--color-primary-light) 60%,
                #265f86 100%);
    border-radius: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(10, 37, 64, 0.4);
}

.cta-inner::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.2), transparent 70%);
    border-radius: 50%;
}

.cta-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.cta-inner p {
    font-size: 1.05rem;
    color: #c8dcf0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.btn-cta-primary,
.btn-cta-ghost {
    padding: 0.95rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-cta-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.4);
}

.btn-cta-ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-note {
    font-size: 0.82rem;
    color: #a9d4ff;
    position: relative;
    z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0a1c30;
    color: #8fa9c2;
    padding: 3.5rem 1.5rem 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-footer { margin-bottom: 1rem; }
.logo-footer .logo-text { color: #ffffff; }
.logo-footer .logo-text span { color: var(--color-accent-light); }

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #8fa9c2;
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
    font-size: 0.85rem;
    color: #8fa9c2;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-accent-light); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.78rem;
    color: #5c7893;
}

@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

.curso-card:nth-child(1) { animation-delay: 0.04s; }
.curso-card:nth-child(2) { animation-delay: 0.08s; }
.curso-card:nth-child(3) { animation-delay: 0.12s; }
.curso-card:nth-child(4) { animation-delay: 0.16s; }
.curso-card:nth-child(5) { animation-delay: 0.20s; }
.curso-card:nth-child(6) { animation-delay: 0.24s; }
.curso-card:nth-child(7) { animation-delay: 0.28s; }
.curso-card:nth-child(8) { animation-delay: 0.32s; }

/* ============================================================
   RESPONSIVE GLOBAL
   ============================================================ */
@media (max-width: 700px) {
    .seccion { padding: 2.5rem 1rem; }
    .seccion-header h2 { font-size: 1.5rem; }
    .seccion-header p { font-size: 0.95rem; }
    .cursos-grid { grid-template-columns: 1fr; }
    .cta-inner { padding: 2.5rem 1.5rem; }
    .cta-inner h2 { font-size: 1.5rem; }
    .cta-inner p { font-size: 0.95rem; }
}