/* Diseño aislado de Cómo trabajamos V4. */
.process-v4 {
    --pv4-bg: #061019;
    --pv4-blue: #102535;
    --pv4-accent: #18d9b1;
    --pv4-white: #f4f8fa;
    --pv4-muted: #b9ced4;
    background: var(--pv4-bg);
    color: var(--pv4-white);
}
.process-v4 .container { width: min(1296px,calc(100% - clamp(36px,9vw,144px))); }
.process-v4 :focus-visible { outline: 2px solid #74f5db; outline-offset: 4px; }
.process-v4 main em { color: var(--pv4-accent); font-style: normal; }
.process-v4 .pv4-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #63e9d0; font-size: 11px; font-weight: 710; line-height: 1.35; letter-spacing: .18em; text-transform: uppercase; }
.process-v4 .pv4-kicker::before { content: ''; width: 21px; height: 1px; flex: 0 0 21px; background: currentColor; }
.process-v4 main h2 { font-size: clamp(29px,3.1vw,47px); line-height: 1.04; font-weight: 720; letter-spacing: -.044em; text-wrap: balance; }
.process-v4 .pv4-lead { max-width: 520px; margin-top: 15px; color: #d3e1e6; font-size: clamp(14px,1.15vw,17px); line-height: 1.63; }

/* Panorama exclusivo del Hero; el degradado protege el texto. */
.process-v4 .pv4-hero {
    padding-block: clamp(115px,10vw,146px) clamp(44px,5.3vw,76px);
    --pv4-hero-shade: linear-gradient(90deg,#061019f7 0%,#061019e0 34%,#06101989 54%,#06101914 78%);
    --pv4-hero-position: 78% 36%;
    background: var(--pv4-hero-shade),url('../assets/images/process-v4/hero-process.png') var(--pv4-hero-position) / cover no-repeat,#061019;
}
.process-v4 .pv4-hero h1 { max-width: 690px; font-size: clamp(43px,4.35vw,68px); line-height: .99; font-weight: 730; letter-spacing: -.055em; text-wrap: balance; }
.process-v4 .pv4-hero .container { animation: pv4-appear .5s ease-out both; }

/* El selector está conectado en escritorio y se convierte en una cuadrícula en móvil. */
.process-v4 .pv4-process { position: relative; padding-block: clamp(34px,4vw,56px); border-block: 1px solid #32696769; background: radial-gradient(ellipse at 62% 100%,#13504d52,transparent 66%),#07191f; }
.process-v4 .pv4-definitions { position: absolute; pointer-events: none; }
.process-v4 .pv4-section-head { margin-bottom: 22px; }
.process-v4 .pv4-explorer { scroll-margin-top: 92px; }
.process-v4 .pv4-tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,3vw,40px); margin-bottom: 20px; }
.process-v4 .pv4-tabs::before { content: ''; position: absolute; z-index: -1; inset: 50% 6% auto; height: 1px; background: #2baf9b; box-shadow: 0 0 9px #18d9b15c; }
.process-v4 .pv4-tab { position: relative; display: grid; place-items: center; align-content: center; gap: 7px; min-height: 99px; padding: 12px 8px; border: 1px solid #477f826f; border-radius: 13px; background: #0b242c; color: #e3f0f3; text-align: center; font-size: clamp(12px,1.2vw,16px); font-weight: 680; line-height: 1.18; transition: background-color .22s, border-color .22s, box-shadow .22s; }
.process-v4 .pv4-tab:hover { background: #10343b; border-color: #58bfae; }
.process-v4 .pv4-tab[aria-selected='true'] { background: radial-gradient(ellipse at 50% 100%,#135451,#0c2d34 75%); border-color: #2ce8c7; box-shadow: 0 0 17px #24cda438,inset 0 0 14px #26f2c319; }
.process-v4 .pv4-tab-index { position: absolute; top: 10px; left: 12px; color: #a9c8cd; font-size: 10px; letter-spacing: .13em; }
.process-v4 .pv4-tab[aria-selected='true'] :is(.pv4-tab-index,svg) { color: #68f2d8; }
.process-v4 .pv4-tab svg { width: 29px; height: 29px; }
.process-v4 .pv4-panel { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); align-items: center; gap: clamp(17px,4vw,52px); padding: clamp(20px,3.15vw,45px); border: 1px solid #3c817e8c; border-radius: 15px; background: radial-gradient(ellipse at 84% 65%,#13635d69,transparent 62%),linear-gradient(138deg,#0b292f,#0b2029); scroll-margin-top: 90px; }
.process-v4 .pv4-panel + .pv4-panel { margin-top: 11px; }
.process-v4 .pv4-explorer.is-enhanced .pv4-panel { margin-top: 0; min-height: 284px; }
.process-v4 .pv4-panel-copy { min-width: 0; }
.process-v4 .pv4-stage { color: #69f2d6; font-size: 11px; font-weight: 710; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.process-v4 .pv4-panel h3 { margin-block: 8px 12px; font-size: clamp(26px,2.65vw,39px); font-weight: 720; line-height: 1.07; letter-spacing: -.037em; }
.process-v4 .pv4-panel-description { max-width: 470px; color: var(--pv4-muted); font-size: clamp(14px,1.1vw,16px); line-height: 1.58; }
.process-v4 .pv4-concepts { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-top: 19px; list-style: none; }
.process-v4 .pv4-concepts li { display: flex; gap: 5px; align-items: center; color: #e1f2f0; font-size: 12px; font-weight: 630; }
.process-v4 .pv4-concepts svg { width: 17px; height: 17px; color: #5aebd1; flex: 0 0 17px; }
.process-v4 .pv4-visual { display: block; justify-self: stretch; width: 100%; height: clamp(175px,18vw,244px); border-inline-start: 1px solid #258b8175; }
.process-v4 .pv4-panel-enter .pv4-panel-copy { animation: pv4-appear .34s ease-out both; }
.process-v4 .pv4-panel-enter .pv4-visual { animation: pv4-appear .37s .04s ease-out both; }

.process-v4 .pv4-closing { --interior-cta-image: url('../assets/images/services-v4/closing-services.png'); }
.process-v4 .pv4-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.process-v4 .pv4-button { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 690; line-height: 1.2; transition: background-color .2s,border-color .2s; }
.process-v4 .pv4-button svg { width: 16px; height: 16px; }
.process-v4 .pv4-primary { color: #05251e; background: var(--pv4-accent); }
.process-v4 .pv4-primary:hover { background: #69f2d7; }
.process-v4 .pv4-secondary { color: var(--pv4-white); background: #06101975; border-color: #53b2a77c; }
.process-v4 .pv4-secondary:hover { background: #103d40; border-color: var(--pv4-accent); }
.process-v4 .pv4-reveal.pv4-pending { opacity: 0; transform: translateY(12px); }
.process-v4 .pv4-reveal.pv4-seen { transition: opacity .45s,transform .45s; }
.process-v4 .pv4-reveal:focus-within { opacity: 1; transform: none; transition: none; }
@keyframes pv4-appear { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
    .process-v4 .pv4-hero {
        padding-block: 106px 40px;
        --pv4-hero-position: 81% center;
        --pv4-hero-shade: linear-gradient(90deg,#061019f5 0%,#061019d6 43%,#06101974 100%);
    }
    .process-v4 .pv4-hero h1 { font-size: clamp(39px,9.5vw,57px); text-wrap: wrap; }
    .process-v4 .pv4-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 13px; }
    .process-v4 .pv4-tabs::before { display: none; }
    .process-v4 .pv4-tab { min-height: 77px; gap: 5px; }
    .process-v4 .pv4-tab svg { width: 24px; height: 24px; }
    .process-v4 .pv4-tab-index { top: 8px; left: 9px; }
    .process-v4 .pv4-panel { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .process-v4 .pv4-concepts { margin-top: 13px; }
    .process-v4 .pv4-visual { height: clamp(142px,42vw,204px); border-inline-start: 0; border-top: 1px solid #258b8175; }
    .process-v4.pv4-avoid-float .whatsapp-floating:not(:focus) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.process-v4) { scroll-behavior: auto; }
    .process-v4 *, .process-v4 *::before, .process-v4 *::after { animation: none !important; transition: none !important; }
    .process-v4 .pv4-reveal.pv4-pending { opacity: 1; transform: none; }
}
