/**
 * Hero detalle de servicio — tarjeta oscura, etiqueta roja, CTA WhatsApp y agendar.
 */

.hero-servicio-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.35rem 1.45rem;
    border-radius: 18px;
    background: rgba(32, 32, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    --hero-badge-max-percent: 70%;
    max-width: min(620px, var(--hero-badge-max-percent));
    width: 100%;
    font-family: var(--font-sans, system-ui, sans-serif);
}

.hero-servicio-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #e10600;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-servicio-card__tag i {
    font-size: 0.85rem;
    opacity: 0.95;
}

.hero-servicio-card__title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
}

.hero-servicio-card__title-highlight {
    color: #3ddc84;
}

.hero-servicio-card__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    max-width: 52ch;
}

.hero-servicio-card__desc p:last-child {
    margin-bottom: 0;
}

.hero-servicio-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    max-width: 320px;
    margin-top: 0.15rem;
}

.hero-servicio-card__btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.15rem;
    border-radius: 10px;
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.hero-servicio-card__btn-wa:hover {
    background: #1fb855;
    color: #fff !important;
    transform: translateY(-1px);
}

.hero-servicio-card__btn-wa i {
    font-size: 1.15rem;
}

.hero-servicio-card__btn-agendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.68rem 1.1rem;
    border-radius: 10px;
    background: #113885;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    transition: background 0.2s ease;
}

.hero-servicio-card__btn-agendar:hover {
    background: #0d2d6b;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-servicio-card {
        --hero-badge-max-percent: 94%;
        padding: 1.1rem 1.15rem;
    }

    .hero-servicio-card__actions {
        max-width: 100%;
    }

    /*
     * Hero móvil: imagen admin (imagen_hero_mobile) vía <picture>.
     * Proporción 25:42 como el resto del sitio.
     */
    body.servicio-detalle-public.page-hero-banner-desk .hero-section {
        position: relative;
        aspect-ratio: 25 / 42;
        width: 100%;
        height: auto;
        max-height: none;
        overflow: hidden;
        background-color: #000 !important;
        background-image: var(--hero-banner-bg-mobile, var(--hero-banner-bg)) !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    body.servicio-detalle-public.page-hero-banner-desk .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            rgba(0, 0, 0, var(--hero-banner-overlay, 0)),
            rgba(0, 0, 0, var(--hero-banner-overlay, 0))
        );
    }

    body.servicio-detalle-public.page-hero-banner-desk .hero-section .hero-section__bg-picture {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        display: block !important;
        pointer-events: none;
    }

    body.servicio-detalle-public.page-hero-banner-desk .hero-section .hero-section__bg-picture img,
    body.servicio-detalle-public.page-hero-banner-desk .hero-section .hero-section__desk-bg {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none !important;
        object-fit: cover;
        object-position: center;
    }

    body.servicio-detalle-public.page-hero-banner-desk .hero-section > .hero-content {
        position: relative;
        z-index: 2;
    }
}

@media (min-width: 769px) {
    body.servicio-detalle-public.page-hero-banner-desk .hero-section .hero-section__bg-picture {
        display: block;
        width: 100%;
        flex-shrink: 0;
    }
}
