@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100&family=Nanum+Gothic&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nanum Gothic', sans-serif;
}

/*Boton flotante de wpp*/
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    /* Puedes ajustar la posición vertical según tus preferencias */
    right: 20px;
    /* Puedes ajustar la posición horizontal según tus preferencias */
    background-color: #128C7E;
    /* Color de fondo de WhatsApp */
    color: #fff;
    /* Color del icono y texto */
    border-radius: 50%;
    width: 70px;
    /* Ancho del botón */
    height: 70px;
    /* Altura del botón */
    text-align: center;
    line-height: 70px;
    /* Alineación vertical del contenido */
    font-size: 55px;
    /* Tamaño de fuente del icono */
    text-decoration: none;
    z-index: 9999;
    animation: bounce 2s infinite;
    /* Aplicar la animación de salto */
}

.whatsapp-float:hover {
    background-color: #20ab9a;
    /* Cambia el color de fondo al pasar el ratón sobre el botón */
    animation: none;
    /* Detiene la animación al pasar el ratón sobre el botón */
}

/*Header*/
.header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.416);
    color: #FFFFFF;
    /* Texto en color blanco para resaltar sobre el fondo oscuro */
    /* Resto de estilos para el encabezado */
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    padding-left: 20px;
    /* Espacio para el icono del menú */
    padding-right: 20px;
    /* Espacio para el logo */
}

.logo {
    width: 80px;
    display: flex;
    justify-content: center;
    margin-left: 190px;
    cursor: pointer;

}

.logo img {
    width: 80px;

}

/*Menu*/
.menu {
    max-width: 1200px;
    display: flex;
    margin-right: 180px;
    justify-content: center;
    height: 100%;

}

nav {
    height: 100%;
}

nav>ul {
    height: 100%;
    display: flex;
}

nav ul li {
    height: 100%;
    list-style: none;
    position: relative;

}

nav>ul>li>a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 300ms ease;
}

nav>ul>li>a:hover {
    transform: scale(1.1);
    background: #8a8a8a;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

/*sub menu*/
nav ul li ul {
    width: 200px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 110px;
    left: -5px;
    padding: 14px 0px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: all 300ms ease;
}

nav ul li:hover ul {
    visibility: visible;
    opacity: 1;
    top: 80px;
}

nav ul li ul:before {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    position: absolute;
    top: -12px;
    left: 20px;
}

nav ul li ul li a {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 6px;
    padding-left: 0px;
    margin-top: 10px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 300ms ease;
}

nav ul li ul li a:hover {
    background-color: #6b6b6b;
    color: #fff;
    transform: scale(1.1);
    padding-left: 30px;
    font-size: 14px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);

}



/*Elementos responsivos - funcionalidad del icono del menu*/


.icon_menu {
    width: 35px;
    height: 35px;
    display: none;
    cursor: pointer;
}

#check_menu {
    display: none;
}

#label_check {
    width: 35px;
    height: 35px;
    display: none;
}


/* Estilo del banner */
.banner {
    position: relative;
    background-image: url('../img/viaducto.jpg');
    /* Cambia 'ruta-de-tu-imagen.jpg' por la ruta de tu imagen de fondo */
    background-size: cover;
    background-position: center;
    height: 60vh;
    /* Altura del banner */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    /* Espaciado interno del banner */
    color: #fff;
    /* Color del texto en el banner */
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #382e24d3;
    /* Café con transparencia del 70% */
}

.banner-text {
    z-index: 1;

    width: 90%;
}

/* Estilo del texto en el banner */
.banner-text h1 {
    text-align: left;
    margin: 0;
    font-size: 40px;
    /* Tamaño del texto */

}

.linea {
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.banner-text p {
    margin-top: 10px;
    font-size: 16px;
    /* Tamaño del texto */
    letter-spacing: 3px;
}

/*Nosotros*/
.nosotros-section {
    padding: 40px 0;
    /* Espaciado interno de la sección */
    background-color: #ffebd4;
    color: #000;
}

.texto {
    margin: 0 90px;
}

.container h2 {
    font-size: 28px;
    /* Tamaño del título */
    margin-bottom: 5px;
    /* Espaciado inferior del título */


}

.title-underline {
    border-bottom: 2px solid #000;
    /* Línea de debajo del título */
    width: 120px;
    /* Longitud de la línea */
    margin-bottom: 20px;
    /* Espaciado inferior de la línea */
}

.nosotros-section p {
    font-size: 16px;
    /* Tamaño del texto */
    line-height: 1.6;
    /* Altura de línea para una lectura cómoda */
    text-align: left;
    /* Alineación del texto */
    color: #2b2a2a;
    font-weight: 600;
}

/*Vsión*/
.vision-section {
    background-color: #fff1e3;
}

.vision-section h2 {
    font-size: 28px;
    /* Tamaño del título */
    margin-bottom: 10px;
    /* Espaciado inferior del título */
}

.vision-content {
    display: flex;
}

.vision-image {
    width: 60%;
}

.vision-image img {
    width: 100%;
    /* La imagen ocupa el 100% del contenedor */
    display: block;
}

.vision-text {
    width: 70%;
    margin: 80px 50px;
}

.vision-text p {
    font-size: 16px;
    /* Tamaño del texto */
    line-height: 1.6;
    /* Altura de línea para una lectura cómoda */
    color: #2b2a2a;
    font-weight: 600;
}

/*Misión*/
.mision-section {
    background-color: #fff8f1;
}

.mision-section h2 {
    font-size: 28px;
    /* Tamaño del título */
    margin-bottom: 10px;
    /* Espaciado inferior del título */
}

.mision-content {
    display: flex;
}

.mision-image {
    width: 60%;
}

.mision-image img {
    width: 100%;
    /* La imagen ocupa el 100% del contenedor */
    display: block;
}

.mision-text {
    width: 70%;
    margin: 80px 50px;
}

.mision-text p {
    font-size: 16px;
    /* Tamaño del texto */
    line-height: 1.6;
    /* Altura de línea para una lectura cómoda */
    color: #2b2a2a;
    font-weight: 600;
}


/* Estilo de la sección Nuestros Valores */
.valores-section {
    background-color: #ffe4c6;


}

.valores {
    padding: 30px 90px;

}

.valores-section h2 {
    text-align: center;
    font-size: 28px;
    /* Tamaño del título */
    margin-bottom: 20px;
    /* Espaciado inferior del título */
}

.valores-grid {
    display: flex;
    flex-wrap: wrap;
    /* Permite que las cajas se envuelvan en múltiples líneas */
    justify-content: center;
}

.valor-box {
    width: 500px;
    padding: 30px;
    border: 1px solid #fff;
    /* Borde blanco */
    background-color: #ffebd4;



}

.titulo {
    display: flex;
}

.valor-box h3 {
    margin-top: 10px;
    margin-left: 20px;
    font-size: 20px;
    /* Tamaño del título de valor */
    margin-bottom: 10px;
    /* Espaciado inferior del título */
}

.valor-box p {
    font-size: 16px;
    /* Tamaño del texto */
    line-height: 1.6;
    /* Altura de línea para una lectura cómoda */
    margin-left: 70px;
}

/* Estilos para la Galería */
.imagenes{
    max-width: 100%;
    height: auto;
}

.gallery{
    margin: 0.30rem 0.30rem;
}

.gallery-items{
    position: relative;
    overflow: hidden; 
    height: auto;
    margin: 0.5rem;
}

.gallery-items img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Estilos para la Galería con capa opaca inicial */
/*#382e24d3;*/
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #382e2483;; /* Color y opacidad inicial de la capa */
    opacity: 1; /* Inicialmente opaca */
    transition: opacity 0.3s ease; /* Transición suave de opacidad */
}

.gallery-items:hover .overlay {
    opacity: 0; /* Oculta la capa opaca al pasar el cursor sobre la imagen */
}

.gallery-items img {
    transition: transform 0.3s ease; /* Agrega una transición suave al escalamiento */
}

.gallery-items:hover img {
    transform: scale(1.1); /* Escala la imagen al pasar el cursor */
}




/*Footer*/
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-left img {
    width: 100px;
    margin-right: 30px;
    margin-left: 90px;
}

.footer-left ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: justify;
}

.footer-left ul li {
    margin-bottom: 10px;
}

.footer-left ul li i {
    margin-right: 5px;
}

/* Estilos para los íconos */
.fa-phone,
.fa-envelope,
.fa-map-marker-alt {
    color: #ca9f20;
    margin-right: 10px;
    font-size: 21px;
}

.footer-center {
    text-align: center;
}

.fa-facebook,
.fa-instagram,
.fa-tiktok {
    color: #ca9f20;
    margin-right: 10px;
    font-size: 22px;

}

.social-icons {
    list-style: none;
    padding: 0;
    text-align: justify;
}

.social-icons li {
    margin-bottom: 10px;
}

.footer-right {
    text-align: right;
}

.opening-hours {
    margin-right: 90px;
}

.opening-hours p {
    margin-bottom: 10px;
    margin-right: 50px;
}

.opening-hours ul {
    list-style: none;
    padding: 0;

}

.opening-hours ul li {
    margin-bottom: 5px;
    text-align: justify;
}

.derechos {
    display: flex;
    justify-content: center;
    background-color: #4a4a4a;
    color: #fff;
    font-weight: bold;
}

.derechos p {
    font-size: 14px;
}

/*Responsive galeria*/
@media (min-width: 640px){
    .gallery{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 300px);
        grid-auto-flow: row dense;
    }

    .gallery-items{
        margin: 0.1rem;
    }

    .gallery-items:first-child{
        grid-row: span 1;
    }

    .gallery-items:nth-child(2){
        grid-column: 2 / 3;
        grid-row: span 2;
    }

    .gallery-items:nth-child(6),
    .gallery-items:nth-child(8){
        grid-row: span 2;
    }
}

@media (min-width: 960px){
    .gallery{
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, auto-flow);
    }

    .gallery-items:first-child,
    .gallery-items:nth-child(7),
    .gallery-items:nth-child(8){
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-items:nth-child(2){
        grid-column: span 2;
        grid-row: span 2;
    }
}

/*Responsive menu*/
@media screen and (max-width: 820px) {
    .container {
        left: 0;
    }

    .header .menu {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .logo img {
        display: none;
    }

    nav>ul {
        flex-direction: column;
        background-color: #414141;
        position: fixed;
        left: 0;
        top: 78px;
        width: 100%;
        height: 0px;
        transition: all 300ms ease;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
    }

    nav>ul>li>a:hover {
        transform: scale(1);
    }

    nav ul li ul {
        left: 90px;
    }

    nav>ul>li:hover ul {
        top: 73px;
    }

    nav>ul>li:first-child ul {
        background-position: 20px;

    }

    #selected {
        transform: scale(1);
    }

    #label_check {
        display: block;

    }

    .icon_menu {
        display: flex;

    }

    #check_menu:checked~nav>ul {
        height: 300px;
        visibility: visible;
        opacity: 1;
    }
    /*Nosotros*/
    .texto{
        margin: 0 50px;
    }

    /*Mision*/
    .mision-content {
        flex-direction: column;
    }

    .mision-image{
        width: 100%;
    }

    /*Vision*/
    .vision-content{
        flex-direction: column;
    }

    .vision-image{
        width: 100%;
    }

    /*Valores*/
    .valores{
        padding: 30px 20px;
    }

    /*Responsive footer*/
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        margin-bottom: 20px;
        flex-direction: column;
    }

    .footer-left ul {
        padding-left: 0;
    }

    .footer-left ul li {
        margin-bottom: 10px;
        text-align: center;
    }

    .footer-left ul li i {
        margin-right: 5px;
    }

    .footer-left img {
        margin-right: 60px;
    }

    .footer-center {
        margin-top: 20px;
    }

    .social-icons {
        list-style: none;
        padding: 0;
    }

    .social-icons li {
        margin-bottom: 10px;
    }

    .social-icons li a {
        font-size: 20px;
    }

    .footer-right {
        margin-top: 20px;

        margin-left: 70px;

    }

    .opening-hours p {
        margin-bottom: 10px;
        margin-right: 15px;
    }

    .opening-hours ul li {
        margin-bottom: 5px;
        text-align: center;
        margin-left: 20px;
    }

    .derechos {
        text-align: center;
    }
}