


/* =========================================
   SIDEBAR PORTAL TALENTOS
========================================= */
.sidebar {
    width: 260px;
    background:  var(--bg-card);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    width: 100%;
}

.nav-link {
    display: block;
    padding: 15px 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background: rgba(253, 207, 0, 0.05); /* Efecto translúcido del color corporativo */
    color: var(--text-main);
}

.nav-link.active {
    background: rgba(253, 207, 0, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

.btn-back {
    position: absolute;
    top: 25px;
    left: 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.btn-back:hover {
    color: var(--primary); /* Se ilumina en amarillo Cestber */
    transform: translateX(-5px); /* Pequeño efecto de movimiento hacia atrás */
}


body {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-top: 4px solid var(--primary);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
}



/* Ajustes específicos para el portal de talentos */
.cv-header {
    background: linear-gradient(90deg, var(--bg-card) 0%, rgba(253, 207, 0, 0.1) 100%);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cv-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.grid-portafolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-portafolio {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s;
}

.item-portafolio:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.item-portafolio img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.item-info {
    padding: 15px;
}

/* =======================================================
   RESPONSIVE / MÓVIL  (cajón lateral) — gana por ser el último CSS
   ======================================================= */
.menu-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--primary, #fdcf00);
    color: #0f1a20;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 90;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: inline-flex;
    }

    .sidebar {
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 70px 18px 24px;
    }
}

@media (max-width: 768px) {
    .main-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .main-content [style*="min-width"] {
        min-width: 0 !important;
    }

    .grid-portafolio {
        grid-template-columns: 1fr 1fr;
    }

    .cv-header {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* font-size 16px evita el zoom automático de iOS al enfocar */
    .form-control,
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 84vw;
        max-width: 300px;
    }

    .grid-portafolio {
        grid-template-columns: 1fr;
    }
}