/* variables para los estilos de la pagina */
:root{
    --fondo:#858383; /* color de fondo para pagina y menu */
    --titulos:33px;
    --margenes:60px;
    --espacios:10px;
    --espacios-contenido:45px;
}

/* estilos de la pagina en general */
* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

/* estilo del texto de la pagina */
body {
    font-family:Arial, Helvetica, sans-serif;
    /* background: #149e1685;  color de la pagina por seccines */
}

/* estilo del contenedor de la pagina */
.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    
}

/* estilos del header */
header{
    width: 100%;
    height: 550px;
    background: linear-gradient(to bottom, 
    rgba(211, 135, 20, 0.284),
    rgba(18, 96, 8, 0.244),
    rgba(4, 76, 10, 0.204)
    ), url(../img/contacto.jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    z-index: 30;
}

/* estilos del contenedor del menu */
nav{
    width: 100%;
    position: fixed;
    box-shadow: 0 0 10px 0 rgb(0,0,0,.5);
    z-index: 30;
}

.nav1{
    background: fixed;
    height: 80px;
    color: #fff;
    z-index: 30;
}

.nav2{
background: var(--fondo);
height: 100px;
color: black;
z-index: 30;
}

/* estilos del menu del contenedor */
.contenedor-nav{
    display: flex;
    margin: auto;
    width: 90%;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    height: inherit;
    overflow: hidden;
    z-index: 30;
    
}

nav .enlaces a{
    display: inline-block;
    padding: 5px 0;
    margin-right: 17px;
    font-size: 17px;
    font-weight: 300;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    color: inherit; /* tomar el color del nav1 y nav2 segun su posicion */
    /*font-weight: bold;  tomar el espesor */
    z-index: 30;
}

nav .enlaces a:hover{
    border-bottom: 3px solid #070707;
    transition: 0.6s;
    /* font-weight: bold; pone el texto mas grande*/
    z-index: 30;
}

/* estilos el logo del menu */
.logo, .logo img{
    height: 80px;
    z-index: 30;
}

/* estilos el icono del menu hambueguesa */
.icono{
    display: none;
    font-size: 24px;
    padding: 23.5px 20px;
    z-index: 30;
}

/* estilos del texto que esta sobre la imagen del header */
.textos{
width: 100%;
height: 100%;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
text-align: center;
}

.textos h1{
    font-size: 50px;
    color:#080808;
}

.textos h2{
    font-size: 30px;
    font-weight: 300;
    color:#060606;
    /* padding-top: 500px; */
}

/* espacio de las secciones en la pagina */
main .sobre-nosotros{
    padding: 50px 0 60px 0;
}

/* estilo para titulos, de todas la secciones */
.titulo {
    color: #010101;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}


/* estilo para la seccion, nuestro producto */
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}
/* estilo para la seccion, nuestro producto */
.imagen-about-us{
    width: 48%;
}
/* estilo para la seccion, nuestro producto */
.sobre-nosotros .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #4d0686;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}


/* estilos de los botnes leer mas */

.boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 300px;
	height: 40px;
	background: #858484;
	font-size: 16px;
	font-weight: 350;
	border: none;
	cursor: pointer;
	transition: .3s ease all;
	border-radius: 5px;
	position: relative;
	margin-left: 18px; /* margen a la izquierda de la */
}

.boton.cinco span a{
    text-decoration: none;
    color: #010101;
}

.boton span {
	position: relative;
	transition: .3s ease all;
    
}

.boton.cinco span{
    transition: .4s ease-in-out all;
	position: absolute;
	left: 26%; /* texto centrado-menos valor */
    
}

.boton.cinco:hover span {
	left: 20px; /* texto a la izquierda de la */
}

.boton.cinco .flecha {
	display: flex;
	align-items: center;
	position: absolute;
	z-index: 2;
	left: -40px;
	transition: .3s ease-in-out all;
	opacity: 0;
}

.boton.cinco svg {
	color: #fff;
	width: 20px;
	height: 20px;
}

.boton.cinco:hover {
	background: #08731def;
    /* transition: 1s;  aparece al pasar el mouse */
}

.boton.cinco:hover .flecha {
	left: calc(100% - 50px);
	opacity: 1;
}

/* estilos para los servicios */
.container{
    
    padding: 1%; /* ancho de la seccion junto a la pagina */
    padding-bottom: 40px; /* espacio de seccion servicios y trabajos */
    z-index: 25;
    
}

.container .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 15px;
    z-index: 25;
}

.container .box-container .box{
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    border-radius: 5px;
    background: #fff;
    text-align: center;
    padding: 30px 20px;
    
}

.container .box-container .box img{
    height: 100px;
}

.container .box-container .box h3{
    color: #040404;
    font-size: 22px;
    padding: 10px 0;
    
}

.container .box-container .box p{
    color: #070707;
    font-size: 15px;
    line-height: 1.2;  /* espcio de linea */
    text-align: justify;
}

.container .box-container .box .btn{
    margin-top: 10px;
    display: inline-block;
    background: #858484;
    color: #080808;
    font-size: 15px;
    border-radius: 5px;
    padding: 8px 25px;
    text-decoration: none;
    
}

.container .box-container .box .btn:hover{
    box-shadow: 2px 2px 10px black;
    color: #fff;
    background:#08731def;
}

.container .box-container .box:hover{
    box-shadow: 0 10px 15px rgba(0, 0, 0, .3);
    /* transform: scale(1.03) */
    transform: translateY(15px); /* efecto de la card */
}

/* estilos para el slider de la galeria de imagenes */
.contenedor-slider {
    padding: 25px 0;
    width: 80%;
    max-width: 1000px;
    margin: auto;
    margin-top: 50px; /* espacio entre slider y servicios */
  }

  .slider-wrapper {
    position: relative;
  }
  
  .slider-wrapper .slide-button {
    position: absolute;
    top: 50%;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    color: #fff;
    display: flex;
    cursor: pointer;
    font-size: 2.2rem;
    background: #000;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translateY(-50%);
  }
  /* color de los botones siguiente y anterior */
  .slider-wrapper .slide-button:hover {
    background: #404040;
  }
  
  .slider-wrapper .slide-button#prev-slide {
    left: 1px;
    display: none;
  }
  
  .slider-wrapper .slide-button#next-slide {
    right: 1px;
  }
  
  .slider-wrapper .image-list {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 18px;
    font-size: 0;
    list-style: none;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .slider-wrapper .image-list::-webkit-scrollbar {
    display: none;
  }
  /* tamaño de la imagen */
  .slider-wrapper .image-list .image-item {
    width: 250px;
    height: 200px;
    object-fit: cover;
    
  }
  
  .container .slider-scrollbar {
    height: 24px;
    width: 100%;
    display: flex;
    align-items: center;
  }
  
  .slider-scrollbar .scrollbar-track {
    background: #ccc;
    width: 100%;
    height: 2px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    position: relative;
  }
  
  .slider-scrollbar:hover .scrollbar-track {
    height: 4px;
  }
  
  .slider-scrollbar .scrollbar-thumb {
    position: absolute;
    background: #000;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    cursor: grab;
    border-radius: inherit;
  }
  
  .slider-scrollbar .scrollbar-thumb:active {
    cursor: grabbing;
    height: 8px;
    top: -2px;
  }
  
  .slider-scrollbar .scrollbar-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
  }

/* estilos para el foot, pie de pagina */
/* estilos para la direccion */
footer{
    background: #08731def;
    padding: 20px 0 20px 0;
    margin: auto;
    overflow: hidden;
    margin-top: 70px; /* espacio entre el foot y galeria */
}

.contenedor-footer{
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

/* estilo para la linea que separa los datos de contacto */
.content-foo h4{
    color: #080808;
    border-bottom: 3px solid #fafcfb;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #060606;
}

/* estilo para el texto de derecho de autor */
.titulo-final{
    text-align: center;
    font-size: 20px;
    margin: 20px 0 0 0;
    color: #000000;
}



/* estilo para responsive */

@media screen and (max-width:700px) {
    .nav2{
        color: #fff;
    }

    .icono{
        display: block;
        cursor: pointer;
        font-size: 27px;
    }

    .logo img{
        height: 70px;
    }
    
    .enlaces{
        position: fixed;
        top: 80px;
        background: #2c3e50;
        left: 0;
        height: 100%;
        transition: 1s;
        width: 0;
        overflow: hidden;
    }

    .enlaces a{
        display: block;
        width: 100%;
        height: 50px;
        padding: 20px;
        text-align: center;
        background: #34495e;
        color: #020202;
    }

    .textos h1{
        font-size: 28px;
        color:#080808;
        padding-bottom: 10px;
    }
    
    .textos h2{
        font-size: 20px;
        font-weight: 180;
        color:#060606;
        font-weight: bold;
    }

    .titulo{
        color: #010101;
        font-size: 25px;
        text-align: center;
        margin-bottom: 50px; 
    }

/* nosotros */

    .imagen-about-us{
        margin-bottom: 50px;
        width: 80%;
    }

    .sobre-nosotros .contenido-textos{
        width: 50%;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    } 

    
    /* estilos de los botnes leer mas */

    .boton {
        
        width: 270px;
        height: 40px;
        
    }


    /* estilo de nuestros servicios */

    .container{
        padding: 20px;
    }

    /* slider de la pagina */
    .slider-wrapper .slide-button {
        display: none !important;
    }

    .slider-wrapper .image-list {
        gap: 10px;
        margin-bottom: 15px;
        scroll-snap-type: x mandatory;
    }
    /* tamaño de la imagen */
    .slider-wrapper .image-list .image-item {
        width: 200px;
        height: 200px;
    }

    .slider-scrollbar .scrollbar-thumb {
        width: 20%;
    }

    /* direccion */

    .contenedor-footer{
        flex-direction: column;
        border: none;
    }

    .content-foo{
        margin-bottom: 15px;
        text-align: center;
    }

    .content-foo h4{
        border: none;
    }

    .content-foo p{
        color: #060606;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 15px;
    }

    .titulo-final{
        font-size: 13px;
    }


}