:root {
    /* --- VARIABLES DE COLOR (Definición Global) --- */
    --dark-purple: #2D1B4C;
    --medium-purple: #4A2E80;
    --light-purple: #BE5CFF; /* Color de acento/botones */
    --neon-purple: #BE5CFF; /* Alias */
    --dark-bg: #1A0A33; /* Fondo muy oscuro */
    --card-bg: #4A2E80;
    --text-white: #FFFFFF;
    --text-light-grey: #D0D0D0;
    --text-grey: #D0D0D0;
    --input-bg: #FFFFFF;
    --input-placeholder: #999999;
    --sidebar-bg: #000000;
    --light-pink: #FF5C8D; /* Rosa de los botones de cursos/perfil */
}

/* ================================================= */
/* 1. ESTILOS BASE Y ESTRUCTURA GENERAL (Landing/Sticky Footer) */
/* ================================================= */

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    /* Aplicado al body para el fondo general */
    background: linear-gradient(135deg, #2D1B4C, var(--dark-bg));
    color: var(--text-white);
    flex-direction: column;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

main {
    flex-grow: 1;
    padding-top: 20px;
    padding-bottom: 90px;
}

.page-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CONTENEDOR DE LANDING (Registro/Acceso) --- */
.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-height: 85vh;
}

.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    min-height: 85vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    margin: auto;
}

/* ================================================= */
/* 2. ESTILOS DE LANDING (Izquierda: Título y Lema) */
/* ================================================= */

.left-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    background: var(--dark-purple);
    position: relative;
    z-index: 1;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.logo {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    height: auto;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 600;
    margin-left: 10px;
    align-self: center;
}

.main-title {
    font-size: 4em;
    font-weight: 700;
    margin: 0;
}

.slogan {
    font-size: 1.6em;
    font-weight: 300;
}

/* ================================================= */
/* 3. ESTILOS DE LA TARJETA (Derecha: Formulario) */
/* ================================================= */

.right-section {
    flex: 0.7;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: var(--medium-purple);
    position: relative;
    z-index: 2;
}

.register-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    width: 320px;
    transform: translateX(-15%);
    position: relative;
    z-index: 2;
}

.access-link {
    text-align: center;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: var(--text-light-grey);
}
.access-link a {
    color: var(--light-purple);
    text-decoration: none;
    font-weight: 600;
}

.register-card h2 {
    font-size: 1.7em;
    margin-bottom: 5px;
    text-align: center;
}

.subtitle {
    margin-bottom: 15px;
    text-align: center;
}

/* --- ESTILOS DE INPUTS --- */
.input-group {
    margin-bottom: 10px;
}

.input-group input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.input-select { /* Estilo específico para el SELECT en acceder.html */
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background-color: white;
    color: #333;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.8em;
    color: var(--text-light-grey);
    flex-wrap: wrap;
}

.submit-button {
    padding: 14px;
    background-color: var(--neon-purple);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #A34AFF;
}

.required-field-note {
    font-size: 0.7em;
    color: #FFC0CB;
    margin-top: 5px;
    width: 100%;
    margin-left: 25px;
}

.botonesdetexto {
    color: var(--light-purple);
    text-decoration: none;
}

.company-register-option {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

/* ================================================= */
/* 4. ESTILOS DE DASHBOARD (Sidebar y Contenido) */
/* ================================================= */

.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 0 20px 20px 20px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--neon-purple);
    display: flex;
    align-items: center;
}

.sidebar-logo img {
    width: 40px;
    margin-right: 10px;
}

.nav-item {
    display: block;
    padding: 15px 20px;
    margin-bottom: 2px;
    background-color: transparent;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-item.active {
    background-color: var(--main-purple);
    box-shadow: 5px 0 0 var(--neon-purple) inset;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background: transparent;
}

/* --- PERFIL --- */
.profile-card {
    width: 350px;
    padding: 30px;
    background-color: var(--main-purple);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    margin: auto;
}

.username {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-purple);
    margin-bottom: 30px;
}

.profile-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background-color: var(--light-pink);
    color: var(--text-white);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
}

.config-group {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-link {
    color: #FF5C8D;
    font-weight: 600;
    text-decoration: none;
}

/* --- CERTIFICACIONES --- */
.cert-header {
    color: var(--neon-purple);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--main-purple);
    padding-bottom: 10px;
}

.cert-item {
    background-color: var(--main-purple);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.cert-status {
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 5px;
    background-color: #38761d;
    color: var(--text-white);
}

.download-btn {
    background-color: var(--neon-purple);
    color: var(--text-white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 10px;
}


/* --- EXÁMENES --- */
.exam-header {
    color: var(--neon-purple);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--main-purple);
    padding-bottom: 10px;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.exam-card {
    background-color: var(--main-purple);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.2s;
}

.level-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--dark-bg);
    background-color: #FFD700;
}

.start-btn {
    background-color: var(--neon-purple);
    padding: 12px 25px;
    font-weight: 700;
    /* ... */
}

/* --- CURSOS --- */
.courses-header {
    font-size: 2.5em;
}

.search-bar {
    width: 80%;
    max-width: 500px;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 500px;
}

.category-btn {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: var(--light-pink);
    color: var(--text-white);
    font-size: 1.2em;
    font-weight: 600;
}

/* --- OFERTAS --- */
.offer-header {
    color: var(--neon-purple);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--main-purple);
    padding-bottom: 10px;
}

.offer-item {
    background-color: var(--main-purple);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.offer-skills {
    color: #FFC0CB;
}

.apply-btn {
    align-self: flex-end;
}

/* --- VINCULACIÓN LABORAL (SECCIÓN ABOUT) --- */
.vinculacion-laboral {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 50px auto 20px;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--dark-purple);
    max-width: 1000px;
}

.vinculacion-laboral .vinculacion-img {
    width: 250px;
    flex-shrink: 0;
}

.vinculacion-texto {
    flex-grow: 1;
    text-align: left;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #1a0a33;
    color: var(--text-light-grey);
    padding: 20px 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
}

.footer-content p {
    margin: 5px 0;
}

/*-----------FAQS------------ */
.faqs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: justify-all;
}

.faq-item {
    background-color: var(--medium-purple);
    padding: 20px;
    border-radius: 8px;
}

