


.search-container-2 {
    display: flex;
    align-items: center;
    justify-content: center; 
    margin: 0 auto 20px auto; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 80%;
    max-width: 500px; 
}

.search-container-2 label {
    margin-right: 20px;
    color: #781d3a;
}

.search-container-2 input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: none;
    border-radius: 3px;
    background-color: white;
    font-size: 16px;
    color: #333;
}

.table-wrapper {
    overflow-x: auto;
    margin: 0 80px; 
}

/* --- ESTILOS DE TABLA GENERALES --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #ddd;
    /* CLAVE: Asegura que los anchos de columna sean respetados */
    table-layout: fixed; 
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    /* Permite que el texto se ajuste y el <br> funcione correctamente */
    white-space: normal; 
    /* Asegura que las palabras muy largas se rompan para evitar desbordamiento */
    word-wrap: break-word; 
    overflow-wrap: break-word; /* Una versión más moderna de word-wrap */
}

/* --- ANCHOS DE COLUMNA ESPECÍFICOS PARA PANTALLAS GRANDES Y MEDIANAS --- */
/* (Se pueden sobrescribir en @media para pantallas más pequeñas) */

/* Columna 'Nombre' (primera columna) */
#tablaCuerpo td:nth-child(1),
.table-wrapper table thead th:nth-child(1) { 
    width: 35%; /* Ajusta este porcentaje (ej. 30%, 40%) para controlar el ancho */
}

/* Columna 'Responsable' (segunda columna) */
#tablaCuerpo td:nth-child(2),
.table-wrapper table thead th:nth-child(2) { 
    width: 25%; /* Ajusta este porcentaje según el contenido */
}

/* Columna 'Aviso de Privacidad Integral' (tercera columna) */
#tablaCuerpo td:nth-child(3),
.table-wrapper table thead th:nth-child(3) { 
    width: 20%; 
    text-align: center; /* Centra el contenido (generalmente PDFs) */
}

/* Columna 'Aviso de Privacidad Simplificado' (cuarta columna) */
#tablaCuerpo td:nth-child(4),
.table-wrapper table thead th:nth-child(4) { 
    width: 20%; 
    text-align: center; /* Centra el contenido (generalmente PDFs) */
}

/* Asegúrate de que la suma de los anchos de las columnas (width) sea 100% para evitar problemas de espacio.
   En este caso: 35% + 25% + 20% + 20% = 100% */


/* --- ESTILOS DE ENCABEZADO Y FILAS --- */
th {
    background-color: #f2f2f2;
    color: #333;
}

tbody tr {
    color: #777;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* --- ESTILOS DE ENLACES --- */
a {
    text-decoration: none;
    color: #a62c4b;
}

a:hover {
    text-decoration: underline;
    color: #781d3a;
}

/* --- ESTILOS DE PAGINACIÓN --- */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center; 
    margin-top: 15px;
    color: #555;
    padding: 0 50px; 
}

.pagination-controls label {
    margin-right: 5px;
}

.pagination-controls select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 15px;
}

.pagination-controls button {
    padding: 8px 12px;
    margin-left: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: white;
    color: #333;
    cursor: pointer;
}

.pagination-controls button.active {
    background-color: #a62c4b;
    color: white;
    border-color: #781d3a;
}

.pagination-controls button:hover {
    background-color: #eee;
}


/* --- MEDIA QUERIES PARA RESPONSIVE DESIGN (PANTALLAS PEQUEÑAS) --- */
@media (max-width: 768px) {
    .search-container-2 {
        width: 95%; 
    }

    .table-wrapper {
        margin: 0 10px; 
    }

    /* Opcional: Si quieres ajustar los anchos de las columnas para pantallas pequeñas,
       puedes sobrescribirlos aquí. Ejemplo: */
    /*
    #tablaCuerpo td:nth-child(1),
    .table-wrapper table thead th:nth-child(1) {
        width: 45%; 
    }
    #tablaCuerpo td:nth-child(2),
    .table-wrapper table thead th:nth-child(2) {
        width: 30%; 
    }
    #tablaCuerpo td:nth-child(3),
    .table-wrapper table thead th:nth-child(3),
    #tablaCuerpo td:nth-child(4),
    .table-wrapper table thead th:nth-child(4) {
        width: 12.5%; 
    }
    */

    .pagination-controls {
        padding: 0 10px; 
        justify-content: center;
        flex-direction: column; /* Apila los controles en pantallas pequeñas */
        align-items: center;
    }

    .pagination-controls label,
    .pagination-controls select {
        margin-bottom: 10px;
    }

    .pagination-controls #paginationNumbers {
        margin-top: 10px;
    }
}