/* =========================================
   ESTILOS GENERALES (BASE)
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Arial', sans-serif;
    background-color: #0f0f0f;
    color: #333;
    overflow-x: hidden;
}

#video-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.6;
}

#fondo {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   HEADER (Consistente con Contactos)
   ========================================= */
#header {
    background: #000;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.4); 
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

#logo { height: 60px; width: auto; display: block; }

.breadcrumb {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Share Tech Mono', monospace;
    color: #fff; font-size: 18px; text-transform: uppercase;
}

.home-link { display: inline-block; transition: none; }

.home-icon {
    width: 34px;
    filter: drop-shadow(0 0 5px #a020f0);
    transition: transform 0.3s;
}
.home-link:hover .home-icon { transform: scale(1.2) rotate(-10deg); }

.separator { color: #aaa; font-size: 20px; }
.current-page { 
    color: #a020f0; 
    font-weight: bold; 
    border-bottom: 2px solid #a020f0; 
    text-shadow: 0 0 10px #a020f0;
}

/* =========================================
   LAYOUT DE CLASES (GRID)
   ========================================= */
#section {
    background: rgba(10, 10, 10, 0.85);
    border-radius: 20px;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(160, 32, 240, 0.2);
    margin-bottom: 50px;
}

.clases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas: Img | Texto */
    gap: 50px;
    align-items: center;
}

/* --- COLUMNA IZQUIERDA (IMAGEN) --- */
.img-frame {
    position: relative;
    border-radius: 20px;
    padding: 10px;
    border: 2px solid #a020f0;
    box-shadow: 0 0 30px rgba(160, 32, 240, 0.3);
    background: rgba(255,255,255,0.05);
    transform: rotate(-2deg); /* Un pequeño giro para estilo */
    transition: transform 0.3s ease;
}

.img-frame:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: #00c6ff;
    box-shadow: 0 0 40px rgba(0, 198, 255, 0.4);
}

.profe-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

/* --- COLUMNA DERECHA (TEXTO) --- */
.clases-right {
    text-align: left;
    color: #fff;
}

.clases-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.highlight-time {
    display: block;
    color: #00c6ff; /* Cyan neón */
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(0, 198, 255, 0.6);
}

.clases-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 40px;
    max-width: 90%;
}

/* --- CRONÓMETRO --- */
.countdown-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #333;
    display: inline-block;
    text-align: center;
    margin-bottom: 30px;
}

.countdown-label {
    font-family: 'Share Tech Mono', monospace;
    color: #a020f0;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

#countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.time-box {
    background: linear-gradient(145deg, #1a1a1a, #222);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Efecto de luz superior en las cajas */
.time-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: #00c6ff;
    box-shadow: 0 0 10px #00c6ff;
}

.time-box span {
    display: block;
    font-family: 'Share Tech Mono', monospace;
}

.time-box span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.time-box .label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
    text-transform: uppercase;
}

/* BOTÓN INSCRIBIRME */
.btn-inscribirme {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #a020f0, #ff008c);
    color: #fff;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(160, 32, 240, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-inscribirme:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(160, 32, 240, 0.6);
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
    text-align: center;
    padding: 30px;
    color: #fff;
    font-size: 14px;
    background: #000;
    margin-top: 50px;
    border-top: 2px solid #333;
}

/* =========================================
   RESPONSIVE (CELULAR)
   ========================================= */
@media (max-width: 900px) {
    .clases-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
    }

    /* Invertimos el orden en móvil: Texto primero, Imagen abajo (o al revés) */
    .clases-left { order: 2; margin-top: 30px; }
    .clases-right { order: 1; text-align: center; }

    .clases-title { font-size: 2.2rem; }
    .highlight-time { font-size: 2.5rem; }
    .clases-desc { margin: 0 auto 30px auto; }
    
    /* Cronómetro más pequeño en móvil */
    .time-box { min-width: 60px; padding: 10px; }
    .time-box span:first-child { font-size: 1.8rem; }
    
    #header { flex-direction: column; text-align: center; }
}