/*Hoja de estilos Portafolio*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    scroll-behavior: smooth;
    background-color: #ffffff;
}

/*NAV*/
nav a {
    position: absolute;
    left: -130px;
    transition: 0.3s;
    padding: 15px;
    width: 300px;
    text-decoration: none;
    color: black;
    background: #C6FF33;
    border-radius: 0 20px 5px 0;
    font-family: 'Syne', sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
}

nav a:hover {
    left: 0;
    background-color: #ffffff;
}

nav a:nth-child(1) {
    top: 90px;
}

nav a:nth-child(2) {
    top: 160px;
}

nav a:nth-child(3) {
    top: 230px;
}

nav a:nth-child(4) {
    top: 300px;
}


/*CONTENEDOR PRINCIPAL*/
header {
    text-align: right;
    padding-top: 80px;
    padding-right: 30px;
    background-color: black;
    color: #C6FF33;
}

.home img {
    width: 200px;
}

/**PROYECTOS**/
#proyectos {
    background-color: #000000;
    padding: 100px;
}

.galeria-masonry {
    display: block;
    width: 100%;
    column-count: 2;
    column-gap: 12px;
    margin-bottom: 20px;
    padding-top: 55px;
}

.carta-proyecto {
    perspective: 1000px;
    width: 100%;
}

.carta-interior {
    position: relative;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Activación del giro */
.carta-proyecto:hover .carta-interior {
    transform: rotateY(180deg);
}

/* Propiedades de las caras */
.cara-frente,
.cara-detras {
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 40px;

}

/* La cara de enfrente dicta el tamaño */
.cara-frente {
    display: block;
    position: relative;
}

.cara-frente img {
    width: 100%;
    height: auto;
    display: block;
}

/* La cara de atrás se acopla al tamaño de la de adelante */
.cara-detras {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #C6FF33;
    color: #000000;
    transform: rotateY(180deg);
    /* Centrado del texto sin importar qué tan alta o corta sea la carta*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Estilos de texto internos de la vuelta */
.cara-detras h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 10px;
    text-align: center;
}

.cara-detras p {
    font-size: 0.9rem;
    line-height: 1.1;
    text-align: center;
}

.boton {
    text-decoration: none;
    color: #000000;
}

.boton:hover {
    transform: scale(1.3);
    font-weight: bold;

}


/**FOOTER**/
footer {
    padding-top: 30px;
    color: #ffffff;
    text-align: left;
    background-color: #000000;
    padding: 100px !important;
}


footer h2 {
    font-family: 'Syne', sans-serif;
    text-align: center;
    font-weight: bold;
    font-size: 10vw;
    color: #C6FF33;

}

footer p {
    line-height: 1.2;
}

.flecha {
    position: fixed;
    bottom: 150px;
    left: 20px;
}

.flecha img {
    width: 40px;
    transition: all .3s ease;
}

.flecha img:hover {
    transform: rotate(180deg);
}

.flecha-dos {
    position: fixed;
    bottom: 220px;
    left: 20px;
}

.flecha-dos img {
    width: 40px;
    transition: all .3s ease;
}

.flecha-dos img:hover {
    transform: rotate(180deg);
}

.flecha-tres {
    position: fixed;
    bottom: 290px;
    left: 20px;
}

.flecha-tres img {
    width: 40px;
    transition: all .3s ease;
}

.flecha-tres img:hover {
    transform: rotate(180deg);
}

/**TABUES**/
.contenedor-tabues {
    background-color: #000000;
    padding-bottom: 540px;

}

.titular {
    display: block;
    color: #C6FF33;
    font-size: 8rem;
    font-weight: bold;
    text-align: right;
}

/* Título para móvil */
.titular-mobile {
    display: none;
    color: #C6FF33;
    font-size: 5rem;
    font-weight: bold;
    text-align: right;
    line-height: 1;
}

.contenedor {
    background-color: #ffffff;
    padding-top: 40px;
}

.logo {
    width: 100%;
    text-align: center;
    padding: 50px 50px 0 50px;
}

.descripcion p {
    text-align: center;
    max-width: 650px;
    font-size: 1.25rem;
    line-height: 1.6;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Tu tipografía de lectura */
    font-weight: 400;
    /* <-- 300 es el estándar web para "Light" */
    font-size: 20px;
    padding-top: 30px;

}

.seccion-galeria {
    background-color: #ffffff;
    padding: 50px 100px 50px 100px;
}


.img-presentacion {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 15px;
}

/**METRO**/
.contenedor-uno {
    padding-top: 60px;
}

/**Empaque**/
.img-mapa {
    width: 100%;
    height: 600px;
    display: block;

}

/**PACKAGING**/

.img-ds {
    margin-top: -160px !important;
}

.contenedor-dos{
    padding: 50px 100px 0px 100px;
}

.contenedor-tres{
    padding: 30px 100px 60px 100px;
}

/**ACERCA DE MÍ**/
h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
}


h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
}

.circulo-porcentaje {
    --porcentaje: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        #C6FF33 calc(var(--porcentaje) * 1%),
        #4a4a4a 0
    );
}

.valor-interno {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000000;
}

.nombre-programa {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.texto-blur {
    display: block;
}

.char,
.word {
    font-family: inherit;
}

/*MEDIA QUERIES*/
/* 1. PANTALLAS GRANDES / ESCRITORIO COMPLETO (De 1200px en adelante) */
@media (min-width: 1200px) {
    .galeria-masonry {
        display: block;
        width: 100%;
        column-count: 2;
        column-gap: 12px;
        margin-bottom: 20px;
    }

    .galeria-masonry .item-masonry {
        display: inline-block;
        width: 100%;
        margin-bottom: 50px;
        padding-left: 6px;
        padding-right: 6px;
    }
}

/*PANTALLAS MEDIANAS / NAVEGADOR A LA MITAD (De 768px hasta 1199px)*/
@media (max-width: 1199px) and (min-width: 768px) {
    .galeria-masonry {
        display: block;
        width: 100%;
        column-count: 2; /* Mantiene las 2 columnas de imágenes */
        column-gap: 12px;
        margin-bottom: 20px;
    }

    .galeria-masonry .item-masonry {
        display: inline-block;
        width: 100%;
        margin-bottom: 30px;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }

    .descripcion, .img-ds {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .flecha img, .flecha-dos, .flecha-tres img {
        width: 30px;
    }

    .titular {
        display: block;
        position: absolute;
        right: 20px;
        top: 100px;
        text-align: right;
    }
    .titular-mobile {
        display: none;
        
    }
    
}

/* 3. PANTALLAS CHICAS / MÓVILES (Menores a 767px) */
@media (max-width: 767px) {
    .galeria-masonry {
        display: block;
        width: 100%;
        column-count: 1;
        column-gap: 12px;
        margin-bottom: 20px;
    }

    .galeria-masonry .item-masonry {
        display: block;
        width: 100% !important;
        margin-bottom: 20px !important;
        padding-left: 6px;
        padding-right: 6px;
    }

    .flecha img, .flecha-dos, .flecha-tres img {
        display: none;
    }

    .titular {
        display: none;
    }

    .titular-mobile {
        display: block;
        position: absolute;
        right: 20px;
        top: 100px;
        text-align: right;
    }

    #proyectos {
        background-color: #000000;
        padding: 30px;
    }

    footer {
        padding: 30px !important;
    }

    .seccion-galeria {
        padding: 30px;
    }

    .img-ds {
        margin-top: 10px !important;
        width: 100% !important;
    }

    .descripcion {
        padding: 20px;
        width: 100% !important;
    }

    .contenedor-dos {
        padding: 30px 20px 0px 30px;
    }

    .contenedor-tres {
        padding: 30px 20px 60px 20px;
    }

    .contenedor-tabues{
        padding-bottom: 700px;
    }
}

@media (max-width: 500px) {
    nav {
        position: absolute !important;
        top: 100px !important;
        left: 0 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        z-index: 9999 !important;
    }

    nav a {
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        width: 140px !important;
        margin-bottom: 18px !important;
        font-weight: bold;
        display: block !important;
    }

    .titular {
        display: none;
    }
}

/*AJUSTE EXTRA PARA CELULARES MUY PEQUEÑOS (Menores a 500px) */
@media (max-width: 500px) {
    .home img {
        width: 200px;
    }
}