:root{
    --gris: #9e9e9e;
    --fondo: #f6f6f6;
    --navegacion: #4c5aa8;
    --letras_blancas: #ffffff;
    --letras_negras: #000000;
}
html{
    font-size: 62.5%;
    box-sizing: border-box; /*Hack para box model*/
    /*scroll-snap-type: y mandatory;*/

}

/*Scroll Snap*/
.servicios,
.navegacion-principal,
.formulario{
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

*,*:before,*:after{
    box-sizing: inherit;
}
body{
    font-size: 16px; /*1 rem = 16px*/
    font-family: Kanit, sans-serif;
    background-image: linear-gradient(to top, var(--fondo), var(--gris) 100%);
}

.boton{
    background-color: var(--navegacion);
    color: var(--letras_blancas);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;
}

.boton:hover{
    cursor: pointer;
}

.sombra{
    box-shadow: 0px 5px 15px 0px rgba(15,14,14,0.54);
    background-color: var(--gris);
    border-radius: 1rem;
    padding: 2rem;
    color: var(--letras_blancas);
}

h1{
    font-size: 3.8rem;
}

h2{
    font-size: 2.8rem;
}

h3{
    font-size: 1.8rem;
}

h1,h2,h3{
    text-align: center;
}

.titulo span{
    font-size: 2rem;
}

/*Utilidades*/
.w-sm-100{
    width: 100%;
}

.alinear-derecha{
    justify-content: flex-end;
}

.flex{
    display: flex;
}

.contenedor{
    max-width: 120rem;
    margin: 0 auto;
}

.nav-bg{
    background-color: var(--navegacion);
}

.navegacion-principal{
    display: flex;
    flex-direction: column;
}

.navegacion-principal a{
    display: block;
    text-align: center;
    color: var(--letras_blancas);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
}

.navegacion-principal a:hover{
    background-color: var(--letras_negras);
}

.hero{
    background-image: url('../resources/tablero.png');
    height: 45rem;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin-bottom: 2rem;
}

.contenido-hero{
    position: absolute;
    background-color: rgba(0,0,0,.7);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contenido-hero h2,
.contenido-hero p{
    color: var(--letras_blancas);
}

.ubicacion{
    display: flex;
    align-items: flex-end;
}

/*Servicios*/
.click-boton{
    scroll-snap-align: center;
}

.servicio{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio h3{
    font-weight: normal;
}

.servicio p{
    line-height: 2;
}

.servicio .iconos{
    height: 15rem;
    width: 15rem;
    background-color: var(--navegacion);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*Contacto*/
.formulario{
    background-color: var(--navegacion);
    width: min(60rem, 100%); /*utiliza el valor mas pequeño*/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
    font-weight: normal;
}

.formulario fieldset{
    border: none;
}

.formulario legend{
    color: var(--letras_blancas);
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 2rem;
}

.campo{
    margin-bottom: 1rem;
}
.campo label{
    color: var(--letras_blancas);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.campo textarea{
    height: 20rem;
}

.input-text{
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

.enviar .boton{
    width: 100%;
}

footer p{
    text-align: center;
}

.producto{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.producto-card {
    background-color: var(--navegacion);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);
}

.producto-card img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    display: block;
}

.producto-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.producto-nombre {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--letras_blancas);
    text-align: left;
    margin: 0;
}

.producto-descripcion {
    font-size: 1.4rem;
    color: var(--letras_blancas);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.producto-precio {
    font-size: 2rem;
    font-weight: bold;
    color: var(--letras_blancas);
    margin: 0;
}

.producto-links{
    text-decoration: none;
}

.catalogo-titulo {
    margin-bottom: 0.5rem;
}

.catalogo-subtitulo {
    text-align: center;
    font-size: 1.5rem;
    color: var(--letras_blancas);
    margin-bottom: 1rem;
}

@media (max-width: 479px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }

    .titulo span { font-size: 1.6rem; }

    .hero {
        height: 35rem;
    }

    .contenido-hero h2 {
        font-size: 2rem;
        padding: 0 1rem;
        text-align: center;
    }

    .ubicacion svg {
        width: 40px;
        height: 40px;
    }

    .boton {
        width: 90%;
        font-size: 1.6rem;
    }

    .sombra {
        padding: 1.5rem;
        border-radius: .5rem;
    }

    .servicio .iconos {
        height: 10rem;
        width: 10rem;
    }

    .catalogo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .producto-card img {
        height: 18rem;
    }

    .formulario {
        padding: 1.5rem;
    }
}


@media (min-width: 480px) {
    .boton {
        width: auto;
    }

    .w-sm-100 {
        width: auto;
    }

    .navegacion-principal {
        flex-direction: row;
        justify-content: space-evenly;
    }

    .servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }

    .contenedor-campos {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem;
        margin-bottom: 2rem;
    }

    .campo:nth-child(3),
    .campo:nth-child(4) {
        grid-column: 1/3;
    }

    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 768px) {
    h1 { font-size: 4.2rem; }
    h2 { font-size: 3rem; }

    .hero {
        height: 50rem;
    }

    .producto-card img {
        height: 22rem;
    }

    .sombra {
        padding: 3rem;
    }

    .catalogo-grid {
        gap: 2.5rem;
    }
}


@media (min-width: 1024px) {
    .hero {
        height: 55rem;
    }

    .producto-card img {
        height: 24rem;
    }

    .contenido-hero h2 {
        font-size: 3.5rem;
    }

    .catalogo-grid {
        gap: 3rem;
    }

    .servicio .iconos {
        height: 15rem;
        width: 15rem;
    }
}

.contenedor-campos {
    max-width: 120rem;
    margin: 0 auto;
}

.contenedor__arti {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 480px) {
    .contenedor__arti {
        flex-direction: row;
        align-items: flex-start;
    }

    .cable__imagen {
        width: 60%;
        object-fit: cover;
        border-radius: .5rem;
    }

    .producto__articulo {
        flex: 1;
    }
}

@media (min-width: 1200px) {
    .contenedor {
        padding: 2 2rem;
    }

    h1 { font-size: 4.5rem; }
}

.producto__articulo form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.producto__articulo select,
.producto__articulo input[type="number"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: .5rem;
    font-family: Kanit, sans-serif;
    font-size: 1.6rem;
    background-color: var(--fondo);
    color: var(--letras_negras);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.producto__articulo select:focus,
.producto__articulo input[type="number"]:focus {
    box-shadow: 0 0 0 3px rgba(76, 90, 168, 0.5);
}

.producto__articulo input[type="submit"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: .5rem;
    font-family: Kanit, sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--navegacion);
    color: var(--letras_blancas);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.producto__articulo input[type="submit"]:hover {
    background-color: var(--letras_negras);
    transform: translateY(-2px);
}

.producto__articulo input[type="submit"]:active {
    transform: translateY(0);
}

#cart-nav-link {
    position: relative;
}

#cart-count {
    background-color: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 0 .5rem;
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 2rem;
    display: inline-block;
    text-align: center;
}