* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: black;
    color: #fff;
}

/* HEADER */

#header {
    width: 100%;
    height: 100vh;
    background-image: url(./img/fondo.jpg);
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    position: relative;
}

.logo {

    height: auto;
    max-width: 55%;
    display: flex;
}

nav ul {
    position: fixed;
    right: -100%;
    top: 0;
    width: 220px;
    height: 100vh;
    background-color: #522c52;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 60px;
    padding-left: 20px;
    gap: 25px;
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #b94ce8;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}


/* Desde renglon 13 hasta 60, es CSS para HEADER */

/* Sobre Nosotros */

#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 90%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.subtitle {
    font-size: 50px;
    font-weight: 600;
    color: #fff;
}

.about-col-2 p {
    color: #fff;
    font-size: 20px;
    margin-top: 20px;
}

/* Productos */

.subtitle {
    font-size: 50px;
    display: flex;
    justify-content: center;
}

#productos {
    padding: 30px 0;
}

.productos-listado {
    display: grid;
    grid-template-columns: 1fr;
    /* Móvil por defecto */
    gap: 40px;
    margin-top: 50px;
    padding: 0 20px;
}

.productos-listado div {
    background: rgb(56, 44, 57);
    padding: 40px;
    font-size: 15px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.productos-listado div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.productos-listado div a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

div img {
    width: 100%;
}

/*
.productos-listado div:hover{
    background: linear-gradient(0,0,0,0.5), #b94ce8;
    transition: translateY(-10px);
} */


/* Contacto */

.boton {
    display: block;
    background: #b94ce8;
    color: #fff;
    margin: auto;
    padding: 0 25px;
    border-radius: 10px;
    font-size: 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.5s, transform 0.5s;
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 30px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #b94ce8;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #b94ce8;
    color: #fff;
    padding: 14px 60px;
    border-radius: 10px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

nav .fa-solid {
    display: none;
}

#msg {
    color: #61b752;
    margin-top: 30px;
    display: block;
}

/* CSS para pantallas chicas */

@media only screen and (max-width: 767px) {
    #header {
        padding-top: 20px;
        width: 115%;
    }

    nav .fa-solid {
        display: block;
        font-size: 40px;
        padding-right: 100px;
    }

    nav ul .fa-xmark {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
        z-index: 3;
    }

    nav ul {
        background: #522c52;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    

    .about-col-1 img {
        display: flex;
    }

    .subtitle {
        font-size: 35px;
        text-align: center;
        padding-top: 20px;
    }

    .about-col-2 p {
        font-size: 18px;
    }

    #productos .subtitle {
        display: flex;
        margin-left: 10px;
    }

    .boton {
        display: flex;
        justify-content: center;
        text-align: center;
        padding-bottom: 15px;
        margin-top: 30px;
    }

    .row {
        margin-bottom: 30px;
        display: grid;
        padding: 20px 25px;
        text-align: justify;
        justify-content: center;
    }

    .row img {
        width: 100%;
    }

    .productos-listado {
        display: grid;
        padding: 0 20px;
    }

    .productos-listado div h2 {
        justify-content: center;
        display: flex;
        padding-top: 15px;
    }

    .btn.btn2 {
        margin: 20px 50px;
    }

    .contact-left p {
        display: flex;
        justify-content: center;
    }

    .social-icons {
        display: flex;
        justify-content: center;
    }

    .copyright {
        font-size: 14px;
        text-align: center;
        width: 110%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .productos-listado {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }

    nav ul {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
        gap: 30px;
    }

    nav .fa-solid {
        display: none;
        /* Oculta el icono hamburguesa */
    }

    nav ul li a {
        font-size: 20px;
    }

    nav ul li {
        margin: 0;
        font-size: 10px;
    }

    nav ul.show {
        right: auto;
    }

    nav .fa-solid {
        display: none;
    }

    .logo {
        max-width: 40%;
    }
}

/* Computadoras: 3 columnas */
@media (min-width: 1025px) {
    .productos-listado {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 60px;
    }

    .logo {
        max-width: 30%;
    }

    nav ul li a {
        font-size: 25px;
    }

    nav ul {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
        gap: 20px;
    }

    nav .fa-solid {
        display: none;
        /* Oculta el icono hamburguesa */
    }
}