/*** 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: 70%;
    background-color: var(--primario);
    color: var(--mainTitle);
    box-sizing: border-box;
    scroll-behavior: smooth;
    /***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: 12px;/* 1rem = 10px */
}

h1 {
    color: var(--secTitle);
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

.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;
}

.btn a {
    color: white;
    text-decoration: none;
}

.btn-menu {/*Boton menu de navegación*/
    display: none;
    text-decoration: none;
    color: var(--mainTitle);
    background-color: #ffffff00;
    font-size: 4rem;
    text-align: center;
    font-weight: bold;
    border: none;
    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: center;
    width: 100%;
    padding: 0.5rem;
    background-color: #c1541e;
}

.contact-info a{
    color: var(--primario);
    text-decoration: none;
    margin-right: 1rem;
    font-size: 1.8rem;
}

/*** Estilos para la navegación principal ***/
.info_empresa {
    display: flex;
    align-items: center;
}

.img_logo {
    width: 120px;
}

.logo_text {
    font-size: 2rem;
}

.nav-bg {
    background-color: var(--mainTitle);
}

.navegacion-principal {
    display: flex;
    flex-direction: row;
    padding: 0 2rem;
    justify-content:space-between;
    align-items: center;
    height: auto;
    background-color: white;

}

.navegacion-principal a {
    color: black;
    text-decoration: none;
    width: 100%;
    padding: 2rem;
    transition: ease-in 250ms;
    font-size: 1.7rem;
    font-weight: bold;
}

.navegacion-principal a:hover {
    color: white;
    background-color: #c1541e;
}

/*** Estilos del hero ***/

.hero {
    width: 100%;
    height: 700px;
    position: relative;
}

.contenido-hero {
    position: absolute;
    width: 100%;
    height: 100%;
    margin-top: auto;
    overflow: hidden;
}

/*** Slider ***/

.contenido-hero ul {
    display: flex;
    margin: 0;
    padding: 0;
    width: 200%;
    height: 100%;
    animation: change 12s infinite alternate linear;
}

.contenido-hero li {
    position: relative;
    width: 100%;
    list-style: none;
}


.slider-1, .slider-2{
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.slider-1 {
    object-fit: cover;
    background-image: url(../img/workers-1.jpg);
    background-position: center;

}

.slider-2 {
    background-image: url(../img/worker-2.webp);
    background-position: top;
}

.contenido-hero-p {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    padding: 4rem;
    text-align: center;
    background-color:#21212191;
    color: var(--primario);
}

.contenido-hero-p h2 {
    font-size: 5rem;
    text-shadow: #3b3b3b 5px 5px 3px;
}

.contenido-hero-p p {
    font-size: 3rem;
}

@keyframes change {
    0% {margin-left: 0;}
    45% {margin-left: 0;}

    50% {margin-left: -100%;}
    100% {margin-left: -100%;}
}

/*** 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;
    padding: 5rem;
}

.about-content {
    display: flex;
    justify-content:center;
    align-items: center;
    height: fit-content;
}

.about-text {
    text-align: left;
    font-size: 2rem;
}

.about-content-img {
    width: 600px;
    margin-right: 40px;
    box-shadow: 0px 0px 8px rgb(121, 121, 121);
    border-radius: 4px;
}

/*** Estilos banner ***/

.middle {
    width: 100%;
    background-color: #c1541e;
    padding: 2rem;
    margin-top: 4rem;
}

.middle-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.middle-content h2 {
    color: var(--primario);
}

.middle-content .btn-contact {
    width: 200px;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    transition: .300s 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 ***/

.contacto {
    padding: 5rem;
}

.contacto h2 {
    margin-bottom: 2rem;
}

.contact_section {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 8rem;
}

.contact-map {
    width: 500px;
    height: 500px;
}

.contact_info_h3 {
    color: #c1541e;
    font-size: 2rem;
}

.contact_info_p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    overflow: hidden;
}

.contact_info_p i {
    margin-right: 1rem;
}

/*** Footer ***/
.footer {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    padding-top: 2rem;
    font-size: 1.8rem;
}


.footer-copy {
    margin: 0;
    background-color: black;
    width: 100%;
    color: var(--primario);
}

/***************************************

Diseños para tablet

***************************************/
@media (max-width: 480px) {
    .img_logo {
        width: 80px;
        margin-right: 1rem;
    }

    .logo_text {
        font-size: 1.5rem;
    }

    .contenido-hero-p h2 {
        font-size: 3rem;
    }

    .contenido-hero-p p {
        font-size: 2.5rem;
    }
    .about {
        padding: 4rem 2rem;
    }

    .gallery {
        padding: 4rem 2rem;
    }
    .contacto {
        padding: 4rem 2rem;
    }
    
    .about-content-img {
        width: 500px;
    }

}

@media (max-width: 768px) {
    .contact-info {
        display: none;
    }

    .visible {
        right: 0%;
    }

    .not-visible {
        right: -100%;
    }

    .overflow-hidden {
        overflow: hidden;
    }

    .navegacion-principal {
        position: relative;
    }

    .navegacion-principal nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        z-index: 100;
        padding: 1rem;
        text-align: center;
        background-color: white;
        transition: 300ms ease;
    }

    .navegacion-principal nav a {
        border-bottom: 1px solid var(--otros);
    }

    .btn-menu {
        display: block;
    }

    .middle-content {
        flex-direction: column;
    }

}

@media (max-width: 1024px) {

    .about-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .about-content-img {
        width: 100%;
        margin-right: 0;
    }

    .contact_section {
        flex-direction: column;
    }


    .contact-map {
        width: 300px;
        height: 200px;
    }
}


