/* ==========================================
   1. VARIABLES Y RESET GENERAL (TEMA OSCURO)
   ================================---------- */
:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --secondary: #0f172a;
    --accent: #38bdf8;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --transition: all 0.25s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   2. HEADER & NAVBAR UNIFICADO
   ================================---------- */
.navbar-mini {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-links .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-links .nav-link:hover, 
.navbar-links .nav-link.active {
    color: var(--text-main);
}

.btn-login-mini {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    transition: var(--transition);
}

.btn-login-mini:hover {
    background: var(--primary-dark);
}

/* ==========================================
   3. BOTÓN HAMBURGUESA Y OVERLAY MÓVIL
   ================================---------- */
.menu-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
    background: #334155;
    border-color: var(--accent);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* ==========================================
   4. HERO SECTION (INDEX)
   ================================---------- */
.hero-section {
    padding: 4rem 0 6rem 0;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    background: rgba(234, 88, 12, 0.15);
    color: #fb923c;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
}

.btn-hero-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: #334155;
    border-color: var(--accent);
}

/* Tarjeta Curso Estrella (Hero) */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.curso-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cupos-badge {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.precio-box {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.precio-actual {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
}

.precio-anterior {
    color: #64748b;
    text-decoration: line-through;
    font-size: 1.1rem;
}

.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.hero-card-list li i {
    color: var(--accent);
    margin-right: 8px;
}

.btn-card-action {
    display: block;
    background: var(--accent);
    color: var(--secondary);
    text-align: center;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.3);
    transition: var(--transition);
}

.btn-card-action:hover {
    opacity: 0.9;
}

/* ==========================================
   5. SECCIÓN CARACTERÍSTICAS
   ================================---------- */
.features-section {
    background: #111827;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-box {
    background: #1f2937;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.feature-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================
   6. PLAN DE ESTUDIOS / TEMARIO
   ================================---------- */
.programa-section {
    padding: 5rem 0;
}

.programa-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-subtitle {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin: 0.5rem 0 1rem 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.programa-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.programa-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.programa-item:hover {
    border-color: var(--accent);
}

.programa-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.programa-num {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.programa-text {
    font-weight: 600;
    color: white;
    font-size: 1.05rem;
}

/* ==========================================
   7. FORMULARIO DE INSCRIPCIÓN / RESERVA
   ================================---------- */
.inscripcion-section {
    padding: 5rem 0;
    background: #0b1120;
}

.inscripcion-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.inscripcion-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-field {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.95rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* ==========================================
   8. FOOTER UNIFICADO
   ================================---------- */
.footer-main {
    background: #090d16;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ==========================================
   9. RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ================================---------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }
    .navbar-links.active {
        right: 0;
    }
    .navbar-links .nav-link,
    .navbar-links .btn-login-mini {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
    }
    .navbar-links .btn-login-mini {
        text-align: center;
        margin-top: 0.5rem;
        border-bottom: none;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 992px) {
    #menu-button {
        display: block !important;
        cursor: pointer;
        z-index: 999999;
        position: relative;
    }
    .slicknav_menu {
        display: block !important;
        position: relative;
        z-index: 99998;
    }
    .slicknav_nav {
        display: none; /* Se despliega al hacer clic mediante JS */
        background: #0f172a;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }
    .slicknav_nav li {
        list-style: none;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .slicknav_nav li a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
    }
}