/* ============================================================ VARIABLES DE COLOR ============================================================ */
:root {
    --primary-color: #005689;
    --primary-2-color: #0078aa;
    --secondary-color: #ed9b00;
    --gray: #767676;  
    --down-gray: #ebebeb;
    --color-black: #000000;
    --color-white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;
    background-color: var(--down-gray);
    font-family: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

main {
    width: 95%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ============================ BOTONES SUPERIORES ALINEADOS ============================ */
.botones-superiores {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.botones-superiores button {
    background-color: var(--primary-2-color);
    color: var(--color-white);
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
}

.botones-superiores button:hover {
    background-color: var(--secondary-color);
}


/* ============================ LOGO =========================== */

.logo {
    width: 220px;
    display: block;
    margin: 0 auto 10px auto;
}

/*============================= ICONS =============================*/
.ti {
    font-size: 24px;
    height:  30px; 
}

/* ============================ CONTENEDOR TABLA ============================ */
.table-datos-conatiner {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.table-datos-conatiner h2 {
    background-color: var(--primary-color);
    color: var(--color-white);
    text-align: center;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    font-size: 18px;
}

/* ============================ FILTROS ============================ */
.filtros-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 15px;
}

.filtros-container input{
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--down-gray);
    font-size: 14px;
    width: 100%;
    max-width: 300px;
}

.filtros-container select {
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--down-gray);
    font-size: 14px;
    width: 100%;
    max-width: 220px;
}

/* ============================ INPUT BUSCADOR CON SVG (ICONO DERECHA) ============================ */
.input-search {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.input-search svg {
    position: absolute;
    right: 12px;         
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

/* Input */
.input-search input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 0.6rem; 
    border-radius: 6px;
    border: 1px solid var(--down-gray);
    font-size: 14px;
}

/* Focus */
.input-search input:focus {
    outline: none;
    border-color: var(--primary-2-color);
}

.input-search input:focus + svg {
    color: var(--primary-2-color);
}


/* ============================ TABLA ============================ */
.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabla-datos thead {
    background-color: var(--primary-2-color);
    color: var(--color-white);
}

.tabla-datos th,
.tabla-datos td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--down-gray);
}

.tabla-datos tbody tr:nth-child(even) {
    background-color: #f2f6f9;
}

.tabla-datos tbody tr:hover {
    background-color: #dbeef9;
}


/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
    .tabla-datos th,
    .tabla-datos td {
        font-size: 13px;
        padding: 8px;
    }

    .logo {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .filtros-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filtros-container input,
    .filtros-container select {
        max-width: 100%;
    }

    .tabla-datos {
        font-size: 13px;
    }

    .filtros-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filtros-container input,
    .filtros-container select,
    .input-search {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .logo {
        width: 180px;
    }

    .tabla-datos th,
    .tabla-datos td {
        font-size: 12px;
        padding: 6px;
    }

    .botones-superiores {
        flex-direction: column;
        gap: 10px;
    }

    .botones-superiores button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .table-datos-conatiner h2 {
        font-size: 15px;
    }

    .tabla-datos {
        font-size: 11px;
    }
}
