.servicios-hero {
    position: relative;
    min-height: 450px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    background-color: #d69c3f;
}

.hero-bg {
    position: absolute;
    inset: 0;
    min-height: 450px !important;

    background-position: center;
    background-size: cover;
}

.hero-bg--fallback {
    background-image: linear-gradient(135deg, var(--petrol) 0%, var(--ink) 100%);
    min-height: 450px !important;
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(22, 32, 42, 0.35) 0%,
            rgba(22, 32, 42, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 24px 44px;
    max-width: 1120px;
    margin: 0 auto;

}

.hero-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    margin-top: 10px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }

    .servicios-hero {
        height: 260px;
    }
}

/* ==========================================================================
   INTRO
   ========================================================================== */

.servicios-intro {
    padding: 72px 0 48px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    background: var(--ocre);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.servicio-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio-card:hover,
.servicio-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px -18px rgba(22, 32, 42, 0.35);
}

.servicio-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.servicio-card a:focus-visible {
    outline: 2px solid var(--petrol);
    outline-offset: -2px;
}

.servicio-info {
    padding: 22px 22px 26px;
    margin-top: -8px;
}

.servicio-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.servicio-card:hover .servicio-info h3 {
    color: var(--petrol);
}

.servicio-info p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.servicios-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 72px 0;
    text-align: center;
    position: relative;
}

.servicios-cta::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--paper);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.servicios-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
}

.servicios-cta p {
    margin: 14px 0 30px;
    color: rgba(238, 240, 234, 0.75);
    font-size: 1.05rem;
}

.btn-servicio {
    display: inline-block;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    outline: 2px solid #fff;
    background: var(--ocre);
    padding: 14px 34px;
    border-radius: 2px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-servicio:hover {
    background: #d69c3f;
    outline: 2px solid #d69c3f;
    transform: translateY(-2px);
}

.btn-servicio:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
    .servicios-intro {
        padding: 48px 0 32px;
    }

    .servicios-listado {
        padding: 24px 0 64px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicios-cta {
        padding: 56px 0;
    }
}