/* ═══════════════════════════════════════════
   TECNOSYSCOL — HOGAR MEJORADO
   Reemplaza css/modules/hogar.css
   ═══════════════════════════════════════════ */

#servicios-hogar,
#como-trabajamos,
#testimonios,
#faq {
    scroll-margin-top: 132px;
}

.hg-container {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--ts-pad-inline, 24px);
}

/* ═══ HERO ═══ */
.hg-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(720px 380px at 79% 20%, rgba(8, 102, 245, .12) 0%, rgba(8, 102, 245, 0) 68%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 138px 0 76px;
}

.hg-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: #edf2fa;
    pointer-events: none;
}

.hg-hero__bg-shape {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.hg-hero__bg-shape--1 {
    width: 520px;
    height: 520px;
    top: 34px;
    right: -150px;
    background: radial-gradient(circle, rgba(8, 102, 245, .10) 0%, rgba(8, 102, 245, 0) 70%);
    filter: blur(8px);
}

.hg-hero__bg-shape--2 {
    width: 300px;
    height: 300px;
    top: 120px;
    right: 300px;
    background: radial-gradient(circle, rgba(87, 150, 255, .12) 0%, rgba(87, 150, 255, 0) 72%);
    filter: blur(10px);
}

.hg-hero__inner {
    min-height: 515px;
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(500px, 1.04fr);
    gap: clamp(34px, 4vw, 64px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hg-hero__copy {
    width: 100%;
    max-width: 625px;
    align-self: center;
}

.hg-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #0a5df0;
    background: #edf4ff;
    border: 1px solid #d8e7ff;
    padding: 7px 13px;
    border-radius: 999px;
    margin-bottom: 19px;
}

.hg-hero h1 {
    font-family: var(--ts-font-h);
    font-size: clamp(46px, 4.65vw, 66px);
    line-height: 1.03;
    letter-spacing: -.035em;
    font-weight: 800;
    color: #0b1638;
    margin: 0 0 20px;
    max-width: 620px;
    text-wrap: balance;
}

.hg-hero__sub {
    font-size: 17px;
    line-height: 1.68;
    color: #4c5e80;
    margin: 0 0 25px;
    max-width: 570px;
}

.hg-hero__micro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 610px;
    margin-bottom: 29px;
}

.hg-hero__micro-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #0b1638;
}

.hg-hero__micro-item svg {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    padding: 9px;
    border-radius: 50%;
    color: #0a63f7;
    background: #eff5ff;
    border: 1px solid #d9e7ff;
    flex: 0 0 36px;
}

.hg-hero__micro-item span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.22;
}

.hg-hero__micro-item strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #0b1638;
    white-space: nowrap;
}

.hg-hero__micro-item small {
    font-size: 10.8px;
    color: #6b7d9a;
}

.hg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hg-hero__actions .ts-btn {
    min-width: 190px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 14px;
    font-weight: 700;
}

.hg-hero__actions .ts-btn--primary {
    background: linear-gradient(180deg, #1f73ff 0%, #0a5df0 100%);
    border: 1px solid #0a5df0;
    color: #fff;
    box-shadow: 0 14px 32px rgba(8, 102, 245, .20);
}

.hg-hero__actions .ts-btn--secondary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(11, 22, 56, .05);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hg-hero__actions .ts-btn--secondary:hover {
    background: #f8fafc;
}

[data-theme="dark"] .hg-hero__actions .ts-btn--secondary,
html[data-theme="dark"] .hg-hero__actions .ts-btn--secondary,
html.dark .hg-hero__actions .ts-btn--secondary {
    background: #1e293b;
    border-color: #334155;
    color: #ffffff;
}

[data-theme="dark"] .hg-hero__actions .ts-btn--secondary:hover,
html[data-theme="dark"] .hg-hero__actions .ts-btn--secondary:hover,
html.dark .hg-hero__actions .ts-btn--secondary:hover {
    background: #334155;
}

.hg-hero__actions .ts-btn svg {
    width: 16px;
    height: 16px;
}

/* El recurso ya contiene laptop, dispositivos, casa e iconos.
   Se muestra como una única composición para conservar su alineación. */
.hg-hero__art {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hg-hero__scene {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    transform: translateY(0);
}

.hg-hero__scene[data-hero-carousel] {
    display: grid;
    grid-template-areas: "hero-slide";
    place-items: center;
    justify-content: center;
    margin-inline: auto;
}

.hg-hero__scene[data-hero-carousel] .hm-hero__slide {
    grid-area: hero-slide;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    display: block;
    opacity: 0;
    transition: opacity 700ms ease;
    z-index: 1;
}


.hg-hero__scene[data-hero-carousel] .hm-hero__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hg-hero__scene::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 12%;
    right: 8%;
    bottom: 2%;
    height: 18%;
    border-radius: 50%;
    background: rgba(45, 104, 210, .12);
    filter: blur(34px);
    pointer-events: none;
}

.hg-hero__scene img {
    width: 100%;
    height: auto;
    max-height: 460px;
    display: block;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 24px 36px rgba(25, 72, 172, .12));
}

/* ── Chips flotantes (Insignias Glassmorphism) ── */
.hg-hero__chip {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 14px 30px rgba(11, 22, 56, .10);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hg-hero__chip-icon {
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    color: #0a63f7;
    display: grid;
    place-items: center;
}

.hg-hero__chip-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes float-hero-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }

    25% {
        opacity: 0.8;
    }

    50% {
        transform: translate(140px, 60px) scale(1.05) rotate(12deg);
        opacity: 0.85;
    }

    75% {
        opacity: 0.6;
    }

    100% {
        transform: translate(240px, -40px) scale(0.8);
        opacity: 0;
    }
}

@keyframes float-hero-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    60% {
        transform: translate(-150px, 80px) scale(1.08) rotate(-14deg);
        opacity: 0.75;
    }

    85% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-280px, -30px) scale(0.85);
        opacity: 0;
    }
}

@keyframes float-hero-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.75;
    }

    55% {
        transform: translate(-160px, 110px) scale(1.05) rotate(18deg);
        opacity: 0.8;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        transform: translate(-300px, 40px) scale(0.8);
        opacity: 0;
    }
}

@keyframes float-hero-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    25% {
        opacity: 0.75;
    }

    65% {
        transform: translate(160px, -90px) scale(1.1) rotate(-10deg);
        opacity: 0.85;
    }

    85% {
        opacity: 0.5;
    }

    100% {
        transform: translate(280px, -20px) scale(0.85);
        opacity: 0;
    }
}

.hg-hero__chip--1 {
    top: 12%;
    left: 2%;
    animation: float-hero-1 16s ease-in-out infinite;
}

.hg-hero__chip--2 {
    top: 8%;
    left: 46%;
    animation: float-hero-2 20s ease-in-out infinite 2s;
}

.hg-hero__chip--3 {
    top: 18%;
    right: 3%;
    animation: float-hero-3 18s ease-in-out infinite 4s;
}

.hg-hero__chip--4 {
    bottom: 12%;
    left: 4%;
    animation: float-hero-4 22s ease-in-out infinite 1s;
}

[data-theme="dark"] .hg-hero__chip,
html[data-theme="dark"] .hg-hero__chip,
html.dark .hg-hero__chip {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.3);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .32);
}

/* Compatibilidad por si quedan nodos antiguos en caché/HTML. */
.hg-hero__house,
.hg-hero__float {
    display: none !important;
}

/* ═══ CAPA AMBIENTAL GLOBAL DE INSIGNIAS FLOTANTES DE FONDO ═══ */
.hg-hero,
.hg-servicios,
.hg-proceso,
.hg-confianza,
.hg-testimonios,
.hg-faq {
    position: relative;
    z-index: 1;
}

.hg-bg-badge {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    opacity: 0.5;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .hg-bg-badge,
html[data-theme="dark"] .hg-bg-badge,
html.dark .hg-bg-badge {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(51, 65, 85, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hg-bg-badge svg {
    width: 24px;
    height: 24px;
    color: rgba(59, 130, 246, 0.7);
}

[data-theme="dark"] .hg-bg-badge svg,
html[data-theme="dark"] .hg-bg-badge svg,
html.dark .hg-bg-badge svg {
    color: rgba(96, 165, 250, 0.6);
}

@keyframes hg-drift-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }

    40% {
        transform: translate(60px, -45px) rotate(12deg);
        opacity: 0.55;
    }

    75% {
        transform: translate(30px, 35px) rotate(-8deg);
        opacity: 0.35;
    }
}

@keyframes hg-drift-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.25;
    }

    35% {
        transform: translate(-70px, 50px) rotate(-14deg);
        opacity: 0.6;
    }

    70% {
        transform: translate(-35px, -40px) rotate(10deg);
        opacity: 0.3;
    }
}

@keyframes hg-drift-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        transform: translate(80px, 60px) rotate(15deg);
        opacity: 0.55;
    }

    80% {
        transform: translate(40px, -30px) rotate(-6deg);
        opacity: 0.3;
    }
}

@keyframes hg-drift-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    45% {
        transform: translate(-65px, -55px) rotate(-12deg);
        opacity: 0.6;
    }

    75% {
        transform: translate(-25px, 45px) rotate(8deg);
        opacity: 0.25;
    }
}

@keyframes hg-drift-5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }

    30% {
        transform: translate(50px, -65px) rotate(10deg);
        opacity: 0.5;
    }

    70% {
        transform: translate(75px, 35px) rotate(-14deg);
        opacity: 0.35;
    }
}

@keyframes hg-drift-6 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.25;
    }

    40% {
        transform: translate(-80px, 40px) rotate(-15deg);
        opacity: 0.55;
    }

    80% {
        transform: translate(-40px, -60px) rotate(12deg);
        opacity: 0.3;
    }
}

.hg-bg-badge--1 {
    top: 10%;
    left: 5%;
    animation: hg-drift-1 18s ease-in-out infinite;
}

.hg-bg-badge--2 {
    top: 25%;
    right: 8%;
    animation: hg-drift-2 22s ease-in-out infinite 2s;
}

.hg-bg-badge--3 {
    top: 45%;
    left: 3%;
    animation: hg-drift-3 20s ease-in-out infinite 4s;
}

.hg-bg-badge--4 {
    top: 60%;
    right: 4%;
    animation: hg-drift-4 26s ease-in-out infinite 1s;
}

.hg-bg-badge--5 {
    top: 78%;
    left: 6%;
    animation: hg-drift-5 24s ease-in-out infinite 3s;
}

.hg-bg-badge--6 {
    top: 90%;
    right: 7%;
    animation: hg-drift-6 28s ease-in-out infinite 5s;
}

[data-theme="dark"] .hg-hero {
    background:
        radial-gradient(760px 400px at 80% 18%, rgba(8, 102, 245, .18) 0%, rgba(8, 102, 245, 0) 68%),
        #020515;
}

[data-theme="dark"] .hg-hero::after {
    background: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .hg-hero h1,
[data-theme="dark"] .hg-hero__micro-item strong {
    color: #f7f9ff;
}

[data-theme="dark"] .hg-hero__sub,
[data-theme="dark"] .hg-hero__micro-item small {
    color: #8eb0e8;
}

[data-theme="dark"] .hg-hero__tag {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 255, 255, .96);
}

[data-theme="dark"] .hg-hero__micro-item svg {
    background: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .92);
}

[data-theme="dark"] .hg-hero__scene img {
    filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .36));
}

/* ═══ SERVICIOS ═══ */
.hg-servicios {
    padding: 30px 0 38px;
    background: var(--ts-bg);
}

.hg-servicios__head {
    max-width: 680px;
    margin: 0 auto 18px;
    text-align: center;
}

.hg-servicios__head .ts-label {
    display: inline-block;
    margin-bottom: 5px;
}

.hg-servicios__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(24px, 2.25vw, 29px);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ts-text);
    margin-bottom: 0;
    text-wrap: balance;
}

/* Bento grid — B2C */
.hg-servicios__grid {
    display: grid;
    grid-template-columns: minmax(0, 3.35fr) repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(136px, auto));
    gap: 12px;
    width: min(calc(100% - 48px), 1160px);
    margin-inline: auto;
}

.hg-servicio {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    background: var(--ts-card-bg);
    border: 1px solid var(--ts-card-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 35, 70, 0.06);
    padding: 15px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hg-servicio:hover {
    transform: translateY(-2px);
    border-color: var(--ts-card-hover-border);
    box-shadow: var(--ts-card-shadow-hover);
}

.hg-servicio:focus-visible {
    outline: var(--ts-focus);
    outline-offset: 3px;
}

/* Card destacada: Soporte */
.hg-servicio--destacado {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    grid-row: 1 / 4;
    grid-column: 1;
    background: linear-gradient(145deg, #071a42 0%, #083b89 58%, #0866f5 145%);
    color: #fff;
    padding: 16px 18px;
    gap: 6px;
}

.hg-servicio--destacado::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 58%, rgba(255, 255, 255, 0.07)),
        radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.16) 1px, transparent 1.5px);
    background-size: auto, 15px 15px;
    mask-image: linear-gradient(90deg, transparent 28%, #000);
}

.hg-servicio.hg-servicio--destacado h3 {
    color: #fff;
    font-size: 17px;
}

.hg-servicio.hg-servicio--destacado p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.4;
}

.hg-servicio--destacado .hg-servicio__icon {
    width: 46px;
    height: 46px;
    background: transparent;
    border: 0;
    color: #fff;
}

.hg-servicio--destacado .hg-servicio__icon svg {
    width: 42px;
    height: 42px;
}

.hg-servicio--destacado .hg-servicio__features {
    margin-top: 2px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hg-servicio--destacado .hg-servicio__features li {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 17px;
    position: relative;
    text-align: left;
}

.hg-servicio--destacado .hg-servicio__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34d399;
    font-weight: 700;
}

.hg-servicio--destacado .hg-servicio__badge {
    align-self: flex-start;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(8, 102, 245, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 3px 8px;
}

.hg-servicio--destacado .hg-servicio__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    font-size: 12.5px;
    font-weight: 700;
    color: #0757d9;
    margin-top: auto;
    text-decoration: none;
}

.hg-servicio--destacado .hg-servicio__cta:hover {
    opacity: 0.85;
}

/* Bento positions (desktop B2C) */
.hg-servicio--maint {
    grid-row: 1;
    grid-column: 2 / 5;
}

.hg-servicio--opt {
    grid-row: 1;
    grid-column: 5 / 8;
}

.hg-servicio--fmt {
    grid-row: 2;
    grid-column: 2 / 5;
}

.hg-servicio--wifi {
    grid-row: 2;
    grid-column: 5 / 8;
}

.hg-servicio--cctv {
    grid-row: 3;
    grid-column: 2 / 4;
}

.hg-servicio--cloud {
    grid-row: 3;
    grid-column: 4 / 6;
}

.hg-servicio--gear {
    grid-row: 3;
    grid-column: 6 / 8;
}

.hg-servicio__icon {
    grid-row: 1 / 4;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ts-brand);
}

.hg-servicio__icon svg {
    width: 40px;
    height: 40px;
}

.hg-servicio h3 {
    grid-column: 2;
    font-family: var(--ts-font-h);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ts-text);
    margin: 0;
    text-align: left;
}

.hg-servicio p {
    grid-column: 2;
    font-family: var(--ts-font);
    font-size: 12px;
    line-height: 1.45;
    color: var(--ts-text-3);
    margin: 2px 0 0;
    text-align: left;
}

.hg-servicio__link {
    grid-column: 2;
    font-family: var(--ts-font);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ts-brand);
    margin-top: auto;
    text-align: left;
}

/* ── Proceso (horizontal stepper) ── */
.hg-proceso {
    padding: 16px 0 38px;
    background: var(--ts-bg);
}

.hg-proceso__panel {
    width: min(calc(100% - 48px), 1160px);
    margin-inline: auto;
    background: #f7faff;
    border: 1px solid #e7edf6;
    border-radius: 20px;
    padding: 30px 24px 28px;
    box-shadow: 0 10px 30px rgba(13, 38, 76, 0.035);
}

[data-theme="dark"] .hg-proceso__panel {
    background: rgba(14, 32, 62, 0.5);
    border-color: rgba(100, 165, 245, 0.12);
}

.hg-proceso__head {
    text-align: center;
    margin-bottom: 18px;
}

.hg-proceso__eyebrow {
    display: block;
    margin-bottom: 5px;
    font-family: var(--ts-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ts-brand);
}

.hg-proceso__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(24px, 2.25vw, 29px);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ts-text);
    margin-bottom: 0;
    text-wrap: balance;
}

.hg-proceso__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hg-proceso__step {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    padding-top: 38px;
    min-width: 0;
}

.hg-proceso__number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--ts-border, #e7edf6);
    box-shadow: 0 4px 10px rgba(13, 38, 76, 0.04);
    font: 700 12.5px/1 var(--ts-font-h);
    color: var(--ts-brand);
    overflow: hidden;
    z-index: 3;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .hg-proceso__number {
    background: var(--ts-card-bg);
    border-color: rgba(8, 102, 245, 0.3);
    color: #5fa0ff;
}

.hg-proceso__num-text {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.hg-proceso__water {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

.hg-proceso__water-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #2563EB 0%, #0866F5 100%);
    transform: translateY(100%);
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

/* Línea Azul de Conexión */
.hg-proceso__line-progress {
    position: absolute;
    top: 17px;
    left: calc(50% + 18px);
    right: calc(-50% - 8px);
    height: 2px;
    background: linear-gradient(90deg, #0866F5 0%, #3B82F6 100%);
    box-shadow: 0 0 8px rgba(8, 102, 245, 0.5);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.hg-proceso__step:last-child .hg-proceso__line-progress {
    display: none;
}

.hg-proceso__step.is-line-active .hg-proceso__line-progress {
    transform: scaleX(1);
}

.hg-proceso__step.is-line-active::after,
.hg-proceso__step.is-completed::after {
    color: #0866F5 !important;
    opacity: 1;
}

/* Estados Activo / Llenado de Agua */
.hg-proceso__step.is-loading .hg-proceso__water-fill,
.hg-proceso__step.is-completed .hg-proceso__water-fill {
    transform: translateY(0%);
}

.hg-proceso__step.is-active .hg-proceso__number,
.hg-proceso__step.is-completed .hg-proceso__number {
    border-color: #0866F5;
    color: #FFFFFF;
    box-shadow: 0 0 16px rgba(8, 102, 245, 0.45);
}

.hg-proceso__step.is-active .hg-proceso__num-text,
.hg-proceso__step.is-completed .hg-proceso__num-text {
    color: #FFFFFF !important;
}

/* Resaltado de tarjetas e íconos */
.hg-proceso__step.is-active .hg-proceso__icon,
.hg-proceso__step.is-completed .hg-proceso__icon {
    transform: scale(1.14);
    color: #0866F5;
    filter: drop-shadow(0 6px 16px rgba(8, 102, 245, 0.35));
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.hg-proceso__step.is-active .hg-proceso__copy,
.hg-proceso__step.is-completed .hg-proceso__copy {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.hg-proceso__step.is-active .hg-proceso__copy h3,
.hg-proceso__step.is-completed .hg-proceso__copy h3 {
    color: #0866F5;
    transition: color 0.3s ease;
}

[data-theme="dark"] .hg-proceso__step.is-active .hg-proceso__copy h3,
[data-theme="dark"] .hg-proceso__step.is-completed .hg-proceso__copy h3 {
    color: #5FA0FF;
}

/* Check Azul Final (Paso 04) */
.hg-proceso__check-final {
    position: absolute;
    top: 4px;
    left: calc(50% + 22px);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EFF6FF;
    border: 2px solid #0866F5;
    box-shadow: 0 4px 12px rgba(8, 102, 245, 0.3);
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
}

[data-theme="dark"] .hg-proceso__check-final {
    background: #172554;
}

.hg-proceso__check-svg {
    width: 16px;
    height: 16px;
}

.hg-proceso__check-svg path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.4s ease-out 0.15s;
}

.hg-proceso__step.is-check-active .hg-proceso__check-final {
    opacity: 1;
    animation: hgCheckPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hg-proceso__step.is-check-active .hg-proceso__check-svg path {
    stroke-dashoffset: 0;
}

.hg-proceso__step.is-check-active .hg-proceso__number {
    box-shadow: 0 0 20px rgba(8, 102, 245, 0.6), 0 0 10px rgba(8, 102, 245, 0.3);
}

@keyframes hgCheckPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.22) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hg-proceso__step::before {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 17px);
    right: calc(-50% - 7px);
    color: var(--ts-brand);
    border-top: 1px dashed currentColor;
}

.hg-proceso__step::after {
    content: '›';
    position: absolute;
    top: 4px;
    right: calc(-50% - 7px);
    opacity: 0.72;
    transform: translateX(0);
    color: var(--ts-brand);
    font: 700 24px/1 var(--ts-font);
    transition: opacity .45s ease, transform .45s ease, color .45s ease;
}

[data-theme="dark"] .hg-proceso__step::before,
[data-theme="dark"] .hg-proceso__step::after {
    color: #5fa0ff;
}

.hg-proceso__step:last-child::before,
.hg-proceso__step:last-child::after {
    display: none;
}

.hg-proceso__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--ts-brand);
}

.hg-proceso__icon svg {
    width: 46px;
    height: 46px;
}

.hg-proceso__copy h3 {
    margin: 2px 0 5px;
    font: 700 14px/1.25 var(--ts-font-h);
    color: var(--ts-text);
    text-align: left;
}

.hg-proceso__copy p {
    margin: 0;
    font: 400 11.5px/1.5 var(--ts-font);
    color: var(--ts-text-3);
    text-align: left;
}

[data-theme="dark"] .hg-proceso__copy p {
    color: #91a9c9;
}

.hg-proceso__technologies {
    margin-top: 18px;
    padding: 12px 16px 14px;
    border-radius: 13px;
    background: rgba(8, 102, 245, 0.045);
}

[data-theme="dark"] .hg-proceso__technologies {
    background: rgba(8, 102, 245, 0.10);
}

.hg-proceso__technologies>h3 {
    margin-bottom: 10px;
    text-align: center;
    font: 700 11.5px/1.35 var(--ts-font-h);
    color: var(--ts-brand);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hg-proceso__tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hg-proceso__tech {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 66px;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--ts-card-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(13, 38, 76, 0.04);
}

[data-theme="dark"] .hg-proceso__tech {
    background: var(--ts-card-bg);
    border-color: var(--ts-card-border);
}

.hg-proceso__tech img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 44px;
}

.hg-proceso__tech div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hg-proceso__tech strong {
    font: 700 13px/1.2 var(--ts-font-h);
    color: #101b34;
    text-align: left;
}

[data-theme="dark"] .hg-proceso__tech strong {
    color: var(--ts-text);
}

.hg-proceso__tech span {
    margin-top: 3px;
    font: 500 9.5px/1.35 var(--ts-font);
    color: #667085;
    text-align: left;
}

[data-theme="dark"] .hg-proceso__tech span {
    color: var(--ts-text-3);
}

/* Responsive Grid and Timeline (B2C) */
@media (max-width: 1180px) {
    .hg-servicios__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 12px;
        width: calc(100% - 36px);
    }

    .hg-servicio--destacado {
        grid-row: auto;
        grid-column: span 2;
    }

    .hg-servicio--maint,
    .hg-servicio--opt,
    .hg-servicio--fmt,
    .hg-servicio--wifi,
    .hg-servicio--cctv,
    .hg-servicio--cloud,
    .hg-servicio--gear {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 980px) {
    .hg-proceso__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
    }

    .hg-proceso__number {
        left: 0;
        transform: none;
    }

    .hg-proceso__step::before,
    .hg-proceso__step::after {
        display: none;
    }

    .hg-proceso__tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hg-servicios__grid {
        grid-template-columns: 1fr;
        width: calc(100% - 24px);
    }

    .hg-servicio--destacado {
        grid-column: span 1;
    }

    .hg-proceso__panel {
        width: calc(100% - 24px);
        padding: 20px 17px 16px;
    }

    .hg-proceso__steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hg-proceso__step {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 0 0 22px 42px;
        column-gap: 10px;
    }

    .hg-proceso__step:last-child {
        padding-bottom: 0;
    }

    .hg-proceso__number {
        width: 30px;
        height: 30px;
    }

    .hg-proceso__step::before {
        display: block;
        top: 30px;
        bottom: 0;
        left: 14px;
        right: auto;
        height: auto;
        border-top: 0;
        border-left: 1px dashed currentColor;
    }

    .hg-proceso__step:last-child::before {
        display: none;
    }

    .hg-proceso__tech-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ CONFIANZA ═══ */
.hg-confianza {
    padding: 14px 0 76px;
    background: #fff;
}

.hg-confianza__panel {
    display: grid;
    grid-template-columns: 1.1fr 2.9fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(180deg, #f7fbff 0%, #f4f8ff 100%);
    border: 1px solid #e4edf8;
    border-radius: 24px;
    padding: 30px 34px;
}

.hg-confianza__intro {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hg-confianza__shield {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #66a3ff 0%, #0a63f7 100%);
    box-shadow: 0 16px 34px rgba(10, 99, 247, .22);
}

.hg-confianza__shield svg {
    width: 50px;
    height: 50px;
}

.hg-confianza__intro h2 {
    font-family: var(--ts-font-h);
    font-size: 31px;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 800;
    color: #0b1638;
    margin: 0 0 8px;
}

.hg-confianza__intro p {
    font-size: 14px;
    line-height: 1.65;
    color: #6a7c99;
    margin: 0;
}

.hg-confianza__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
}

.hg-confianza-item-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hg-confianza-item {
    width: 185px;
    height: 185px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e4edf8;
    box-shadow: 0 10px 28px rgba(10, 99, 247, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hg-confianza-item__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f0f6ff;
    color: #0a63f7;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.hg-confianza-item__icon svg {
    width: 24px;
    height: 24px;
}

.hg-confianza-item h3 {
    font-family: var(--ts-font-h);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    color: #0b1638;
    margin: 0 0 4px;
    max-width: 140px;
}

.hg-confianza-item p {
    font-size: 10.5px;
    line-height: 1.35;
    color: #6a7c99;
    margin: 0;
    max-width: 145px;
}

/* ═══ TESTIMONIOS ═══ */
.hg-testimonios {
    padding: 78px 0 72px;
    background:
        radial-gradient(circle at 92% 50%, rgba(8, 102, 245, .10) 0 2px, transparent 3px) 0 0/18px 18px,
        #fff;
}

.hg-testimonios__head {
    text-align: center;
    margin: 0 auto 34px;
}

.hg-testimonios__head .ts-label {
    margin-bottom: 10px;
}

.hg-testimonios__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #0b1638;
    letter-spacing: -.02em;
    margin: 0;
}

.hg-testimonios__wrap {
    max-width: 980px;
    margin: 0 auto;
    overflow: visible !important;
    padding: 24px 0;
    transform: none !important;
}

/* Carrusel de Testimonios Estabilizado con Resguardo Superior */
.hg-testimonial-carousel {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    overflow: visible !important;
}

.hg-testimonial-carousel__track {
    position: relative;
    width: 100%;
    overflow: visible !important;
    padding-top: 12px;
    margin-top: -12px;
}

.hg-testimonial-carousel__slide {
    display: none !important;
    width: 100%;
}

.hg-testimonial-carousel__slide.is-active {
    display: flex !important;
}

.hg-testimonial-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.hg-testimonial-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hg-testimonial-carousel__dot.is-active {
    width: 24px;
    border-radius: 12px;
    background: #0866F5;
}

.hg-testimonios__grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
}

.hg-testimonio {
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(8, 102, 245, 0.06);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-testimonio::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(11, 22, 56, 0.85), rgba(11, 22, 56, 0.85)), url('../../img/network-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hg-testimonio:hover::before {
    opacity: 1;
}

.hg-testimonio > * {
    position: relative;
    z-index: 2;
}

.hg-testimonio:hover {
    border-color: #00e5ff;
    box-shadow: 0 20px 40px rgba(8, 102, 245, 0.16);
    transform: translateY(-4px) !important;
}

.hg-testimonio.is-active:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px rgba(11, 22, 56, 0.18);
}

.hg-testimonio:hover>p {
    color: #fff !important;
}

.hg-testimonio:hover .hg-testimonio__nombre {
    color: #fff !important;
}

.hg-testimonio:hover .hg-testimonio__rol {
    color: #a3c4ff !important;
}

.hg-testimonio:hover .hg-testimonio__autor {
    border-color: rgba(255, 255, 255, 0.15);
}

.hg-testimonio:hover .hg-testimonio__avatar {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hg-testimonio__stars {
    font-size: 15px;
    letter-spacing: 3px;
    color: #f5a623;
}

.hg-testimonio>p {
    font-size: 16px;
    line-height: 1.75;
    color: #4a5d7c;
    margin: 0;
    transition: color 0.3s ease;
}

.hg-testimonio__autor {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e7edf7;
    padding-top: 16px;
    transition: border-color 0.3s ease;
}

.hg-testimonio__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf4ff;
    border: 1px solid #d9e7ff;
    color: #0a63f7;
    font-weight: 800;
    font-size: 13px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hg-testimonio__nombre {
    font-family: var(--ts-font-h);
    font-size: 15px;
    font-weight: 700;
    color: #0b1638;
    transition: color 0.3s ease;
}

.hg-testimonio__rol {
    font-size: 13px;
    color: #7182a1;
    transition: color 0.3s ease;
}

/* ═══ FAQ + PROMO ═══ */
.hg-faq {
    padding: 72px 0 78px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hg-faq__layout {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 28px;
    align-items: stretch;
}

.hg-faq__head {
    margin-bottom: 24px;
}

.hg-faq__head .ts-label {
    margin-bottom: 10px;
}

.hg-faq__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #0b1638;
    letter-spacing: -.02em;
    margin: 0;
}

.hg-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hg-faq__item {
    background: #fff;
    border: 1px solid #e5edf8;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(11, 22, 56, .04);
    overflow: hidden;
}

.hg-faq__item[open] {
    border-color: #cfe0fb;
}

.hg-faq__item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #0b1638;
}

.hg-faq__item summary::-webkit-details-marker {
    display: none;
}

.hg-faq__item summary svg {
    color: #0a63f7;
    transition: transform .22s ease;
    flex: 0 0 auto;
}

.hg-faq__item[open] summary svg {
    transform: rotate(180deg);
}

.hg-faq__item>p {
    padding: 0 22px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #627493;
    margin: 0;
}

/* Promo card */
.hg-faq__promo-card {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #0c45ac 0%, #0a63f7 45%, #0d2b75 100%);
    box-shadow: 0 18px 38px rgba(11, 22, 56, .12);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
}

.hg-faq__promo-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 40, 110, .92) 0%, rgba(10, 74, 190, .84) 45%, rgba(10, 74, 190, .35) 100%);
    z-index: 1;
}

.hg-faq__promo-content,
.hg-faq__promo-image {
    position: relative;
    z-index: 2;
}

.hg-faq__promo-content {
    padding: 34px 28px 30px;
    color: #fff;
}

.hg-faq__promo-content h3 {
    font-family: var(--ts-font-h);
    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
}

.hg-faq__promo-content p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .92);
    margin: 0 0 16px;
}

.hg-faq__promo-content ul {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.hg-faq__promo-content li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .96);
}

.hg-faq__promo-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #90d4ff;
    font-weight: 700;
}

.ts-btn--light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 14px;
    background: #fff;
    color: #0a57ef;
    font-weight: 700;
    text-decoration: none;
}

.hg-faq__promo-image {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
}

.hg-faq__promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dark theme support */
[data-theme="dark"] .hg-hero,
[data-theme="dark"] .hg-servicios,
[data-theme="dark"] .hg-proceso,
[data-theme="dark"] .hg-confianza,
[data-theme="dark"] .hg-testimonios,
[data-theme="dark"] .hg-faq {
    background: var(--ts-bg);
}

[data-theme="dark"] .hg-hero h1,
[data-theme="dark"] .hg-servicios__head h2,
[data-theme="dark"] .hg-proceso__head h2,
[data-theme="dark"] .hg-confianza__intro h2,
[data-theme="dark"] .hg-confianza-item h3,
[data-theme="dark"] .hg-servicio h3,
[data-theme="dark"] .hg-paso h3,
[data-theme="dark"] .hg-testimonios__head h2,
[data-theme="dark"] .hg-testimonio__nombre,
[data-theme="dark"] .hg-faq__head h2,
[data-theme="dark"] .hg-faq__item summary {
    color: var(--ts-text);
}

[data-theme="dark"] .hg-hero__sub,
[data-theme="dark"] .hg-servicios__head p,
[data-theme="dark"] .hg-servicio p,
[data-theme="dark"] .hg-paso p,
[data-theme="dark"] .hg-confianza__intro p,
[data-theme="dark"] .hg-confianza-item p,
[data-theme="dark"] .hg-testimonio>p,
[data-theme="dark"] .hg-testimonio__rol,
[data-theme="dark"] .hg-faq__item>p {
    color: var(--ts-text-3);
}

[data-theme="dark"] .hg-servicio,
[data-theme="dark"] .hg-testimonio,
[data-theme="dark"] .hg-faq__item,
[data-theme="dark"] .hg-paso__icon,
[data-theme="dark"] .hg-hero__float {
    background: var(--ts-card-bg);
    border-color: var(--ts-card-border);
    box-shadow: var(--ts-card-shadow);
}

[data-theme="dark"] .hg-confianza__panel {
    background: linear-gradient(180deg, rgba(15, 26, 54, .9) 0%, rgba(9, 18, 40, .96) 100%);
    border-color: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .hg-confianza-item {
    background: rgba(15, 26, 54, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .hg-confianza-item__icon {
    background: rgba(10, 99, 247, 0.15);
}

[data-theme="dark"] .hg-confianza-item:hover {
    border-color: #0a63f7;
    box-shadow: 0 16px 36px rgba(10, 99, 247, 0.3);
}

[data-theme="dark"] .hg-confianza-item:hover .hg-confianza-item__icon {
    background: #0a63f7;
    color: #ffffff;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1180px) {
    .hg-servicios__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hg-proceso__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }

    .hg-proceso__grid::before {
        display: none;
    }

    .hg-confianza__panel {
        grid-template-columns: 1fr;
    }

    .hg-confianza__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        justify-items: center;
    }

    .hg-faq__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .hg-hero {
        padding: 126px 0 62px;
    }

    .hg-hero__inner {
        grid-template-columns: 1fr;
    }

    .hg-hero__copy {
        max-width: 100%;
    }

    .hg-hero__art {
        min-height: 380px;
    }

    .hg-hero__micro {
        grid-template-columns: 1fr;
    }

    .hg-faq__promo-card {
        grid-template-columns: 1fr;
    }

    .hg-faq__promo-image {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .hg-container {
        padding-inline: 18px;
    }

    .hg-hero h1 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .hg-hero__sub {
        font-size: 15px;
    }

    .hg-servicios,
    .hg-proceso,
    .hg-testimonios,
    .hg-faq {
        padding: 54px 0;
    }

    .hg-servicios__grid,
    .hg-proceso__grid {
        grid-template-columns: 1fr;
    }

    .hg-confianza__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }

    .hg-servicio {
        min-height: auto;
    }

    .hg-confianza-item+.hg-confianza-item {
        border-left: 0;
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
    }

    .hg-hero__actions .ts-btn,
    .ts-btn--light {
        width: 100%;
    }

    .hg-hero__art {
        min-height: 280px;
    }

    .hg-hero__float {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .hg-hero__float svg {
        width: 20px;
        height: 20px;
    }

    .hg-faq__promo-content {
        padding: 26px 22px;
    }
}



/* Confianza */
.hg-confianza {
    padding: 20px 0 72px;
}

.hg-confianza__panel {
    grid-template-columns: 1.16fr 2.84fr;
    padding: 31px 34px;
    box-shadow: 0 14px 34px rgba(11, 22, 56, .035);
}

.hg-confianza__shield {
    width: 102px;
    height: 102px;
    flex-basis: 102px;
    border-radius: 29px;
}

.hg-confianza__shield svg {
    width: 57px;
    height: 57px;
}

.hg-confianza__intro h2 {
    font-size: 29px;
}

/* Testimonio */
.hg-testimonios {
    padding: 72px 0 70px;
    background:
        radial-gradient(circle, rgba(8, 102, 245, .10) 1.7px, transparent 1.8px) 0 0/18px 18px,
        #fff;
}

.hg-testimonios__wrap {
    max-width: 1100px;
}

.hg-testimonios__grid {
    max-width: 690px;
}

.hg-testimonio {
    border-radius: 22px;
    padding: 31px 34px;
}

.hg-testimonio>p {
    font-size: 17px;
    line-height: 1.72;
}

/* FAQ + CTA: proporciones iguales a la maqueta */
.hg-faq {
    padding: 70px 0 82px;
}

.hg-faq__layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
    gap: 32px;
    align-items: stretch;
}

.hg-faq__head {
    max-width: 610px;
    margin-bottom: 24px;
}

.hg-faq__promo-card {
    min-height: 390px;
}

.hg-faq__promo-content {
    padding: 38px 30px 32px;
}

.hg-faq__promo-content h3 {
    font-size: 27px;
}

.hg-faq__promo-image img {
    object-position: 57% center;
}

/* Tablet */
@media (max-width: 1180px) {
    .hg-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr);
        gap: 36px;
    }

    .hg-hero h1 {
        font-size: clamp(43px, 5vw, 60px);
    }

    .hg-hero__scene {
        width: min(100%, 610px);
        margin-right: 0;
    }
}

/* Tablet vertical */
@media (max-width: 980px) {
    .hg-hero {
        padding: 124px 0 60px;
    }

    .hg-hero__inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hg-hero__copy {
        max-width: 720px;
    }

    .hg-hero__art {
        min-height: 390px;
        justify-content: center;
    }

    .hg-hero__scene {
        width: min(100%, 640px);
        margin: 0 auto;
    }

    .hg-hero__micro {
        max-width: 620px;
    }

    .hg-faq__layout {
        grid-template-columns: 1fr;
    }

    .hg-faq__promo-card {
        min-height: 360px;
    }
}

/* Móvil */
@media (max-width: 640px) {
    .hg-hero {
        padding: 112px 0 48px;
    }

    .hg-hero__inner {
        gap: 24px;
    }

    .hg-hero h1 {
        font-size: clamp(36px, 11vw, 46px);
        max-width: 100%;
    }

    .hg-hero__sub {
        font-size: 15.5px;
        margin-bottom: 22px;
    }

    .hg-hero__micro {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hg-hero__micro-item strong {
        white-space: normal;
    }

    .hg-hero__art {
        min-height: 260px;
    }

    .hg-hero__scene {
        width: 112%;
        max-width: 520px;
        margin-left: -6%;
    }

    .hg-hero__chip {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .hg-hero__chip-icon {
        width: 28px;
        height: 28px;
    }

    .hg-hero__chip--1 {
        top: 8%;
        left: 0;
    }

    .hg-hero__chip--2 {
        top: 34%;
        right: 6%;
    }

    .hg-hero__chip--3 {
        bottom: 2%;
        left: 6%;
    }

    .hg-proceso__grid::before {
        display: none;
    }

    .hg-paso {
        padding: 10px 0 18px;
    }

    .hg-faq__promo-card {
        min-height: auto;
    }

    .hg-faq__promo-image {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-hero__chip {
        animation: none;
        transform: none;
    }
}

/* ── EFECTOS DE MOVIMIENTO Y CAROUSEL (DIVERSIÓN) ── */
.hg-confianza__shield {
    animation: hgFloatShield 4s ease-in-out infinite;
}

@keyframes hgFloatShield {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1.5deg);
    }
}

@keyframes hgFloatCircle1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes hgFloatCircle2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-11px);
    }
}

@keyframes hgFloatCircle3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes hgFloatCircle4 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hg-confianza-item-wrap:nth-child(1) {
        animation: hgFloatCircle1 5s ease-in-out infinite;
    }

    .hg-confianza-item-wrap:nth-child(2) {
        animation: hgFloatCircle2 5.8s ease-in-out infinite;
    }

    .hg-confianza-item-wrap:nth-child(3) {
        animation: hgFloatCircle3 5.3s ease-in-out infinite;
    }

    .hg-confianza-item-wrap:nth-child(4) {
        animation: hgFloatCircle4 6.2s ease-in-out infinite;
    }
}

.hg-testimonial-carousel {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    overflow: hidden;
}

.hg-testimonial-carousel__track {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.hg-testimonial-carousel__slide {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(36px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.hg-testimonial-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.hg-testimonial-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.hg-testimonial-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d8e6;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s, width 0.25s;
}

.hg-testimonial-carousel__dot:hover {
    transform: scale(1.2);
}

.hg-testimonial-carousel__dot.is-active {
    background: #0a63f7;
    width: 20px;
    border-radius: 4px;
}

[data-theme="dark"] .hg-testimonial-carousel__dot {
    background: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .hg-testimonial-carousel__dot.is-active {
    background: #5fa0ff;
}

/* ─── NUEVO DISEÑO DE SERVICIOS (CON PC TOWER AL CENTRO) ─── */
.hg-servicios__container-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

.hg-servicios__grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .hg-servicios__grid-new {
        grid-template-columns: 1fr 420px 1fr;
        gap: 40px;
    }
}

.hg-servicios__col {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hg-servicios__center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hg-servicios__center img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(10, 99, 247, 0.15));
}

.hg-servicio-new {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.hg-servicio-new:hover {
    transform: translateY(-2px);
}

.hg-servicio-new__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a63f7;
    background: rgba(10, 99, 247, 0.06);
    border-radius: 12px;
    padding: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}

.hg-servicio-new:hover .hg-servicio-new__icon {
    background: #0a63f7;
    color: #fff;
}

.hg-servicio-new__icon svg {
    width: 100%;
    height: 100%;
}

.hg-servicio-new__content h3 {
    font-family: var(--ts-font-h);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0b1638;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .hg-servicio-new__content h3 {
    color: var(--ts-text);
}

.hg-servicio-new__content p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #6a7c99;
    margin: 0;
}

[data-theme="dark"] .hg-servicio-new__content p {
    color: var(--ts-text-3);
}

/* ═══════════════════════════════════════════
   ECOSISTEMA RADIAL ANIMADO (SERVICIOS HOGAR)
   ═══════════════════════════════════════════ */

.hg-radial-ecosystem {
    position: relative;
    width: min(calc(100% - 32px), 1080px);
    height: 480px;
    margin: 16px auto 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Canvas de Líneas SVG Conectoras */
.hg-radial-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.hg-radial-line {
    stroke: rgba(8, 102, 245, 0.20);
    stroke-width: 2;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke 0.4s ease, stroke-width 0.4s ease, filter 0.4s ease, stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .hg-radial-line {
    stroke: rgba(56, 189, 248, 0.22);
}

.sr.is-visible .hg-radial-line {
    stroke-dashoffset: 0;
}

.hg-radial-line.is-active {
    stroke: #0866F5;
    stroke-width: 3.5;
    filter: drop-shadow(0 0 6px rgba(8, 102, 245, 0.85));
}

[data-theme="dark"] .hg-radial-line.is-active {
    stroke: #38BDF8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.95));
}

/* Núcleo Central Tecnológico */
.hg-radial-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 340px;
    height: 255px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hgCoreFloat 6s ease-in-out infinite;
}

.hg-radial-core__halo {
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 102, 245, 0.22) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.hg-radial-core__img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(8, 102, 245, 0.25));
    transition: transform 0.4s ease;
}

.hg-radial-core__pulse-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1.5px solid rgba(8, 102, 245, 0.3);
    animation: hgCorePulseRing 3.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

@keyframes hgCoreFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-6px);
    }
}

@keyframes hgCorePulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.85;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.65);
        opacity: 0;
    }
}

/* Nodos Satélites (Distribución Orgánica Radial) */
.hg-radial-nodes {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.hg-radial-node {
    position: absolute;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 12px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid var(--ts-card-border, rgba(8, 102, 245, 0.16));
    box-shadow: 0 4px 16px rgba(13, 38, 76, 0.08);
    cursor: pointer;
    outline: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.15s ease 0s,
                border-color 0.15s ease 0s,
                box-shadow 0.15s ease 0s,
                color 0.15s ease 0s;
    opacity: 0;
    transform: scale(0.6);
}

[data-theme="dark"] .hg-radial-node {
    background: var(--ts-card-bg, #0e203e);
    border-color: rgba(95, 160, 255, 0.24);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Entrada escalonada de los 8 nodos (transition-delay aislado solo para transform u opacity) */
.sr.is-visible .hg-radial-node {
    opacity: 1;
    transform: scale(1);
}

.sr.is-visible .hg-radial-node--1 {
    transition-delay: 0.75s, 0.75s, 0s, 0s, 0s, 0s;
}

.sr.is-visible .hg-radial-node--2 {
    transition-delay: 0.85s, 0.85s, 0s, 0s, 0s, 0s;
}

.sr.is-visible .hg-radial-node--3 {
    transition-delay: 0.95s, 0.95s, 0s, 0s, 0s, 0s;
}

.sr.is-visible .hg-radial-node--4 {
    transition-delay: 1.05s, 1.05s, 0s, 0s, 0s, 0s;
}

.sr.is-visible .hg-radial-node--5 {
    transition-delay: 1.15s, 1.15s, 0s, 0s, 0s, 0s;
}

.sr.is-visible .hg-radial-node--6 {
    transition-delay: 1.25s, 1.25s, 0s, 0s, 0s, 0s;
}

.sr.is-visible .hg-radial-node--7 {
    transition-delay: 1.35s, 1.35s, 0s, 0s, 0s, 0s;
}

.sr.is-visible .hg-radial-node--8 {
    transition-delay: 1.45s, 1.45s, 0s, 0s, 0s, 0s;
}


/* Coordenadas absolutas de los 8 Nodos (Izquierda / Derecha) */
.hg-radial-node--1 {
    top: 4%;
    left: 3%;
}

.hg-radial-node--2 {
    top: 27%;
    left: 0%;
}

.hg-radial-node--3 {
    top: 52%;
    left: 0%;
}

.hg-radial-node--4 {
    top: 75%;
    left: 3%;
}

.hg-radial-node--5 {
    top: 4%;
    right: 3%;
    flex-direction: row-reverse;
}

.hg-radial-node--6 {
    top: 27%;
    right: 0%;
    flex-direction: row-reverse;
}

.hg-radial-node--7 {
    top: 52%;
    right: 0%;
    flex-direction: row-reverse;
}

.hg-radial-node--8 {
    top: 75%;
    right: 3%;
    flex-direction: row-reverse;
}

.hg-radial-node__png {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(13, 38, 76, 0.16));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hg-radial-node__label {
    font-family: var(--ts-font-h, system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ts-text, #101b34);
    white-space: nowrap;
}

/* Estado Activo y Hover */
.hg-radial-node:hover {
    transform: scale(1.08) translateY(-2px) !important;
    border-color: var(--ts-brand, #0866f5);
    box-shadow: 0 8px 24px rgba(8, 102, 245, 0.22);
}

.hg-radial-node.is-active {
    transform: scale(1.12) !important;
    background: linear-gradient(135deg, #0866f5 0%, #0448b3 100%);
    border-color: #0866f5;
    box-shadow: 0 0 24px rgba(8, 102, 245, 0.5), 0 6px 20px rgba(8, 102, 245, 0.3);
}

.hg-radial-node.is-active .hg-radial-node__png {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4));
}

.hg-radial-node.is-active .hg-radial-node__label {
    color: #ffffff;
}

/* Tarjeta Dinámica de Servicio Activo */
.hg-active-card-container {
    max-width: 780px;
    margin: -10px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 5;
}

.hg-active-card {
    background: #ffffff;
    border: 1.5px solid rgba(8, 102, 245, 0.16);
    border-radius: 20px;
    padding: 20px 26px;
    box-shadow: 0 12px 36px rgba(13, 38, 76, 0.08);
    transition: transform 0.35s ease, opacity 0.35s ease, border-color 0.3s ease;
    outline: none;
}

[data-theme="dark"] .hg-active-card {
    background: var(--ts-card-bg, #0e203e);
    border-color: rgba(95, 160, 255, 0.24);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.hg-active-card__body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: center;
}

.hg-active-card__left {
    display: flex;
    flex-direction: column;
}

.hg-active-card__right {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hg-active-card__media {
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: visible;
}

[data-theme="dark"] .hg-active-card__media {
    background: transparent !important;
    border: 0 !important;
}

.hg-active-card__img {
    width: 100%;
    max-width: 250px;
    height: auto;
    max-height: 210px;
    object-fit: contain;
    margin: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(13, 38, 76, 0.18));
    transition: opacity 0.3s ease, transform 0.35s ease;
}

.hg-active-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.hg-active-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hg-active-card__icon-png {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(13, 38, 76, 0.18));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hg-active-card__badge {
    display: inline-block;
    font-family: var(--ts-font, system-ui, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ts-brand, #0866f5);
    margin-bottom: 2px;
}

[data-theme="dark"] .hg-active-card__badge {
    color: #38bdf8;
}

.hg-active-card__title {
    font-family: var(--ts-font-h, system-ui, sans-serif);
    font-size: clamp(16px, 1.8vw, 18.5px);
    font-weight: 800;
    color: var(--ts-text, #101b34);
    margin: 0;
    line-height: 1.25;
}

.hg-active-card__desc {
    font-family: var(--ts-font, system-ui, sans-serif);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ts-text-3, #667085);
    margin: 0 0 14px 0;
}

[data-theme="dark"] .hg-active-card__desc {
    color: #91a9c9;
}

.hg-active-card__footer {
    display: flex;
    justify-content: flex-end;
}

/* Botón Elegante "Saber más" */
.hg-active-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0866f5 0%, #0346b3 100%);
    color: #ffffff !important;
    font-family: var(--ts-font-h, system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(8, 102, 245, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.hg-active-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.hg-active-card-btn:hover::before {
    left: 140%;
}

.hg-active-card-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0a6dfa 0%, #0450d0 100%);
    box-shadow: 0 10px 28px rgba(8, 102, 245, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
}

.hg-active-card-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(8, 102, 245, 0.3);
}

.hg-active-card-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-active-card-btn:hover svg {
    transform: translateX(4px);
}

/* Responsividad Mobile (< 980px) */
@media (max-width: 979px) {
    .hg-radial-ecosystem {
        height: auto;
        flex-direction: column;
        gap: 20px;
        margin: 16px auto 24px;
    }

    .hg-radial-lines {
        display: none;
    }

    .hg-radial-core {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 260px;
        height: 195px;
        margin: 0 auto;
        animation: none;
    }

    .hg-radial-nodes {
        position: relative;
        inset: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .hg-radial-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        flex-direction: row !important;
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hg-servicios__grid-new {
        grid-template-columns: 1fr 1fr;
    }

    .hg-servicios__center {
        grid-column: span 2;
        order: 3;
    }
}

@media (max-width: 680px) {
    .hg-active-card__body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hg-active-card__right {
        order: -1;
    }

    .hg-active-card__media {
        height: 130px;
    }
}

/* ═══════════════════════════════════════════
   TARJETA 3D AGENDAMIENTO TÉCNICO EN HOGAR
   ═══════════════════════════════════════════ */
.hg-agenda-card {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 40px auto 10px;
    border-radius: 32px;
    overflow: hidden;
    min-height: 520px;
    background: #00184a;
    box-shadow: 0 24px 60px rgba(0, 20, 60, 0.35);
    border: 1px solid rgba(8, 102, 245, 0.3);
    isolation: isolate;
}

.hg-agenda-card__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    z-index: 0;
}

.hg-agenda-card__mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 767px) {
    .hg-agenda-card__mask {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   SECCIÓN CONFIANZA HOGAR (4 Tarjetas Píldora 1:1 Reference)
   ═══════════════════════════════════════════ */
.hg-confianza {
    padding: 64px 0;
    position: relative;
}

.hg-confianza__head {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.hg-confianza__head .ts-label {
    margin-bottom: 12px;
}

.hg-confianza__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    color: var(--ts-text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.hg-confianza__head p {
    font-family: var(--ts-font);
    font-size: 14.5px;
    color: var(--ts-text-2);
    line-height: 1.6;
    margin: 0;
}

.hg-confianza-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
    align-items: stretch;
}

.hg-confianza-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-confianza-card:hover {
    transform: translateY(-8px);
}

.hg-confianza-card__media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.hg-confianza-card__media img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(8, 102, 245, 0.18));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hg-confianza-card:hover .hg-confianza-card__media img {
    transform: scale(1.05);
    filter: drop-shadow(0 20px 38px rgba(8, 102, 245, 0.28));
}

/* La Píldora Horizontal Inferior */
.hg-confianza-card__pill {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(8, 102, 245, 0.12);
    border-radius: 9999px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(8, 102, 245, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hg-confianza-card:hover .hg-confianza-card__pill {
    border-color: rgba(8, 102, 245, 0.3);
    box-shadow: 0 14px 35px rgba(8, 102, 245, 0.16);
}

.hg-confianza-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0866F5 0%, #0052CC 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(8, 102, 245, 0.35);
}

.hg-confianza-card__icon svg {
    width: 20px;
    height: 20px;
}

.hg-confianza-card__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.hg-confianza-card__text h3 {
    font-family: var(--ts-font-h);
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-confianza-card__text p {
    font-family: var(--ts-font);
    font-size: 11px;
    line-height: 1.35;
    color: #64748B;
    margin: 0;
}

/* Modo Oscuro (Dark Mode) */
[data-theme="dark"] .hg-confianza-card__pill {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hg-confianza-card:hover .hg-confianza-card__pill {
    border-color: rgba(96, 165, 255, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .hg-confianza-card__text h3 {
    color: #F8FAFC;
}

[data-theme="dark"] .hg-confianza-card__text p {
    color: #94A3B8;
}

/* Media Queries Responsivas */
@media (max-width: 1024px) {
    .hg-confianza-item__3d {
        width: 90px;
        height: 90px;
    }

    .hg-confianza-item__title {
        font-size: 13px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hg-confianza__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

.hg-confianza-dots {
    display: none;
}

@media (max-width: 640px) {
    .hg-confianza {
        padding: 36px 0;
    }

    .hg-confianza-carousel {
        position: relative;
        width: 100%;
    }

    .hg-confianza-grid-4 {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        gap: 16px !important;
        padding: 10px 16px 20px 16px !important;
        scrollbar-width: none;
        margin: 0 -16px !important;
        width: calc(100% + 32px) !important;
    }

    .hg-confianza-grid-4::-webkit-scrollbar {
        display: none;
    }

    .hg-confianza-card {
        flex: 0 0 88% !important;
        width: 88% !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
    }

    .hg-confianza-card__media img {
        max-height: 200px !important;
    }

    .hg-confianza-card__pill {
        padding: 10px 14px;
    }

    .hg-confianza-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
    }

    .hg-confianza-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(8, 102, 245, 0.25);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hg-confianza-dot.is-active {
        width: 22px;
        border-radius: 6px;
        background: #0866F5;
    }

    [data-theme="dark"] .hg-confianza-dot {
        background: rgba(255, 255, 255, 0.25);
    }

    [data-theme="dark"] .hg-confianza-dot.is-active {
        background: #3B82F6;
    }

    .hg-confianza__panel {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .hg-confianza__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hg-confianza-item__stage {
        height: 120px;
    }

    .hg-confianza-item__3d {
        width: 100px;
        height: 100px;
    }
}

/* ═══════════════════════════════════════════
   SECCIÓN FAQ & VISITA TÉCNICA (Diseño Propuesto 1:1)
   ═══════════════════════════════════════════ */
.hg-faq {
    padding: 64px 0;
    position: relative;
}

.hg-faq__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: stretch;
    max-width: 1240px;
    margin: 0 auto;
}

/* Columna Izquierda */
.hg-faq__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hg-faq__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hg-faq__eyebrow {
    font-family: var(--ts-font);
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
}

.hg-faq__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

[data-theme="dark"] .hg-faq__head h2 {
    color: #F8FAFC;
}

/* Lista de Botones Pill Modal FAQ */
.hg-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hg-faq__item {
    width: 100%;
    text-align: left;
    background: #EBF3FF;
    border: 1px solid rgba(8, 102, 245, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: var(--ts-font-h);
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hg-faq__item:hover {
    background: #E1EDFF;
    border-color: rgba(8, 102, 245, 0.28);
    box-shadow: 0 6px 18px rgba(8, 102, 245, 0.12);
    transform: translateX(3px);
}

[data-theme="dark"] .hg-faq__item {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

[data-theme="dark"] .hg-faq__item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hg-faq__arrow {
    color: #0866F5;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.hg-faq__item:hover .hg-faq__arrow {
    transform: translateX(4px);
}

/* Caja Azul Navy (Agenda Visita) */
.hg-faq__navy-box {
    background: linear-gradient(180deg, #001B49 0%, #002B7A 100%);
    border-radius: 28px;
    padding: 32px 28px;
    color: #FFFFFF;
    box-shadow: 0 16px 40px rgba(0, 27, 73, 0.25);
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}

.hg-faq__navy-desc {
    font-family: var(--ts-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
}

.hg-faq__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hg-faq__feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hg-faq__feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0866F5;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(8, 102, 245, 0.4);
}

.hg-faq__feature-icon svg {
    width: 20px;
    height: 20px;
}

.hg-faq__feature-item strong {
    display: block;
    font-family: var(--ts-font-h);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
}

.hg-faq__feature-item span {
    font-family: var(--ts-font);
    font-size: 12px;
    color: #93C5FD;
}

/* Botón Blanco CTA */
.hg-faq__cta-btn {
    background: #FFFFFF;
    color: #0866F5;
    font-family: var(--ts-font-h);
    font-size: 15px;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    align-self: flex-start;
}

.hg-faq__cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    background: #F8FAFC;
    color: #0052CC;
}

.hg-faq__cta-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hg-faq__cta-btn:hover .hg-faq__cta-arrow {
    transform: translateX(4px);
}

/* Columna Derecha: Foto con esquina curva superior derecha + Badge flotante */
.hg-faq__right {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.hg-faq__photo-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 580px;
    border-radius: 28px;
    border-top-right-radius: 140px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.hg-faq__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Badge Flotante en la esquina inferior derecha */
.hg-faq__floating-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

[data-theme="dark"] .hg-faq__floating-badge {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.hg-faq__floating-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #0866F5;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(8, 102, 245, 0.35);
}

.hg-faq__floating-icon svg {
    width: 24px;
    height: 24px;
}

.hg-faq__floating-text h4 {
    font-family: var(--ts-font-h);
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 2px;
    line-height: 1.25;
}

[data-theme="dark"] .hg-faq__floating-text h4 {
    color: #F8FAFC;
}

.hg-faq__floating-text p {
    font-family: var(--ts-font);
    font-size: 11px;
    line-height: 1.35;
    color: #475569;
    margin: 0;
}

[data-theme="dark"] .hg-faq__floating-text p {
    color: #94A3B8;
}

/* Media Queries Responsivas */
@media (max-width: 1024px) {
    .hg-faq__wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hg-faq__photo-wrap {
        border-top-right-radius: 80px;
        min-height: 440px;
    }
}

@media (max-width: 640px) {
    .hg-faq {
        padding: 44px 0;
    }

    .hg-faq__navy-box {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .hg-faq__photo-wrap {
        border-top-right-radius: 50px;
        border-radius: 20px;
        min-height: 360px;
    }

    .hg-faq__floating-badge {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        padding: 12px 14px;
    }

    .hg-faq__cta-btn {
        width: 100%;
    }

    /* Optimización de Espacios en Bento Grids Hogar (< 640px) */
    .hg-servicio,
    .hg-paso,
    .hg-plan {
        padding: 18px 16px !important;
    }
}

/* ── TARJETA DINÁMICA DE SERVICIO ACTIVO (hg-active-card) ── */
.hg-active-card-container {
    width: min(calc(100% - 48px), 1160px);
    margin: 14px auto 0;
}

.hg-active-card {
    background: linear-gradient(135deg, #07193c 0%, #0c2b66 100%);
    border: 1px solid rgba(8, 102, 245, 0.28);
    border-radius: 20px;
    padding: 20px 26px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(7, 25, 60, 0.35);
    transition: opacity 0.15s ease, transform 0.15s ease !important;
    will-change: opacity, transform;
    position: relative;
    overflow: hidden;
}


.hg-active-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #0866F5 0%, #3B82F6 100%);
}

.hg-active-card__body {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: center;
}

.hg-active-card__left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.hg-active-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hg-active-card__icon {
    width: 38px;
    height: 38px;
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none !important;
}

.hg-active-card__icon-png {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(8, 102, 245, 0.45));
}

.hg-active-card__badge {
    font-family: var(--ts-font);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60A5FA;
    background: rgba(8, 102, 245, 0.15);
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    display: inline-block;
    margin-bottom: 2px;
}

.hg-active-card__title {
    font-family: var(--ts-font-h);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.hg-active-card__desc {
    font-family: var(--ts-font);
    font-size: 13.5px;
    line-height: 1.5;
    color: #94A3B8;
    margin: 0;
}

.hg-active-card__footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 4px !important;
    flex-wrap: nowrap !important;
}

.hg-active-card-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-family: var(--ts-font-h) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.hg-active-card-btn--primary {
    background: linear-gradient(135deg, #0866F5 0%, #0284C7 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 6px 20px rgba(8, 102, 245, 0.38) !important;
}

.hg-active-card-btn--primary:hover {
    background: linear-gradient(135deg, #0052D4 0%, #0369A1 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(8, 102, 245, 0.5) !important;
}

.hg-active-card-btn--secondary {
    background: rgba(8, 102, 245, 0.12) !important;
    color: #38BDF8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    box-shadow: none !important;
}

.hg-active-card-btn--secondary:hover {
    background: rgba(8, 102, 245, 0.25) !important;
    color: #ffffff !important;
    border-color: #38BDF8 !important;
    transform: translateY(-2px) !important;
}

.hg-active-card-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin: 0 0 0 2px !important;
    fill: currentColor !important;
}

.hg-active-card__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg-active-card__media {
    width: 100%;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg-active-card__img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
    transition: transform 0.4s ease;
}

/* ── REGLAS MÓVILES PARA TARJETA DINÁMICA (< 768px) ── */
@media (max-width: 768px) {
    .hg-active-card-container {
        width: 100%;
        padding: 0 16px;
        margin-top: 20px;
    }
    .hg-active-card {
        padding: 24px 18px;
        border-radius: 20px;
    }
    .hg-active-card__body {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
        align-items: center !important;
    }
    .hg-active-card__right {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 2px !important;
    }
    .hg-active-card__media {
        max-width: 170px !important;
        margin: 0 auto !important;
    }
    .hg-active-card__img {
        max-height: 150px !important;
    }
    .hg-active-card__left {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .hg-active-card__header {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .hg-active-card__icon {
        width: 46px;
        height: 46px;
    }
    .hg-active-card__icon-png {
        width: 28px;
        height: 28px;
    }
    .hg-active-card__title {
        font-size: 19px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
    .hg-active-card__desc {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        text-align: center !important;
        color: #CBD5E1 !important;
    }
    .hg-active-card-btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
    }
}

/* ═══ SECCIÓN POR QUÉ ELEGIRNOS / CONFIANZA ═══ */
.hg-confianza {
    padding: 60px 0;
    position: relative;
}

.hg-confianza__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.hg-confianza__head h2 {
    font-family: var(--ts-font-h);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: #0F172A;
    margin: 10px 0 12px;
    line-height: 1.25;
}

[data-theme="dark"] .hg-confianza__head h2 {
    color: #F8FAFC;
}

.hg-confianza__head p {
    font-family: var(--ts-font);
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .hg-confianza__head p {
    color: #94A3B8;
}

.hg-confianza-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.hg-confianza-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Alineación de las 4 imágenes en la misma altura exacta */
.hg-confianza-card__media {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.hg-confianza-card__media img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(8, 102, 245, 0.15));
    transition: transform 0.35s ease;
}

.hg-confianza-card:hover .hg-confianza-card__media img {
    transform: translateY(-6px) scale(1.03);
}

/* Alineación de las 4 tarjetas de texto en la misma línea base horizontal */
.hg-confianza-card__pill {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #FFFFFF;
    border: 1.5px solid rgba(8, 102, 245, 0.14);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 35, 70, 0.06);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.hg-confianza-card:hover .hg-confianza-card__pill {
    border-color: #0866F5;
    box-shadow: 0 12px 30px rgba(8, 102, 245, 0.16);
}

[data-theme="dark"] .hg-confianza-card__pill {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hg-confianza-card__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #0866F5;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(8, 102, 245, 0.35);
}

.hg-confianza-card__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hg-confianza-card__text h3 {
    font-family: var(--ts-font-h);
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 2px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .hg-confianza-card__text h3 {
    color: #F8FAFC;
}

.hg-confianza-card__text p {
    font-family: var(--ts-font);
    font-size: 11.5px;
    color: #64748B;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .hg-confianza-card__text p {
    color: #94A3B8;
}

@media (max-width: 1024px) {
    .hg-confianza-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .hg-confianza-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hg-confianza-card__media {
        height: 180px;
    }
}

/* ── INDICADORES CARROUSEL DE CONFIANZA HOGAR ── */
.hg-confianza-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 20px !important;
    margin-inline: auto !important;
    width: 100% !important;
}

.hg-confianza-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: rgba(8, 102, 245, 0.22) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
}

.hg-confianza-dot.is-active {
    width: 28px !important;
    height: 10px !important;
    background: #0866F5 !important;
    box-shadow: 0 2px 8px rgba(8, 102, 245, 0.35) !important;
}

html[data-theme="dark"] .hg-confianza-dot {
    background: rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .hg-confianza-dot.is-active {
    background: #38BDF8 !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4) !important;
}

/* ── INDICADORES CARROUSEL DE TESTIMONIOS HOGAR ── */
.hg-testimonial-carousel__dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 20px !important;
    margin-inline: auto !important;
    width: 100% !important;
}

.hg-testimonial-carousel__dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: rgba(8, 102, 245, 0.22) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
}

.hg-testimonial-carousel__dot.is-active {
    width: 28px !important;
    height: 10px !important;
    background: #0866F5 !important;
    box-shadow: 0 2px 8px rgba(8, 102, 245, 0.35) !important;
}

html[data-theme="dark"] .hg-testimonial-carousel__dot {
    background: rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .hg-testimonial-carousel__dot.is-active {
    background: #38BDF8 !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4) !important;
}

/* ── LÍNEA DE TIEMPO RESPONSIVA DE PROCESO HOGAR ── */

/* A. Reglas Base para Escritorio (>= 981px): Horizontal 4-Column Stepper */
@media (min-width: 981px) {
    .hg-proceso__steps {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hg-proceso__step {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        column-gap: 12px !important;
        padding-top: 38px !important;
        padding-bottom: 0 !important;
        width: 100% !important;
    }

    .hg-proceso__number {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: grid !important;
        place-items: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #fff !important;
        border: 1.5px solid var(--ts-border, #e7edf6) !important;
        box-shadow: 0 4px 10px rgba(13, 38, 76, 0.04) !important;
        font: 700 12.5px/1 var(--ts-font-h) !important;
        color: var(--ts-brand) !important;
        overflow: hidden !important;
        z-index: 3 !important;
    }

    .hg-proceso__line-progress {
        position: absolute !important;
        top: 17px !important;
        left: calc(50% + 18px) !important;
        right: calc(-50% - 8px) !important;
        height: 2px !important;
        width: auto !important;
        bottom: auto !important;
        background: linear-gradient(90deg, #0866F5 0%, #3B82F6 100%) !important;
        box-shadow: 0 0 8px rgba(8, 102, 245, 0.5) !important;
        transform: scaleX(0) !important;
        transform-origin: left center !important;
        transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 2 !important;
    }

    .hg-proceso__step.is-line-active .hg-proceso__line-progress {
        transform: scaleX(1) !important;
    }

    .hg-proceso__step:last-child .hg-proceso__line-progress {
        display: none !important;
    }
}

/* B. Reglas para Móvil (< 980px): Línea de Tiempo Vertical */
@media (max-width: 980px) {
    .hg-proceso__steps {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
    }

    .hg-proceso__step {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        position: relative !important;
        padding-top: 0 !important;
        padding-left: 48px !important;
        padding-bottom: 28px !important;
        width: 100% !important;
    }

    .hg-proceso__step:last-child {
        padding-bottom: 0 !important;
    }

    .hg-proceso__number {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #F1F5F9 !important;
        border: 2px solid #CBD5E1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
        overflow: hidden !important;
    }

    .hg-proceso__step::before {
        content: '' !important;
        position: absolute !important;
        left: 17px !important;
        top: 36px !important;
        bottom: -24px !important;
        width: 0 !important;
        border-left: 2px dashed #CBD5E1 !important;
        border-top: 0 !important;
        right: auto !important;
        height: auto !important;
        display: block !important;
        z-index: 1 !important;
    }

    .hg-proceso__step:last-child::before {
        display: none !important;
    }

    .hg-proceso__line-progress {
        position: absolute !important;
        left: 17px !important;
        top: 36px !important;
        bottom: -24px !important;
        width: 2px !important;
        height: auto !important;
        right: auto !important;
        background: transparent !important;
        transform: none !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    .hg-proceso__line-progress::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 0% !important;
        background: #0866F5 !important;
        transition: height 0.8s ease-in-out !important;
        box-shadow: 0 0 8px rgba(8, 102, 245, 0.5) !important;
    }

    .hg-proceso__step.is-line-active .hg-proceso__line-progress::after {
        height: 100% !important;
    }

    .hg-proceso__icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        background: rgba(8, 102, 245, 0.08) !important;
        color: #0866F5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .hg-proceso__copy {
        flex: 1 !important;
        min-width: 0 !important;
        margin-top: 2px !important;
    }

    .hg-proceso__copy h3 {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: #0F172A !important;
        margin: 0 0 6px 0 !important;
        line-height: 1.35 !important;
    }

    .hg-proceso__copy p {
        font-size: 0.88rem !important;
        color: #475569 !important;
        margin: 0 !important;
        line-height: 1.55 !important;
    }
}



