/*** Variables de colores ***/
:root {
    --primario: #F6F6F6;
    --secundario: #A6A6A6;
    --mainTitle: #212121;
    --secTitle: #F6F6F6;
    --otros: #595959;
}
/*** Estilos predefinidos para todo el sitio ***/
html {
    font-family: 'Raleway', sans-serif;
    font-size: 62.5%;
    background-color: var(--primario);
    color: var(--mainTitle);
    box-sizing: border-box;
    /***scroll-snap-type: y mandatory;***/
}

*, *:before, *:after {
    box-sizing: inherit; /* Hack para box model */ 
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

body {
    font-size: 16px;/* 1rem = 10px */
}

h1 {
    color: var(--secTitle);
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

/*** Scroll Snap 
.servicios,
.navegacion-principal,
.formulario {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}***/

.contenedor {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: var(--primario);
}

.sombra {
    box-shadow: 0px 5px 15px 0px var(--otros);
    padding: 2rem;
    border-radius: .5rem;
}

.btn {
    text-decoration: none;
    color: var(--primario);
    background-color: var(--mainTitle);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    border: none;
    width: 80%;
}

.btn:hover {
    cursor: pointer;
}

/*** Utilidades ***/

.w-sm-100 {
    width: 100%;
}

.flex {
    display: flex;
}

.alinear-derecha {
    justify-content: flex-end;
}

/*** Estilos para info de contacto ***/
.contact-info {
    display: flex;
    justify-content: end;
    width: 100%;
    padding: 0.5rem;
    background-color: #6D9886;
}

.contact-info a{
    color: var(--primario);
    text-decoration: none;
    margin-right: 1rem;
}

/*** Estilos para la navegación principal ***/

.nav-bg {
    background-color: var(--mainTitle);
}

.navegacion-principal {
    display: flex;
    flex-direction: row;
    justify-content:space-around;
    align-items: center;
    height: 80px;
    background-color: var(--mainTitle);

}

.navegacion-principal a {
    color: var(--primario);
    text-decoration: none;
    width: 100%;
    padding: 2rem;
    transition: ease-in 350ms;
    font-size: 1.7rem;
    font-weight: bold;
}

.navegacion-principal a:hover {
    background-color: rgba(255, 255, 255,.15);
}

/*** Estilos del hero ***/

.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    margin-bottom: 2rem;
}

.contenido-hero {
    position: absolute;
    width: 100%;
    height: 100%;
    margin-top: auto;
    overflow: hidden;
}

/*** Slider ***/

.contenido-hero ul {
    display: flex;
    margin: 0;
    padding: 0;
    width: 400%;
    height: 100%;
    animation: change 20s infinite alternate linear;
}

.contenido-hero li {
    position: relative;
    width: 100%;

    list-style: none;
}


.slider-1, .slider-2, .slider-3, .slider-4 {
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.slider-1 {
    background-image: url(../img/bmw-2021.jpg);

}

.slider-2 {
    background-image: url(../img/mercedez-benz-2022-350.jpg);
}

.slider-3 {
    background-image: url(../img/mercedez-benz-2022.jpg);
}

.slider-4 {
    background-image: url(../img/mercedez-benz.jpg);
}

.contenido-hero-p {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 350px;
    height: 250px;
    background-color:#21212191;
    color: var(--primario);
    padding: 15px;
}

@keyframes change {
    0% {margin-left: 0;}
    20% {margin-left: 0;}

    25% {margin-left: -100%;}
    45% {margin-left: -100%;}

    50% {margin-left: -200%;}
    70% {margin-left: -200%;}

    75% {margin-left: -300%;}
    100% {margin-left: -300%;}
}

/*** Estilos de la sección principal ***/

.principal h2{
    color: var(--mainTitle);
}

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin: 0 auto;
}

.about-content {
    display: flex;
    justify-content:center;
    align-items: flex-start;
}

.about-text {
    text-align: justify;
    font-size: 2rem;
}

.about-text h3 {
    text-align: justify;
}

.about-content img {
    width: 45%;
    margin-right: 40px;
    box-shadow: 5px 5px 5px rgb(121, 121, 121);
}

/*** Estilos banner ***/

.middle {
    width: 100%;
    background-color: #6D9886;
    padding: 10px;
    margin-top: 4rem;
}

.middle-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.middle-content h2 {
    color: var(--primario);
}

.middle-content .btn-contact {
    margin-left: 30px;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    transition: .500s ease;
}

.middle-content .btn-contact:hover {
    background-color: #3b3b3b;
}

/*** Estilos de Gallery ***/

.gallery {
    color: var(--secTitle);
    background-color: var(--mainTitle);
    padding: 5rem 0;
    height: 800px;
}

.gallery-header {
    margin-bottom: 50px;
}

.gallery h2 {
    color: var(--secTitle);
    margin: 0;
}

.container-slider {
    position: relative;
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    margin: auto;
}

.slider {
    display: flex;
    width: 400%;
    height: 500px;
    margin-left: -100%;
}

.slider__section {
    width: 100%;
}

.slider__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.705);
    cursor: pointer;
}

.slider__btn:hover {
    color: #fff;
}

.slider__btn--left {
    left: 10px;
}

.slider__btn--right {
    right: 10px;
}


/*** Estilos de contacto ***/

.formulario {
    color: var(--mainTitle);
    width: min(60rem, 100%);
    margin: 0 auto;
    padding: 2rem;
    border-radius: .3rem;
}

.formulario fieldset {
    border: none;
}

.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--mainTitle);
}

.campo {
    margin-bottom: 1rem;
}

.campo label {
    display: block;
    color: var(--mainTitle);
    font-weight: bold;
    margin-bottom: .5rem;
}

.campo-input {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

/*** Footer ***/
.footer {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    padding-top: 2rem;
    background-color: var(--mainTitle);
    font-size: 1.8rem;
}

.footer-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items:flex-start;
    text-align: center;
    color: var(--primario);
    padding: 5rem;
}

.footer-copy {
    margin: 0;
    background-color: black;
    width: 100%;
    color: var(--primario);
}

/***************************************

Diseños para tablet

***************************************/
@media (min-width: 768px) {

    .navegacion-principal {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }

    .servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }
}

/***************************************

Diseños para Computadores

@media (min-width: 1280px) {

}

***************************************/

