/* CONTENEDOR GENERAL */
.total-container {
    padding: 25px;
}

/* TÍTULO */
.total-titulo {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* FILTROS */
.filtros-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* antes 25 */
    margin-bottom: 15px; /* antes 20 */
}

.filtros-row {
    display: flex;
    gap: 12px; /* antes 20 */
    flex-wrap: wrap;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 160px; /* antes 200 */
}

.filtro-item input,
.filtro-item select {
    padding: 6px; /* antes 8 */
    font-size: 14px; /* más compacto */
}

.filtro-item label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* PAÍSES MULTISELECT */
.filtro-paises .paises-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.paises-select {
    width: 180px; /* antes 220 */
    height: 110px; /* antes auto */
}

.paises-ayuda {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}

/* BOTONES */
.btn-primario {
    background-color: #0069d9;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primario:hover {
    background-color: #0053b3;
}

.btn-secundario {
    background-color: #0069d9; /* azul */
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secundario:hover {
    background-color: #0053b3;
}

.btn-limpiar {
    margin-left: 10px;
    padding: 10px 16px;
    background-color: #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: black;
}

.btn-limpiar:hover {
    background-color: #b5b5b5;
}

/* EXPORTAR */
.exportar-links {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.exportar-links a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
}

.exportar-links a:hover {
    text-decoration: underline;
}

/* SEPARADOR */
.separador {
    margin: 25px 0;
}

/* TABLA GENERAL */
.tabla-listado {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-listado th {
    background-color: #e6e6e6; /* más contraste */
    color: #000; /* negro fuerte */
    padding: 10px;
    text-align: left;
    font-weight: 700; /* más grueso */
    border-bottom: 2px solid #ccc;
}

.tabla-listado td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* ZEBRA */
.tabla-listado tr:nth-child(even) {
    background-color: #fafafa;
}

/* HOVER */
.tabla-listado tr:hover {
    background-color: #f3f3f3;
}

/* ACCIONES */
.acciones-col {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-accion {
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-accion.editar {
    background-color: #e7f1ff;
    border: 1px solid #8bb8ff;
    color: #004a9f;
}

.btn-accion.editar:hover {
    background-color: #d6e7ff;
}

.btn-accion.eliminar {
    background-color: #ffe7e7;
    border: 1px solid #ff8b8b;
    color: #9f0000;
}

.btn-accion.eliminar:hover {
    background-color: #ffd6d6;
}

/* FORM ELIMINAR */
.form-eliminar {
    display: inline;
}

/* BOTÓN MÁS INFO */
.btn-expandir {
    padding: 6px 10px;
    background-color: #0069d9; /* azul institucional */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-expandir:hover {
    background-color: #0053b3;
}

/* DETALLE OCULTO */
.persona-detalle {
    display: none;
    background-color: #fdfdfd;
}

.detalle-bloque {
    margin-bottom: 20px;
}

.detalle-bloque h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.detalle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.detalle-separador {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

/* PAGINACIÓN */
.paginacion {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.paginacion-btn {
    padding: 8px 14px;
    background-color: #e7e7e7;
    border: 1px solid #bbb;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.paginacion-btn:hover {
    background-color: #dcdcdc;
}

.paginacion-info {
    font-weight: 600;
    color: #444;
}
