/* --- VARIABLES DE COLOR --- */
:root {
    --primary-color: #FF6B6B; /* Coral Vibrante */
    --secondary-color: #4ECDC4; /* Turquesa Fresco */
    --accent-color: #FFE66D; /* Amarillo Soleado */
    --dark-color: #2C3E50; /* Azul Marino Oscuro (para texto y elementos) */
    --light-color: #F7FFF7; /* Blanco Hueso (para fondos claros) */
    --text-color: #333;
    --font-primary: 'Dancing Script', sans-serif;
    --font-headings: 'Roboto', roboto; /* Para títulos llamativos */
}

/* --- ESTILOS GENERALES --- */
body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* --- BARRA SUPERIOR Y BOTONES DE ACCESO --- */
.top-bar {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.access-buttons .access-button {
    color: var(--light-color);
    text-decoration: none;
    padding: 8px 18px;
    margin-left: 12px;
    border-radius: 20px; /* Botones más redondeados */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.9em;
}


.access-buttons .access-button:hover {
    transform: translateY(-2px);
}

.teacher-button {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.teacher-button:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    color: var(--light-color);
}

.student-button {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.student-button:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
    color: var(--light-color);
}

.recovery-button {
    margin-top:20px;
    display:inline-block;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.recovery-button:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
    color: var(--dark-color);
}


/* --- HEADER --- */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
    padding-top: 100px; /* Espacio para la top-bar fija */
    padding-bottom: 40px;
    text-align: center;
    position: relative;
}

header #logo {
    width: 100px; /* Ajusta según tu logo */
    margin-bottom: 15px;
    border-radius: 50%; /* Si tu logo es circular o quieres darle esa forma */
    background-color: var(--light-color); /* Fondo si el logo es transparente */
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.brand-title {
    font-family: var(--font-headings);
    font-size: 3.5em; /* Más grande y llamativo */
    margin: 0 0 10px 0;
    color: var(--light-color); /* Asegura contraste */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 0;
}

/* --- HERO SECTION --- */
#hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('background_index.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: 120px 0;
}

#hero h2 {
    font-family: var(--font-headings);
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

#hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-3px) scale(1.03);
}

.cta-button i {
    margin-left: 8px;
}

/* --- TÍTULOS DE SECCIÓN --- */
.section-title {
    font-family: var(--font-headings);
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after { /* Pequeño detalle decorativo */
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- SECCIÓN ABOUT --- */
#about {
    padding: 60px 0;
    background-color: #ffffff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-image {
    flex: 1;
    max-width: 450px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- SECCIÓN WHY-FOLLOW --- */
#why-follow {
    padding: 60px 0;
    background-color: var(--secondary-color); /* Fondo con color secundario */
    color: var(--light-color);
}

#why-follow .section-title {
    color: var(--light-color); /* Ajustar color del título para contraste */
}
#why-follow .section-title::after {
    background-color: var(--accent-color); /* Detalle con color de acento */
}

#why-follow ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Layout de rejilla */
    gap: 30px;
}

#why-follow li {
    background-color: rgba(255,255,255,0.1); /* Ligero fondo para cada item */
    padding: 25px;
    border-radius: 8px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#why-follow li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.icon-why {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-right: 15px;
    width: 40px; /* Para alinear el texto */
    text-align: center;
}

/* --- SECCIONES DE LOGIN (MODAL SIMULADO) --- */
.login-section {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--light-color);
    border-top: 5px solid var(--primary-color);
}

.login-section .section-title {
    margin-bottom: 30px;
}

.login-container {
    max-width: 450px;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px; /* Separación del título */
}

.login-section form {
    display: flex;
    flex-direction: column;
}

.login-section input[type="email"],
.login-section input[type="text"],
.login-section input[type="password"] {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 25px; /* Campos más redondeados */
    font-size: 1em;
    background-color: #f9f9f9;
}
.login-section input[type="email"]:focus,
.login-section input[type="password"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--secondary-color-translucent, rgba(78, 205, 196, 0.3));
}


.login-section .cta-button {
    width: 100%;
    margin-top: 10px;
}

.login-section .close-login {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
    margin-top: 20px;
    display: inline-block;
}
.login-section .close-login:hover {
    text-decoration: underline;
    color: darken(var(--primary-color), 10%);
}

/* --- CTA BOTTOM --- */
#cta-bottom {
    padding: 70px 0;
    background: linear-gradient(to right, #6A11CB 0%, #2575FC 100%); /* Nuevo gradiente */
    color: var(--light-color);
    text-align: center;
}

#cta-bottom .section-title {
    color: var(--light-color);
}
#cta-bottom .section-title::after {
    background-color: var(--accent-color);
}

#cta-bottom p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
footer {
    background: var(--dark-color);
    color: #bdc3c7; /* Color de texto más suave para el footer */
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--light-color);
    font-size: 1.8em;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media(max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        text-align: center; /* Centrar texto cuando se apila */
        margin-bottom: 30px;
    }
}

@media(max-width: 768px) {
    .container {
        width: 90%;
    }
    .top-bar-container {
        justify-content: center;
    }
    .access-buttons .access-button {
        padding: 7px 15px;
        font-size: 0.85em;
    }
    header {
        padding-top: 120px; /* Ajustar si la top-bar cambia mucho de altura */
    }
    .brand-title {
        font-size: 2.8em;
    }
    .subtitle {
        font-size: 1.2em;
    }
    #hero {
        padding: 80px 0;
    }
    #hero h2 {
        font-size: 2.5em;
    }
    .section-title {
        font-size: 2.4em;
    }
    #why-follow ul {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
    .login-container {
        padding: 25px 20px;
    }
}

@media(max-width: 480px) {
    .brand-title {
        font-size: 2.2em;
    }
    .subtitle {
        font-size: 1.1em;
    }
    #hero h2 {
        font-size: 2em;
    }
    #hero p {
        font-size: 1.1em;
    }
    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .section-title {
        font-size: 2em;
    }
    #why-follow li {
        padding: 20px;
        font-size: 1em;
    }
    .icon-why {
        font-size: 1.6em;
        margin-right: 10px;
    }
    .social-links a {
        font-size: 1.6em;
        margin: 0 10px;
    }
}