/*:root {
    --primary: #8b4513;
    --primary-dark: #654321;
    --secondary: #d4af37;
    --accent: #b8860b;
    --light: #f8f4e9;
    --dark: #2c1810;
    --text: #333333;
    --text-light: #666666;
    --success: #28a745;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}*/
:root {
--primary: #4a148c;
--secondary: #7b1fa2;
--accent: #ffca28;
--bg-light: #f7f8fc;
--text-dark: #222;
}

* {
box-sizing: border-box;
}



/* NAVBAR */
.navbar {
background: linear-gradient(90deg, var(--primary), var(--secondary));
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 28px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
position: sticky;
top: 0;
z-index: 10;
}
.navbar h1 {
color: white;
margin: 0;
font-size: 22px;
font-weight: 600;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 10px;
}
.navbar nav a {
color: #fff;
text-decoration: none;
margin-left: 18px;
font-weight: 500;
transition: opacity .3s ease;
padding: 8px 12px;
border-radius: 6px;
}
.navbar nav a:hover {
opacity: 0.8;
background: rgba(255,255,255,0.1);
transform: translateY(-2px);
}


/* Estilos para la tabla */
#wordsTable {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#wordsTable thead th {
background: var(--primary);
color: white;
font-weight: 600;
padding: 14px 12px;
}

#wordsTable tbody td {
padding: 12px;
border-bottom: 1px solid #eee;
}

/* CONTENEDOR PRINCIPAL */
.wrap {
max-width: 1200px;
margin: 40px auto;
background: #fff;
padding: 32px;
border-radius: 16px;
box-shadow: 0 12px 32px rgba(0,0,0,0.08);
animation: fadeIn 0.7s ease-out;
position: relative;
overflow: hidden;
}
.wrap::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--primary), var(--secondary));
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}


h1::after {
content: "";
position: absolute;
bottom: -8px;
left: 0;
width: 60px;
height: 3px;
background: var(--secondary);
border-radius: 2px;
}

p {
color: #444;
font-size: 1rem;
margin-bottom: 24px;
line-height: 1.5;
}

/* FILTROS */
.filters { 
display: grid; 
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
gap: 20px; 
margin: 20px 0 30px; 
padding: 24px;
background: var(--light);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: var(--transition);
}
.filters:hover {
box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.filters label { 
font-size: 14px; 
font-weight: 600; 
margin-bottom: 8px; 
display: block; 
color: var(--primary-dark);
}

.filters input, .filters select {
width: 100%;
padding: 12px 16px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 14px;
transition: var(--transition);
background: #fff;
}

.filters input:focus, .filters select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}


/* TABLA */
table.dataTable {
width: 100% !important;
border-collapse: collapse;
}
table.dataTable thead th {
background: var(--primary);
color: #fff;
text-transform: uppercase;
font-size: 13px;
font-weight: 600;
padding: 10px;
border: none;
}
table.dataTable tbody tr {
transition: background 0.2s ease;
}
table.dataTable tbody tr:hover {
background: rgba(74, 20, 140, 0.06);
transform: translateX(4px);
}
table.dataTable td {
padding: 10px;
font-size: 14px;
}

/* DETALLES EXPANDIBLES */
.details-card {
background: #fafafa;
background: linear-gradient(135deg, #fdfdfd 0%, #f8f4e9 100%);
border-left: 4px solid var(--accent);
padding: 14px 18px;
border-radius: 8px;
border-radius: 0 12px 12px 0;
margin: 12px 4px;
font-size: 14px;
line-height: 1.5;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

.details-card strong { 
color: var(--primary-dark);
display: block;
margin-top: 12px;
font-size: 15px;
}

.details-card p { 
margin: 6px 0; 
line-height: 1.6; 
font-size: 14px; 
color: var(--text);
}



/* Estilos para el botón de expandir */
td.dt-control {
text-align: center;
cursor: pointer;
transition: var(--transition);
}

td.dt-control:hover {
background: rgba(212, 175, 55, 0.2);
}


/* BOTONES DATATABLE */
.dt-buttons .btn {
background: var(--primary);
color: #fff;
border-radius: 8px;
padding: 8px 14px;
margin-right: 8px;
border: none;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all .3s ease;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.dt-buttons .btn:hover {
background: var(--secondary);
transform: translateY(-1px);
box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* PAGINACIÓN */

/* Asegurar que los controles de DataTables sean visibles */
.dataTables_wrapper {
    margin-top: 20px;
}
.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    margin: 10px 0;
}

.dataTables_wrapper .dt-paging {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
margin-top: 20px;
}

.dataTables_wrapper .dt-paging-button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 14px;
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
color: var(--text-dark);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}

.dataTables_wrapper .dt-paging-button:hover {
background: var(--accent);
color: #000;
border-color: var(--accent);
transform: translateY(-1px);
}

.dataTables_wrapper .dt-paging-button.current {
background: var(--primary);
color: #fff;
border-color: var(--primary);
}

.dataTables_wrapper .dt-paging-button.disabled {
opacity: 0.4;
cursor: default;
transform: none;
}






/* Estilo para los botones */
.dt-buttons {
    margin-bottom: 10px;
}

.dt-button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}

.dt-button:hover {
    background: #e0e0e0;
}

/* Estilo para la paginación */
.dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.dataTables_paginate .paginate_button.current {
    background: #007bff;
    color: white !important;
    border-color: #007bff;
}

.dataTables_paginate .paginate_button:hover {
    background: #e0e0e0;
}


/* Íconos personalizados */
.dataTables_wrapper .dt-paging-button.first::before { content: "⏮ "; }
.dataTables_wrapper .dt-paging-button.previous::before { content: "← "; }
.dataTables_wrapper .dt-paging-button.next::after { content: " →"; }
.dataTables_wrapper .dt-paging-button.last::after { content: " ⏭"; }

/* Oculta bordes viejos si DataTables hereda estilos Bootstrap */
.dataTables_wrapper .dt-paging-button,
.dataTables_wrapper .dataTables_paginate button {
border: none;
}

/* Texto “Mostrando x a y de z registros” */
.dataTables_info {
font-size: 13px;
color: #666;
margin-top: 10px;
text-align: center;
}




/* BOTONES SOCIALES */
.share-buttons {
margin-top: 30px;
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
}
.share-buttons a {
padding: 10px 16px; 
border-radius: 8px; 
margin-right: 0;
cursor: pointer;
font-weight: 600;
transition: var(--transition);
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
text-decoration: none;
transition: transform .3s ease, opacity .2s ease;
}
.share-buttons a:hover { 
transform: translateY(-4px); 
opacity: 0.9; 
box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}



/* Responsive */
@media (max-width: 768px) {
    .wrap {
        margin: 16px;
        padding: 20px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .navbar h1 {
        font-size: 18px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons a, .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 13px;
    }
}

/* Animación de carga */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}



/* Select2 personalizado */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 44px;
    padding: 8px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary);
}

