@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
/************** SLIDE */
.slider-section
{
    height: 100vh;
    font-family: 'Bitter', serif;
}
.texto-blog p{
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.title-blog h3{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slider
{
    height: 100%;
}

.img-slides
{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slide 
{
    position: relative;
    display: flex;
    align-items: center;
}

.slide::before
{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .3;
}

.slide:nth-child(2)::before
{
    opacity: 0;
}

.slide:nth-child(3)::before
{
    opacity: 0;
}

.title-slide
{
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 40px;
    left: 12%;
}
.title-slide h2 
{
    font-size: 54px;
    color: #fff;
    font-weight: 800;
}

.btn-contacto
{
    text-decoration: none;
    color: #fff;
    background: var(--color1);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--color1);
    display: block;
    width: fit-content;
}

/*************** SERVICIOS */

/***/

.title-procesos-main
{
    text-align: center;
    font-family: 'Bitter', serif;
    font-size: 24px;
    color: var(--color2);
    padding: 50px 0;
}

.title-procesos-main h2 
{
    font-size: 38px;
    font-weight: bold;
}

.procesos-main
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 50px;
    padding: 0 80px 50px 80px;
    font-family: 'Bitter', serif;
}

.icon-procesos
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.procesos
{
    box-shadow: 2px 2px 15px -3px rgba(0,0,0,0.16);
    -webkit-box-shadow: 2px 2px 15px -3px rgba(0,0,0,0.16);
    -moz-box-shadow: 2px 2px 15px -3px rgba(0,0,0,0.16);
    padding: 20px;
    border-radius: 20px;
}

.title-procesos
{
    position: relative;
}

.title-procesos span 
{
    position: absolute;
    bottom: 0;
    left: 0;
    font-weight: 800;
    font-size: 70px !important;

}

.title-procesos span p{
    color: #e4e4e4;
    font-size: 70px !important;
}

.title-procesos h2
{
    position: relative;
    z-index: 5;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.texto-procesos p
{
    padding: 15px 0;
    font-size: 14px;
}

/***/

.servicios-section
{
    padding: var(--pd-general);
    font-family: 'Bitter', serif;
    position: relative;
    z-index: 1;
}

.servicios-section::before
{
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--color1);
    opacity: .1;
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    z-index: -1;
}

.servicios-section::after
{
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--color1);
    opacity: .1;
    top: 0;
    right: 0;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: -1;
}

.title-servicios 
{
    padding-bottom: 50px;
}

.title-servicios h2 
{
    color: var(--color2);
    font-size: 40px;
    text-align: center;
}


.servicios 
{
    display: grid;
    row-gap: 40px;
    grid-template-columns: repeat(3, 1fr);
}


.servicio 
{
    overflow: hidden;
    position: relative;
    transition: all .3s;
    /*box-shadow: inset 0px 0px 10px 0;*/
}

.servicio:hover .info-servicio
{
    top: 0;
}

.img-servicio
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-servicio
{
    text-align: center;
    padding: 20px 0;
}

.title-servicio h3 
{
    text-transform: uppercase;
}


.info-servicio
{
    width: 100%;
    top: 100%;
    left: 0;
    position: absolute;
    background: var(--color2);
    transition: all .3s ease-out;
    padding: 15px;
    width: 90%;
    right: 0;
    margin: auto;
    height: 100%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.title-hov 
{
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
    padding-bottom: 10px;
}

.texto-hov
{
    padding-bottom: 10px;
}
.links-inicio{
    height: 100px;
}
.links-inicio a, img{
    height: 100%;
    object-fit: contain;
}
.texto-hov p 
{
    text-align: center;
    color: #fff;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;/*si no se declara añade los ... pero muestra todo el texto*/
}

.btn-vermas
{
    background: var(--color1);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--color1)
}

/************NOSOTROS */

.nosotros-section
{
    background: #F2F2F2;
    font-family: 'Bitter', serif;
}

.nosotros-main
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: var(--pd-general);
}

.info-nosotros
{
    display: flex;
    gap: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title-info h2 
{
    font-size: 36px;
    color: var(--color2);
    text-align: center;
}

.icons-info
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.icons-info div 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title
{
    padding: 10px 0;
}

.title h4 
{
    text-align: center;
    margin: 0;
    font-size: 20px;
}

/******* Blogs */
.banner-blogs
{
    height: 350px;
    background-image: url(../img/fondo/banner-blogs.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.banner-blogs::before
{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .5;
    top: 0;
    left: 0;
    z-index: -1;
}

.title-banner
{
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-banner h2 
{
    color: #fff;
    font-size: 40px;
    font-family: 'Bitter', serif;
    text-align: center;
}

.img-blog
{
    position: relative;
}

.fecha
{
    position: absolute;
    background: var(--color2);
    bottom: 0;
    right: 0;
    padding: 5px 10px;
    border-top-left-radius: 10px;
    color: white;
    font-size: 14px;
}

.blogs
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 40px;
    padding: var(--pd-general);
    position: relative;
    z-index: 3;
}

.blog 
{   box-shadow: 1px 5px 10px -5px rgba(0,0,0,0.75);
    -webkit-box-shadow: 1px 5px 10px -5px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 5px 10px -5px rgba(0,0,0,0.75);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.info-blog
{
    transition: all .3s;
}

.leermas-main
{
    position: absolute;
    width: 100%;
    height: 50%;
    opacity: 0;
    color: #fff;
    bottom: 0;
    left: 0;
    transition: all .3s;
}

.blog:hover .info-blog
{
    filter: blur(3px);
    transform: scale(0.8);
}

.blog:hover .leermas-main
{
    opacity: 1;
}

.leermas-main a 
{
    color: var(--color2);
    font-size: 30px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/*****/

.leermas-main a 
{
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}
  
.leermas-main a {
    position: relative;
    display: flex;
    font-weight: 600;
    font-size: 20px;
    gap: 0.5rem;
    align-items: center;
}
  
.leermas-main a p {
    margin: 0;
    position: relative;
    font-size: 24px;
    font-weight: lighter;
    color: #000;
}
  
.leermas-main a::after {
    position: absolute;
    content: "";
    width: 0;
    left: 0;
    bottom: -7px;
    background: var(--color2);
    height: 2px;
    transition: 0.3s ease-out;
}
  
.leermas-main a p::before {
    position: absolute;
  /*   box-sizing: border-box; */
    content: "Leer más";
    width: 0%;
    inset: 0;
    color: var(--color2);
    overflow: hidden;
    transition: 0.3s ease-out;
}
  
.leermas-main a:hover::after {
    width: 100%;
}
  
.leermas-main a:hover p::before {
    width: 100%;
}
  
.leermas-main a:hover svg {
    transform: translateX(4px);
    color: var(--color2)
}
  
.leermas-main a svg {
    color: #000;
    transition: 0.2s;
    position: relative;
    width: 15px;
    transition-delay: 0.2s;
}
  
/****/


.title-blog
{
    text-align: center;
    padding: 15px;
}

.title-blog h3 
{
    font-size: 26px;
    font-family: 'Bitter', serif;
    color: var(--color1);
}

.texto-blog
{
    padding: 0 30px 20px 30px;
    font-family: 'Bitter', serif;
    text-align: justify;
}

/***** INTERES */
.interes-section
{
    padding: 0 80px 50px 80px;
}

.title-interes h2
{
    font-size: 40px;
    color: var(--color2);
    font-family: 'Bitter', serif;
    padding-bottom: 50px;
    text-align: center;
}

/***/
@media(max-width: 1200px)
{
    .blogs
    {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}


@media(max-width: 992px)
{
    .servicios
    {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .nosotros-main
    {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));

    }
}

@media(max-width: 768px)
{
    .servicios-section, .nosotros-main, .blogs
    {
        padding: 50px 60px;
    }

    .interes-section
    {
        padding: 0 60px 50px 60px;
    }

    .servicios
    {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .icons-info
    {
        grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    }
}

@media(max-width: 576px)
{
    .servicios-section, .nosotros-main, .blogs
    {
        padding: 50px 20px;
    }

    .interes-section
    {
        padding: 0 20px 50px 20px;
    }

    .nosotros-main
    {

    }
    .blogs
    {

    }
    
    .title-slide h2
    {
        font-size: 44px;
    }  

    .slider-section
    {
        height: calc(100vh - 136px);
    }
}

@media(max-width: 440px)
{
    .nosotros-main
    {
        grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    }
}

@media(max-width: 360px)
{
    .title-slide h2
    {
        font-size: 36px;
    }

    .servicios, .nosotros-main, .blogs
    {
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    }
}