/* =========================
   HERO
========================= */




/* =========================
   NAVEGACION SERVICIOS
========================= */
.servicios-navegacion {
    background: var(--index-secundario);
    padding: 24px 0;
}

.servicios-navegacion-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.servicios-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.servicios-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 24px;
    border: 1px solid var(--index-principal);
    border-radius: 999px;
    color: var(--index-principal);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.servicios-tab:hover {
    background: var(--index-principal);
    color: var(--index-secundario-light);
}

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

.servicio-detalle {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    padding: 64px 0;
    border-bottom: 1px solid #ded8d1;
    scroll-margin-top: 120px;
}

.servicio-detalle:first-child {
    padding-top: 0;
}

.servicio-detalle:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.servicio-detalle-invertido .servicio-detalle-media {
    order: 2;
}

.servicio-detalle-media {
    overflow: hidden;
    /* background: var(--index-secundario); */
}

.servicio-detalle-media img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.servicio-detalle-content {
    max-width: 680px;
}

.servicio-detalle-content h2 {
    margin: 0 0 24px;
    color: var(--index-principal);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.servicio-detalle-content p {
    margin: 0 0 1rem;
    color: var(--index-principal);
    font-size: 1.04rem;
    font-weight: 300;
    line-height: 1.75;
}

.servicio-detalle-content p:last-child {
    margin-bottom: 0;
}

.servicios-volver-inicio {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--index-principal);
    color: var(--index-secundario-light);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.servicios-volver-inicio.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.servicios-volver-inicio:hover {
    background: #9e968d;
    color: #f2e9de;
}

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

    .servicios-listado {
        padding: 60px 0;
    }

    .servicios-navegacion-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .servicio-detalle,
    .servicio-detalle-invertido {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0;
    }

    .servicio-detalle-invertido .servicio-detalle-media {
        order: 0;
    }

    .servicio-detalle-media img {
        max-height: 100vh;
    }
}

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

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

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

    .servicios-navegacion {
        padding: 20px 0;
    }

    .servicios-tabs {
        width: 100%;
    }

    .servicios-tab {
        flex: 1 1 30%;
        padding: 8px 14px;
        font-size: 0.95rem;
    }

    .servicios-volver-inicio {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }

    .servicio-detalle,
    .servicio-detalle-invertido {
        gap: 24px;
        padding: 38px 0;
    }

    .servicio-detalle-media img {
        max-height: 100vh;
    }

    .servicio-detalle-content h2 {
        margin-bottom: 18px;
    }

    .servicio-detalle-content p {
        font-size: 1rem;
        line-height: 1.65;
    }
}
