/* ================================================================
   DASHBOARD DE VACANTES — HOJA DE ESTILOS UNIFICADA
   ================================================================ */

:root {
    --color-bg:            #f4f7f6;
    --color-text:          #333;
    --color-header:        #7bbbfb;
    --color-card:          #ffffff;
    --color-border:        #e0e0e0;
    --color-primary:       #00bfa6;
    --color-primary-hover: #00897b;
    --color-secondary:     #003366;
    --color-shadow:        rgba(0, 0, 0, 0.1);
    --color-muted:         #666;
    --color-danger:        #e53e3e;
}

/* Reset y Body */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    margin: 0;
    overflow-x: hidden;
}

/* ================================================================
   1. HEADER Y NAVEGACIÓN
   ================================================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 30px;
    background-color: var(--color-header);
    color: white;
    box-shadow: 0 2px 10px var(--color-shadow);
    position: relative;
    z-index: 1000;
    overflow: visible !important;
    gap: 15px;
}

.logo img { height: 55px; }

.mensaje {
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

.badge-plan {
    background-color: #cd7f32;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 10px;
    text-transform: uppercase;
}

/* ================================================================
   2. TARJETA DE ESTATUS (BARRA HORIZONTAL) — ÚNICO CONTADOR
   ================================================================ */
.card-estatus-quetzal {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 18px;
    width: 240px;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.estatus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.estatus-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-plus-quetzal {
    background: #f1f5f9;
    color: var(--color-primary);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-plus-quetzal:hover {
    background: var(--color-primary);
    color: white;
}

.estatus-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cohete-icono {
    font-size: 1.4rem;
    color: var(--color-header);
    flex-shrink: 0;
}

.estatus-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.numero-misiones {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    display: block;
}

.contenedor-barra-quetzal {
    background: #f1f5f9;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.barra-interna-quetzal {
    background: var(--color-primary);
    height: 100%;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    border-radius: 10px;
}

/* ================================================================
   3. MENÚ DE NAVEGACIÓN
   ================================================================ */
.acciones {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu {
    position: relative;
}

#menuBtn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

#menuBtn:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 191, 166, 0.4);
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    min-width: 220px;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: aparecerMenu 0.3s ease-out;
}

.dropdown a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

#btnCerrarSesion {
    border-bottom: none;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.dropdown a:hover {
    background: var(--color-primary);
    color: white !important;
    padding-left: 28px;
}

#btnPublicar {
    background: linear-gradient(135deg, var(--color-primary), #00d2b8);
    color: white !important;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 191, 166, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

#btnPublicar::before {
    content: "➕";
    font-size: 0.8rem;
}

#btnPublicar:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 191, 166, 0.6);
    filter: brightness(1.1);
}

#btnPublicar:active {
    transform: translateY(1px);
}

/* ================================================================
   4. LAYOUT DEL DASHBOARD
   ================================================================ */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 80px);
}

.sidebar-vacantes {
    background: var(--color-card);
    border-right: 1px solid var(--color-border);
    padding: 20px;
    overflow-y: auto;
}

.titulo-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.titulo-flex h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.badge-conteo {
    background: var(--color-primary);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ================================================================
   5. TARJETAS SIDEBAR (ESTILO MINI)
   ================================================================ */
.vacante-card-mini {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    border-left: 5px solid transparent;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vacante-card-mini:hover {
    transform: translateX(6px);
    border-left-color: var(--color-primary);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.vacante-card-mini.active {
    border-left-color: var(--color-primary);
    background: rgba(0, 191, 166, 0.05);
}

.vacante-mini-content .header-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.vacante-mini-content .header-mini h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-secondary);
    flex: 1;
}

.badge-mini {
    background: var(--color-primary);
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: bold;
    flex-shrink: 0;
}

.p-mini {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* ================================================================
   6. BOTONES DE ACCIÓN (VER, EDITAR, ELIMINAR) — CORREGIDOS
   ================================================================ */
.acciones-mini {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.acciones-mini button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    border: none;
    border-radius: 8px;
    background: var(--color-bg);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.acciones-mini button:hover {
    transform: translateY(-3px);
    background: #e8f5f3;
}

.btnVerMas i  { color: var(--color-primary); font-size: 14px; }
.btnEditar i  { color: #f59e0b; font-size: 14px; }
.btnEliminar i { color: #ef4444; font-size: 14px; }

.btnVerMas:hover  { background: rgba(0, 191, 166, 0.12) !important; }
.btnEditar:hover  { background: rgba(245, 158, 11, 0.12) !important; }
.btnEliminar:hover { background: rgba(239, 68, 68, 0.12) !important; }

/* ================================================================
   7. PANEL DE GESTIÓN (DERECHO)
   ================================================================ */
.main-gestion {
    padding: 30px;
    background: var(--color-bg);
    overflow-y: auto;
    position: relative;
}

.header-gestion-derecha {
    margin-bottom: 10px;
}

.header-gestion-derecha h3 {
    margin: 0 0 15px;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.total-badge {
    background: var(--color-secondary);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: normal;
}

.tabs-container {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding-bottom: 2px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: var(--color-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 191, 166, 0.1);
    color: var(--color-primary);
}

.tab-count {
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    font-size: 0.7rem;
}

/* ================================================================
   8. TARJETAS DE CANDIDATOS
   ================================================================ */
.lista-candidatos-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    animation: fadeIn 0.4s ease-out;
}

.candidato-card-detallada {
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    transition: box-shadow 0.3s ease;
}

.candidato-card-detallada:hover {
    box-shadow: 0 10px 25px var(--color-shadow);
}

.candidato-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.candidato-foto-mini {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    flex-shrink: 0;
}

.candidato-info-principal {
    flex: 1;
    min-width: 0;
}

.candidato-info-principal h4 {
    margin: 0 0 3px;
    font-size: 0.95rem;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidato-puesto {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.candidato-estado-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.visto       { background: #e3f2fd; color: #1976d2; }
.en-proceso  { background: #e0f2f1; color: #00796b; }
.en-revisión { background: #fff3e0; color: #e65100; }
.finalista   { background: #f3e5f5; color: #7b1fa2; }
.rechazado   { background: #ffebee; color: #d32f2f; }

.candidato-body {
    font-size: 0.85rem;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.candidato-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-secundario-mini {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-secundario-mini:hover {
    background: var(--color-primary);
}

.cambiar-estado {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--color-text);
    min-width: 0;
}

/* ================================================================
   9. MODALES Y VISTA DE CV
   ================================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    background: var(--color-card);
    padding: 30px;
    animation: aparecerModal 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-sizing: border-box;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--color-secondary);
}

.cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
    font-weight: bold;
    transition: color 0.2s;
    z-index: 10;
}

.cerrar:hover {
    color: var(--color-danger);
}

.acciones-modal {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-peligro {
    background: var(--color-danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-peligro:hover {
    background: #c53030;
}

.btn-moderno {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.form-grid input {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

#editarDescripcion {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.btn-guardar {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.2s;
    width: 100%;
}

.btn-guardar:hover {
    background: var(--color-primary-hover);
}

/* Modal CV */
.modal-cv {
    max-width: 950px;
    padding: 20px;
}

#perfilPreviewContenedor {
    background: white;
    color: #333;
}

.cv-preview-header {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 40px;
    background: #f8fafc;
    border-bottom: 5px solid var(--color-primary);
}

.cv-foto-perfil {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.cv-datos-principales h2 {
    margin: 0 0 5px;
    color: #16355d;
}

.cv-puesto-deseado {
    color: var(--color-primary);
    font-size: 1rem;
    margin: 0 0 8px;
}

.cv-iconos-contacto {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.cv-preview-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 40px;
}

.cv-seccion {
    margin-bottom: 20px;
}

.cv-seccion h3 {
    color: var(--color-primary);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    margin: 0 0 12px;
}

.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.btn-imprimir {
    position: absolute;
    top: 20px;
    right: 70px;
    z-index: 100;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: var(--color-secondary);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* ================================================================
   10. ESTADOS VACÍOS Y ANIMACIONES
   ================================================================ */
.estado-inicial-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    opacity: 0.4;
}

.logo-placeholder {
    width: 180px;
    margin-bottom: 20px;
    filter: grayscale(1);
}

.estado-vacio-mini {
    text-align: center;
    padding: 30px 20px;
    opacity: 0.7;
}

.logo-vacio-mini {
    width: 80px;
    filter: grayscale(1);
    margin-bottom: 10px;
}

.btn-cta-vacio {
    display: inline-block;
    margin-top: 10px;
    background: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-cta-vacio:hover {
    background: var(--color-primary-hover);
}

.loader-quetzal {
    text-align: center;
    padding: 40px;
    color: var(--color-muted);
}

.mensaje-vacio-modal {
    text-align: center;
    padding: 30px;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.mensaje-vacio {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes aparecerModal {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes aparecerMenu {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================================================
   11. FOOTER
   ================================================================ */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: var(--color-muted);
    border-top: 1px solid var(--color-border);
    background: white;
}

/* ================================================================
   12. MEDIA QUERIES — RESPONSIVE CORREGIDO
   ================================================================ */

/* Correcciones base para evitar desbordes */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.header,
.dashboard-wrapper,
.sidebar-vacantes,
.main-gestion,
.lista-candidatos-panel,
.modal-content,
.cv-preview-header,
.cv-preview-body {
    min-width: 0;
}

.vacante-card-mini,
.candidato-card-detallada,
.card-estatus-quetzal {
    max-width: 100%;
}

.mensaje,
.vacante-mini-content .header-mini h4,
.candidato-info-principal h4,
.candidato-puesto,
.p-mini,
.cv-datos-principales h2,
.cv-puesto-deseado,
.cv-iconos-contacto,
.cv-seccion {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.form-grid input,
#editarDescripcion,
.cambiar-estado {
    max-width: 100%;
}

/* ================================================================
   LAPTOP / TABLET GRANDE
   ================================================================ */
@media (max-width: 1200px) {
    .header {
        padding: 0 20px;
        gap: 12px;
    }

    .dashboard-wrapper {
        grid-template-columns: 300px 1fr;
    }

    .card-estatus-quetzal {
        width: 220px;
        min-width: 190px;
        padding: 10px 14px;
    }

    .mensaje {
        font-size: 0.9rem;
    }

    #btnPublicar {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .lista-candidatos-panel {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ================================================================
   TABLET
   ================================================================ */
@media (max-width: 1024px) {
    .header {
        height: auto;
        min-height: 80px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 48px;
    }

    .mensaje {
        order: 2;
        flex: 1 1 auto;
        white-space: normal;
    }

    .card-estatus-quetzal {
        order: 3;
        flex: 1 1 260px;
        width: auto;
    }

    .acciones {
        order: 4;
        flex: 0 0 auto;
        gap: 12px;
    }

    .dashboard-wrapper {
        grid-template-columns: 280px 1fr;
        height: auto;
        min-height: calc(100vh - 80px);
    }

    .main-gestion {
        padding: 22px;
    }

    .lista-candidatos-panel {
        grid-template-columns: 1fr;
    }

    .cv-preview-header {
        gap: 24px;
        padding: 30px;
    }

    .cv-preview-body {
        gap: 24px;
        padding: 30px;
    }
}

/* ================================================================
   MÓVIL
   ================================================================ */
@media (max-width: 768px) {
    .header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        height: auto;
        min-height: auto;
        padding: 12px;
        gap: 10px;
    }

    .logo {
        order: 1;
        flex: 0 0 auto;
    }

    .logo img {
        height: 42px;
        max-width: 115px;
        display: block;
    }

    .mensaje {
        order: 2;
        flex: 1 1 0;
        min-width: 130px;
        font-size: 0.85rem;
        line-height: 1.25;
        white-space: normal;
    }

    .card-estatus-quetzal {
        order: 3;
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        padding: 12px;
    }

    .acciones {
        order: 4;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    #btnPublicar {
        flex: 1;
        width: auto;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 0.82rem;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    #menuBtn {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .menu {
        flex-shrink: 0;
    }

    .dropdown {
        right: 0;
        top: 50px;
        min-width: 210px;
        max-width: calc(100vw - 24px);
    }

    .dropdown a {
        padding: 13px 16px;
        font-size: 0.88rem;
    }

    .dashboard-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .sidebar-vacantes {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 14px;
        max-height: 45vh;
        overflow-y: auto;
    }

    .main-gestion {
        padding: 14px;
        overflow-y: visible;
    }

    .titulo-flex {
        gap: 10px;
    }

    .titulo-flex h2 {
        font-size: 1rem;
    }

    .vacante-card-mini {
        padding: 13px;
    }

    .vacante-card-mini:hover {
        transform: none;
    }

    .vacante-mini-content .header-mini {
        align-items: flex-start;
    }

    .acciones-mini {
        flex-wrap: wrap;
    }

    .header-gestion-derecha h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .total-badge {
        display: inline-block;
        margin-left: 0;
        margin-top: 6px;
    }

    .tabs-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        border-radius: 10px;
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .lista-candidatos-panel {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .candidato-card-detallada {
        padding: 15px;
    }

    .candidato-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .candidato-foto-mini {
        width: 50px;
        height: 50px;
    }

    .candidato-info-principal {
        flex: 1 1 calc(100% - 65px);
    }

    .candidato-info-principal h4 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .candidato-estado-badge {
        margin-left: 60px;
        white-space: normal;
    }

    .candidato-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-secundario-mini,
    .cambiar-estado {
        width: 100%;
    }

    .modal {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 24px);
        padding: 22px 16px;
        border-radius: 16px;
        margin: auto;
    }

    .cerrar {
        top: 10px;
        right: 14px;
    }

    .acciones-modal {
        flex-direction: column;
    }

    .acciones-modal button,
    .btn-peligro,
    .btn-moderno,
    .btn-guardar {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-cv {
        padding: 12px;
    }

    .btn-imprimir {
        position: static;
        width: 100%;
        margin-bottom: 12px;
    }

    .cv-preview-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 16px;
    }

    .cv-foto-perfil {
        width: 105px;
        height: 105px;
    }

    .cv-preview-body {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 16px;
    }

    .estado-inicial-vacio {
        height: auto;
        min-height: 280px;
        padding: 30px 15px;
    }

    .logo-placeholder {
        width: 120px;
    }

    .footer {
        padding: 14px 10px;
        font-size: 0.75rem;
    }
}

.btn-psicometria-mini {
    background-color: transparent;
    color: #00bfa6; /* Tu verde Quetzal */
    border: 1px solid #00bfa6;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-psicometria-mini:hover {
    background-color: #00bfa6;
    color: white;
}

/* Ajuste para el footer si hay muchos elementos */
.candidato-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
    margin-top: 10px;
}

/* Notificación Pop de Verificación */
.toast-verificado {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 5px solid #00bfa6; /* Tu verde turquesa */
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.toast-verificado.show {
    transform: translateX(0);
}

.toast-icon-wrapper {
    background: #e0fcf8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.toast-content h4 {
    margin: 0;
    color: #16355d; /* Tu azul oscuro */
    font-size: 1rem;
}

.toast-content p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* ================================================================
   MÓVIL PEQUEÑO
   ================================================================ */
@media (max-width: 480px) {
    .header {
        padding: 10px;
        gap: 8px;
    }

    .logo img {
        height: 38px;
        max-width: 100px;
    }

    .mensaje {
        font-size: 0.78rem;
        min-width: 110px;
    }

    .estatus-label {
        font-size: 0.62rem;
    }

    .numero-misiones {
        font-size: 0.9rem;
    }

    .cohete-icono {
        font-size: 1.2rem;
    }

    #btnPublicar {
        font-size: 0.76rem;
        padding: 9px 10px;
    }

    #btnPublicar::before {
        font-size: 0.7rem;
    }

    #menuBtn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .dropdown {
        min-width: 190px;
    }

    .sidebar-vacantes,
    .main-gestion {
        padding: 12px;
    }

    .titulo-flex {
        flex-direction: row;
        align-items: center;
    }

    .titulo-flex h2 {
        font-size: 0.95rem;
    }

    .badge-conteo {
        font-size: 0.75rem;
    }

    .vacante-mini-content .header-mini {
        flex-wrap: wrap;
    }

    .badge-mini {
        margin-top: 3px;
    }

    .acciones-mini button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .candidato-card-detallada {
        padding: 13px;
    }

    .candidato-foto-mini {
        width: 46px;
        height: 46px;
    }

    .candidato-info-principal {
        flex: 1 1 calc(100% - 58px);
    }

    .candidato-estado-badge {
        margin-left: 56px;
        font-size: 0.62rem;
    }

    .modal-content {
        padding: 20px 14px;
        border-radius: 14px;
    }

    .modal-content h3 {
        padding-right: 28px;
        font-size: 1rem;
    }

    .cv-preview-header {
        padding: 20px 14px;
    }

    .cv-preview-body {
        padding: 20px 14px;
    }

    .cv-foto-perfil {
        width: 90px;
        height: 90px;
    }

    .cv-datos-principales h2 {
        font-size: 1.2rem;
    }

    .logo-placeholder {
        width: 100px;
    }
}

.btn-resultados-quetzal {
    background-color: #6366f1; /* Un color índigo/azul vibrante */
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-resultados-quetzal:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
}

.lista-reportes-estilizada {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.reporte-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reporte-info {
    display: flex;
    flex-direction: column;
}

.reporte-info strong { color: #1e293b; font-size: 1rem; }
.reporte-info span { color: #6366f1; font-size: 0.85rem; font-weight: bold; }
.reporte-info small { color: #94a3b8; font-size: 0.75rem; }

.btn-ver-reporte {
    background: white;
    color: #6366f1;
    border: 1.5px solid #6366f1;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-ver-reporte:hover {
    background: #6366f1;
    color: white;
}

/* ================================================================
   EXTRA PEQUEÑO
   ================================================================ */
@media (max-width: 360px) {
    .logo img {
        height: 34px;
        max-width: 85px;
    }

    .mensaje {
        font-size: 0.72rem;
    }

    #btnPublicar {
        font-size: 0.7rem;
    }

    .card-estatus-quetzal {
        padding: 10px;
    }

    .estatus-body {
        gap: 8px;
    }
}
