/* ============================================================
   ZONA 01 · HERO Y SELECTOR — estilos con ámbito (.hs-*)
   Usa los tokens de la sección (--sv-*) y un acento propio por
   perfil (--hs-acc), que el JS cambia al elegir.
   ============================================================ */
#servicios .hs {
    --hs-acc: var(--sv-acc, #7c6cff);
    --hs-acc-txt: color-mix(in srgb, var(--hs-acc) 72%, var(--sv-text, #fff));
    position: relative;
    z-index: 1;
    margin-top: clamp(1.1rem, 2.4vw, 1.8rem);
    max-width: 62rem;
    transition: --hs-acc .4s ease;
}
#servicios[data-sv-tema="claro"] .hs {
    --hs-acc-txt: color-mix(in srgb, var(--hs-acc) 45%, #14141c);
}

.hs-pregunta {
    margin: 0 0 .6rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sv-muted);
}

/* ---------- Pestañas ---------- */
.hs-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 1.2vw, 12px);
}
.hs-tab {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: .85rem 1rem;
    border: 1px solid var(--sv-line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--sv-surface) 55%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--sv-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .25s ease, background-color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.hs-tab:hover { border-color: color-mix(in srgb, var(--hs-acc) 55%, var(--sv-line)); transform: translateY(-1px); }
.hs-tab:active { transform: translateY(0) scale(.98); }
.hs-tab:focus-visible { outline: 3px solid var(--hs-acc); outline-offset: 3px; }
.hs-tab[aria-selected="true"] {
    border-color: var(--hs-acc);
    background: color-mix(in srgb, var(--hs-acc) 16%, color-mix(in srgb, var(--sv-surface) 60%, transparent));
    box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--hs-acc) 70%, transparent), inset 0 0 0 1px var(--hs-acc);
}
.hs-ico {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--sv-muted);
    transition: color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.hs-tab[aria-selected="true"] .hs-ico { color: var(--hs-acc); transform: scale(1.08); }
.hs-tab-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hs-tab-label {
    font-size: clamp(.92rem, 1.2vw, 1.04rem);
    font-weight: 750;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.hs-tab-micro {
    font-size: .82rem;
    line-height: 1.35;
    color: var(--sv-muted);
}

/* ---------- Panel del perfil ---------- */
.hs-panel { margin-top: clamp(1rem, 2vw, 1.4rem); }
.hs-sub {
    max-width: 46ch;
    margin: 0;
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    line-height: 1.45;
    font-weight: 500;
    color: var(--sv-text);
    text-wrap: pretty;
}
.hs-meta {
    list-style: none;
    margin: .9rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--sv-muted);
}
.hs-meta li { display: block; max-width: 40rem; }
.hs-k {
    display: inline-block;
    margin-right: 4px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sv-muted);
}
.hs-plazo strong { color: var(--hs-acc-txt); font-weight: 750; }
.hs-prueba { position: relative; padding-left: 16px; }
.hs-prueba::before {
    content: '';
    position: absolute; left: 0; top: .5em;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--hs-acc);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hs-acc) 22%, transparent);
}

/* ---------- Botones ---------- */
.hs-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: clamp(1rem, 2vw, 1.35rem);
}
.hs-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 1.35rem;
    border-radius: 999px;
    background: var(--hs-acc);
    color: #0b0b12;
    font-weight: 750;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--hs-acc) 85%, transparent);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, filter .25s ease;
}
.hs-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--hs-acc) 90%, transparent); filter: brightness(1.05); }
.hs-cta:active { transform: translateY(0) scale(.97); }
.hs-cta:focus-visible,
.hs-cta2:focus-visible,
.hs-indeciso:focus-visible { outline: 3px solid var(--hs-acc); outline-offset: 3px; }
.hs-flecha { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hs-cta:hover .hs-flecha { transform: translateX(4px); }
.hs-cta2 {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1.15rem;
    border: 1px solid var(--sv-stroke);
    border-radius: 999px;
    color: var(--sv-text);
    font-weight: 650;
    font-size: .96rem;
    text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease;
}
.hs-cta2:hover { border-color: var(--hs-acc); background: color-mix(in srgb, var(--hs-acc) 12%, transparent); }
.hs-indeciso {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--sv-muted);
    font-size: .9rem;
    font-weight: 550;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--sv-muted) 45%, transparent);
    text-underline-offset: 4px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.hs-indeciso:hover { color: var(--sv-text); text-decoration-color: var(--hs-acc); }

/* Solo para lectores de pantalla */
.hs-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- Móvil: tres pestañas a la vista, sin scroll horizontal ---------- */
@media (max-width: 639px) {
    .hs-tab {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: .7rem .4rem;
        border-radius: 14px;
        text-align: center;
    }
    .hs-ico { width: 24px; height: 24px; }
    .hs-tab-label { font-size: .84rem; }
    .hs-tab-micro { display: none; }
    .hs-cta { width: 100%; justify-content: center; }
    .hs-cta2 { flex: 1 1 auto; justify-content: center; }
    .hs-indeciso { width: 100%; justify-content: center; }
}

/* Entrada junto al resto del hero */
@media (prefers-reduced-motion: no-preference) {
    #servicios .hs { animation: hs-entra .8s cubic-bezier(.16, 1, .3, 1) .26s backwards; }
}
@keyframes hs-entra { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
    #servicios .hs,
    .hs-tab, .hs-ico, .hs-cta, .hs-flecha, .hs-cta2 { transition: none; animation: none; }
}
