:root {
    --naranja: #E68A37;
}

*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
}

.fondo-portafolio {
    background-image: url('/utils/image/portafolio-img/marte.jpg'); 
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cortina-filtro {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: #3b0d4bf5;
    opacity: .80;
    z-index: -1;
}


.flecha-atras {
    width: 3rem;
    position: relative;  
    margin: 20px 0 0 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flecha-atras:hover {
    transform: scale(1.1);
}

.conten-portafolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portafolio-contenedor {
    width: 100%;
    text-align: center;
}

.contenedor-titulo {
    font-family: 'Nunito', sans-serif;
    color: var(--naranja);
    margin-bottom: 60px;
}

.titulo-principal {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 1px 5px 8px rgba(0,0,0,0.98);
}

.contenedor-puertas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.contenedor-puertas a {
    flex: 1 1 calc(25% - 40px);
    display: flex;
    justify-content: center;
}

.contenedor-puertas img {
    width: 100%;
    height: auto;
    max-width: 250px;
}

footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    width: 100%;
    margin-top: 20px;
}

footer img {
    width: 30px;
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px 10px rgba(255, 115, 0, 0.8);
    border-radius: 50%;    
    padding: 10%;             
}

@keyframes floaty {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes expand {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.floating1, .floating2, .floating3, .floating4 {
    animation: floaty 3s ease-in-out infinite;
}

.floating1:hover, .floating2:hover, .floating3:hover, .floating4:hover {
    animation: expand 1s forwards;
}

@media (max-width: 1050px) {
    .contenedor-puertas a {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .contenedor-titulo {
        font-size: 1.5rem;
    }

    .contenedor-puertas a {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .contenedor-puertas a {
        flex: 1 1 100%;
    }

    .titulo-principal {
        font-size: 1.5rem;
    }
    .flecha-atras{
        width: 40px;
    }

    footer {
        flex-direction: row;
    }

    footer img {
        margin-bottom: 10px;
    }
}
