html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.layout-body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #333;
    color: white;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    width: 100%;
    box-sizing: border-box;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-right {
    gap: 1em;
}

.nav-brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1em;
}

.nav-link:hover {
    text-decoration: underline;
}

.main-content {
    padding: 2em;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .nav-left img {
        width: 120px;
    }

    .nav-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5em;
    }

    .main-content {
        padding: 1em;
    }
}

.footer {
    background-color: #222;
    color: #ccc;
    padding: 1.5em 2em;
    font-size: 0.9em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

.footer-location {
    max-width: 300px;
    line-height: 1.4;
}

.footer-location a {
    display: block;
    margin-bottom: 10px;
    text-align: left;
}

.footer-location p {
    margin: 0;
    color: #ccc;
    text-align: justify;
}

@media (max-width: 768px) {
    .footer-location a {
        margin-bottom: 5px;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
    }

    .footer-location {
        display: contents;
    }


    .footer-address {
        order: 3;
    }

    .footer-link {
        order: 1;
    }

    .footer-links {
        order: 2;
    }
}