/* Reset General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos Generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #eef2f3, #f8f9fa);
    color: #333;
    padding: 20px;
}

/* Encabezado */
h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #E13A2A;
    margin-bottom: 10px;
}

/* Subtítulo */
p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Contenedor General */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Botones y Filtros */
.botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

button {
    padding: 12px 18px;
    background-color: #E13A2A;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #b72d21;
}

/* Inputs y Selects */
input, select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

/* Input búsqueda */
#busquedaNombre {
    width: 250px;
}

/* Contenedor del resumen */
.resumen-container {
    text-align: center;
    margin: 20px 0;
}

.resumen-item {
    display: inline-block;
    margin: 8px;
    padding: 10px 15px;
    background-color: #00796b;
    color: white;
    border-radius: 8px;
}

/* Tabla */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

th, td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #E13A2A;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Contenedor del gráfico */
#graficoOrdenesContainer {
    display: block;
    max-width: 600px;
    margin: 20px auto;
}

#graficoOrdenesContainer.hidden {
    display: none;
}

/* Estilos de prioridad */
.prioridad-alta {
    background-color: #e53935;
    color: white;
    font-weight: bold;
}

.prioridad-media {
    background-color: #ffb300;
    color: white;
    font-weight: bold;
}

.prioridad-baja {
    background-color: #43a047;
    color: white;
    font-weight: bold;
}

/* RESPONSIVIDAD */

/* Móviles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .botones {
        flex-direction: column;
        align-items: center;
    }

    input, select {
        width: 90%;
        max-width: 300px;
    }

    .table-container {
        overflow-x: auto;
    }

    th, td {
        padding: 8px;
        font-size: 14px;
    }

    .resumen-item {
        display: block;
        width: 80%;
        margin: 5px auto;
        text-align: center;
    }

    button {
        width: 90%;
        max-width: 300px;
    }
}

.btn-metas {
        display: inline-block;
        background: linear-gradient(135deg, #1e90ff, #0d47a1);
        color: white;
        padding: 12px 25px;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
        margin: 20px auto;
        text-align: center;
    }

    .btn-metas:hover {
        background: linear-gradient(135deg, #0d47a1, #1e90ff);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
    }


    