* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background-color: var(--background-color);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

}

:root {
    /*<#----- Colores -----#> */
    --background-color: #663737;
    --letter-color: #d5d5d5;
}




/**     menu hamburgesa   ***/

.header {
    height: 80px;
    width: 100%;
    background-color: #fff;
    display: flex;
}

.navbar{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}

a {
    text-decoration: none;
}

ol,
ul {
    list-style: none;
}

.menu_hamburguesa {
    display: none;
    
}

.ul_links {
    background-color: #fff;
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    height: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 2;
    transition: all .3s;
}

.wrap-logo-header {
    display: flex;
    align-items: center;
    margin-left: 40px;
}


.logo-header {
    font-weight: bold;
    font-size: 1.2rem;
    color: #222;
}

.hover-item {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hover-item:hover {
    background-color: #990000;
    cursor: pointer;
}

.hover-item:hover a {
    color: white;
}

.menu-item a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    font-size: 1.2rem;
    width: 100%;
}

.link {
    font-size: 2rem;
    color: #222;
}

.list-icon {
    cursor: pointer;
}

.li_links{
    height: 80%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu_hamburguesa:checked+.ul_links {
    height: calc(100vh - 126.5px);
}

@media (min-width: 768px) {
    .label-hamburguesa {
        display: none;
    }

    .ul_links {
        position: static;
        width: auto;
        flex-direction: row;
        height: auto;
        float: left;

        width: 80%;
        height: 100%;
        display: flex;
        /* Utiliza un modelo de caja flexible para organizar los elementos en una fila */
        padding: 1rem;
        /* Añade relleno alrededor del contenido del encabezado */
        background-color: #fff;
        /* Establece el color de fondo del encabezado */
        z-index: 999;
        /* Coloca el contenedor por encima de otros elementos en el encabezado */
        
    }

    .link {
        font-size: 1.5rem;
        gap: 2rem;
    }

    .link:hover {
        background-color: #990000;
        cursor: pointer;
    }

    .link:hover {
        color: white;
    }

    .li_links{
        width: 60%;
    }
}

@media (max-width: 768px) {
    .wrap-logo-header {
        display: none;
    }
}


/*   Main  */


.main-menu {
    list-style: none; /* Quita los estilos de la lista, como los puntos/bolitas */
    display: flex; /* Utiliza un modelo de caja flexible para organizar los elementos en una fila */
    height: 100%;
}

.menu-item {
    margin: 9px 35px ; /* Añade un margen a cada elemento del menú para espaciarlos */
}

.hover-item{
    width: 100%;
    height: 100%;
}

.hover-item:hover {
    background-color: #990000;
    cursor: pointer;
}

.hover-item:hover a{
    color: white;
}

.menu-item a {
    text-decoration: none; /* Quita la decoración del texto de los enlaces */
    color: #222; /* Establece el color del texto de los enlaces */
    font-weight: bold; /* Establece el grosor de la fuente de los enlaces como negrita */
    font-size: 1.2rem; /* Establece el tamaño de la fuente de los enlaces */
}


main{
    width: 100%;
}

.wrap-first-titles{
    margin: 90px 30px 100px 30px;
    text-align: center;
    color:  #e6e6e6;
}

.wrap-first-titles h1{
    font-size: 40px;
}

.wrap-first-titles h3{
    margin-top: 10px;
    font-size: 20px;
}

.title-services-wrap{
    display: flex;
    margin: 30px 30px 30px 30px;
}

.title-services{
    width: 33.33333%;
    font-size: 30px;
    text-align: center;
    color: #e6e6e6;
}

.title-services-movile{
    width: 100%;
    font-size: 35px;
    justify-content: center;
    color: #e6e6e6;
    display: none; 
}

.title-services-movile-wrap{
    display: flex;
    margin: 80px 30px 30px 30px;
}

.first-title-services{
    margin: 15px 30px 30px 30px;
}

.services-wrap{
    display: flex;
    margin: 30px 30px 30px 30px;
    background-color: #663737;
    
}

.image-service{
    width: 33.333333%;
    background-image: linear-gradient(to right bottom, #6a6a6a, #474747);
    flex: wrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2)
}

.image-service img{
    width: 100%;
    height: 100%;
    background-color: #8C7979;
}

.image-service {
    max-width: 33.3%;
    max-height: 100%;
    background-color: #8C7979;
    overflow: hidden;
    position: relative;
    transition: background-color 0.5s ease-in-out;
}

.image-service:hover {
    cursor: pointer;
    background-color: #c06363;
}

.image-service::before {
    content: "";
    position: absolute;
    top: -100%; /* Cambia la posición inicial de -100% a -100% para que el seudoelemento comience fuera de la vista */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #990000;
    transition: top 0.4s ease-in-out; /* Cambia la propiedad left por top para la animación de arriba a abajo */
}

.image-service:hover::before {
    top: 0;
}


.image-text {
    position: absolute;
    top: 50%; /* Ajusta la posición vertical del texto */
    left: 50%; /* Ajusta la posición horizontal del texto */
    text-align: center;
    opacity: 0; /* Hace que el texto sea inicialmente transparente */
    color: #fff; /* Color del texto */
    font-size: 1.5rem; /* Tamaño de fuente del texto */
    transition: opacity 1s ease-in; /* Agrega una transición suave a la propiedad de opacidad */
    width: 100%;
}

.image-text {
    position: absolute;
    justify-content: center;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #fff;
    font-size: 1.5rem;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Agregado: transición en la opacidad y la transformación */
  
}

.image-service:hover .image-text {
    opacity: 1;
    transition-delay: 0.3s; /* Agregado: retraso de 0.3 segundos al retirar el hover */
}

.button-see-more{
    width: 25%;
    height: 30px;
    border-radius: 7px;
    border-color: #fff;
    background-color: #990000;
    color: white;
    outline: none;
    transition: background-color 0.25s; /* Transición de 1 segundo para el cambio de color */
}

.button-see-more:hover{
    color: #222;
    background-color: #fff;
    cursor: pointer;
    border: none;
}

.div-button-see-more{
    margin-top: 30px;
}

.margin-last-service{
    margin-bottom: 250px;
}


@media (max-width: 768px) {
    .services-wrap{
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
        gap: 45px;
    }
    .title-services-wrap{
        display: none;
    }
    .image-service{
        min-width: 100%;
    }
    .title-services-movile{
        display: flex;
    }
    .image-service::before{
        top:0;
    }
    .image-text{
    opacity: 1;
    }
}










/* Footer */


.pie-pagina{
    width: 100%;
    background-color: #3b3b3b;
    margin-top: auto; /* Coloca el footer siempre al final */

    
}

.pie-pagina .grupo-1{
    width: 100%;
    max-width: 1200px ;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 45px 0px;
}

.pie-pagina .grupo-1 .box figure{
    width: 300px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pie-pagina .grupo-1 .box figure img{
    width: 130px;
}

.pie-pagina .grupo-1 .box h2{
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
}

.pie-pagina .grupo-1 .box p {
    color: #d2d0d0;
    margin-bottom: 10px;
}

.pie-pagina .grupo-1 .red-social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    color: #fff;
    margin-right: 10px;
    background-color: #0d2033;
    text-align: center;
    transition: all 300ms ease;
}

.pie-pagina .grupo-1 .red-social a:hover{
    color: #f30303;
}

.pie-pagina .grupo-2{
    background-color: #0a1a2a;
    padding: 15px 10px;
    text-align: center;
    color: white;
}

.pie-pagina .grupo-2 small{
    font-size: 15px;
}



@media screen and (max-width: 800px){
    .pie-pagina .grupo-1{
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
        padding: 35px 0px;
    }
}