/* =========================
   HERO
========================= */
.servicios-hero {
    position: relative;
    height: 72vh;
    min-height: 520px;
    overflow: hidden;
}

/* Imagen fondo */
.servicios-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

/* Capa oscura */
.servicios-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

/* Contenedor contenido */
.servicios-hero .container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

/* Texto hero */
.servicios-hero-content {
    max-width: 700px;
    color: #fff;
    padding-bottom: 70px;
}

.servicios-hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 2px;
}

.servicios-hero-content p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 300;
}

/* =========================
   GRID SERVICIOS
========================= */
.servicios-index {
    padding: 80px 0;
    background: #f4f4f4;
}

.servicio-card {
    position: relative;
    display: block;
    height: 520px;
    overflow: hidden;
    text-decoration: none;
    background: #ddd;
}

.servicio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.servicio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.18) 55%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 1;
}

.servicio-card-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 2;
    color: #fff;
}

.servicio-card-content h2 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 1px;
}

.servicio-card-content span {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.servicio-card:hover img {
    transform: scale(1.04);
}

/* =========================
   TABLET
========================= */
@media (max-width: 991.98px) {
    .servicios-hero {
        height: 60vh;
        min-height: 420px;
    }

    .servicio-card {
        height: 430px;
    }
}

/* =========================
   MÓVIL
========================= */
@media (max-width: 767.98px) {
    .servicios-hero {
        height: 52vh;
        min-height: 360px;
    }

    .servicios-hero-content {
        padding-bottom: 35px;
    }

    .servicios-index {
        padding: 45px 0;
    }

    .servicio-card {
        height: 320px;
    }

    .servicio-card-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .servicio-card-content h2 {
        font-size: 1.2rem;
    }
}
