@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
    --Green_one: #223621ff;
    --Green_two: #374C38ff;
    --Green_three: #4B6A46ff;
    --Green_four: #5F865Eff;
    --Green_five: #E4EAE1ff;
}
*{
    margin: 0;
}
body{
    background-color: var(--Green_five);
}
header{
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-around;
    transition: 0.7s;
    padding: 10px 10px;
    z-index: 1;
    background: rgba(55, 76, 56, 0.7);
}
header.efecto{
    background: #fff;
    padding: 10px 10px;
    color: #000;
}
.container_logo{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: .5s;
}
.container_logo--visible{
    opacity: 1;
}
.img_logo{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: moverLogotipo 2s;
    -webkit-animation: moverLogotipo 2s;
    opacity: 0;
}
.img_logo--visible{
    opacity: 1;
}
.logotipo{
    position: relative;
    color: #fff;
    font-weight: 900;
    font-size: 3em;
    letter-spacing: 10px;
    transition: 1.5s;
    text-decoration: none;
    opacity: 0;
}
.logotipo--visible{
    opacity: 1;
    animation: moverLogotipo 2s;
    -webkit-animation: moverLogotipo 2s;
}
@keyframes moverLogotipo{
    from {
        margin-left: 110%;
      }
      to {
        margin-left: 1%;
      }
}
.contenedor_nav{
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 1.2s;
}
.contenedor_nav--visible{
    opacity: 1;
}
.nav_enlaces{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn{
    line-height: 50px;
    height: 50px;
    text-align: center;
    cursor: pointer;
    gap: 2rem;
}
.nav_opciones{
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    display: inline-flex;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
}
.nav_opciones:hover,
.nav_opciones:focus{
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: rgba(255, 255, 255, 0.3) 0 4px 22px;
    color: rgba(255, 255, 255, 0.65);
}
.nav_opciones:hover{
    transform: translateY(-6px);
}
.nav_opciones:active{
    background-color: #F0F0F1;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: rgba(255, 255, 255, 0.06) 0 2px 4px;
    color: rgba(255, 255, 255, 0.65);
    transform: translateY(0);
}
.nav_opcion{
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 600;
    transition: 0.7s;
}

/*Contenido del fondo e iconos*/
.seccion_fondo{
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url(../../IMG/fondo_one.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position:0;
    display: flex;
}
.contenedor_texto{
    display: flex;
    flex-direction: column;
    justify-content:flex-end;
    margin: auto;
    margin-bottom: 10px;
    width: 70%;
    height: 40vh;
    color: #fff;
}
header.efecto .logotipo,
header.efecto .nav_opcion{
    color: #000;
}
.contenedor_redes{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
	gap: 40px;
    opacity: 0;
    transition: 1.5s;
}
.contenedor_redes--visible{
    opacity: 1;
}
.iconos_red{
    display: flex;
	align-items: center;
	justify-content: center;
    width: 40px;
	height: 40px;
	padding: 15px;
	border-radius: 50%;
	color: #fff;
	user-select: none;
}
.iconos_red--linkedin{
    background: #0077b5;
}
.iconos_red--email{
    background: #656565;
}
.iconos_red--whatts{
    background-color: #25D366;
}
.icono{
    width: 100%;
    height: 100%;
    color: #fff;
}


/*Seccion de servicio de imagenes*/
.imagenes_servicios{
    background: var(--Green_five);
    width: 90%;
    max-width: 1500px;
    margin: auto;
    padding: 40px 65px;
    opacity: 0;
    transition: 1.2s;
}
.imagenes_servicios--visible{
    opacity: 1;
}
.encabezado_proyectos{
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    font-size: 2rem;
}
.titulo_proyectos{
    font-family: 'Tangerine', serif;
    font-weight: 500;
    font-size: 3.5rem;
    color: #000;
    opacity: 1;
    transition: 1.5s ease all;
}
.proyectos_imagenes{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 1rem;
}
.card {
    position: relative;
    width: 200px;
    height: 250px;
    margin: 20px;
}

.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: .5s;
}

.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 5px 10px #000;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: #fff;
    padding: 15px;
    color: #494949;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 5px 10px #000;
}
.card .back h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    margin-top: 20px;
    letter-spacing: 2px;
    height: 100%;
}
.card .back p {
    letter-spacing: 1px;
} 

.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}

.toggle-btn {
    background-color: #333;
    color: white;
    border: none;
    font-size: 1em;
    cursor: pointer;
    display: none; /* El botón estará oculto por defecto */
}

.contacto{
    color: var(--Green_three);
}


@media screen and (max-width: 768px) {
    .toggle-btn {
        display: block; /* Mostrar el botón en dispositivos móviles */
        z-index: 3;
    }

    .contenedor_nav {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 0;
        width: 100%;
        background-color: #333;
        height: 500px;
        animation: initial;
    }

    .nav_enlaces {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .nav_opciones {
        margin: 10px 0;
    }
    .titulo_proyectos {
        font-size: 35px;
    }
    .imagenes_servicios {
        width: 70%; 
    }
    @media screen and (max-width: 400px){
        .titulo_proyectos {
            font-size: 25px;
        }
        .imagenes_servicios {
            width: 60%; 
        }
        .card .back h3 {
            font-size: 20px;
        }
    }
}