:root {
    /* Colores de Marca */
    --color-azul-profundo: #4a47a3;
    --color-texto: #34495e;
    --color-acento: #e0419d;
    --color-fondo: #f4f6f8;
    --color-blanco: #ffffff;
    --color-gris-claro: #eef1f4;
    
    /* Fuentes */
    --font-titulos: 'Playfair Display', serif; /* Elegancia académica */
    --font-cuerpo: 'Lato', sans-serif;         /* Lectura clara */
}

/* Base Global */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-cuerpo); 
    background-color: var(--color-fondo); 
    color: var(--color-texto); 
    line-height: 1.7; 
    padding-top: 100px; /* AUMENTADO: Más espacio para el header más alto */
}

.container { 
    max-width: 1100px; margin: 0 auto; padding: 0 30px; 
}

/* Tipografía */
h1, h2, h3 { 
    font-family: var(--font-titulos); color: var(--color-azul-profundo); font-weight: 700; 
}

h1 { 
    font-size: 3rem; line-height: 1.2; margin-bottom: 20px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

h2 { 
    font-size: 2.5rem; text-align: center; margin-bottom: 50px; 
    position: relative; display: block; 
}

/* Línea decorativa bajo H2 */
h2::after { 
    content: ''; display: block; width: 60px; height: 4px; 
    background-color: var(--color-acento); margin: 15px auto 0; border-radius: 2px; 
}

h3 { font-size: 1.75rem; margin-bottom: 20px; }
p { margin-bottom: 15px; }
section { padding: 80px 0; }
hr { border: none; border-top: 1px solid var(--color-gris-claro); margin: 40px auto; max-width: 800px; }

/* --- BOTONES --- */
.btn { 
    display: inline-block; 
    background-image: linear-gradient(to right, var(--color-acento) 0%, #ff6bbd 100%);
    background-color: var(--color-acento);
    color: var(--color-blanco); 
    padding: 16px 32px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    font-family: var(--font-titulos); 
    border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(224, 65, 157, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
}
.btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(224, 65, 157, 0.6);
    background-image: linear-gradient(to right, #c23082 0%, var(--color-acento) 100%);
}

/* --- HEADER & NAV (CON LOGO GRANDE) --- */
.header { 
    background-color: var(--color-blanco); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    position: fixed; top: 0; left: 0; width: 100%; 
    height: 100px; /* AUMENTADO: De 80px a 100px para que quepa el logo */
    z-index: 1000; 
    display: flex; align-items: center;
}
.header .container { 
    display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; 
}

/* --- CAMBIO SOLICITADO: LOGO MÁS GRANDE --- */
img.logo { 
    height: auto; 
    max-height: 90px; /* CAMBIO: De 50px a 90px */
    width: auto; 
    max-width: 250px; 
    object-fit: contain; 
    display: block; 
    margin-right: 20px; 
    transition: transform 0.3s;
}
img.logo:hover { transform: scale(1.05); } /* Efecto zoom sutil en vez de rotación */

.nav ul { list-style: none; display: flex; gap: 20px; align-items: center; margin: 0; padding: 0; }
.nav ul li { padding: 0; margin: 0; }
.nav ul li a:not(.btn) { 
    color: var(--color-texto); text-decoration: none; font-weight: 700; transition: all 0.3s ease; padding-bottom: 5px; border-bottom: 2px solid transparent; 
}
.nav ul li a:hover:not(.btn) { color: var(--color-acento); border-bottom: 2px solid var(--color-acento); }

/* --- AULA VIRTUAL (VIDEOS.HTML) --- */
.classroom-container {
    display: grid; grid-template-columns: 350px 1fr; gap: 0; min-height: calc(100vh - 100px); margin-top: 0;
}
/* Sidebar */
.course-sidebar {
    background: white; border-right: 1px solid #e0e0e0; height: calc(100vh - 100px); overflow-y: auto; position: fixed; width: 350px; top: 100px; bottom: 0; z-index: 10;
}
.sidebar-header { padding: 20px; background: var(--color-azul-profundo); color: white; }
.progress-container { margin-top: 10px; }
.progress-bar-bg { background: rgba(255,255,255,0.2); height: 6px; border-radius: 3px; overflow: hidden; }
.progress-bar-fill { background: var(--color-acento); height: 100%; width: 0%; transition: width 0.5s ease; }
.progress-text { font-size: 0.8rem; margin-top: 5px; display: flex; justify-content: space-between; }

.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-item { border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; padding: 15px 20px; display: flex; align-items: flex-start; gap: 10px; }
.lesson-item:hover { background-color: #f9f9f9; }
.lesson-item.active { background-color: #eef1f4; border-left: 4px solid var(--color-acento); }
.lesson-item.completed .lesson-title { color: #888; text-decoration: line-through; }
.check-icon { width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.lesson-item.completed .check-icon { background-color: #28a745; border-color: #28a745; color: white; }
.lesson-title { font-size: 0.95rem; font-weight: 700; color: #333; margin-bottom: 4px; display: block; }
.lesson-meta { font-size: 0.8rem; color: #777; }

/* Video Area */
.course-content { margin-left: 350px; padding: 40px; max-width: 1000px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: black; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); margin-bottom: 30px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.lesson-header { margin-bottom: 20px; border-bottom: 1px solid #ddd; padding-bottom: 20px; }
.lesson-header h2 { margin-bottom: 10px; text-align: left; font-size: 2rem; }
.lesson-header h2::after { display: none; }

/* MODAL CLASES EN VIVO */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000;
    display: none; justify-content: center; align-items: center;
}
.modal-content {
    background: white; width: 90%; max-width: 800px;
    max-height: 80vh; overflow-y: auto;
    border-radius: 12px; padding: 30px;
    position: relative;
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #666; }

.live-class-card {
    display: flex; gap: 20px;
    border: 1px solid #eee; border-radius: 8px;
    padding: 20px; margin-bottom: 20px;
    align-items: center; transition: transform 0.2s;
}
.live-class-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.class-date { background: var(--color-fondo); padding: 15px; border-radius: 8px; text-align: center; min-width: 100px; }
.date-day { font-size: 1.5rem; font-weight: 800; color: var(--color-azul-profundo); display: block; }
.date-month { font-size: 0.9rem; text-transform: uppercase; color: #666; }
.class-info { flex-grow: 1; }
.badge-materia { background: #e0f2f1; color: #00695c; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; display: inline-block; margin-bottom: 5px; }
.class-actions { display: flex; flex-direction: column; gap: 10px; min-width: 160px; }
.btn-zoom { background-color: #2D8CFF; color: white; text-align: center; padding: 8px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 0.9rem; }
.btn-materials { background-color: #f1f3f4; color: #333; text-align: center; padding: 8px; border-radius: 5px; text-decoration: none; font-size: 0.9rem; border: 1px solid #ccc; }

/* --- LANDING PAGE (INDEX.HTML) --- */
#hero { 
    background: url('images/nina-hamaca.jpg') no-repeat center center; 
    background-size: cover; background-attachment: fixed; 
    color: var(--color-blanco); min-height: calc(90vh - 100px); 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; position: relative; padding: 30px; 
    margin-top: -100px; padding-top: 130px; 
}
#hero::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(135deg, rgba(74, 71, 163, 0.9) 0%, rgba(74, 71, 163, 0.7) 50%, rgba(224, 65, 157, 0.4) 100%); 
}
#hero * { position: relative; z-index: 10; }
#hero h1 { color: var(--color-blanco); max-width: 900px; }
#hero h3 { font-family: var(--font-cuerpo); font-weight: 400; max-width: 700px; font-size: 1.4rem; margin-bottom: 40px; }

.grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.card { 
    background: var(--color-blanco); padding: 35px 30px; border-radius: 16px; 
    box-shadow: 0 10px 30px -5px rgba(74, 71, 163, 0.08); border: 1px solid rgba(0,0,0,0.03); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border-left: none; border-top: 5px solid var(--color-azul-profundo); 
    display: flex; flex-direction: column; align-items: flex-start; height: 100%; 
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -10px rgba(74, 71, 163, 0.15); }
.card img { width: 100%; height: auto; max-height: 200px; object-fit: contain; border-radius: 8px; margin-bottom: 20px; }
.card h3 { margin-top: 0; color: var(--color-azul-profundo); font-size: 1.4rem; margin-bottom: 15px; }

/* Testimonios */
.testimonial-card { border-top-color: var(--color-acento); }
.testimonial-card p { font-style: italic; color: var(--color-texto); flex-grow: 1; }
.testimonial-header { display: flex; align-items: center; margin-bottom: 15px; }
.testimonial-avatar { width: 50px; height: 50px; min-width: 50px; background-color: #eef1f4; border-radius: 50%; margin-right: 15px; display: flex; justify-content: center; align-items: center; border: 1px solid #e0e0e0; }
.testimonial-avatar svg { width: 30px; height: 30px; fill: #a0aec0; }
.author { font-style: normal; font-weight: 700; text-align: left; display: block; color: var(--color-azul-profundo); }

/* Staff & Formularios */
#about img { max-width: 300px; height: auto; object-fit: cover; display: block; margin: 0 auto 40px; box-shadow: 0 15px 30px rgba(74, 71, 163, 0.2); }
.lead-form-content { max-width: 500px; margin: 0 auto; background: var(--color-blanco); padding: 30px; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.section-image { max-width: 100%; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: block; margin-left: auto; margin-right: auto; }

/* --- FIX IMAGEN FORMULARIO (Para que no se vea gigante) --- */
.lead-form-content img {
    max-height: 180px; /* Altura máxima controlada */
    width: 100%;
    object-fit: cover; /* Recorte elegante */
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-group input { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s; background-color: #fafafa; }
.form-group input:focus { outline: none; border-color: var(--color-acento); box-shadow: 0 0 0 3px rgba(224, 65, 157, 0.1); background-color: #fff; }
.message { padding: 15px; border-radius: 8px; margin-top: 20px; font-weight: 700; text-align: center; }
.message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer */
footer { background-color: var(--color-azul-profundo); color: var(--color-blanco); text-align: center; padding: 40px 0; border-top: 8px solid var(--color-acento); }
footer a { color: var(--color-blanco); text-decoration: underline; }

/* --- BOTÓN FLOTANTE DE SOPORTE (WHATSAPP) --- */
.support-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25D366; /* Verde WhatsApp */
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999; /* Siempre visible */
    transition: all 0.3s ease; text-decoration: none;
}
.support-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.support-btn svg { width: 35px; height: 35px; fill: white; }
.support-btn::after {
    content: '¿Necesitas Ayuda?';
    position: absolute; right: 70px;
    background: white; color: #333; padding: 5px 10px; border-radius: 5px;
    font-size: 0.8rem; font-weight: bold; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.support-btn:hover::after { opacity: 1; }

/* RESPONSIVE */
@media(max-width: 900px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    .header { height: auto; position: sticky; }
    .header .container { flex-direction: column; padding: 15px; height: auto; }
    body { padding-top: 0; }
    img.logo { 
        height: 50px; /* En móvil lo dejamos más chico para que no ocupe toda la pantalla */
        max-height: 60px; 
        margin-bottom: 10px; margin-right: 0; 
    }
    .nav ul { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .nav ul li a:not(.btn) { font-size: 0.8rem; }
    .grid-3-col { grid-template-columns: 1fr; gap: 20px; }
    #hero { background-attachment: scroll; }
    
    /* Ajuste Classroom en Móvil */
    .classroom-container { display: block; }
    .course-sidebar { position: relative; width: 100%; height: auto; top: 0; border-right: none; border-bottom: 1px solid #ddd; order: 2; }
    .course-content { margin-left: 0; padding: 20px; order: 1; }
}
