* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blanco: #ffffff;
    --oscuro: #212121;
    --naranja: orange;
    --secundario: #0097a7;
    --gris: #757575;
    --grisclaro: #dfe9f3;
    --fuenteprin:'Roboto', sans-serif;
    --fuentesec:'Open Sans', sans-serif;
    --fuentehed: 'Staatliches', cursive;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;


}

*, *:before, *:after {
    box-sizing: inherit;
  }

body {
    font-size: 18px; /* 1rem=10px*/
    font-family: var(--fuenteprin);
    /* background: #cacaca; */
}

h1, h2, h3, h4, h5 {
    text-align: center;
    margin-bottom: 0;
}
a {
    text-decoration: none;
}


.contenedor p {
    padding: 2rem 0 ;
}

.contenedor {
    margin: auto;
    width: 89%;
    max-width: 120rem;
    
    margin-bottom: 5rem;
}

.contenedor-maquinas {
    margin: 0 7rem;
}

/* Generales */
.titulo {
    font-family: var(--fuentehed);
    font-size: 5.5rem;
}

.titulo-naranja {
    color: rgb(255, 94, 0);
    font-family: var(--fuentehed);
    font-size: 7rem;
}

.titulo-gris {
    color: rgb(105, 96, 96);
    font-family: var(--fuentehed);
    font-size: 5rem;
}

.texto-negritas {
    font-weight: bold;
}

.titulo-apartados {
    font-size: 7rem;
    padding: 1rem  15rem 0 15rem;
}

.titulo-ndm {
    padding-top: 2rem;
}

.contenedor ul, .contenedor ol {
    margin-top: 2rem;
    padding: 0 4rem;
}

.subtitulos {
    color: #000;
    font-size: 3.7rem;
    font-family: var(--fuentehed);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;

}

.texto {
    font-size: 6rem;
}


/* TEXTO RODEANDO DERECHA */

.imagen-flotante-derecha {
    width: 50rem;
    float: right;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.imagen-kyf {
    width: 15rem;
}

.imagen-100 {
    width: 100%;
    margin: 2rem 0;
}

/* TEXTO RODEANDO IZQUIERDA */

.imagen-flotante-izquierda {
    width: 50rem;
    float: left;
    margin-right: 2rem;
    margin-bottom: 2rem;
}

/* Scroll */

body::-webkit-scrollbar {
    width: 5px;
    background: #fff;
}

body::-webkit-scrollbar-thumb {
    background: #34495E;
    border-right: 2px solid #34495E;
}

ul {
    list-style-type: none;
}
/* BarraNav */
header{
    position: sticky;
    top: 0px;
    background-color: #18191ad3;
    width: 100%;
    z-index: 1000;
    height: 70px;
}
.container-nav{
    max-width: 1200px;
    padding: 2rem 0rem;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.logo-container{
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-btn{
    flex: 3;
    display: flex;
    padding: 0;
}

.nav-links{
    flex: 2;
}

.log-sign{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.logo{
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 3rem;
    font-family: var(--fuentehed);
}

.logo span{
    font-weight: 300;
    font-family: var(--fuentehed);
}

.btn{
    display: inline-block;
    padding: .5rem 1.3rem;
    font-size: .8rem;
    border: 2px solid #fff;
    border-radius: 2rem;
    line-height: 1;
    margin: 0 .2rem;
    transition: .3s;
    text-transform: uppercase;
}

.btn.solid, .btn.transparent:hover{
    background-color: #fff;
    color: #69bde7;
}

.btn.transparent, .btn.solid:hover{
    background-color: transparent;
    color: #fff;
}

.nav-links > ul{
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.nav-link{
    position: relative;
}

.nav-link > a{
    line-height: 3rem;
    color: #fff;
    padding: 0 1rem;
    letter-spacing: 2px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
}

.nav-link > a > i{
    margin-left: .3rem;
}

.nav-link:hover > a{
    transform: scale(1.1);
}

.dropdown{
    position: absolute;
    top: 35px;
    left: 0;
    width: 15rem;
    transform: translateY(3px);
    opacity: 0;
    pointer-events: none;
    transition: .7s;
}

.dropdown ul{
    position: relative;
}

.dropdown-link > a{
    display: flex;
    background-color: #404142;
    color: #fff;
    font-weight: bold;
    padding: 1.2rem 1.4rem;
    font-size: 1.7rem;
    align-items: center;
    justify-content: space-between;
    transition: .3s;
}

.dropdown-link:hover > a{
    background-color: #3498db;
    color: #fff;
}

.dropdown-link:not(:nth-last-child(2)){
    border-bottom: 1px solid #efefef;
}

.dropdown-link i{
    transform: rotate(-90deg);
}

.arrow{
    position: absolute;
    width: 11px;
    height: 11px;
    top: -5.5px;
    left: 32px;
    background-color: #404142;
    transform: rotate(45deg);
    cursor: pointer;
    transition: .3s;
    z-index: -1;
}

.dropdown-link:first-child:hover ~ .arrow{
    background-color: #3498db;
}

.dropdown-link{
    position: relative;
}

.dropdown.second{
    top: 0;
    left: 100%;
    padding-left: .8rem;
    cursor: pointer;
    transform: translateX(10px);
}

.dropdown.second .arrow{
    top: 10px;
    left: -5.5px;
}

.nav-link:hover > .dropdown,
.dropdown-link:hover > .dropdown{
    transform: translate(0, 0);
    opacity: 1;
    pointer-events: auto;
}

.hamburger-menu-container{
    flex: 1;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.hamburger-menu{
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hamburger-menu div{
    width: 1.6rem;
    height: 3px;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    z-index: 1001;
    transition: .5s;
}

.hamburger-menu div:before,
.hamburger-menu div:after{
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    background-color: #fff;
    border-radius: 3px;
    transition: .5s;
}

.hamburger-menu div:before{
    transform: translateY(-7px);
}

.hamburger-menu div:after{
    transform: translateY(7px);
}

#check{
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    z-index: 90000;
    cursor: pointer;
    opacity: 0;
    display: none;
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div{
    background-color: transparent;
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div:before{
    transform: translateY(0) rotate(-45deg);
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div:after{
    transform: translateY(0) rotate(45deg);
}

@keyframes animation{
    from{
        opacity: 0;
        transform: translateY(15px);
    }
    to{
        opacity: 1;
        transform: translateY(0px);
    }
}

/* CONTACTO */
.contenedor-contacto {
    padding-top: 2rem;
    margin-left: 13rem;
    margin-right: 13rem;
    margin-bottom: 3rem;
}

.formulario fieldset {
    margin-top: 2rem;
    padding: 2rem;
    border-color: rgb(25, 16, 150);
}

.formulario p {
    font-size: 1.4rem;
    color: rgb(56, 54, 54);
    margin: 3rem 0 0 0;
}

.formulario legend {
    font-size: 2rem;
    color: rgb(56, 54, 54);
}

.formulario label {
    font-weight: bold;
    text-transform: uppercase;
    display: block;
}

.formulario input:not([type="submite"]),
.formulario textarea,
.formulario select{
    padding: 1rem;
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid gray;
    border-radius: 1.2rem;
    margin-bottom: 2rem;
}

.formulario textarea {
    height: 20rem;
}

.formulario .forma-contacto {
    max-width: 30rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.formulario input[type="radio"] {
    margin: 0;
    width: auto;
}

.formulario p {
    font-size: 20px;
    padding-bottom: .6rem;
}

.btn-verde {
    background-color: green;
    border: none;
    padding: 1rem 0rem;
    margin-top: 2rem;
    color: #fff;
    border-radius: 1rem;
    text-align: center;
    font-size: 2.2rem;
    cursor: pointer;
    align-items: center;
}

input {
    margin-top: 2rem;
}

.modal_wrap{
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;

    display: flex;
    justify-content: center;
    align-items: center;
}

.mensaje_modal{
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.5);
    width: 400px;
    padding: 30px 20px 15px;
}

.mensaje_modal h3{
    text-align: center;
    font-family: var(--fuenteprin);
	font-size: 20px;
	font-weight: 400;
}

.mensaje_modal h3:after{
    content: '';
	display: block;
	width: 100%;
	height: 1px;
	background: #C5C5C5;
	margin: 10px 0px 15px;
}

.mensaje_modal p{
    font-size: 16px;
    color: #606060;
}

.mensaje_modal p:before{
    content: "\f00d";
    font-family: FontAwesome;
    display: inline-block;
    color: #E25151;
    margin-right: 8px;
}

#btnClose{
    display: inline-block;
	padding: 3px 10px;
	margin-top: 10px;

	background: #E25151;
	color: #fff;
	border: 2px solid #B14141;
	cursor: pointer;

	float: right;
}

/* MENSAJE EXITOSO*/

.mensaje-exito{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mensaje-exito h1{
    font-size: 35px;
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.mensaje-exito a{
    display: block;
    padding: 10px 30px;
    background: #4091EC;
    text-decoration: none;
    color: #fff;
}

.mensaje-exito a:hover{
    background: #3371B6;
}


/* Animaciones */

@keyframes moverIzquierda {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes moverDerecha {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes arriba {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}




/* ERROR 404 */ 
.error {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Consolas;
}

.error {
    min-height: 100vh;
    background: linear-gradient(0deg, #fff, #03a9f4);
}

.sky {
    position: relative;
    widows: 100%;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sky h2 {
    font-size: 16rem;
    color: #fff;
    text-shadow: 15px 15px 0 rgba(0, 0 , 0, 0.1);
}

.sky h2 span {
    display: inline-block;
    animation: animate 2s ease-in-out infinite;

}

.sky h2 span:nth-child(even) {
    animation-delay: -1s;
}

.field {
    padding: 100px;
    height: 40vh;
    background: #6e2308;
    box-shadow: inset 0 20px 10px #51680c;
    text-align: center;

}

.field h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;

}

.field a {
    background: #fff;
    color: #000;
    width: 160px;
    height: 50px;
    line-height: 50px;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    font-size: 20px;
}


.grass {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: url(../img/grass.png);
    background-position: bottom;
    animation: animateGrass .2s linear infinite;
}

@keyframes animateGrass {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 94px 0;
    }
}

@keyframes animate {
    0%,100% {
        transform: translateY(-50px);
    }

    50% {
        transform: translateY(50px);
    }
}


@media screen and (max-width: 768px) {

    .contenedor-contacto {
        padding-top: 1rem;
        margin-left: 5rem;
        margin-right: 5rem;
        margin-bottom: 3rem;
    }

}
    





@media screen and (max-width: 576px) {

    .contenedor-contacto {
        padding-top: 1rem;
        margin-left: 3rem;
        margin-right: 3rem;
        margin-bottom: 3rem;
    }
    
    


}
