
*,
*,*::before, 
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
body{
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: black;
    background-color: #f1f5f9;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}
.encabezado-principal{
    background-color: #1E293B;
    padding: 10px 5%;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.encabezado-principal h5{
    color: #ffffff;
}
.logo{
    color: white;
    font-size: 1.8rem;
}
.logo span{
    color: #38BDF8;
}
.contenedor-principal{
    flex: 1;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 260px;
    align-items: stretch;
}
nav{
    width: 100%;
    background-color: #1e293b;
}
.menu-nav ul{
    list-style: none;
    width: 100%;
}
nav li {
    width: 100%;
    border-bottom: 1px solid #334155;
}
.menu-nav a{
    background-color: #1E293B;
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: block;
    width: 100%;
    padding: 15px 20px;
}
nav a:hover {
    background-color: #38bdf8;
    color: #ffffff;
}
main{
    min-width: 0;
    padding: 30px;
}
main {
    display: grid;
    flex-direction: column;
    padding: 40px 5%;
    margin-bottom: 30px;
}
.grid-metricas{
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px;

}
.tarjeta-metricas{
    border-radius: 9px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* tansicion*/ 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
     background-color: #ffffff;
    width: 100%;
    max-width: 250px;
    border: 1px solid #e0e0e0;
    padding: 20px;
}
.tarjeta-metricas:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}
.tarjeta-metricas h4{
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}
.tarjeta-metricas h2{
    color: #38BDF8;
    font-size: 1.8rem;
}
.seccion-entregas{
    margin-top: 30px;
    background-color: white;
    padding: 20px;
    border: 1px solid #e0e0e0;
}
.seccion-entregas table{
    border: 1px solid #e0e0e0;
    padding: 10px;
    table-layout: fixed;
    margin-bottom: 10px;
}
table{
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

th,
td {
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #cbcfd5;
}

th {
    color: #334155;
    font-size: 0.9rem;
    background-color: #f8fafc;
}

td {
    color: #475569;
    font-size: 0.88rem;
}

tbody tr:hover {
    background-color: #f8fafc;
}
.estado-entregado {
    background-color: rgb(172, 225, 92);
    color: rgb(6, 63, 6);
    margin-bottom: 20px;
    border: 1px solid rgb(6, 63, 6);
    
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* tansicion*/ 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.estado-entregado:hover{
    transform: translateY(-7px);
    box-shadow: 0 12px 20px rgb(3, 46, 4);
}
.estado-pendiente:hover{
    transform: translateY(-7px);
    box-shadow: 0 12px 20px rgb(63, 6, 6);  
}
.estado-pendiente {
    background-color: rgb(225, 92, 92);
    color: rgb(63, 6, 6);
    margin-bottom: 20px;
    border: 1px solid rgb(63, 6, 6);

    
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* tansicion*/ 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.avisos {
    padding: 30px 22px;
    background-color: #ffffff;
    border-left: 1px solid #e2e8f0;
}

.avisos h4 {
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1rem;
}

.avisos ul {
    padding-left: 20px;
}

.avisos li {
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.85rem;
}
.pie-pagina{
    background-color: #1E293B;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    font-size: o.8rem;
}
@media (max-width: 1000px) {
    .contenedor-principal {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .avisos {
        grid-column: 1 / -1;
        border-top: 1px solid #e2e8f0;
        border-left: none;
    }
}

@media (max-width: 750px) {
    .encabezado-principal {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contenedor-principal {
        display: block;
    }

    nav {
        min-height: auto;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
    }

    nav li {
        flex: 1 1 50%;
    }

    nav a {
        text-align: center;
    }

    main {
        padding: 20px;
    }

    .grid-metrica {
        grid-template-columns: 1fr;
    }

    .seccion-entregas {
        overflow-x: auto;
    }

    table {
        min-width: 650px;
    }
}