/* ============================================================
   oficios.css — Módulo Oficios EMAO
   Estilos centralizados para todas las vistas del módulo
   ============================================================ */

/* ============================================================
   1. RESET & VARIABLES GLOBALES
   ============================================================ */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #5f6368;
    --bg-body: #f8f9fa;
    --text-main: #202124;
    --text-sec: #5f6368;
    --border: #e0e0e0;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ============================================================
   2. COMPONENTES COMPARTIDOS
   ============================================================ */

/* Badges / Etiquetas de estado */
.badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
}

.badge-activa {
    background: #d4edda;
    color: #155724;
}

.badge-baja {
    background: #f8d7da;
    color: #721c24;
}

.badge-finalizada {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-egresado {
    background: #d4edda;
    color: #155724;
}

.badge-presente,
.badge-asistió {
    background: #d4edda;
    color: #155724;
}

.badge-ausente,
.badge-faltó {
    background: #f8d7da;
    color: #721c24;
}

.badge-tardanza,
.badge-faltó-con-permiso {
    background: #fff3cd;
    color: #856404;
}

/* Enlace de volver */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
    background: white;
    border-radius: 12px;
}

.empty-state i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mensajes de error/éxito (login) */
.error-msg,
.success-msg {
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

.error-msg {
    background: #fce8e6;
    color: #d93025;
}

.success-msg {
    background: #e6f4ea;
    color: #1e8e3e;
}

/* Toast de notificación */
#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #202124;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utilitario */
.hidden {
    display: none;
}

/* ============================================================
   3. NAVBAR (index.php / perfil.php)
   ============================================================ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

/* ============================================================
   4. LAYOUT: SIDEBAR + MAIN (dashboard.php)
   ============================================================ */
body.dashboard-page,
body:has(> aside.sidebar) {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #1a1c23;
    color: white;
    height: 100vh;
    position: fixed;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.main {
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
}

/* ============================================================
   5. PÁGINA: INDEX / DIRECTORIO DE TALENTOS
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 60px 20px 80px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    opacity: 0.9;
    margin: 12px auto 0;
    font-size: 1rem;
    font-weight: 300;
    max-width: 600px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

.filter-section {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    background: #fdfdfd;
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.btn-search {
    margin-top: 10px;
    width: 100%;
}

@media (min-width: 600px) {
    .btn-search {
        width: auto;
        margin-top: 0;
    }
}

.btn-search:active {
    transform: scale(0.98);
}

/* Chips de categoría con scroll horizontal */
.cats-outer {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.cats-flex {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cats-flex::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    padding: 8px 16px;
    background: #f1f3f4;
    border-radius: 20px;
    font-size: 1rem;
    text-decoration: none;
    color: var(--secondary);
    white-space: nowrap;
    transition: 0.2s;
    border: 1px solid transparent;
    font-weight: 500;
}

.cat-chip:hover {
    background: #e8eaed;
    color: var(--primary);
}

.cat-chip.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Grilla de talentos */
.talent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.talent-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.talent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.talent-img-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f3f4;
}

.talent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.talent-card:hover .talent-img {
    transform: scale(1.05);
}

.talent-avatar-mini {
    position: absolute;
    bottom: -25px;
    right: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    background: #fff;
    object-fit: cover;
}

.talent-body {
    padding: 16px;
    flex-grow: 1;
    padding-top: 25px;
}

.talent-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.talent-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 4px 0 8px;
}

.talent-info {
    font-size: 1rem;
    color: var(--secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.talent-footer {
    padding: 12px 16px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--secondary);
    background: #fafafa;
}

/* ============================================================
   6. PÁGINA: LOGIN
   ============================================================ */
body.login-page,
body:has(> .login-split-wrapper) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Split wrapper — mobile: caja centrada como antes */
.login-split-wrapper {
    display: flex;
    width: 100%;
    max-width: 420px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.login-panel-form {
    flex: 1;
    padding: 50px 40px;
}

/* Panel derecho: oculto en mobile */
.login-panel-deco {
    display: none;
}

.login-logo,
.logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    background: #fafafa;
    font-family: inherit;
}

.input-group input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #70757a;
    font-size: 1.2rem;
}

.login-panel-form button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
    font-family: inherit;
}

.login-panel-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.login-panel-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #70757a;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 10px;
}

.switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.switch-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================================
   6b. SPLIT-PANEL — DESKTOP (>= 900px)
   ============================================================ */
@media (min-width: 900px) {
    body:has(> .login-split-wrapper) {
        background: #e8edf5;
    }

    .login-split-wrapper {
        max-width: 920px;
        min-height: 580px;
        border-radius: 22px;
        border: none;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
        overflow: hidden;
    }

    .login-panel-form {
        flex: 0 0 420px;
        padding: 60px 50px;
        overflow-y: auto;
    }

    /* Panel decorativo derecho */
    .login-panel-deco {
        display: flex;
        flex: 1;
        background: linear-gradient(135deg, #a8c8f8 0%, #c5deff 40%, #ddeeff 70%, #eef6ff 100%);
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    /* Circulos animados */
    .deco-circle {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        animation: decoFloat 6s ease-in-out infinite;
    }

    .deco-circle:nth-child(1) {
        width: 280px;
        height: 280px;
        top: -60px;
        right: -80px;
        animation-delay: 0s;
    }

    .deco-circle:nth-child(2) {
        width: 180px;
        height: 180px;
        bottom: -40px;
        left: -50px;
        animation-delay: 2s;
    }

    .deco-circle:nth-child(3) {
        width: 100px;
        height: 100px;
        top: 60%;
        right: 20px;
        animation-delay: 4s;
    }

    @keyframes decoFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-18px);
        }
    }

    .deco-icon {
        position: relative;
        z-index: 1;
        text-align: center;
        animation: decoFloat 5s ease-in-out infinite;
    }

    .deco-icon .icon-img {
        font-size: 110px;
        filter: drop-shadow(0 20px 40px rgba(26, 110, 247, 0.22));
        display: block;
        margin-bottom: 20px;
    }

    .deco-icon p {
        color: rgba(30, 60, 120, 0.72);
        font-size: 15px;
        font-weight: 600;
        max-width: 240px;
        line-height: 1.6;
        margin: 0 auto;
    }
}

/* ============================================================
   6c. REGISTRATION WIZARD
   ============================================================ */
.wizard-steps {
    position: relative;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.wizard-step.active {
    display: block;
}

/* Progress indicator */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: 0.3s;
}

.progress-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.progress-dot.completed {
    background: #34a853;
}

/* Challenge Info Box */
.challenge-box {
    background: #f8f9fa;
    border: 1.5px solid #e8f0fe;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.challenge-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.masked-data {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #333;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: inline-block;
    margin-bottom: 12px;
}

/* Address Options */
.address-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.address-opt {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.address-opt:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.address-opt input {
    width: auto !important;
    margin-right: 12px;
}

.address-opt.selected {
    border-color: var(--primary);
    background: #e8f0fe;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-banner {
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    padding: 40px;
    border-radius: 20px;
    color: white;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.2);
}

/* Avatar con efecto cámara */
.avatar-edit-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.avatar-edit-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: 0.3s;
    font-size: 0.75rem;
    font-weight: 600;
}

.avatar-overlay i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.avatar-edit-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-edit-container:hover img {
    transform: scale(1.1);
    filter: blur(2px);
}

#avatarInput {
    display: none;
}

/* Card */
.card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.card h2 {
    margin: 0 0 25px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.card h3 {
    font-size: 1.1rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #555;
}

/* Formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
    background: #fafafa;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Botones de acción */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
    background: #f1f3f4;
    color: #444;
}

.btn-secondary:hover {
    background: #e8eaed;
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 8px 16px;
}

.btn-link:hover {
    background: var(--primary-light);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Portfolio grid (dashboard) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-card {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: #eee;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card:hover {
    transform: scale(1.02);
}

.photo-del {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    backdrop-filter: blur(4px);
}

.photo-del:hover {
    background: #d93025;
}

.status-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.badge-pendiente {
    background: rgba(255, 171, 0, 0.9);
    color: white;
}

.badge-aprobado {
    background: rgba(30, 142, 62, 0.9);
    color: white;
}

.badge-rechazado {
    background: rgba(217, 48, 37, 0.9);
    color: white;
}

/* ============================================================
   8. PÁGINA: PERFIL PÚBLICO
   ============================================================ */
body.perfil-page {
    padding-bottom: 80px;
}

/* espacio para floating-cta en mobile */

.profile-card {
    background: white;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.profile-banner {
    height: 160px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    background-size: cover;
    background-position: center;
}

.profile-main {
    padding: 0 20px 30px;
    position: relative;
    margin-top: -60px;
    text-align: center;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    background: #fff;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-top: 15px;
}

.profile-info h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.profile-info .title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 4px 0;
}

.profile-info .location {
    color: var(--secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Redes sociales */
.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding: 0 20px;
}

.social-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f3f4;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.2s;
    border: 1px solid transparent;
}

.social-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Secciones de contenido */
.section {
    background: white;
    margin-top: 12px;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.bio-content {
    font-size: 1rem;
    color: #3c4043;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Portfolio (perfil público) */
.portfolio-grid-public {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #eee;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 16px;
}

.portfolio-overlay h4 {
    margin: 0;
    font-size: 1rem;
}

/* Barra flotante de contacto (mobile) */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 800px;
    background: white;
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.btn-cta {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-wa {
    background: #25d366;
    color: white;
}

.btn-mail {
    background: var(--primary);
    color: white;
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

/* ============================================================
   9. PÁGINA: MIS CURSOS
   ============================================================ */
.courses-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.courses-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.courses-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.courses-header p {
    margin: 0;
    opacity: 0.9;
}

.courses-section {
    margin-bottom: 40px;
}

.courses-section-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.courses-section-title i {
    color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border-left: 4px solid var(--primary);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.course-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    flex: 1;
}

.course-info {
    margin: 15px 0;
}

.course-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}

.course-info-item i {
    color: var(--primary);
    width: 20px;
}

.course-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.summary-card .label {
    color: #666;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* ============================================================
   10. PÁGINA: MIS ASISTENCIAS
   ============================================================ */
.attendance-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.attendance-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.attendance-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.attendance-header p {
    margin: 0;
    opacity: 0.9;
}

.attend-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.course-title {
    flex: 1;
}

.course-title h2 {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 1.4rem;
}

.course-title p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-box .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.percentage-bar {
    background: #e0e0e0;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
}

.percentage-fill {
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    transition: width 0.5s;
}

.details-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    font-family: inherit;
}

.details-btn:hover {
    background: var(--primary-dark);
}

.details-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.details-section.active {
    display: block;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid var(--border);
}

.attendance-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.attendance-table tr:hover {
    background: #f8f9fa;
}

/* ============================================================
   11. PÁGINA: PERFIL ACADÉMICO
   ============================================================ */
.profile-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.profile-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

.profile-header h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    font-weight: 700;
}

.profile-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.profile-card h2 {
    margin: 0 0 20px;
    color: var(--primary);
    font-size: 1.3rem;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.form-group input:read-only {
    background: #f9f9f9;
    color: #666;
    border-color: #eee;
    cursor: not-allowed;
}

.missing-data {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.missing-data i {
    color: #ffc107;
    margin-right: 10px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* ============================================================
   12. MEDIA QUERIES — DESKTOP (>= 768px)
   ============================================================ */
@media (min-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 18px 40px;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    /* Directorio */
    .filter-section {
        padding: 30px;
    }

    .search-bar {
        flex-direction: row;
    }

    .talent-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .talent-img-container {
        height: 210px;
    }

    /* Perfil público */
    body.perfil-page {
        padding-bottom: 0;
    }

    .container {
        margin-top: 30px;
        padding: 0 20px;
    }

    .profile-card {
        border-radius: var(--radius);
        border: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .profile-main {
        text-align: left;
        padding: 0 40px 40px;
        display: flex;
        align-items: flex-end;
        gap: 30px;
        margin-top: -50px;
    }

    .avatar-container {
        margin: 0;
        width: 160px;
        height: 160px;
    }

    .profile-info {
        margin-top: 0;
        padding-bottom: 10px;
    }

    .profile-info h1 {
        font-size: 2.2rem;
    }

    .profile-info .location {
        justify-content: flex-start;
    }

    .social-grid {
        justify-content: flex-start;
        padding: 0;
        margin-top: 15px;
    }

    .section {
        border-radius: var(--radius);
        border: 1px solid var(--border);
        margin-bottom: 30px;
    }

    .portfolio-grid-public {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .floating-cta {
        position: static;
        box-shadow: none;
        margin: 20px auto;
        padding: 0;
        border-top: none;
        margin-top: 20px;
    }

    .btn-cta {
        flex: 0 1 auto;
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Desktop: Sidebar grande */
@media (min-width: 1025px) {
    .sidebar {
        display: flex;
    }
}

/* ============================================================
   13. MEDIA QUERIES — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
        align-items: center;
    }

    .sidebar-brand span,
    .nav-link span {
        display: none;
    }

    .main {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   14. MEDIA QUERIES — MOBILE (max 767px / 600px)
   ============================================================ */
@media (max-width: 767px) {
    body {
        font-size: 1.05rem;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1.15rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Directorio talentos */
    .cat-chip {
        font-size: 0.95rem;
        padding: 9px 18px;
    }

    .talent-name {
        font-size: 1.2rem;
    }

    .talent-title {
        font-size: 0.95rem;
    }

    .talent-info {
        font-size: 0.95rem;
    }

    .talent-footer {
        font-size: 0.85rem;
    }

    .search-input {
        font-size: 1.05rem;
    }

    .btn-search {
        font-size: 1.05rem;
    }

    /* Mis Cursos */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .courses-header h1 {
        font-size: 1.65rem;
    }

    .courses-header p {
        font-size: 1rem;
    }

    .courses-section-title {
        font-size: 1.35rem;
    }

    .course-name {
        font-size: 1.2rem;
    }

    .course-info-item {
        font-size: 1rem;
    }

    .summary-card .number {
        font-size: 2.2rem;
    }

    .summary-card .label {
        font-size: 1rem;
    }

    .btn-link {
        font-size: 1rem;
        padding: 12px 22px;
    }

    /* Mis Asistencias */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attendance-header h1 {
        font-size: 1.65rem;
    }

    .attendance-header p {
        font-size: 1rem;
    }

    .course-title h2 {
        font-size: 1.25rem;
    }

    .course-title p {
        font-size: 0.95rem;
    }

    .stat-box .number {
        font-size: 1.7rem;
    }

    .stat-box .label {
        font-size: 0.9rem;
    }

    .details-btn {
        width: 100%;
    }

    .attendance-table th {
        font-size: 0.95rem;
        padding: 12px 10px;
    }

    .attendance-table td {
        font-size: 0.95rem;
        padding: 11px 10px;
    }

    .percentage-fill {
        font-size: 0.95rem;
    }

    /* Perfil público */
    .profile-info h1 {
        font-size: 1.6rem;
    }

    .profile-info .title {
        font-size: 1.05rem;
    }

    .profile-info .location {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .bio-content {
        font-size: 1.05rem;
    }

    .portfolio-overlay h4 {
        font-size: 1.05rem;
    }

    .btn-cta {
        font-size: 1.05rem;
        padding: 15px;
    }

    /* Badges en mobile */
    .badge {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
}

@media (max-width: 600px) {

    /* Dashboard: ocultamos sidebar completamente */
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    .header-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-banner h1 {
        font-size: 1.5rem;
    }

    .header-banner p {
        font-size: 1rem;
    }

    .card h2 {
        font-size: 1.25rem;
    }

    .card h3 {
        font-size: 1.05rem;
    }

    label {
        font-size: 1rem;
    }

    input,
    textarea,
    select {
        font-size: 1.05rem;
    }

    .btn {
        font-size: 1.05rem;
        padding: 13px 22px;
    }
}