/* --- VARIABLES Y BASE --- */
:root {
    /* Un negro con un toque azulado/grisáceo para el degradado */
    --bg-dark-top: #1a1a1a; 
    --bg-dark-bottom: #0a0a0a;
    --card-bg: #1e1e1e; /* Un gris muy oscuro para que resalten las letras blancas */
    --accent-orange: #ff7a30;
    --text-gray: #a0a0a0;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Degradado lineal sutil */
    background: linear-gradient(180deg, var(--bg-dark-top) 0%, var(--bg-dark-bottom) 100%);
    background-attachment: fixed; /* Mantiene el degradado fijo al hacer scroll */
    color: var(--white);
    padding-top: 80px;
    min-height: 100vh;
}

/* --- NAVBAR --- */
.navbar {
    background-color: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-brand span { 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: white; 
}

.nav-link {
    color: var(--text-gray) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover { color: var(--accent-orange) !important; }

/* --- SECCIONES Y TITULOS --- */
section { padding: 100px 0; }

.section-title {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ICONOS --- */
.card i, section i.main-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 122, 48, 0.1);
    color: var(--accent-orange) !important;
    border-radius: 12px;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.card:hover i {
    background: var(--accent-orange);
    color: #000 !important;
    transform: scale(1.1);
}

/* --- TARJETAS --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: 0.4s;
    color: var(--white); /* Forzamos que todo el texto sea blanco por defecto */
}

.card h3, .card h5 {
    color: var(--white);
    font-weight: 700;
}

.card p, .card .text-gray {
    color: #e0e0e0 !important; /* Un blanco roto para que sea legible pero no canse la vista */
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 122, 48, 0.15);
}

/* --- AULA VIRTUAL --- */
.aula-container {
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid rgba(255, 122, 48, 0.3);
    border-radius: 24px;
    overflow: hidden;
}

.aula-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10,10,10,0.7), rgba(10,10,10,0.95));
}

/* --- BOTONES --- */
.btn-primary {
    background: var(--accent-orange);
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    color: #000;
}

.btn-primary:hover {
    background: #ff955c;
    box-shadow: 0 0 20px rgba(255, 122, 48, 0.4);
    color: #000;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-gray);
}

.text-orange { color: var(--accent-orange) !important; }