/* =========================
   SECCION SERVICIOS
========================= */

.container-servicios{

    width: 100%;

    padding: 100px 5%;

    background: #f5f3ef;
}

/* =========================
   TITULO SERVICIOS
========================= */

.titulo-servicios{

    width: 100%;

    text-align: center;

    margin-bottom: 70px;
}

.titulo-servicios h2{

    font-size: 4rem;

    font-weight: 300;

    letter-spacing: 2px;

    margin-bottom: 20px;

    color: #111;

    font-family: serif;
}

.titulo-servicios p{

    max-width: 700px;

    margin: auto;

    font-size: 1rem;

    line-height: 1.9;

    color: #666;
}

/* =========================
   GRID CARDS
========================= */

.grid-servicios{

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

/* =========================
   CARD
========================= */

.card-servicio{

    background: #ffffff;

    border: 1px solid #dcdcdc;

    overflow: hidden;

    transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* HOVER CARD */

.card-servicio:hover{

    transform: translateY(-6px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   IMAGEN
========================= */

.imagen-servicio{

    width: 100%;

    height: 530px;

    overflow: hidden;
}

.imagen-servicio img{

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

/* HOVER IMAGEN */

.card-servicio:hover .imagen-servicio img{

    transform: scale(1.04);
}

/* =========================
   CONTENIDO
========================= */

.contenido-servicio{

    padding: 35px;
}

/* NUMERO */

.contenido-servicio span{

    font-size: 3rem;

    font-weight: 300;

    color: #8d8d8d;

    font-family: serif;
}

/* TITULO CARD */

.contenido-servicio h2{

    font-size: 1.5rem;

    font-weight: 500;

    margin-top: 15px;

    margin-bottom: 18px;

    color: #111;
}

/* TEXTO */

.contenido-servicio p{

    font-size: 0.98rem;

    line-height: 1.9;

    color: #555;

    margin-bottom: 35px;
}

/* LINK */

.contenido-servicio a{

    text-decoration: none;

    color: #000;

    font-size: 0.9rem;

    letter-spacing: 1px;

    position: relative;

    transition: opacity 0.3s ease;
}

/* LINEA LINK */

.contenido-servicio a::after{

    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 100%;

    height: 1px;

    background: #000;

    transition: width 0.3s ease;
}

/* HOVER LINK */

.contenido-servicio a:hover{

    opacity: 0.7;
}

.contenido-servicio a:hover::after{

    width: 60%;
}

/* =========================
   TABLET
========================= */

@media(max-width: 992px){

    .grid-servicios{

        grid-template-columns: repeat(2, 1fr);
    }

    .imagen-servicio{

        height: 380px;
    }

    .titulo-servicios h2{

        font-size: 3rem;
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width: 768px){

    .container-servicios{

        padding: 70px 6%;
    }

    .grid-servicios{

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .contenido-servicio{

        padding: 28px;
    }

    .contenido-servicio span{

        font-size: 2.5rem;
    }

    .contenido-servicio h2{

        font-size: 1.3rem;
    }

    .contenido-servicio p{

        font-size: 0.95rem;
    }

    .imagen-servicio{

        height: 340px;
    }

    .titulo-servicios{

        margin-bottom: 50px;
    }

    .titulo-servicios h2{

        font-size: 2.5rem;
    }

    .titulo-servicios p{

        font-size: 0.95rem;
    }
}

/* =========================
   MOBILE PEQUEÑO
========================= */

@media(max-width: 480px){

    .container-servicios{

        padding: 60px 5%;
    }

    .imagen-servicio{

        height: 300px;
    }

    .contenido-servicio{

        padding: 24px;
    }

    .contenido-servicio span{

        font-size: 2.2rem;
    }

    .contenido-servicio h2{

        font-size: 1.15rem;
    }

    .contenido-servicio p{

        font-size: 0.92rem;

        line-height: 1.7;
    }

    .titulo-servicios h2{

        font-size: 2rem;
    }

    .titulo-servicios p{

        font-size: 0.9rem;

        line-height: 1.7;
    }
}