/* Estilos propios de cada escena */

/* Portada y cierre: foto de fondo + gemelo digital del balancín */
.ph.cover { position: absolute; right: 0; top: 0; bottom: 0; width: 1100px; }
.ph.cover img { object-position: 50% 40%; filter: saturate(1.15) contrast(1.05); }
.ph.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 0%, rgba(6,20,42,.85) 25%, rgba(6,20,42,.35) 60%, rgba(6,20,42,.15) 100%), linear-gradient(0deg, rgba(6,20,42,.9), transparent 35%); }
.twin { position: absolute; left: 1030px; top: 170px; width: 820px; height: 600px; overflow: visible; }
.tw { fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(246,196,69,.55)); }
.tw-dot { fill: var(--gold-2); }
.cv-txt { position: absolute; left: 120px; top: 150px; width: 980px; }
.cv-logo { width: 470px; display: block; margin-bottom: 70px; }
.cv-t { font-size: 108px; margin-top: 26px; }
.cv-lines { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 54px; font-size: 26px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); max-width: 900px; }
.cv-lines span { display: inline-flex; align-items: center; gap: 14px; }
.cv-lines span::before { content: ""; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
#s35 .cv-t { font-size: 190px; letter-spacing: -.04em; }
#s35 .cv-logo { width: 420px; margin-bottom: 40px; }
.cv-sub { max-width: 820px; }
.cv-web { margin-top: 56px; display: inline-block; font-size: 34px; font-weight: 800; letter-spacing: .08em; color: var(--deep); background: var(--gold-2); padding: 16px 34px; border-radius: 999px; }

/* 03 · seis líneas */
.lines6 { position: absolute; left: 120px; right: 120px; top: 330px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; perspective: 1800px; }
.l6 { position: relative; height: 290px; border-radius: 24px; padding: 40px 40px 36px; background: linear-gradient(160deg, rgba(18,48,90,.85), rgba(10,31,58,.5)); border: 1px solid rgba(159,177,201,.2); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transform-style: preserve-3d; }
.l6 .n { position: absolute; right: 34px; top: 26px; font-size: 76px; font-weight: 800; color: rgba(246,196,69,.16); letter-spacing: -.04em; }
.l6 .ico { width: 78px; height: 78px; }
.l6 b { font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; max-width: 470px; }
.l6::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(246,196,69,.16) 50%, transparent 65%); transform: translateX(var(--sx, -120%)); pointer-events: none; }

/* 04 · cinco columnas */
.c5 .col { padding: 36px 30px; }
.c5 .col h3 { margin-bottom: 16px; }
.c5 .col h4 { font-size: 34px; font-weight: 800; line-height: 1.12; min-height: 80px; }
.c5 .col li { font-size: 27px; }

/* 06, 29 · bloques de chips con rótulo */
.spec { margin-top: 34px; }
.sl { font-size: 22px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.spec .chips { margin-top: 14px; }

/* 07 · PCP con líneas guía */
.leaders { position: absolute; inset: 0; pointer-events: none; }
.leaders .ln { stroke: var(--gold-2); stroke-width: 2.5; }
.leaders .pt { fill: var(--gold-2); }
.parts { position: absolute; left: 590px; right: 120px; top: 0; }
.part { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; gap: 6px; padding-left: 4px; }
.part b { font-size: 40px; font-weight: 800; }
.part span { font-size: 32px; color: var(--soft); }

/* 13 · tabla */
.tbl { position: absolute; left: 120px; right: 120px; top: 300px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(159,177,201,.2); }
.tr { display: grid; grid-template-columns: 1fr 340px 340px; align-items: center; height: 70px; padding: 0 44px; font-size: 32px; border-top: 1px solid rgba(159,177,201,.13); background: rgba(10,31,58,.55); }
.tr:nth-child(odd) { background: rgba(18,48,90,.55); }
.tr span:not(:first-child) { text-align: center; font-weight: 800; }
.tr.th { background: var(--gold); color: var(--deep); font-size: 24px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-top: 0; }
.tr.th span:not(:first-child) { font-size: 34px; letter-spacing: .04em; }
.si { color: var(--gold-2); }
.si::before { content: "✓ "; }
.no { color: #6d819e; }
.op { color: var(--soft); font-weight: 600 !important; }
.chips.extra { position: absolute; left: 120px; right: 120px; top: 900px; align-items: center; margin: 0; }
.chips.extra .sl { margin-right: 10px; }

/* 14 · rueda de retrofit */
.wheel text { font-family: Manrope, sans-serif; }
.wheel .seg { fill: none; stroke-width: 96; }
.wheel .lab { font-size: 28px; font-weight: 800; fill: var(--ink); }
.wheel .labn { font-size: 22px; font-weight: 800; fill: var(--gold-2); letter-spacing: .1em; }

/* 15 · franja de 4 fotos */
.strip4 { position: absolute; left: 120px; right: 120px; top: 470px; height: 470px; display: grid; grid-template-columns: 1fr 1.35fr 1fr 1fr; gap: 26px; }
.strip4 .ph { position: relative; }

/* 17 · fotos circulares */
.orb { position: absolute; border-radius: 50%; padding: 10px; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gold-2); clip-path: inset(0 0 0 0); }
.orb .ph { position: relative; width: 100%; height: 100%; border-radius: 50%; }

/* 19 y 23 · diagramas */
.legend { position: absolute; right: 120px; top: 150px; display: flex; gap: 34px; font-size: 24px; font-weight: 700; color: var(--soft); }
.legend i { display: inline-block; width: 34px; height: 6px; border-radius: 3px; margin-right: 12px; vertical-align: middle; }
.flame { fill: #ff8a3d; filter: drop-shadow(0 0 10px rgba(255,138,61,.8)); transform-box: fill-box; transform-origin: 50% 100%; animation: flama 1.1s ease-in-out infinite alternate; }
@keyframes flama { from { transform: scale(.9, .85); } to { transform: scale(1.05, 1.12); } }
.tagx { position: absolute; font-size: 24px; font-weight: 800; color: var(--deep); background: var(--gold-2); padding: 10px 18px; border-radius: 6px; white-space: nowrap; }
.big90 { position: absolute; left: 120px; top: 360px; width: 330px; }
.big90 b { font-size: 170px; font-weight: 800; color: var(--gold-2); letter-spacing: -.05em; line-height: .9; }
.big90 small { font-size: 80px; font-weight: 800; color: var(--gold-2); }
.big90 span { display: block; font-size: 26px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); line-height: 1.35; margin-top: 14px; }

/* 20 · ciclo */
.cycle .ring-bg { fill: none; stroke: rgba(159,177,201,.18); stroke-width: 2; }
.cycle .ring { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; }
.cycle .node { fill: var(--deep); stroke: var(--gold-2); stroke-width: 4; }
.cycle .nodeTxt { font: 800 30px Manrope, sans-serif; fill: var(--gold-2); text-anchor: middle; dominant-baseline: central; }
.cycle .link { fill: none; stroke: rgba(246,196,69,.55); stroke-width: 2; stroke-dasharray: 4 8; }
.cycle .runner { fill: var(--gold-2); filter: drop-shadow(0 0 12px var(--gold-2)); }
.cy-c { position: absolute; left: 760px; top: 520px; width: 400px; text-align: center; }
.cy-n { font-size: 150px; font-weight: 800; color: var(--gold-2); line-height: 1; letter-spacing: -.04em; }
.cy-l { font-size: 26px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); line-height: 1.35; margin-top: 8px; }
.step { position: absolute; width: 540px; }
.step.r { text-align: left; }
.step .n { font-size: 26px; font-weight: 800; letter-spacing: .2em; color: var(--gold); }
.step b { display: block; font-size: 46px; font-weight: 800; margin-top: 6px; letter-spacing: -.01em; }
.step p { font-size: 30px; line-height: 1.38; color: var(--soft); margin-top: 12px; }

/* 21 · cifras VRU */
.vstats { position: absolute; left: 1040px; top: 770px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 760px; }
.vstats .v { font-size: 76px; }

/* 24 · scrubbers */
.sc-side { position: absolute; left: 1380px; top: 300px; width: 420px; }
.sc-side .lead { font-size: 32px; }
.sc-side .v { font-size: 80px; }

/* 25 · mosaico */
.mosaic { position: absolute; left: 120px; right: 120px; top: 290px; bottom: 140px; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr .6fr; grid-template-rows: 1fr 1fr; gap: 22px; perspective: 1600px; }
.mosaic .ph { position: relative; }
.mosaic .m1 { grid-row: 1 / 3; }
.mosaic .m4 { grid-column: 5; grid-row: 1 / 3; }
.mosaic .cap { font-size: 26px; }
.mosaic .cap span { font-size: 24px; }

/* 26 · Well testing */
.wt { position: absolute; left: 100px; right: 100px; top: 380px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.wn { text-align: center; }
.wn .ring { width: 176px; height: 176px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--deep); border: 4px solid #24466f; position: relative; transition: none; }
.wn .ring span { font-size: 50px; font-weight: 800; color: var(--mute); }
.wn.lit .ring { border-color: var(--gold-2); box-shadow: 0 0 0 10px rgba(246,196,69,.10), 0 0 50px rgba(246,196,69,.35); }
.wn.lit .ring span { color: var(--gold-2); }
.wn b { display: block; font-size: 40px; font-weight: 800; margin-top: 38px; }
.wn p { font-size: 28px; line-height: 1.4; color: var(--soft); margin-top: 14px; padding: 0 8px; }

/* 31 · packer */
.pk { margin-top: 34px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(159,177,201,.2); }
.pkr { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; padding: 22px 30px; font-size: 32px; background: rgba(18,48,90,.55); }
.pkr + .pkr { border-top: 1px solid rgba(159,177,201,.15); }
.pkr .d { font-size: 54px; font-weight: 800; color: var(--gold-2); }
.pkr .m { color: var(--soft); }
.pkr .r { font-weight: 800; font-size: 40px; }

/* 32 · panal CNC */
.hive { position: absolute; left: 1040px; top: 165px; width: 780px; height: 780px; }
.hx { position: absolute; width: 300px; height: 260px; clip-path: polygon(25% 3%, 75% 3%, 99% 50%, 75% 97%, 25% 97%, 1% 50%); background: var(--gold-2); }
.hx img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; clip-path: polygon(25% 3%, 75% 3%, 99% 50%, 75% 97%, 25% 97%, 1% 50%); transform: scale(1.18); }

/* 34 · clientes */
.clients { position: absolute; left: 120px; right: 120px; top: 300px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cl { position: relative; padding: 30px 36px 30px 40px; border-radius: 18px; background: linear-gradient(160deg, rgba(18,48,90,.8), rgba(10,31,58,.45)); border: 1px solid rgba(159,177,201,.18); min-height: 190px; overflow: hidden; }
.cl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--gold), var(--gold-2)); }
.cl b { display: block; font-size: 44px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cl span { display: block; font-size: 28px; line-height: 1.35; color: var(--soft); margin-top: 10px; }

.tagg rect { fill: var(--gold-2); }
.tagg text { fill: var(--deep); font-size: 24px; font-weight: 800; }
#s23 .big90 { top: 380px; width: 300px; }
#s23 .big90 span { font-size: 24px; }
.ph.cover img { filter: saturate(1.1) contrast(1.05) brightness(.72); }
.c5 .col h4 { font-size: 30px; }
.gear path { transform-box: fill-box; transform-origin: center; animation: giro 16s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* ===== Interacción ===== */
.toca { position: absolute; display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); opacity: .85; pointer-events: none; }
.toca::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgba(246,196,69,.6); animation: latido 1.8s ease-out infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(246,196,69,.6); } 100% { box-shadow: 0 0 0 16px rgba(246,196,69,0); } }

/* Fotos que se abren */
.zoomable { cursor: zoom-in; }
.lupa { position: absolute; right: 14px; top: 14px; z-index: 6; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; font-weight: 800; color: var(--deep); background: var(--gold-2); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s; pointer-events: none; }
.zoomable:hover .lupa { opacity: 1; transform: scale(1); }
.zoomable img { transition: filter .3s; }
.zoomable:hover img { filter: brightness(1.1); }
.orb .lupa { right: 50px; top: 50px; }
.hx .lupa { right: 50%; top: 50%; margin: -22px -22px 0 0; }

/* Seis líneas: saltan a su sección */
.l6 { cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.l6:hover, .l6:focus-visible { border-color: rgba(246,196,69,.7); box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(246,196,69,.4); outline: none; }
.l6 .ver { position: absolute; right: 36px; bottom: 34px; font-size: 22px; font-weight: 800; letter-spacing: .1em; color: var(--gold-2); opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .3s; }
.l6:hover .ver, .l6:focus-visible .ver { opacity: 1; transform: none; }

/* Esquema 19: equipos con ficha */
.diag .hot { cursor: pointer; }
.diag .hot .eq, .diag .hot .eqg { transition: fill .25s, stroke .25s; }
.diag .hot:hover .eq, .diag .hot.sel .eq { fill: rgba(233,162,27,.35); stroke: var(--gold-2); }
.diag .hot:hover .eqg, .diag .hot.sel .eqg { fill: rgba(233,162,27,.45); }
.info { position: absolute; z-index: 8; width: 470px; padding: 28px 30px 26px; border-radius: 18px; background: rgba(6,20,42,.96); border: 1.5px solid var(--gold-2); box-shadow: 0 30px 80px rgba(0,0,0,.55); visibility: hidden; }
.info small { font-size: 18px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.info b { display: block; font-size: 40px; font-weight: 800; margin-top: 6px; }
.info p { font-size: 26px; line-height: 1.4; color: var(--soft); margin-top: 10px; }
.info .ir { margin-top: 18px; font: 800 22px Manrope, sans-serif; letter-spacing: .06em; color: var(--deep); background: var(--gold-2); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; }
.info .x { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: var(--mute); font-size: 38px; cursor: pointer; line-height: 1; }

/* Rueda y ciclo */
.wheel .segfg { cursor: pointer; transition: stroke-opacity .3s; }
.wheel.foco .segfg { stroke-opacity: .28; }
.wheel.foco .segfg.on { stroke-opacity: 1; }
.wheel.foco .wl { opacity: .35 !important; }
.wheel.foco .wl.on { opacity: 1 !important; }
.step { cursor: pointer; transition: opacity .35s; }
#s20.foco .step { opacity: .3; }
#s20.foco .step.on { opacity: 1; }
#s20 .nd { cursor: pointer; }
#s14 .list li.on, #s20 .step.on b { color: var(--gold-2); }

/* Clientes y tarjetas: respuesta al pasar */
.cl, .col { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.cl:hover, .col:hover { transform: translateY(-6px); border-color: rgba(246,196,69,.55); }
a.cv-web { text-decoration: none; cursor: pointer; transition: transform .25s; }
a.cv-web:hover { transform: scale(1.04); }

/* Barra de navegación */
#nav { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 27; display: flex; gap: 12px; }
#nav button, #lb button { font: 800 22px Manrope, sans-serif; color: var(--ink); background: rgba(10,31,58,.75); border: 1.5px solid rgba(246,196,69,.45); border-radius: 999px; height: 56px; min-width: 56px; padding: 0 20px; cursor: pointer; backdrop-filter: blur(8px); transition: background .25s, color .25s, border-color .25s; }
#nav button:hover, #lb button:hover { background: var(--gold-2); color: var(--deep); border-color: var(--gold-2); }
#nav button:focus-visible, #lb button:focus-visible, .info button:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
#nav #bMapa { font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }

/* Visor de fotos */
#lb { position: absolute; inset: 0; z-index: 40; visibility: hidden; }
#lb .lb-fondo { position: absolute; inset: 0; background: rgba(3,10,22,.9); backdrop-filter: blur(14px); }
#lb figure { position: absolute; left: 160px; right: 160px; top: 70px; bottom: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
#lb img { max-width: 100%; max-height: 760px; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 120px rgba(0,0,0,.6); background: var(--paper); }
#lb figcaption { text-align: center; }
#lb figcaption b { display: block; font-size: 34px; font-weight: 800; }
#lb figcaption span { display: block; font-size: 22px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-top: 6px; font-weight: 700; }
#lb .lb-p, #lb .lb-n { position: absolute; top: 50%; margin-top: -60px; width: 84px; height: 84px; font-size: 32px; }
#lb .lb-p { left: 48px; } #lb .lb-n { right: 48px; }
#lb .lb-x { position: absolute; right: 48px; top: 40px; width: 64px; height: 64px; font-size: 34px; padding: 0; }
#lb .lb-c { position: absolute; left: 0; right: 0; bottom: 56px; text-align: center; font-size: 22px; letter-spacing: .2em; color: var(--mute); font-variant-numeric: tabular-nums; }

/* Transiciones */
#edge { position: absolute; top: -80px; width: 5px; height: 1240px; z-index: 27; background: linear-gradient(180deg, transparent, var(--gold-2) 15%, var(--gold-2) 85%, transparent); box-shadow: 0 0 30px 6px rgba(246,196,69,.55); transform: rotate(-19.6deg); visibility: hidden; pointer-events: none; }
#shutter .bars { position: absolute; inset: 0; display: flex; }
#shutter .bars i { flex: 1; height: 100%; background: linear-gradient(180deg, #0b2244, #071730); border-left: 2px solid rgba(246,196,69,.35); }
#shutter .bars i:first-child { border-left: 0; }
#shutter .w { left: 0; right: 0; text-align: center; }
#shutter .w small { font-size: 28px; letter-spacing: .4em; }
#shutter .w span { display: block; font-size: 140px; }
#shutter .w em { display: block; height: 5px; width: 220px; margin: 34px auto 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; }

/* Cierre: botones de contacto */
#s35 .cv-t { font-size: 160px; }
#s35 .cv-logo { width: 380px; margin-bottom: 20px; }
.cv-ct { display: flex; gap: 22px; margin-top: 48px; flex-wrap: wrap; }
.ct { display: inline-flex; align-items: center; gap: 18px; padding: 18px 30px 18px 22px; border-radius: 22px; text-decoration: none; color: var(--ink); background: rgba(10,31,58,.78); border: 1.5px solid rgba(246,196,69,.45); backdrop-filter: blur(8px); transition: transform .25s, background .25s, border-color .25s; }
.ct svg { width: 50px; height: 50px; fill: none; stroke: var(--gold-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ct svg .f { fill: var(--gold-2); stroke: none; }
.ct span { display: flex; flex-direction: column; gap: 4px; }
.ct b { font-size: 28px; font-weight: 800; }
.ct small { font-size: 18px; font-weight: 700; letter-spacing: .08em; color: var(--soft); }
.ct-web { background: var(--gold-2); border-color: var(--gold-2); color: var(--deep); }
.ct-web svg { stroke: var(--deep); }
.ct-web small { color: rgba(6,20,42,.75); }
.ct:not(.pend):hover { transform: translateY(-4px) scale(1.03); }
.ct.pend { cursor: default; opacity: .8; }
.ct.pend small { color: var(--gold); }

/* Celular en vertical: aviso para girarlo */
#girar { display: none; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 40%, #12305a, #06142a 70%); color: var(--ink); font-family: Manrope, sans-serif; }
#girar b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
#girar p { font-size: 16px; color: var(--soft); max-width: 260px; line-height: 1.45; margin: 0; }
#girar button { margin-top: 18px; font: 700 14px Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1.5px solid rgba(246,196,69,.5); border-radius: 999px; padding: 12px 22px; }
.g-tel { width: 64px; height: 110px; border: 4px solid var(--gold-2); border-radius: 14px; position: relative; margin-bottom: 18px; box-shadow: 0 0 24px rgba(246,196,69,.35); animation: girarTel 2.4s cubic-bezier(.7,0,.3,1) infinite; }
.g-tel i { position: absolute; left: 50%; bottom: 8px; width: 18px; height: 4px; margin-left: -9px; border-radius: 2px; background: var(--gold-2); }
@keyframes girarTel { 0%, 20% { transform: rotate(0); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (orientation: portrait) and (pointer: coarse) { body:not(.vertical-ok) #girar { display: flex; } }
