@import url('https://fonts.googleapis.com/css2?family=Gruppo&family=Orbitron:wght@400..900&family=Rubik+Glitch&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gruppo&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&family=Rubik+Glitch&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

:root {
    --color-fondo: rgb(255, 255, 255);

    --negro: #0D0D0D;
    --azul: #88E8F2;
    --rosa: #F272B8;
    --azul-oscuro: #59B5D9;
    --naranja: #F29E38;
}

html, body {
    background: aliceblue;
    color: var(--negro);
    scroll-behavior: smooth; /* suavizar el scroll*/
}

a {
    text-decoration: none;
    color: var(--negro);
}

a:hover {
    color: var(--azul);
}

/* Banner */
.banner {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-image: linear-gradient(rgba(255, 192, 203, 0.659), rgba(56, 173, 215, 0.562)), url('assets/images/fondo-2.jpg');
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    color: var(--color-fondo);
    padding: 2em 0;
}

.banner h1 {
    font-family: "Rubik Glitch", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
    color: var(--negro);
}

#logo {
    width:8em;
    transition: transform .3s;
}

    #logo:hover {
        transform: rotate(-45deg);
        transition: transform .3s;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
    }

/* h1 */
h1 {
    text-align: center;
    margin-bottom: 1em;
}
h1.linea {
  position: relative;
  z-index: 1;
}
h1.linea:before {
  border-top: 2px solid var(--negro);
  content: "";
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  width: 95%;
  z-index: -1;
}

h1.linea span {
  background: aliceblue;
  padding: 0 .5em;
}

/* Main */
.main {
    display: flex;
    text-align: center;
    justify-content: center;
    background-color: var(--negro);
    color: var(--color-fondo);
    padding: 4em;
    border-top: solid 2px var(--rosa);
    border-bottom: solid 2px var(--azul-oscuro);
}

/* NAV */

nav::-webkit-scrollbar { /*background*/
    width: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

nav::-webkit-scrollbar-thumb {
    width: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

nav .header img {
    position: absolute;
    height: auto;
    cursor: pointer;
    top: 12px;
    left: 14px;
    width: 25px;
}

nav {
    border-radius: 5px;
    padding: 1em 1em 2em 1em;

    position: fixed;
    z-index: 998;
    left: .5em;
    top: .5em;

    width: 70%;
    height: 100vh;
    overflow-y: auto;

    backdrop-filter: blur(40px);
    /* backdrop-filter: invert(80%); */
    /* backdrop-filter: sepia(90%); */
    color: var(--color-fondo);
    background-color: rgba(0, 0, 0, 0.8);

    transition: width 1.5s, max-height 2s 1s;
}

.ocultarSeccionNav {
    width: 3.4em;
    justify-content: center;
    max-height: 20px;
    overflow: hidden;
    border-radius: 5px;
    transition: width 1.5s, max-height 2s 1s, border-radius 2s;
}

.ocultarSeccionNav .seccionNav,
.ocultarSeccionNav h2 {
    transform: translateX(220px);
    transition: all 2s;
}

nav a {
    color: var(--color-fondo);
}

nav .bi-whatsapp:hover {
    background: none;
    color: #25d366;
}

nav .bi-envelope-at-fill:hover {
    background: none;
    color: #ba1010;
}

nav img {
    filter: invert(100%);
    width: auto;
    height: 25px;
}

nav p {
    font-size: 20px;
    font-weight: 500;
}

nav div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 50px;
}

nav .header { 
    margin: 30px 0px;
}

nav .visible,
nav .darkMode {
    display: flex;
    align-items: center;
    height: 63px;
}

nav .visible p,
nav .darkMode p {
    margin-left: 20px;
    width: 175px;
}

nav .seccionNav {
    overflow: hidden;
    gap: 15px;
}

#down {
    display: block;
    position: absolute;
    bottom: 4em;
    left: 2em;
    gap: 2em;
}

#down1 {
    display: block;
    position: absolute;
    bottom: 2em;
    left: 2em;
}

/* -------------------------------------------------------- */

/* Translate */
.translate {
    display: flex;
    position: absolute; 
    text-align: end;
    justify-content: end;
    right: 0;
    top: 0;
    gap: .4em;
    margin-top: 1em;
    margin-right: 2em;
}

.translate img {
    width: 2em;
    height: 2em;
    background: none;
}

.translate button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Servicios */
.servicios {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 4em;
}

.container-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 2em;
}

.item-servicios {
    display: block;
    border-left: solid 2px var(--rosa);
    border-top: solid 2px var(--rosa);
    border-right: solid 2px var(--azul-oscuro);
    border-bottom: solid 2px var(--azul-oscuro);
    border-radius: 5px;
    width: 100%;
    height: auto;
    justify-content: center;
    font-weight: bold;
    align-items: center;
    padding: 1em;
}

.item-servicios img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

#item-services-description {
    margin-top: 1em;
}

/* Botón */
.boton {
    display: flex;
    justify-content: center;
}

.item-boton {
    margin-top: 2em;
    border: none;
    border-radius: 5px;
    padding: 1em;
    background: var(--negro);
    color: aliceblue;
}

.item-boton:hover {
    background: var(--azul);
    color: var(--negro);
}

/* Proyectos */
.proyectos {
    padding: 0 4em 4em 4em;
}

.container-proyectos {
    display: grid;
    text-align: center;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: .8em;
    grid-template-areas: 
    "ele1 ele1 ele2 ele3"
    "ele1 ele1 ele4 ele4"
    "ele6 ele5 ele5 ele7";
}

.container-proyectos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* background-size: cover;
    background-position: center center; */
    border-left: solid 2px var(--rosa);
    border-top: solid 2px var(--rosa);
    border-right: solid 2px var(--azul-oscuro);
    border-bottom: solid 2px var(--azul-oscuro);
    border-radius: 5px;
}

.container-proyectos p {
    /* display: none; */
    color: #0D0D0D;
    position: absolute;
}

.item-proyectos--1 {
    grid-area: ele1;
}
        .item-proyectos--1::after {
            content: 'Cybercapri';
        }
.item-proyectos--2 {
    grid-area: ele2;
}
        .item-proyectos--2::after {
            content: 'Logon Cars';
        }
.item-proyectos--3 {
    grid-area: ele3;
}
        .item-proyectos--3::after {
            content: 'Cocinas López';
        }
.item-proyectos--4 {
    grid-area: ele4;
}
        .item-proyectos--4::after {
            content: 'Lubay';
        }
.item-proyectos--5 {
    grid-area: ele5;
}
        .item-proyectos--5::after {
            content: 'Logon Landscapes';
        }
.item-proyectos--6 {
    grid-area: ele6;
}
        .item-proyectos--6::after {
            content: 'Bolsón Abogados';
        }
.item-proyectos--7 {
    grid-area: ele7;
}
        .item-proyectos--7::after {
            content: 'TuCasa';
        }

        .item-proyectos {
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .item-proyectos::after {
            overflow: hidden;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            /* background-color: #f272b8c3; */
            background-color: #59b5d9d4;
            color: var(--color-fondo);
            text-align: center;
            font-size: 1.5rem;
        
            display: flex;
            justify-content: center;
            align-items: center;
            transform: scale(0);
            transition: transform .3s;
        }
        
        .item-proyectos:hover::after {
            transform: scale(1);
        }

/* Contacto */
.contacto {
    padding: 2em 0;
    background: var(--negro);
    color: aliceblue;
    border-top: solid 2px var(--rosa);
    border-bottom: solid 2px var(--azul-oscuro);
}

.container-contacto {
    display: grid;
    grid-template-columns: 90% 10%;
    text-align: center;
}

/* Formulario */
.form {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 1em auto;
    gap: 1em;
}

.item-form ::placeholder {
    padding-left: .5em;
    font-family: "Roboto", Helvetica, sans-serif;
    font-size: 1em;
    color: aliceblue;
    font-weight: 200;
}

.form input, textarea {
    border-left: solid 2px var(--rosa);
    border-top: solid 2px var(--rosa);
    border-right: solid 2px var(--azul-oscuro);
    border-bottom: solid 2px var(--azul-oscuro);
    border-radius: 5px;
    width: 100%;
    height: 4em;
    font-size: 1em;
    font-family: "Montserrat", sans-serif;
    color: var(--color-fondo);
    background: linear-gradient(#48494a, #979697);
    padding: 1em;
    font-weight: bold;
}
        .form input:hover, textarea:hover {
            border: solid 2px #128c7e;
        }

.form textarea {
    height: 13em;
}

.datos {
    display: flex;
    gap: 1em;
}

#name, #email {
    width: 100%;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    }
/* input[type=number] { -moz-appearance:textfield; } */

.form button {
    font-size: 1em;
    padding: .5em;
    border-radius: 5px;
    border-style: none;
    background: var(--azul);
    color: var(--rosa);
    cursor: pointer;
    font-weight: bold;
}
        .form button:hover {
            background: var(--rosa);
            color: var(--azul);
        }

.obligatorio {
    text-align: left;
    font-weight: 200;
}

/* Redes sociales */
.redes-sociales {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    list-style: none;
    font-size: 2em;
    gap: 1.2em;
    margin:  1em auto;
    text-align: left;
}

#titulo-rs {
    text-align: left;
}

.redes-sociales .bi {
    color: var(--color-fondo);
}
    .bi-telephone-fill:hover {
        color: #128c7e;
    }
    .bi-whatsapp:hover {
        color: #25d366;
    }
    .bi-linkedin:hover {
        color: #0088cc;
    }
    .bi-instagram:hover {
        color: #F272B8;
    }
    .bi-envelope-at-fill:hover {
        color: #ba1010;
    }

/* Footer */
footer {
    background: var(--negro);
    color: aliceblue;
    text-align: center;
    font-weight: 100;
    font-size: .8rem;
    padding: 2em 0;
}

/* @ media queries */
@media screen and (max-width: 1050px) {
    .container-proyectos {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: auto;
        gap: .8em;
        grid-template-areas: 
        "ele1 ele1 ele2 ele2"
        "ele1 ele1 ele2 ele2"
        "ele3 ele3 ele4 ele4"
        "ele6 ele5 ele5 ele7";
    }
}

@media screen and (max-width: 830px) {
    .container-servicios {
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
    }

    .container-proyectos {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: .8em;
        grid-template-areas: 
        "ele1 ele2"
        "ele3 ele4"
        "ele5 ele5"
        "ele6 ele7";
    }

    .container-contacto {
        display: block;
    }

    .redes-sociales {
        display: flex;
        flex-direction: row;
        font-size: 2em;
        gap: .8em;
        margin-top:  2em;
        text-align: center;
        justify-content: center;
    }

    #titulo-rs {
        display: none;
    }
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Smartphones*/

    .banner h1 {
        font-size: 2rem;
    }

    h1, h2 {
        font-size: 1rem;
    }

    #down, #down1 {
        font-size: 12px;
    }

    .main {
        padding: 2.5em;
    }

    .servicios {
        padding: 2em;
    }

    .container-servicios {
        display: flex;
        flex-direction: column;
        gap: .7em;
    }

    #item-services-description {
        font-size: .8rem;
    }

    .proyectos {
        padding: 2em;
    }

    .container-proyectos {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    .container-proyectos img {
        height: 10em;
    }

    .datos {
        flex-direction: column;
    }

    .obligatorio {
        font-size: .7rem;
    }

    .item-form ::placeholder {
        font-size: .7rem;
    }
    
    .form input, textarea {
        font-size: .7rem;
    }

    .redes-sociales {
        font-size: 1.2em;
    }

    footer {
        font-size: .6rem;
    }
}

/*
 --rosa: #F272B8;
    --azul-oscuro: #59B5D9;
*/