﻿/* ==========================================================================
   1. Estilos Globales, HTML y Body
   ========================================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

/* ==========================================
   1. ESTADOS BASE (Móviles / Globales)
   ========================================== */
@media (max-width: 767.98px) {
    body {
        padding-top: 76px !important;
    }
}


/* ==========================================
   2. ESCRITORIO / DISPOSITIVOS MEDIANOS (+)
   ========================================== */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    /* Borde divisor para la columna de contacto en la vista de empresa */
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
        padding-left: 1.5rem;
    }
}

body {
    /* Altura exacta para que el contenido no quede oculto bajo la navbar fija */
    /*padding-top: 76px !important;*/
    margin-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333333; /* Corregido: F3F4F6 era demasiado claro para leer sobre fondo gris */
}

a {
    color: #0366d6;
}

    /* ==========================================================================
   2. Componentes del Navbar Superior e Idiomas
   ========================================================================== */
    a.navbar-brand {
        white-space: normal;
        text-align: center;
        word-break: break-all;
    }

/* Evita que el botón de idiomas se desproporcione en el navbar */
#languageDropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.input-group .form-control:focus {
    z-index: 0;
    box-shadow: none;
}

.input-group .btn-light:hover {
    background-color: #f8f9fa;
}

/* ==========================================================================
   3. Menús Desplegables (Dropdowns) y Animaciones
   ========================================================================== */
.show > .dropdown-menu {
    display: block !important;
}

.dropdown-menu {
    border-radius: 15px;
    padding: 0.5rem;
    min-width: 240px;
}

    .dropdown-menu.show {
        animation: fadeInDown 0.3s ease forwards;
    }

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

    .dropdown-item span {
        margin-right: 12px;
        font-size: 1.2rem;
    }

    .dropdown-item:hover {
        background-color: #f0f4ff;
        color: #0d6efd;
        transform: translateX(5px);
    }

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

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

/* ==========================================================================
   4. Sidebar (Menú Lateral Esctritorio vs Móvil)
   ========================================================================== */
.sidebar-sticky {
    top: 76px !important;
    height: calc(100vh - 76px) !important;
}

/* Ajuste de la sidebar fija en escritorio */
.sticky-sidebar {
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
}

#sidebarMenu {
    background-color: #ffffff; /* Corregido: Unificado para evitar el conflicto black/antiquewhite */
}

    #sidebarMenu .nav-link {
        font-size: 0.95rem;
        color: #6c757d;
        font-weight: 500;
        border-radius: 12px;
        margin: 4px 15px;
        padding: 0.5rem 1rem;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
    }

        #sidebarMenu .nav-link:hover {
            background-color: #f8f9ff;
            color: #0d6efd;
            transform: translateX(5px);
        }

        /* Selecciona el link activo dentro del sidebar */
        #sidebarMenu .nav-link.active {
            background-color: #e7f0ff !important; /* Fondo azul sutil */
            color: #0a58ca !important; /* Texto azul oscuro contratante */
            font-weight: 700 !important; /* Texto en negrita */
            border-radius: 12px; /* Mantiene tus bordes redondeados */
        }

        /* Asegura que el ícono dentro del link activo también cambie al azul oscuro */
        #sidebarMenu .nav-link.active i {
            color: #0a58ca !important;
        }


.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: #adb5bd !important;
    padding-left: 25px !important;
}

#sidebarMenu::-webkit-scrollbar {
    width: 4px;
}

#sidebarMenu::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

/* Comportamiento del Sidebar específico para Móviles */


    main {
        padding-top: 10px !important;
    }

    #sidebarMenu.show {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        z-index: 1050;
        background-color: #ffffff !important;
        padding-top: 86px; /* Ajustado para que empiece justo debajo del navbar */
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }

        #sidebarMenu.show::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.4);
            z-index: -1;
        }

    .d-md-none .btn {
        font-weight: 500;
        border-width: 1.5px;
    }
}

/* ==========================================================================
   5. Filtros Horizontales Móviles (`.sticky-top`)
   ========================================================================== */
.sticky-top {
    top: 76px !important; /* Alineado milimétricamente con el final de la barra superior */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1020;
}

.no-scrollbar {
    gap: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

/* ==========================================================================
   6. Tarjetas (Cards) y Contenedores de Contenido
   ========================================================================== */
.card {
    border: 1px solid #E5E7EB;
}

.card-img-top {
    height: 100px;
    object-fit: cover;
}

.job-card {
    border: 0;
    transition: all .25s;
}

    .job-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
    }

.jobs-container {
    max-height: 1000px;
    overflow-y: auto;
    padding-right: 10px;
}

    .jobs-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

.company-logo {
    height: 70px;
    object-fit: contain;
}

.row.d-flex {
    align-content: flex-start;
}

/* Efectos de Elevación General */
.transition-hover, .hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .transition-hover:hover, .hover-lift:hover {
        transform: translateY(-5px);
    }

/* Truncado de texto */
.line-clamp, .line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp {
    -webkit-line-clamp: 4;
}

/* ==========================================================================
   7. Elementos Utilitarios, Botones y Secciones
   ========================================================================== */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-ppal {
    background-color: #2285f6;
}

.btn-link:hover i {
    color: #0d6efd;
    transform: scale(1.1);
    transition: transform 0.2s;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.hero {
    background: #fff;
    color: white;
    padding: 10px 10px;
}

.companies-container {
    background: #eef2ff;
}

.container, .container-login {
    border-color: #E2E8F0;
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* ==========================================================================
   8. Integración del Editor de Texto (Summernote)
   ========================================================================== */
.note-editor .note-editing-area {
    position: relative;
    z-index: 0;
}

.note-popover {
    display: none;
}



.note-modal-content {
    border-radius: 15px !important;
}

.editor-content {
    line-height: 1.6;
    color: #333;
}

    .editor-content p {
        margin-bottom: 1rem;
    }

    .editor-content ul, .editor-content ol {
        padding-left: 2rem;
        margin-bottom: 1rem;
    }

/* Overlay sombre pour modals / écrans de saisie (ex: VerifyCode) */
.modal-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* au-dessus du navbar et du contenu */
}

.modal-overlay .card {
    max-width: 560px;
    width: 100%;
}

/* Optionnel: animation d'apparition */
.modal-overlay.fade-in {
    animation: fadeInDown 0.18s ease-out;
}
