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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fb;
    color: #1f2d3d;
}

/* CONTENEDOR GENERAL CON GRID */
.contenedor {
    display: grid;
    grid-template-areas:
        "header header header"
        "nav main aside"
        "footer footer footer";
    grid-template-columns: 220px 1fr 250px;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* HEADER */
header {
    grid-area: header;
    background-color: #0b1220;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

header h1 {
    font-size: 32px;
}

header h1 span {
    color: #2d7ff9;
}

header p {
    font-size: 16px;
}

/* NAV */
nav {
    grid-area: nav;
    background-color: #07152b;
    padding-top: 20px;
}

nav ul {
    list-style: none;
}

nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #0d4fd6;
}

/* MAIN */
main {
    grid-area: main;
    background-color: #ffffff;
    padding: 25px;
}

/* MÉTRICAS */
.metricas {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tarjeta {
    flex: 1;
    min-width: 180px;
    background-color: #f8fbff;
    border: 1px solid #e1e7f0;
    padding: 20px;
}

.tarjeta h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #24364b;
}

.tarjeta p {
    font-size: 40px;
    font-weight: bold;
    color: #1f5fc4;
}

/* SECCIÓN TABLA */
.entregas h2 {
    margin-bottom: 20px;
    color: #24364b;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

thead {
    background-color: #eef3f9;
}

th, td {
    padding: 14px;
    text-align: left;
    border: 1px solid #dbe3ec;
}

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

/* ETIQUETAS DE ESTADO */
.estado {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.entregado {
    background-color: #b8f1cb;
    color: #166534;
}

.pendiente {
    background-color: #f8efb2;
    color: #8a6d00;
}

/* ASIDE */
aside {
    grid-area: aside;
    background-color: #f7f9fc;
    border-left: 1px solid #dbe3ec;
    padding: 25px 20px;
}

aside h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #24364b;
}

aside ul {
    padding-left: 20px;
}

aside li {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* FOOTER */
footer {
    grid-area: footer;
    background-color: #0b1220;
    color: white;
    text-align: center;
    padding: 15px 20px;
}

footer p {
    margin-bottom: 12px;
}

.boton {
    display: inline-block;
    text-decoration: none;
    background-color: #0d4fd6;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
}

.boton:hover {
    background-color: #083a9b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contenedor {
        grid-template-areas:
            "header"
            "nav"
            "main"
            "aside"
            "footer";
        grid-template-columns: 1fr;
    }

    .metricas {
        flex-direction: column;
    }

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    nav a {
        padding: 14px 16px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }
}