/* ==========================================================================
   CUSTOM CSS - MUNDOS DIGITALES (VERSIÓN FINAL COMPLETA)
   ========================================================================== */

:root {
    --md-red: #ff2d00;
    --md-dark-red: #d12500;
    --md-gray-bg: #e0e0e0;
    --md-text: #333333;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--md-text);
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- UTILIDADES --- */
.text-md { color: var(--md-red) !important; }
.bg-md { background-color: var(--md-red) !important; }
.bg-md-soft { background-color: rgba(255, 45, 0, 0.05) !important; }

/* Textos */
.italic { font-style: italic; }

/* --- COMPONENTES GLOBALES --- */
.md-header { background-color: #ffffff; border-bottom: 1px solid #eee; }
.lang-link {
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    color: #bbb;
    transition: 0.3s;
}

.lang-link.active {
    color: var(--md-red);
}
.card-custom { border: none; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.md-footer { background-color: var(--md-gray-bg); color: #666; padding: 40px 0 20px 0; }

.navbar-nav .nav-link.active {
  color: var(--md-red);
}

/* Colores Extra tipo Bootstrap 5.3 */

/* --- TEAL (Basado en el estándar BS 5.3) --- */
.bg-teal { background-color: #20c997 !important; color: #fff !important; }
.bg-teal-subtle { background-color: #d2f4ea !important; }
.text-teal-emphasis { color: #087990 !important; }
.border-teal-subtle { border-color: #a3cfbb !important; }

/* --- INDIGO (Basado en el estándar BS 5.3) --- */
.bg-indigo { background-color: #6610f2 !important; color: #fff !important; }
.bg-indigo-subtle { background-color: #e0cffc !important; }
.text-indigo-emphasis { color: #350a06 !important; } /* Un tono muy oscuro de indigo */
.border-indigo-subtle { border-color: #c29ffa !important; }

/* --- PINK (Basado en el estándar BS 5.3) --- */
.bg-pink { background-color: #d63384 !important; color: #fff !important; }
.bg-pink-subtle { background-color: #f7d6e6 !important; }
.text-pink-emphasis { color: #a02060 !important; }
.border-pink-subtle { border-color: #f1aeb5 !important; }

/* Ajuste general para los iconos */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* --- BOTONES GENERALES (Login, Registro, Admin) --- */
.btn-md-action {
    padding: 14px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    border: none;
    text-decoration: none;
    text-align: center;
}

.btn-md-red { background-color: var(--md-red) !important; color: #ffffff !important; border: 2px solid var(--md-red); }
.btn-md-red:hover, .btn-md-red:active { background-color: var(--md-dark-red) !important; color: #ffffff !important; border: 2px solid var(--md-dark-red) !important; }

.btn-md-outline-white { background-color: transparent; color: #ffffff; border: 2px solid #ffffff; }
.btn-md-outline-white:hover { background-color: #ffffff; color: #000000; border: 2px solid #ffffff; }

.btn-md-outline-red { background-color: transparent; color:var(--md-red); border: 2px solid var(--md-red); }
.btn-md-outline-red:hover { background-color: var(--md-red); color: #ffffff; border: 2px solid var(--md-red); }

/* AGENDA PRINCIPAL Y AGENDA DE ASIGNAR CITA */

.fw-extrabold { font-weight: 800; }
.nav-pills .nav-link { border-radius: 8px; background: #fff; color: #333; transition: all 0.2s; }
.nav-pills .nav-link.active { background: #000; color: #fff; border-color: #000; }
.border-dashed { border-style: dashed !important; }
.btn-xs { padding: 0.2rem 0.4rem; font-size: 0.7rem; }
.bg-primary-subtle { background-color: #eef6ff !important; }
.bg-warning-subtle { background-color: #fff9e6 !important; }
.hover-card:hover { transform: translateY(-3px); border-color: #dc3545 !important; box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important; }
.cursor-pointer { cursor: pointer; }

/* --- SISTEMA FERIA: VISTA CANDIDATO (Botonería Blindada) --- */

.btn-md-card-action, .btn-md-action-mini, .badge-md-static-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none !important;
}

.btn-md-card-action { height: 50px; width: 100%; font-size: 0.85rem; }
.btn-md-action-mini, .badge-md-static-mini { height: 32px; font-size: 0.75rem; padding: 0 15px; }

/* Colores y Hovers Específicos */
/*.btn-md-solicitar, .btn-md-action-mini:not(.badge-md-static-mini) {
    background-color: var(--md-red) !important;
    color: #ffffff !important;
}
.btn-md-solicitar:hover, .btn-md-action-mini:hover:not(:disabled) {
    background-color: var(--md-dark-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 45, 0, 0.3);
}

.btn-md-pendiente, .badge-md-static-mini.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    cursor: default !important;
}
.btn-md-pendiente:hover, .badge-md-static-mini.bg-warning:hover {
    background-color: #ffc107 !important;
    color: #212529 !important;
    transform: none !important; filter: none !important;
}

.btn-md-aceptada, .badge-md-static-mini.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
    cursor: default !important;
}
.btn-md-aceptada:hover, .badge-md-static-mini.bg-success:hover {
    background-color: #198754 !important;
    color: #ffffff !important;
    transform: none !important; filter: none !important;
}

.btn-md-rechazada, .btn-md-action-mini:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
    opacity: 0.7;
}*/

/* --- VISTA CANDIDATO: CHIPS Y LISTAS --- */
.perfil-chip {
    border-radius: 6px !important;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6 !important;
    color: #333; font-size: 0.7rem; padding: 6px 12px; display: inline-block;
}

.list-group-perfiles .list-group-item { padding: 10px 0 !important; }

/* --- PÁGINA ENTREVISTAS (Mis Citas) --- */
.interview-card { background: white; border-radius: 15px; border-left: 5px solid #ddd; transition: transform 0.2s; }
.interview-card:hover { transform: scale(1.01); }

.status-accepted { border-left-color: var(--md-red); }
.status-pending { border-left-color: #ffc107; }
.status-rejected { border-left-color: #6c757d; opacity: 0.8; }

/* Los puntitos indicadores */
.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-accepted .status-dot {
    background-color: var(--md-red);
    animation: pulse 2s infinite;
}

.status-pending .status-dot {
    background-color: #ffc107;
}

.status-cancelled {
    opacity: 0.6;
    filter: grayscale(1);
    border-left: 5px solid #6c757d !important;
}

.status-cancelled .status-dot {
    background-color: #adb5bd;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 45, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 45, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 45, 0, 0); }
}

/* --- VISTA RECLUTADOR --- */
.link-candidato { color: #212529; text-decoration: none; }
.link-candidato:hover { color: var(--md-red) !important; }

.gallery-thumb-wrapper { transition: all 0.2s ease; border: 2px solid transparent; }
.gallery-thumb-wrapper:hover { border-color: var(--md-red); transform: translateY(-2px); }

.btn-mini-visor { padding: 2px 10px; font-size: 11px; text-transform: uppercase; font-weight: 700; border-radius: 4px; border: 1px solid #ddd; display: inline-block; }
.btn-cv { color: #444; background-color: #f8f9fa; text-decoration: none;}
.btn-reel { color: var(--md-red); background-color: #fff5f5; border-color: #ffc1c1; text-decoration: none;}

/* ESTILOS PARA LA GALERIA DEL PERFIL DE CANDIDATO QUE VE EL RECLUTADOR */
/* Fuerza a que cada item ocupe el 20% menos el espacio del gap */
.gallery-item-5 {
    width: calc(20% - 8px); 
    min-width: 80px; /* Para que en pantallas muy pequeñas no desaparezcan */
}

@media (max-width: 768px) {
    .gallery-item-5 {
        width: calc(33.33% - 8px); /* En móvil mejor que salgan de 3 en 3 */
    }
}


/* BOTONES DE VER REEL Y CV DE LA LISTA DE SOLICITUDES DE UN RECLITADOR */
/*.btn-mini-visor {
    padding: 2px 10px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    border: 1px solid #ddd;
}

.btn-cv {
    color: #444;
    background-color: #f8f9fa;
}

.btn-reel {
    color: #dc3545;
    background-color: #fff5f5;
    border-color: #ffc1c1;
}*/

.btn-mini-visor:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    filter: brightness(0.95);
}

/* AGENDA */


/* --- ADMINISTRACIÓN --- */
.logo-container { height: 70px; display: flex; align-items: center; justify-content: center; background-color: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px; }
.logo-img { max-height: 100%; max-width: 100%; object-fit: contain; }

.candidato-profile-edit .btn-check-profile { display: none; }
.candidato-profile-edit .profile-label { display: inline-block; padding: 4px 10px; margin: 4px; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; font-size: 0.85rem; color: #666; background-color: #fff; }
.candidato-profile-edit .btn-check-profile:checked + .profile-label { background-color: var(--md-red) !important; color: #fff !important; }

/* Estilo para los chips de niveles en el formulario de perfiles */
.btn-md-style-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 15px;
    border-radius: 8px !important; /* Esquinas MD */
    border: 2px solid #dee2e6;
    background-color: #fff;
    color: #666;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

/* 1. Separación de los chips para que los bordes no se solapen */
.nivel-selector {
    margin-bottom: 5px;
    line-height: 11.2px;
}

/* 2. Estado deshabilitado: Más visible pero claramente inactivo */
.check-nivel-modal:disabled + label {
    background-color: #f1f1f1 !important;
    color: #999 !important;
    border: 1px dashed #ccc !important;
    text-decoration: none; /* Quitamos el tachado si queda feo, mejor solo color apagado */
    opacity: 0.7;
    cursor: not-allowed;
}

/* 3. El "Aviso" con margen superior para que no pise los bordes */
#m_aviso_multi {
    margin-top: 15px !important;
    clear: both; /* Aseguramos que baje después de los chips */
}

/* 4. Efecto de selección limpio sin solapamientos */
.check-nivel-modal:checked + label {
    box-shadow: 0 0 0 0px #fff, 0 0 0 2px currentColor !important;
    z-index: 1; /* Para que el brillo quede por encima de los vecinos */
    position: relative;
}

/* Cuando el checkbox está marcado: ROJO MD */
.btn-check:checked + .btn-md-style-selector {
    background-color: var(--md-red) !important;
    border-color: var(--md-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(255, 45, 0, 0.2);
}

.btn-md-style-selector:hover {
    border-color: var(--md-red);
    color: var(--md-red);
}

/* En la tabla, usamos los mismos chips que en la vista de perfiles */
.badge-nivel-tabla {
    border-radius: 4px !important;
    background-color: #212529;
    color: white;
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-nivel {
    border-radius: 4px !important;
    background-color: #212529;
    color: white;
    padding: 8px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    /*letter-spacing: 0.5px;*/
}

.badge-nivel-mini {
    border-radius: 3px !important;
    background-color: #212529;
    color: white;
    padding: 2px 6px;
    font-size: 0.65rem !important;
    font-weight: 600;
    /*letter-spacing: 0.5px;*/
}