:root {
    --nav-height: 100px;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f5f0;
    color: #2b2b2b;
}

.saltar-menu {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem;
    z-index: 10000;
    transition: top 0.2s ease;
}

.saltar-menu:focus {
    top: 0;
    left: 0;
    z-index: 9999;
    outline: 2px solid white;
}

main {
    flex: 1;
    margin-top: var(--nav-height);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(1.563rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animar {
    opacity: 0;
    transform: translateY(1.563rem);
    animation: fade-up 0.8s ease forwards;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vh, 0.938rem);
    padding: 0.313rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.logo {
    width: 75px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.menu-toggle {
    display: none;
}

.hamburguesa {
    display: flex;
    flex-direction: column;
    gap: 0.313rem;
    cursor: pointer;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburguesa span {
    width: 1.8rem;
    height: 0.2rem;
    background: #2b2b2b;
    border-radius: 0.2rem;
}

.nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    width: 16.25rem;
    height: calc(100dvh - var(--nav-height));
    background: #ffffff;
    box-shadow: 5px 0 20px rgba(0,0,0,0.12);
    padding-top: 1.875rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
}

.menu-toggle:checked ~ .nav {
    transform: translateX(0);
}

.nav ul {
    list-style: none;
}

.nav ul li {
    padding: 0.9rem 1.25rem;
}

.nav ul li a {
    text-decoration: none;
    color: #2b2b2b;
    font-size: clamp(0.9rem, 1rem, 1.1rem);
}

h1, h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    color: #3a3a3a;
}

.footer {
    margin-top: auto;
    background: #77482a;
    color: #f7f5f0;
    padding: 2rem 1.25rem;
    text-align: center;
}

.footer-contenido {
    max-width: 68.75rem;
    margin: 0 auto;
}

.footer h3 {
    margin-bottom: 0.625rem;
    font-size: 1.3rem;
    color: #f7f5f0;
}

.footer p {
    margin: 0.313rem 0;
    font-size: 0.95rem;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer .copy {
    margin-top: 0.938rem;
    font-size: 0.8rem;
    color: #d6d6d6;
}

@media (min-width: 1024px) {
    :root {
        --nav-height: 140px;
    }

    .hamburguesa {
        display: none;
    }

    .header {
        height: var(--nav-height);
    }

    .nav {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        box-shadow: none;
        padding: 0;
        margin-top: 1px;
    }

    .nav ul {
        display: flex;
        gap: 1.125rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav ul li {
        padding: 0;
    }

    .nav ul li a {
        font-size: clamp(0.85rem, 0.95rem, 1.1rem);
    }
}

