/* =========================================
   SERVICES SECTION
========================================= */

.services {
    padding: 120px 0;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #faf7f1
        );
}


/* CONTENEDOR */

.container {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;
}


/* ENCABEZADO DE SECCIÓN */

.section-header {
    text-align: center;

    margin-bottom: 4rem;
}


/* SUBTÍTULO */

.section-subtitle {
    display: inline-block;

    font-size: 1.3rem;

    text-transform: uppercase;

    letter-spacing: 4px;

    color: #d4af37;

    margin-bottom: 1rem;

    font-weight: 600;
}


/* TÍTULO */

.section-title {
    font-size: clamp(2.2rem, 5vw, 4rem);

    color: var(--navy);

    font-weight: 700;

    line-height: 1.2;
}


/* GRID */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;
}


/* TARJETAS */

.service-card {
    position: relative;

    overflow: hidden;

    border-radius: 24px;

    background: white;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}


/* IMAGEN */

.service-card img {
    width: 100%;
    height: 340px;

    object-fit: cover;

    display: block;

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}


/* OVERLAY OSCURO */

.service-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.72),
            rgba(0,0,0,0.12)
        );

    z-index: 1;
}


/* TÍTULO TARJETA */

.service-card h3 {
    position: absolute;

    bottom: 30px;
    left: 30px;

    z-index: 2;

    color: white;

    font-size: 1.8rem;

    font-weight: 600;

    margin: 0;

    text-shadow:
        0 3px 10px rgba(0,0,0,0.4);
}


/* HOVER */

.service-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.15);
}

.service-card:hover img {
    transform: scale(1.08);

    filter: brightness(1.05);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .services {
        padding: 90px 0;
    }

    .service-card img {
        height: 280px;
    }

    .service-card h3 {
        font-size: 1.5rem;

        left: 20px;
        bottom: 20px;
    }

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .portfolio,
    .benefits,
    .process,
    .testimonials {
        padding: 90px 0;
    }

    .portfolio-card img {
        height: 340px;
    }

    .portfolio-info h3 {
        font-size: 1.6rem;
    }

    .testimonial-card {
        padding: 2.2rem;
    }

}