/* Kebel Services Oil & Gas · Portafolio 2026 — sistema visual */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --deep: #06142a;
  --navy: #0a1f3a;
  --steel: #12305a;
  --line: #24466f;
  --ink: #f3f1ea;
  --soft: #c9d4e3;
  --mute: #9fb1c9;
  --gold: #e9a21b;
  --gold-2: #f6c445;
  --paper: #f5f2ea;
  --vista-acento: #e9a21b;
  --font-sans: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--deep); color: var(--ink); }
body { font-family: "Manrope", system-ui, sans-serif; font-weight: 500; -webkit-font-smoothing: antialiased; }

#viewport { position: fixed; inset: 0; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; margin: -540px 0 0 -960px; overflow: hidden; background: var(--deep); }

/* Atmósfera: retícula de plano, luz dorada, polvo, grano */
#grid { position: absolute; inset: -60px; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(159,177,201,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,201,.07) 1px, transparent 1px),
    linear-gradient(rgba(159,177,201,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,201,.035) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 40px 40px, 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 85%); }
#glow { position: absolute; width: 1500px; height: 1500px; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(233,162,27,.20) 0%, rgba(233,162,27,.06) 35%, transparent 65%); }
#glow2 { position: absolute; width: 1600px; height: 1600px; left: 900px; top: 300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(30,80,150,.35) 0%, transparent 60%); }
#particles { position: absolute; inset: 0; pointer-events: none; }
#grain { position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay; z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
#vignette { position: absolute; inset: 0; pointer-events: none; z-index: 29; background: radial-gradient(ellipse at center, transparent 60%, rgba(2,8,18,.55) 100%); }

/* Marco fijo: logo, sección y paginador */
#chrome { position: absolute; inset: 0; pointer-events: none; z-index: 25; transition: opacity .5s; }
#chrome.off { opacity: 0; }
#foot { position: absolute; left: 120px; bottom: 46px; display: flex; align-items: center; gap: 22px; font-size: 20px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
#foot img { height: 44px; }
#foot i { width: 1px; height: 28px; background: var(--line); }
#pager { position: absolute; right: 120px; bottom: 50px; display: flex; align-items: baseline; gap: 26px; font-size: 22px; letter-spacing: .16em; color: var(--mute); font-variant-numeric: tabular-nums; }
#pager #sec { text-transform: uppercase; font-size: 19px; letter-spacing: .2em; color: var(--gold); }
#pager b { color: var(--ink); font-weight: 700; }
#progress { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; z-index: 26; }
#shutter { position: absolute; inset: 0; z-index: 28; pointer-events: none; visibility: hidden; }

#shutter .w { position: absolute; left: 120px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 150px; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
#shutter .w small { display: block; font-size: 26px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 18px; }
#hint { position: fixed; left: 50%; top: 14px; pointer-events: none; z-index: 60; transform: translateX(-50%); font-size: 12px; letter-spacing: .15em; color: #5a6b82; text-transform: uppercase; transition: opacity .6s; font-family: Manrope, sans-serif; }
#notes { position: fixed; left: 24px; right: 24px; bottom: 24px; max-width: 920px; margin: 0 auto; padding: 20px 26px; background: rgba(6,20,42,.95); border: 1px solid var(--line); border-radius: 14px; font-size: 17px; line-height: 1.55; color: var(--ink); display: none; z-index: 50; }
#notes small { display: block; color: var(--gold); letter-spacing: .2em; margin-bottom: 6px; font-weight: 700; }

/* Escenas */
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.on { visibility: visible; }
.hd { position: absolute; left: 120px; top: 112px; width: 1680px; }
.hd.half { width: 860px; }
.kick { font-size: 24px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 18px; }
.kick::before { content: ""; width: 46px; height: 3px; background: var(--gold); }
.tt { font-size: 76px; font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin-top: 22px; }
.tt .line { display: block; overflow: hidden; padding: .06em 0 .1em; margin-bottom: -.1em; }
.ch { display: inline-block; }
.lead { font-size: 36px; line-height: 1.38; color: var(--soft); font-weight: 500; margin-top: 30px; }
.lead b, .gold { color: var(--gold-2); font-weight: 700; }

.list { list-style: none; margin-top: 34px; }
.list li { position: relative; font-size: 34px; line-height: 1.32; padding: 15px 0 15px 50px; border-top: 1px solid rgba(159,177,201,.16); }
.list li:last-child { border-bottom: 1px solid rgba(159,177,201,.16); }
.list li::before { content: ""; position: absolute; left: 4px; top: 32px; width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); }
.list li b { color: var(--ink); font-weight: 800; }
.list li .m { color: var(--mute); }

.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.chip { font-size: 28px; font-weight: 700; padding: 12px 24px; border: 1.5px solid rgba(246,196,69,.55); border-radius: 999px; color: var(--gold-2); background: rgba(233,162,27,.06); white-space: nowrap; }
.chip.dim { border-color: rgba(159,177,201,.35); color: var(--soft); background: rgba(159,177,201,.05); }

/* Fotos */
.ph { position: absolute; overflow: hidden; background: var(--steel); }
.ph img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; will-change: transform; }
.ph.bleed { right: 0; top: 0; bottom: 0; width: 820px; }
.ph.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 0%, rgba(6,20,42,.35) 22%, transparent 45%), linear-gradient(0deg, rgba(6,20,42,.85) 0%, transparent 25%); }
.ph.paper { background: var(--paper); border-radius: 22px; }
.ph.paper img { inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 44px; }
.ph.card { border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.ph.card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; font-size: 24px; font-weight: 700; line-height: 1.25; color: #fff; background: linear-gradient(0deg, rgba(4,12,26,.92), transparent); z-index: 2; }
.cap span { display: block; font-weight: 600; font-size: 22px; color: var(--gold-2); letter-spacing: .02em; margin-top: 4px; }

/* Cifras */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; margin-top: 50px; }
.stat { border-left: 3px solid var(--gold); padding-left: 28px; }
.stat .v { font-size: 92px; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v small { font-size: .45em; letter-spacing: 0; margin-left: 6px; color: var(--ink); }
.stat .l { font-size: 25px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: 14px; font-weight: 700; }
.note { font-size: 22px; color: var(--mute); line-height: 1.4; }

/* Columnas */
.cols { position: absolute; left: 120px; right: 120px; top: 400px; display: grid; gap: 34px; }
.col { position: relative; background: linear-gradient(170deg, rgba(18,48,90,.75), rgba(10,31,58,.55)); border: 1px solid rgba(159,177,201,.18); border-radius: 22px; padding: 44px 40px 40px; overflow: hidden; }
.col::before { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transform: scaleX(var(--bar, 1)); }
.col h3 { font-size: 40px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 18px; }
.col h3 .ico { width: 64px; height: 64px; flex: none; }
.col ul { list-style: none; margin-top: 26px; }
.col li { font-size: 30px; line-height: 1.3; color: var(--soft); padding: 13px 0 13px 34px; position: relative; border-top: 1px solid rgba(159,177,201,.14); }
.col li::before { content: ""; position: absolute; left: 0; top: 27px; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.col .num { position: absolute; right: 30px; top: 22px; font-size: 26px; font-weight: 800; color: rgba(246,196,69,.55); letter-spacing: .1em; }

svg .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
svg .eq { fill: rgba(18,48,90,.85); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
svg .eqg { fill: rgba(233,162,27,.16); stroke: var(--gold-2); stroke-width: 3; stroke-linejoin: round; }
svg .liq { fill: none; stroke: #8fb4e3; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
svg .gas { fill: none; stroke: var(--gold-2); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
svg .heat { fill: none; stroke: #ff8a3d; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
svg .flow { fill: none; stroke-width: 4; stroke-dasharray: 6 22; stroke-linecap: round; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
svg text { font-family: Manrope, sans-serif; fill: var(--ink); font-weight: 700; }
svg .lbl { font-size: 26px; letter-spacing: .06em; text-transform: uppercase; }
svg .sm { font-size: 21px; fill: var(--soft); font-weight: 600; letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) { #grain, svg .flow { animation: none; } }

/* Capa IA: detección sobre fotos, escaneo, decodificación */
.det { position: absolute; z-index: 3; pointer-events: none; }
.det i { position: absolute; width: 34px; height: 34px; border: 0 solid var(--gold-2); }
.det .a { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; }
.det .b { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; }
.det .c { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; }
.det .d { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; }
.det .box { position: absolute; inset: 0; border: 1.5px dashed rgba(246,196,69,.55); background: rgba(246,196,69,.05); }
.det em { position: absolute; left: -2px; bottom: calc(100% + 10px); font-style: normal; font-size: 21px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--deep); background: var(--gold-2); padding: 8px 14px 7px; border-radius: 4px; }
.det em::before { content: "◆ "; font-size: 15px; vertical-align: 2px; }
.det.abajo em { bottom: auto; top: calc(100% + 10px); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 4; background: var(--gold-2); box-shadow: 0 0 24px 6px rgba(246,196,69,.55); opacity: 0; pointer-events: none; }
.ia-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.ia-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px var(--gold-2); animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .25; } }
.mono { font-variant-numeric: tabular-nums; }
.txt { position: absolute; left: 120px; top: 112px; width: 860px; }
.ico { width: 64px; height: 64px; fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.txt .tt { font-size: 68px; }

/* Celular y tablet: modo liviano (el iPhone cerraba la pestaña por falta de memoria, 4/11/2026) */
@media (pointer: coarse), (max-width: 1100px) {
  #grain { display: none; }
  .ph img { will-change: auto; }
  #nav button, #lb button, #lb .lb-fondo, .ct, .pin { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  #particles { display: none; }
}
