@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;

}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
}

:root {
    --lake: #303030;
    --brick: #C33D2B;
    --cream: #ffffff;
    --charcoal: #333333;
}

.italic {
    font-style: italic;
    text-align: center;
    font-size: 28px;
}

.syne {
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
}

.lake {
    color: var(--lake);
}

.flex {
    display: flex;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fff3df;
}

::-webkit-scrollbar-thumb {
    background: var(--lake);
    border-radius: 4px;
}

h1 {
    font-family: "DM Sans", sans-serif;
    font-size: 38px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--cream);
    text-align: center;
}

h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -1.57px;
}

footer h3 {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--lake);
    margin-bottom: 0.4em;
    letter-spacing: 2px;
}

h4 {
    color: var(--lake);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p, .hora {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

footer p, footer .hora {
    color: var(--charcoal);
    font-size: 16px;
}

.btn {
    display: inline-block;
    background-color: var(--lake);
    color: var(--cream);
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 0.5em 1em;
    border-radius: 68px;
}

#btnPortada {
    transition: 0.3s;
}

.project-filter {
    color: var(--lake);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2px;
    padding: 8.419px 16.838px;
    border-radius: 28px;
    border: 2px solid var(--lake);
    transition: 0.3s;
    background-color: transparent;
}

.project-filter:hover {
    background-color: #00000010;
    cursor: pointer;
}

.project-filter.active {
    background: var(--lake);
    color: var(--cream);
}

.contenedor {
    max-width: 1700px;
    width: 90%;
    margin: 0 auto;
}

#menu {
    position: fixed;
    top: 20px;
    right: 1em;
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: transparent;
    z-index: 1100;
}

#menu.shrink {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 0.5em;
    background-color: var(--lake);
    transition: all 0.3s ease;
    z-index: 1100;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}


header {
    background-color: var(--lake);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0em 3em;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    max-width: 100vw;
    overflow: hidden;
    position: fixed;
}

header nav {
    display: flex;
    justify-content: flex-end;
    gap: 2em;
}

header nav a {
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}


#hero {
    position: relative;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-image: url(img/fondohero.jpg);
    background-size: cover;
    background-position: center;
}

#hero .contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

#video {
    background-color: var(--lake);
    padding-bottom: 5em;
}

#video .contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#video h2 {
    color: var(--cream);
    margin: 0.5em 0em;
}

#video video {
    width: 60%;
}

#servicios {
    background-color: var(--lake);
    color: var(--cream);
    padding: 5em 0;

}

#servicios .contenedor {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#servicios h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
}

#servicios .contenedor div {
    border: 0.7px solid var(--cream);
    width: 36%;
    padding: 2em;
    transition: 0.3s;
    border-radius: 6px;
}

#servicios .contenedor div:hover {
    background-color: var(--cream);
    border-color: var(--cream);
    color: var(--lake);
    transform: scale(1.1);
}

#servicios .contenedor div h3 {
    margin-bottom: 0.5em;
    letter-spacing: 0px;
}

#proyectos {
    padding: 3em 0;
}

#proyectos .contenedor {
    text-align: center;
}

#proyectos h2 {
    margin-bottom: 0.3em;
    color: var(--lake);
}

.project-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
    justify-content: center;
}

#proyectos article {
    border: 1px solid var(--lake);
    transition: 0.3s;
    width: 100%;
}

#proyectos article:hover {
    box-shadow: 0 4px 8.1px 0 rgba(0, 0, 0, 0.43);
}

#proyectos article img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-bottom: 1px solid var(--lake);
    ;
}

.project-info {
    padding: 0.5em 1em 1em 1em;
}

.project-titulos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proyectos article h4 {
    display: inline-flex;
}

.project-tags {
    display: flex;
    gap: 0.5em;
    margin-top: 0.5em;
    overflow: hidden;
}

.project-tag {
    color: var(--lake);
    min-width: max-content;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.5px;
    border-radius: 23.536px;
    border: 1.092px solid var(--lake);
    padding: 0.4em 0.7em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 350px));
    gap: 1.5em;
    justify-content: center;
}

#sobremi {
    color: var(--lake);
    display: flex;
}


.sobremi-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 1em;
    padding: 7em;
}

.sobremi-img {
    flex: 1;
    min-height: 100%;
    background-image: url(img/brava-1-1.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.sobremi-info p {
    font-size: 18px;
    color: var(--charcoal);
    line-height: 1.6;
}

.sobremi-info p span {
    font-weight: 600;
    color: var(--brick);
}

#contacto {
    padding: 3em 0;
}

#contacto h2 {
    color: var(--lake);
}

#contacto p {
    color: var(--lake);
    font-size: 20px;
    letter-spacing: 0px;
    margin-bottom: 0.5em;
}

#contacto label {
    color: var(--charcoal);
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

#contacto input, #contacto textarea {
    width: 100%;
    padding: 0.5em;
    border: none;
    border-bottom: 1px solid var(--charcoal);
    background-color: transparent;
    margin-bottom: 1em;
}

#contacto input:focus, #contacto textarea:focus {
    outline: none;
    border-color: var(--lake);
}

#contacto textarea {
    min-width: 100%;
    min-height: 62px;
}

#contacto button {
    background-color: var(--lake);
    color: var(--cream);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    padding: 0.5em 1em;
    border-radius: 68px;
    border: none;
    transition: 0.3s;
    text-transform: uppercase;
}

#contacto button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8.1px 0 rgba(0, 0, 0, 0.43);
}

#contacto button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 13.2px 0 #002018 inset;
}

footer {
    padding: 2em 0;
}

footer .contenedor {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3em;
}

footer .contenedor div:nth-last-of-type(1) {
    width: 100%;
}

footer nav, .links {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

footer a {
    color: var(--charcoal);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.943px;
    position: relative;
    width: fit-content;
}

#sobremi a {
    color: var(--charcoal);
    font-family: "DM Sans", sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.943px;
    position: relative;
    width: fit-content;
}

footer a::before, #sobremi a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: var(--charcoal);
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

footer a:hover::before, #sobremi a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.links div {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

#popUpForm {
    width: fit-content;
    position: fixed;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    background-color: var(--lake);
    color: var(--cream);
    padding: 2em;
    box-shadow: 0 4px 8.1px 0 rgba(0, 0, 0, 0.43);
    z-index: 10000;

    opacity: 0;
    /* Invisible al inicio */
    pointer-events: none;
    /* No se puede clickear mientras invisible */
    transition: opacity 0.3s ease;
    /* Animación suave */
}

#popUpForm.show {
    opacity: 1;
    /* Visible */
    pointer-events: auto;
    /* Se puede clickear */
}

#closePopUp {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#popUpForm p {
    font-size: 32px;
    color: var(--cream);
}


/* PAGINA PROYECTO */

#proyecto {
    padding: 3em 0em;
}

#proyecto .contenedor {
    width: 85%;
}

#proyecto a img {
    width: 40px;
}

#proyecto h2 {
    font-weight: 500;
    letter-spacing: 7px;
}

#proyecto .project-tags {
    margin-bottom: 1em;
}

#proyecto .project-tag {
    font-size: 22px;
}

#proyecto p {
    color: var(--charcoal);
    font-size: 20px;
    width: 90%;
}

#proyecto a {
    display: inline-block;
    margin: 1em 0;
    font-family: "DM Sans", sans-serif;
    text-transform: uppercase;
    font-size: 22px;
}

#proyecto h3 {
    color: var(--lake);
    text-transform: uppercase;
    font-size: 22px;
    letter-spacing: 4px;
}

.min-proyecto {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--lake);
    height: 100%;
}

.info-proyecto {
    flex: 1;
}

.contenedor-proyecto {
    display: flex;
    gap: 2em;
    align-items: center;
}


#planteamiento {
    background-color: var(--lake);
    color: var(--cream);
}

#planteamiento .contenedor {
    padding: 3em 0em;
}

#POS {
    display: flex;
    gap: 2em;
    justify-content: center;
    margin-top: 3em;
}

#POS div {
    border: 0.7px solid var(--cream);
    width: 30%;
    padding: 2em;
    transition: 0.3s;
}

#POS div:hover {
    background-color: var(--cream);
    border-color: var(--cream);
    color: var(--lake);
    transform: scale(1.1);
}

#proceso {
    color: var(--charcoal);
    padding: 4em 0em;
    text-align: center;
}

#proceso h2 {
    color: var(--lake);
    margin-bottom: 0.5em;
}

#proceso .flex-centrar {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

#proceso .flex-centrar:first-of-type {
    margin-bottom: 3em;
}

#proceso .color-info {
    background-color: var(--cream);
    padding: 0.8em;
    width: 100%;
    max-width: 180px;
}

#proceso .color-cont {
    aspect-ratio: 1/1;
    width: 100%;
    margin-bottom: 0.5em;
    border: 0.7px solid rgba(0, 0, 0, 0.26);
}

#proceso .color-info {
    transition: 0.3s;
    border: 0.7px solid rgba(0, 0, 0, 0.26);
}

#proceso .color-info:hover {
    box-shadow: 0 4px 8.1px 0 rgba(0, 0, 0, 0.43);
}

.paso {
    border: 1px solid rgba(0, 0, 0, 0.43);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: transform .35s ease, box-shadow .35s ease;

    height: auto;
    align-self: start;
}

.paso:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
}

.paso img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    border-top: 1px solid rgb(0, 0, 0);

}

.paso h3 {
    font-size: 20px;
    font-weight: 400;
    padding: 18px 18px 20px;
    margin: 0;
    color: var(--lake);
    letter-spacing: 0px;
}

@media (max-width: 984px) {
    .contenedor-proyecto {
        flex-direction: column-reverse;
    }

    #proyecto p {
        width: 100%;
    }
}


@media (max-width: 768px) {

    header {
        position: relative;
    }

    header nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        z-index: 1000;
        padding: 2em;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    header nav.active {
        opacity: 1;
        pointer-events: all;
        background-color: rgba(0, 0, 0, 0.85);
    }


    header nav a {
        font-size: 28px;
    }

    #menu {
        display: flex;
    }

    #menu.shrink {
        position: fixed;
        display: block;
    }

    #menu.open line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        transform-origin: 20px 12px;
    }

    #menu.open line:nth-child(2) {
        opacity: 0;
    }

    #menu.open line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        transform-origin: 20px 28px;
    }

    #menu line {
        transition: all 0.3s ease;
    }


    #hero h1 {
        font-size: 18px;
    }

    #servicios .contenedor {
        width: 80%;
    }

    #servicios .contenedor div {
        width: 100%;
    }

    #video video {
        width: 90%;
    }

    #sobremi .contenedor {
        flex-direction: column;
    }

    .sobremi-info {
        gap: 1em;
    }

    .sobremi-info p {
        font-size: 24px;
    }

    .sobremi-img {
        width: 100%;
    }

    h3 {
        font-size: 28px;
    }

    footer .contenedor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer nav {
        align-items: center;
    }

    #popUpForm {
        width: 90%;
    }

    #popUpForm p {
        font-size: 24px;
    }

    #POS {
        flex-direction: column;
    }

    #POS div {
        width: 100%;
    }

    #proyecto .project-tags {
        flex-wrap: wrap;
    }

    #proyecto .project-tag {
        font-size: 24px;
    }


}

@media (max-width: 480px) {
    .contenedor {
        width: 90%;
    }

    header {
        padding: 1em;
    }

    header img {
        width: 60px;
    }

    #hero h1 {
        font-size: 18px;
    }

    #proyectos .contenedor {
        width: 80%;
    }

    #proyectos .project-filter {
        font-size: 14px;
    }

    #servicios .contenedor {
        width: 80%;
    }

    #btnEnviar {
        width: 100%;
    }

    #proyecto {
        padding: 2em 0em;
    }

    #proyecto .project-tag {
        font-size: 22px;
    }

    #proyecto p {
        font-size: 20px;
    }

    #proyecto a {
        font-size: 18px;
    }

    #planteamiento .italic {
        font-size: 22px;
    }

    #planteamiento h2 {
        font-size: 24px;
    }


    #proceso .color-info {
        width: 110px;
    }

    #sobremi a {
        font-size: 22px;
    }


}