.hamburguesa {
    display: none;
}

@media (max-width: 1024px) {

    .hamburguesa {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        flex-shrink: 0;
        position: relative;
        z-index: 200;
    }

    .hamburguesa span {
        display: block;
        width: 24px;
        height: 1.5px;
        background-color: #fff;
        border-radius: 2px;
        transition: transform 0.4s ease, opacity 0.3s ease, background-color 0.3s ease;
    }

    header.abierto .hamburguesa span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
        background-color: #c5a059;
    }

    header.abierto .hamburguesa span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    header.abierto .hamburguesa span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
        background-color: #c5a059;
    }

    header nav .menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 400px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.97);
        border-left: 1px solid rgba(197, 160, 89, 0.15);
        padding: 40px 30px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 30px;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    header.abierto nav .menu {
        transform: translateX(0);
    }

    header nav .menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header nav .menu ul li {
        width: 100%;
        text-align: center;
    }

    header nav .menu a {
        display: block;
        padding: 14px 0;
        font-size: 14px;
    }

    header nav .menu ul+ul {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding-top: 20px;
    }

    header nav .menu ul+ul li {
        width: auto;
    }

    header nav .menu ul+ul a {
        padding: 4px 0;
    }

    body.menuAbierto {
        overflow: hidden;
    }

    .columnas {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .seleccion aside .formulario {
        position: relative;
        top: 0;
    }

    .portada {
        width: 80%;
    }
}

@media (max-width: 768px) {

    header nav .menu {
        width: 100%;
    }

    body.inicio main .contenedor {
        justify-content: center;
        text-align: center;
    }

    .portada {
        width: 100%;
        margin-top: 15%;
    }

    .portada h1 {
        font-size: 32px;
    }

    .portada h2 {
        font-size: 46px;
        line-height: 1.1;
    }

    .seleccion article img {
        width: 100%;
        height: auto;
    }

    .catalogo {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .formulario {
        padding: 15px;
    }

    .pagina {
        margin: 20px 0;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .portada h1 {
        font-size: 26px;
    }

    .portada h2 {
        font-size: 38px;
    }

    header nav .logo {
        font-size: 24px;
    }
}

@keyframes aparecerSuave {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portada,
.pagina>*,
.biografia,
.legal,
.catalogo>div {
    animation: aparecerSuave 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.catalogo>div:nth-child(1) {
    animation-delay: 0.1s;
}

.catalogo>div:nth-child(2) {
    animation-delay: 0.2s;
}

.catalogo>div:nth-child(3) {
    animation-delay: 0.3s;
}

.catalogo>div:nth-child(4) {
    animation-delay: 0.4s;
}

.boton {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.boton:hover {
    transform: translateY(-3px);
    background-color: #d8b672;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.catalogo .imagen img {
    transition: transform 0.6s ease;
}

.catalogo .imagen:hover img {
    transform: scale(1.08);
}