
:root {
    --rojoPrincipal: rgb(220, 38, 38);
    --naranja: rgb(249, 115, 22);
    --blanco: rgb(255, 255, 255);
    --negro : rgb(0, 0, 0);
    --grisClaro: rgb(249, 250, 251);


}


html {
    box-sizing: border-box;
    font-size: 62.5%; 
    scroll-behavior: smooth;
}
*,*::before,*::after{
    box-sizing: inherit;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

body {
    font-size: 1.6rem;
    font-family:  "Lato", sans-serif;
    background-color: var(--grisClaro);
}

h1,h2,h3 {
    margin: 0;
}

a {
    text-decoration: none;
}

.contenedor {
    width: 90%;
    max-width: 100rem;
    margin: 0 auto;
}

/**Menu*/

.navegacion__enlace {
    color: var(--blanco);
    transition: .3s ease;
    font-size: 1.8rem;
   
    position: relative;
    transition: all .3s ease;
}

.navegacion__enlace::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 10px; /* Ajusta la posición de la línea debajo del enlace */
    width: 0;
    height: 2px; /* Grosor de la línea */
    background-color: var(--blanco); /* Color de la línea */
    transition: width 0.3s; /* Transición para suavizar el efecto */
}

@media (min-width: 768px) { 
    .navegacion__enlace::after {
        bottom: -5px;
    }
}

.navegacion__enlace:hover::after {
    width: 100%;
}


/**Menu responsive*/

.nav-control {
    cursor: pointer;
    display: none;
}

@media screen and (max-width: 768px) { 

    .nav-control {
        display: block;
    }

    .nav-control .close {
        display: none;
    }

    .is-open .nav-control .close {
        display: block;
    }

    .is-open .nav-control .open {
        display: none;
    }

    .navegacion {
        background: linear-gradient(to right, rgb(220, 38, 38), rgb(249, 115, 22));
        position: fixed;
        left: -100rem;
        width: 100%;
        /* top: 8rem; */
        top: 9.5rem;
        transition: 0.7s ease-in-out;
    }

    .navegacion,
    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navegacion__enlace {
        padding: 2.5rem;
        
        
        text-align: center;
    }

    .is-open .navegacion{
        left: 0;
        z-index: 5;
    }

    header {
        padding: 0;
    }

    .header__nombre,
    .nav-control {
        background-color: var(--bgMain);
        height: 100%;
        padding: 0 2rem;
        z-index: 1;
    }   
    
}


.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.8), rgb(249, 115, 22));

}

.header__logo img{
    width: 20rem;
    
    filter: drop-shadow(2px 0 8px rgba(255, 255, 255, 1));
}

.navegacion {
    display: flex;
    gap: 2.3rem;
}

.nav a {
    text-decoration: none;
}


/**Hero**/

.hero {
    margin: 2rem auto;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.9), rgba(249, 115, 22, 0.9));

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    color: var(--blanco);
    border-radius: 2.4rem;
    gap: 2rem;
    opacity: 0.9;
    
}

@media (min-width: 768px) { 
    .hero {
        flex-direction: row;
        padding: 8rem 6.4rem;
    }
}

.hero__texto {
    flex: 1;
}

.hero__imagen {
    flex: 1;
}

.hero__titulo {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero__texto {
    font-size: 1.8rem;
    line-height: 1.8;
}

.hero__imagen {
    border-radius: .8rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.hero__enlace {
    padding: 1.2rem 1.5rem;
    background-color: var(--blanco);
    border-radius: .6rem;
    font-size: 1.4rem;
    color: var(--rojoPrincipal);
    transition: .3s ease;

}

.fa-angle-right {
    margin-left: 1rem;
}

.hero__enlace:hover {
    background-color: rgb(243 244 246);
}

/**Sobre Nosotros**/

.sobre {
    margin-top: 5rem;
}

.sobre__titulo {
    font-size: 3rem;
    color: var(--rojoPrincipal);

}

.sobre__texto,
.equipo__texto {
    font-size: 1.7rem;
    line-height: 1.4;
}

.misionVision {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) { 
    .misionVision {
        flex-direction: row;
    }
}

/**Mision*/

.mision {
    border: 2px solid rgba(254, 202, 202, 1);
    border-radius: .8rem;
    padding: 2rem;
    background: linear-gradient(to bottom right, rgb(254, 242, 242), rgb(255, 247, 237));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    flex: 1;
}

.mision__titulo {
    color: var(--rojoPrincipal);
}

.mision__texto {
    margin: 2rem 0 0 0;
    line-height: 1.3;
}

/**Vision*/
.vision {
    border: 2px solid rgba(254, 215, 170, 1);
    border-radius: .8rem;
    padding: 2rem;
    background: linear-gradient(to bottom right, rgb(255, 247, 237), rgb(254, 252, 232));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    flex: 1;
}

.vision__titulo {
    color: var(--naranja);
}

.vision__texto {
    margin: 2rem 0 0 0;
    line-height: 1.3;
}

/**Servicios**/

.servicios {
    margin-top: 5rem;
}

.servicios__titulo {
    font-size: 3rem;
    color: var(--rojoPrincipal);
}

.servicios__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 480px) { 
    .servicios__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1092px) { 
    .servicios__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.servicio {
    background-color: var(--blanco);
    border: 1px solid hsl(240 5.9% 90%);
    border-top-width: .4rem;
    border-top-color: rgb(249 115 22);
    border-radius: .8rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 2rem;
}

.servicio img {
    width: auto;
    height: 3rem;
}

.servicio ul {
    padding: 1rem;
}



.servicio__titulo {
    color: var(--rojoPrincipal);
    margin-top: 1rem;
    font-weight: 700;
}

.servicio__texto {
    line-height: 1.3;
    margin: 1rem 0 ;
}

.servicio__texto::marker {
    color: var(--rojoPrincipal);
}

.servicio__texto::marker {
    color: var(--rojoPrincipal);
}


/**Equipo**/
.equipo {
    margin-top: 5rem;
}

.equipo__titulo {
    font-size: 3rem;
    color: var(--rojoPrincipal);
}

.equipo__grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 2rem;
}

@media (min-width: 480px) { 
    .equipo__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1092px) { 
    .equipo__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.lider {
    border: 1px solid rgb(254, 202, 202);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 2rem;
    border-radius: .8rem;
    background: linear-gradient(to bottom right, rgb(254, 242, 242), rgb(255, 247, 237));
}



.lider__foto img {
    margin: 0 auto;
    width: 20rem;
    border-radius: 9999px;
    border: 4px solid var(--blanco);
    aspect-ratio: 200 / 200;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

.equipo__icon {
    margin: 1rem 0;
    font-size: 5rem;
    text-align: center;
    display: block;
    color: var(--rojoPrincipal);
}

.lider__nombre{
    margin-top: 1rem;
    text-align: center;
    color: var(--negro);
    font-size: 2.5rem;
}

.lider__cargo {
    text-align: center;
    color: var(--naranja);
    margin: 1rem 0 0 0;
    font-size: 2rem;
}

.lider__descripcion {
    font-size: 1.7rem;
    line-height: 1.3;
}

/**Nuestros Clientes**/
.clientes {
    margin-top: 5rem;
}

.clientes__titulo {
    font-size: 3rem;
    color: var(--rojoPrincipal);
}


.slide {
    width: 20rem;
}

.slide img {
    width: 20rem;
    object-fit: cover;
    filter: grayscale(50%);
    transition: .3s ease;
}

.slide img:hover {
    filter: grayscale(0%);
}

.test {
    margin: 2rem auto;
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

/**Galeria**/

.galeria {
    margin-top: 5rem;
}

.galeria__titulo {
    font-size: 3rem;
    color: var(--rojoPrincipal);
}

.galeria-contenedor {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.columna {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 2rem;
    padding: 0 .4rem;
}

.columna img {
    margin-top: .8rem;
    vertical-align: middle;
    width: 100%;
    filter: grayscale(5%);
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: .3rem;
    transition: all .3s ease;
}

.columna img:hover {
    cursor: pointer;
    filter: grayscale(0%);
    box-shadow: 0 0 .6rem rgba(0, 0, 0, .5);
    transform: scale(1.01);
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .7s ease;
    visibility: hidden;
    opacity: 0;
}

.slideshow {
    width: 90%;
    height: 90%;
    background-color: rgba(248, 241, 241, .9);
    color: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

.image-slide {
    width: 100%;
    transition: transform 0.5s ease;
}

.slide-left {
    transform: translateX(-100%);
}

.slide-right {
    transform: translateX(100%);
}

.image-container img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    position: absolute;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.image-container img.active {
    opacity: 1;
}

.btn_close {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    font-size: 3.5rem;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem;
    transition: all .2s ease;
}

.btn_close:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.buttons {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 7rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 100;
}

.buttons:hover > svg {
    transform: scale(1.05);
    transition: all .2s ease;
}

.back {
    left: 0;
}

.forward {
    right: 0;
}

.mdi {
    pointer-events: none;
}

@media (max-width: 800px) { 
    .columna {
        grid-template-columns: repeat(2,1fr);
    }

    .buttons {
        font-size: 5.5rem;
    }

    .back {
        left: -1.4rem;
    }

    .forward {
        right: -1.4rem;
    }

    .slideshow img {
        width: 98%;
    }
}

@media (max-width: 600px) { 
    .columna {
        grid-template-columns: repeat(1,1fr);
    }
}

/**Footer**/

.footer {
    margin-top: 5rem;
    background: linear-gradient(to right, rgb(220, 38, 38), rgb(249, 115, 22));
    padding: 2rem;
    color: var(--blanco);
}

.footer__logo {
    width: 15rem;
    margin: 0 auto;
    filter: drop-shadow(2px 0 8px rgba(255, 255, 255, 1));
}

.footer__derechos,
.footer__contacto,
.footer__direccion {
    margin: 1rem auto 0 auto;
    text-align: center;
}

/**Blog**/

.blog {
    margin-top: 5rem;
}

.blog__titulo {
    font-size: 3rem;
    color: var(--rojoPrincipal);
}

.blog__entradas {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

@media (min-width: 768px) { 
    .blog__entradas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1092px) { 
    .blog__entradas {
        grid-template-columns: repeat(3, 1fr);
    }
}

.entrada {
    border: 2px solid rgba(254, 215, 170, 1);
    border-radius: .8rem;
    padding: 2rem;
    background: linear-gradient(to bottom right, rgb(255, 247, 237), rgb(254, 252, 232));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    
}

.entrada__imagen {
    border-radius: .8rem;
    
}

.entrada__titulo {
    font-size: 2.4rem;
    color: var(--rojoPrincipal);
    margin-top: 1rem;
}

.entrada__meta {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
}

.entrada__texto {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: 1.6rem;
}

.entrada__enlace {
    margin-top: 1rem;
    display: inline-block;
    background-color: var(--blanco);
    padding: 1rem 2rem;
    border: 1px solid var(--naranja);
    border-radius: .5rem;
    color: var(--rojoPrincipal);
    transition: .3s ease-in-out;
}

.entrada__enlace {
    background-color: rgb(243 244 246);
}