/* Servicios V4: no modifica la base compartida ni otras páginas. */
.services-v4 {
    --sv4-bg: #061019; --sv4-blue: #102535; --sv4-accent: #18d9b1;
    --sv4-white: #f4f8fa; --sv4-muted: #b8ccd2; --sv4-border: #2c68696e;
    --sv4-hero-image: url('../assets/images/services-v4/hero-services.png');
    --sv4-closing-image: url('../assets/images/services-v4/closing-services.png');
    --sv4-hero-position: 76% 55%; --sv4-closing-position: 84% 52%;
    --sv4-hero-shade: linear-gradient(90deg,#061019fa 3%,#061019e0 31%,#06101985 53%,#0610190a 83%);
    --sv4-closing-shade: linear-gradient(90deg,#061019f5 4%,#061019df 36%,#06101965 60%,#06101912 85%);
    background: var(--sv4-bg); color: var(--sv4-white);
}
.services-v4 .container { width: min(1296px,calc(100% - clamp(36px,9vw,144px))); }
.services-v4 :focus-visible { outline: 2px solid #63f0d5; outline-offset: 4px; }
.services-v4 main h2 { font-size: clamp(31px,3.45vw,51px); line-height: 1.03; letter-spacing: -.048em; font-weight: 720; text-wrap: balance; }
.services-v4 main em { font-style: normal; color: var(--sv4-accent); }
.services-v4 .sv4-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #56e6cd; font-size: 11px; font-weight: 700; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
.services-v4 .sv4-kicker::before { content: ''; width: 21px; height: 1px; background: currentColor; flex: 0 0 21px; }
.services-v4 .sv4-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.services-v4 .sv4-button, .services-v4 .sv4-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; line-height: 1.25; font-weight: 700; }
.services-v4 .sv4-button { min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.services-v4 :is(.sv4-button,.sv4-link) svg { width: 16px; height: 16px; flex: 0 0 16px; }
.services-v4 .sv4-primary { background: var(--sv4-accent); color: #05251e; }
.services-v4 .sv4-primary:hover { background: #69f2d7; }
.services-v4 .sv4-secondary { color: var(--sv4-white); background: #0610197c; border-color: #54a9a084; }
.services-v4 .sv4-secondary:hover { border-color: var(--sv4-accent); background: #103d40; }
.services-v4 .sv4-link { min-height: 40px; color: inherit; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Panoramas: el degradado protege el texto y el fondo cubre la sección. */
.services-v4 :is(.sv4-hero,.sv4-closing) { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: center; }
.services-v4 .sv4-hero {
    padding-block: clamp(120px,9vw,143px) clamp(54px,5vw,74px);
    background: var(--sv4-hero-shade),var(--sv4-hero-image) var(--sv4-hero-position) / cover no-repeat,radial-gradient(ellipse at 84% 66%,#174c55 0%,#0b2632 42%,#061019 77%);
}
.services-v4 .sv4-hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 12% 0 0 49%; opacity: .55; background: linear-gradient(132deg,transparent 43%,#29ae9b22 43.3%,transparent 44%),linear-gradient(165deg,transparent 62%,#22cbaa1c 62.5%,transparent 64%),radial-gradient(ellipse 58% 15% at 70% 97%,#18d9b167,transparent); }
.services-v4 .sv4-hero-copy { max-width: 795px; animation: sv4-appear .55s ease-out both; }
.services-v4 .sv4-hero h1 { font-size: clamp(41px,4.45vw,68px); line-height: .99; letter-spacing: -.055em; font-weight: 730; }
@media (min-width: 1051px) { .services-v4 .sv4-hero h1 em { display: block; } }
.services-v4 :is(.sv4-hero-copy,.sv4-closing .container) > p:not(.sv4-kicker) { max-width: 530px; margin-block: 19px 23px; color: #c7d8de; font-size: clamp(14px,1.2vw,17px); line-height: 1.65; }

.services-v4 :is(.sv4-explorer,.sv4-flow,.sv4-advisor) { padding-block: clamp(39px,4.7vw,67px); border-top: 1px solid #3266656b; }
.services-v4 .sv4-explorer { background: radial-gradient(ellipse at 76% 92%,#0b323854,transparent 66%),#07161e; }
.services-v4 .sv4-section-head { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: end; gap: clamp(19px,5vw,72px); margin-bottom: 24px; }
.services-v4 .sv4-section-head > p { border-left: 1px solid #2f9a8e; padding-left: 21px; max-width: 390px; color: var(--sv4-muted); font-size: 14px; line-height: 1.6; }
.services-v4 .sv4-explorer-layout { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(0,2fr); gap: clamp(14px,2vw,26px); align-items: start; }
.services-v4 .sv4-tabs { display: grid; gap: 4px; }
.services-v4 .sv4-tab { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #2a65666b; border-radius: 8px; background: #081c25; color: #e0eef0; font-size: 13px; font-weight: 660; line-height: 1.3; transition: background-color .2s, color .2s, border-color .2s; }
.services-v4 .sv4-tab > svg { width: 23px; height: 23px; flex: 0 0 23px; color: #53deca; }
.services-v4 .sv4-tab-arrow { margin-left: auto; opacity: .65; }
.services-v4 .sv4-tab-arrow svg { width: 16px; height: 16px; display: block; }
.services-v4 .sv4-tab:hover { border-color: #49b3a5; background: #123238; }
.services-v4 .sv4-tab[aria-selected='true'] { border-color: #39e5c7; background: var(--sv4-accent); color: #052a23; }
.services-v4 .sv4-tab[aria-selected='true'] > svg { color: inherit; }
.services-v4 .sv4-panel { min-width: 0; display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr); align-items: center; gap: 20px; padding: clamp(20px,3.3vw,46px); border: 1px solid #35857b91; border-radius: 15px; background: radial-gradient(ellipse at 92% 64%,#0f514e82,transparent 60%),linear-gradient(135deg,#102535,#07171f 71%); scroll-margin-top: 95px; }
.services-v4 .sv4-panel + .sv4-panel { margin-top: 13px; }
.services-v4 .sv4-explorer-layout.is-enhanced .sv4-panel { margin-top: 0; min-height: 394px; }
.services-v4 .sv4-panel.sv4-panel-enter { animation: sv4-appear .34s ease-out both; }
.services-v4 .sv4-panel-index { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; color: #61e9d0; font-size: 10px; letter-spacing: .13em; }
.services-v4 .sv4-panel-index svg { width: 28px; height: 28px; }
.services-v4 .sv4-panel h3 { font-size: clamp(25px,3vw,43px); line-height: 1.02; letter-spacing: -.041em; font-weight: 710; }
.services-v4 .sv4-panel-copy > p { margin-top: 11px; color: var(--sv4-muted); font-size: 13px; line-height: 1.57; }
.services-v4 .sv4-applications { display: grid; gap: 5px; margin: 13px 0 15px; list-style: none; }
.services-v4 .sv4-applications li { display: flex; align-items: start; gap: 7px; color: #e3efee; font-size: 12px; line-height: 1.4; }
.services-v4 .sv4-applications svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--sv4-accent); }
.services-v4 .sv4-panel-art { display: grid; place-items: center; min-width: 0; overflow: hidden; aspect-ratio: 1.55; border: 1px solid #2a78716b; border-radius: 11px; background: radial-gradient(ellipse at 66% 65%,#18665d7f,transparent 74%),linear-gradient(140deg,#0c2734,#071923); }
.services-v4 .sv4-panel-art > svg { width: 92%; height: auto; filter: drop-shadow(0 8px 15px #18d9b125); }
.services-v4 .sv4-panel-art > img { width: 100%; height: 100%; object-fit: cover; }
.services-v4 .graphic-panel { fill: #123b49; stroke: #4d989a; stroke-width: 1; }
.services-v4 .graphic-soft { fill: #1c5b63; stroke: #348081; stroke-width: .8; }
.services-v4 .graphic-line { stroke: #7eadaf; stroke-width: 1.2; }
.services-v4 .graphic-accent { stroke: #76e8d5; stroke-width: 1.4; }
.services-v4 .graphic-connection { stroke: #4d8d92; stroke-width: 1; }
.services-v4 .graphic-dot { fill: var(--sv4-accent); }
.services-v4 .graphic-muted-dot { fill: #71999d; }
.services-v4 .graphic-emphasis { fill: #1b5b60; stroke: #55d2bb; }
.services-v4 .graphic-node { fill: #18444e; stroke: #6cafae; stroke-width: 1; }
.services-v4 .graphic-label { fill: #a8cfd1; font-size: 11px; text-anchor: middle; stroke: none; }
.services-v4 .graphic-signal { stroke: #4ee0c5; stroke-width: 1; stroke-dasharray: 5 16; opacity: .5; }

.services-v4 .sv4-flow { background: radial-gradient(ellipse at 50% 102%,#12504e40,transparent 62%),#06131a; }
.services-v4 .sv4-flow-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; list-style: none; }
.services-v4 .sv4-flow-card { position: relative; display: flex; gap: 13px; align-items: center; min-height: 124px; padding: 17px; border: 1px solid var(--sv4-border); border-radius: 11px; background: radial-gradient(ellipse at 0% 77%,#12635950,transparent 75%),#0c222c; }
.services-v4 .sv4-flow-card:not(:last-child)::after { content: '→'; position: absolute; inset-inline-end: -28px; top: 50%; transform: translateY(-50%); color: #55e3c9; font-size: 22px; }
.services-v4 .sv4-flow-icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; color: #69e5cb; border: 1px solid #53b2a56d; border-radius: 11px; background: #113841; }
.services-v4 .sv4-flow-icon svg { width: 29px; height: 29px; }
.services-v4 .sv4-flow-card span { color: #6ce4cf; font-size: 10px; letter-spacing: .15em; }
.services-v4 .sv4-flow-card h3 { margin: 2px 0 5px; font-size: 17px; }
.services-v4 .sv4-flow-card p { color: var(--sv4-muted); font-size: 12px; line-height: 1.5; }

.services-v4 .sv4-advisor { background: radial-gradient(ellipse at 82% 12%,#c8e7e0,transparent 63%),linear-gradient(120deg,#f0f7f5,#deefeb); color: #0d2b32; color-scheme: light; }
.services-v4 .sv4-advisor :is(em,.sv4-kicker) { color: #086458; }
.services-v4 .sv4-advisor :focus-visible { outline-color: #00695b; }
.services-v4 .sv4-advisor-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.65fr); align-items: center; gap: clamp(20px,4vw,61px); }
.services-v4 .sv4-advisor-layout > div:first-child > p:not(.sv4-kicker) { max-width: 380px; margin-top: 13px; color: #365257; font-size: 14px; }
.services-v4 .sv4-advisor-box { min-width: 0; padding: clamp(17px,2vw,30px); border: 1px solid #a5cac1; border-radius: 15px; background: #f2fffc6e; }
.services-v4 .sv4-advisor-box fieldset { border: 0; min-width: 0; }
.services-v4 .sv4-advisor-box legend { margin-bottom: 13px; font-size: clamp(16px,1.5vw,22px); line-height: 1.28; font-weight: 710; }
.services-v4 .sv4-choices { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.services-v4 .sv4-choice { display: grid; min-width: 0; position: relative; cursor: pointer; }
.services-v4 .sv4-choice input { position: absolute; top: 50%; left: 50%; opacity: 0; }
.services-v4 .sv4-choice > span { display: grid; align-content: center; justify-items: center; min-height: 94px; padding: 7px 6px; gap: 5px; text-align: center; border: 1px solid #b5d0c9; border-radius: 8px; background: #f4fcf9; color: #19433f; font-size: 11px; font-weight: 650; line-height: 1.3; }
.services-v4 .sv4-choice svg { width: 24px; height: 24px; }
.services-v4 .sv4-choice:is(:hover,:focus-within) > span { border-color: #238573; }
.services-v4 .sv4-choice input:checked + span { border-color: #087b66; background: #c6f1e5; box-shadow: inset 0 0 0 1px #087b66; }
.services-v4 .sv4-choice input:focus-visible + span { outline: 2px solid #086458; outline-offset: 2px; }
.services-v4 .sv4-advisor-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-top: 14px; }
.services-v4 .sv4-step, .services-v4 .sv4-result-label { color: #086458; font-size: 11px; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.services-v4 [data-advisor-result] h3 { font-size: clamp(21px,2vw,30px); margin: 8px 0; }
.services-v4 [data-advisor-result] p:not(.sv4-result-label) { color: #365257; font-size: 14px; }
.services-v4 .sv4-result-note { margin-top: 4px; }

.services-v4 .sv4-closing { padding-block: clamp(52px,7vw,103px); background: var(--sv4-closing-shade),var(--sv4-closing-image) var(--sv4-closing-position) / cover no-repeat,radial-gradient(ellipse at 85% 90%,#145b5c,#112c3a 42%,#061019 75%); }
.services-v4 .sv4-closing h2 { max-width: 660px; }
.services-v4 .footer { background: var(--sv4-bg); }
.services-v4 .sv4-reveal.sv4-pending { opacity: 0; transform: translateY(13px); }
.services-v4 .sv4-reveal.sv4-seen { transition: opacity .42s var(--sv4-delay,0ms),transform .42s var(--sv4-delay,0ms); }
.services-v4 .sv4-reveal:focus-within { opacity: 1; transform: none; transition: none; }
@keyframes sv4-appear { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
    .services-v4 .sv4-explorer-layout { grid-template-columns: minmax(180px,.75fr) minmax(0,2fr); }
    .services-v4 .sv4-panel { gap: 14px; }
    .services-v4 .sv4-flow-card { padding: 13px; gap: 9px; }
    .services-v4 .sv4-flow-icon { flex-basis: 43px; height: 43px; }
    .services-v4 .sv4-advisor-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.65fr); }
    .services-v4 .sv4-choices { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .services-v4 {
        --sv4-hero-position: 62% center; --sv4-closing-position: 89% center;
        --sv4-hero-shade: linear-gradient(180deg,#06101933,transparent 30%,#06101969),linear-gradient(90deg,#061019f2 2%,#061019bf 54%,#06101973 100%);
        --sv4-closing-shade: linear-gradient(180deg,#06101933,transparent 30%,#06101973),linear-gradient(90deg,#061019f2 2%,#061019c9 56%,#06101975 100%);
    }
    .services-v4.sv4-avoid-float .whatsapp-floating:not(:focus) { visibility: hidden; }
    .services-v4 .sv4-hero { padding-top: 108px; }
    .services-v4 .sv4-hero h1 { max-width: 590px; }
    .services-v4 .sv4-section-head,.services-v4 .sv4-explorer-layout,.services-v4 .sv4-advisor-layout { grid-template-columns: minmax(0,1fr); gap: 15px; }
    .services-v4 .sv4-section-head > p { padding-left: 12px; }
    .services-v4 .sv4-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .services-v4 .sv4-tab { min-height: 46px; gap: 7px; font-size: 12px; }
    .services-v4 .sv4-tab > svg { width: 18px; height: 18px; flex-basis: 18px; }
    .services-v4 .sv4-tab-arrow { display: none; }
    .services-v4 .sv4-panel { grid-template-columns: minmax(0,1fr); }
    .services-v4 .sv4-panel-art { aspect-ratio: 2.2; }
    .services-v4 .sv4-panel-art > svg { width: min(87%,360px); }
    .services-v4 .sv4-flow-list { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .services-v4 .sv4-flow-card { min-height: 101px; }
    .services-v4 .sv4-flow-card:not(:last-child)::after { inset-inline-end: auto; left: 23px; top: auto; bottom: -26px; transform: rotate(90deg); }
}
@media (max-width: 425px) {
    .services-v4 .sv4-hero h1 { font-size: clamp(38px,10vw,43px); }
    .services-v4 .sv4-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.services-v4) { scroll-behavior: auto; }
    .services-v4 *, .services-v4 *::before, .services-v4 *::after { animation: none !important; transition: none !important; }
    .services-v4 .sv4-reveal.sv4-pending { opacity: 1; transform: none; }
}
