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

html,
body {
    height: 100%;
}

/* ─── Layout principal ─────────────────────────────────────────── */

.grid-container {
    display: grid;
    height: 100dvh;
    grid-template-rows: 50px 1fr 40px;
    grid-template-areas:
        "navbar"
        "main"
        "footer";
}

/* ─── Regiones ─────────────────────────────────────────────────── */

.navbar {
    grid-area: navbar;
    z-index: 10;
}

.main {
    grid-area: main;
    overflow-y: auto;
    display: flex;           /* FIX: permite que hijos usen min-height: 100% */
    flex-direction: column;  /* FIX: apila componentes verticalmente */
    scrollbar-width: none;   /* Oculta scrollbar en Firefox */
    -ms-overflow-style: none; /* Oculta scrollbar en IE/Edge */
}

.main::-webkit-scrollbar {
    display: none;           /* Oculta scrollbar en navegadores basados en WebKit (Chrome, Safari, Edge) */
}

.footer {
    grid-area: footer;
    padding: 10px;
    background-color: #b08d57;
    color: black;
    text-align: center;
    z-index: 10;
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (min-width: 600px) {
    .grid-container {
        grid-template-rows: 60px 1fr 35px;
    }
}