/**
 * @file update-tech.css
 * @description Hoja de estilos modular del Portal Inmersivo Update Tech.
 * @author Innectia Engineering Division (https://innectia.com)
 * @version 1.0.0
 */

/* ============================================================
   1. TOKENS DE MARCA (extraídos del isologo y sitio real del cliente)
   ============================================================ */
:root{
  --bg:#0A0A0A;
  --panel:#141414;
  --panel-2:#1A1A1A;
  --line:rgba(242,244,247,0.08);
  --line-strong:rgba(242,244,247,0.18);
  --text:#F2F4F7;
  --muted:#9CA3AF;
  --primary:#111111;
  --accent:#00E0E0;
  --accent-deep:#0099CC;
  --alert:#E4432B;
  --conversion:#25D366;
  --header-h:84px;
  --footer-h:48px;
  --ease-cine:cubic-bezier(.16,.84,.24,1);
  --dur-slide:.85s;
}

*{box-sizing:border-box;}
html,body{
  height:100%;
  margin:0;
  overflow:hidden; /* el documento NUNCA scrollea — navegación 100% JS */
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
}

::selection{ background:var(--accent); color:#04141A; }

/* ============================================================
   2. TIPOGRAFÍA
   ============================================================ */
.disp{
  font-family:'Outfit', sans-serif;
  font-weight:800;
  letter-spacing:-0.02em;
  text-transform:uppercase;
  line-height:1.02;
}
.mono{
  font-family:'DM Mono', monospace;
  letter-spacing:.06em;
}
.serif-quote{
  font-family:'Playfair Display', serif;
  font-style:italic;
  font-weight:500;
}

/* ============================================================
   3. CURSOR PERSONALIZADO (rombo de marca)
   ============================================================ */
body{
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M14 2 L26 14 L14 26 L2 14 Z' fill='none' stroke='%2300E0E0' stroke-width='1.6'/></svg>") 14 14, auto;
}
a, button, .js-interactive{
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path d='M15 3 L27 15 L15 27 L3 15 Z' fill='%2300E0E0' fill-opacity='0.9' stroke='%23F2F4F7' stroke-width='1'/></svg>") 15 15, pointer;
}

.cursor-trail{
  position:fixed;
  top:0; left:0;
  pointer-events:none;
  z-index:9998;
  font-family:'Outfit', sans-serif;
  font-weight:700;
  font-size:11px;
  letter-spacing:.12em;
  color:var(--accent);
  text-transform:uppercase;
  opacity:0.85;
  transform:translate(-50%,-50%);
  animation: trail-fade 900ms ease-out forwards;
  will-change:transform,opacity;
}
@keyframes trail-fade{
  0%{ opacity:.85; transform:translate(-50%,-50%) translateY(0); }
  100%{ opacity:0; transform:translate(-50%,-50%) translateY(-18px); }
}

.click-ring{
  position:fixed;
  top:0; left:0;
  width:10px; height:10px;
  border:1.5px solid var(--accent);
  border-radius:50%;
  pointer-events:none;
  z-index:9998;
  transform:translate(-50%,-50%);
  animation: ring-expand 550ms var(--ease-cine) forwards;
}
@keyframes ring-expand{
  0%{ width:10px; height:10px; opacity:1; }
  100%{ width:70px; height:70px; opacity:0; }
}

/* ============================================================
   4. HEADER FIJO
   ============================================================ */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--header-h);
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(20px,4vw,56px);
  background:linear-gradient(to bottom, rgba(10,10,10,.92), rgba(10,10,10,.55));
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}
.brand-mark{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-mark .diamond{
  width:26px; height:26px;
  position:relative;
}
.brand-mark .diamond svg{
  width:100%; height:100%;
  animation: diamond-breathe 4.5s ease-in-out infinite;
  transform-origin:center;
}
@keyframes diamond-breathe{
  0%,100%{ filter:drop-shadow(0 0 2px rgba(0,224,224,.5)); transform:rotate(0deg) scale(1); }
  50%{ filter:drop-shadow(0 0 9px rgba(0,224,224,.9)); transform:rotate(45deg) scale(1.06); }
}
.brand-mark .word{
  font-family:'Outfit', sans-serif;
  font-weight:800;
  letter-spacing:.08em;
  font-size:15px;
  text-transform:uppercase;
}
.brand-mark .word b{ color:var(--accent); }

.header-counter{
  font-family:'DM Mono', monospace;
  font-size:12px;
  letter-spacing:.1em;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:10px;
}
.header-counter .dot{ width:5px; height:5px; border-radius:50%; background:var(--accent); animation: blink-dot 1.8s ease-in-out infinite; }
@keyframes blink-dot{ 0%,100%{opacity:.25;} 50%{opacity:1;} }

/* ============================================================
   5. PAGER — ARQUITECTURA CERO SCROLL
   ============================================================ */
.pager-viewport{
  position:fixed;
  top:var(--header-h);
  left:0; right:0;
  bottom:0;
  overflow:hidden;
}
.pager-track{
  height:100%;
  transition: transform var(--dur-slide) var(--ease-cine);
  will-change:transform;
}
.screen{
  height:100%;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  overflow:hidden;
  padding:0 clamp(20px,6vw,90px);
}
.screen-bg{
  position:absolute; inset:0;
  z-index:0;
}
.screen-bg canvas{ width:100%; height:100%; display:block; }
.screen-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.82) 65%, rgba(10,10,10,.94) 100%);
  z-index:1;
}
.screen-content{
  position:relative;
  z-index:2;
  max-width:1180px;
  margin:0 auto;
  width:100%;
}

/* Navegación UI fija */
.nav-arrows{
  position:fixed;
  right:clamp(14px,3vw,34px);
  top:50%;
  transform:translateY(-50%);
  z-index:55;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.nav-arrow{
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background:rgba(20,20,20,.55);
  backdrop-filter:blur(6px);
  color:var(--text);
  display:flex; align-items:center; justify-content:center;
  transition: all .25s var(--ease-cine);
}
.nav-arrow:hover{ background:var(--accent); color:#04141A; border-color:var(--accent); transform:scale(1.08); }
.nav-arrow:disabled{ opacity:.25; pointer-events:none; }

.nav-dots{
  position:fixed;
  left:clamp(14px,3vw,34px);
  top:50%;
  transform:translateY(-50%);
  z-index:55;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.nav-dot{
  width:8px; height:8px;
  border-radius:50%;
  background:var(--line-strong);
  transition: all .3s var(--ease-cine);
  position:relative;
}
.nav-dot.active{
  background:var(--accent);
  height:26px;
  border-radius:5px;
  box-shadow:0 0 12px rgba(0,224,224,.6);
}

.slide-counter{
  position:fixed;
  left:clamp(14px,3vw,34px);
  bottom:calc(var(--footer-h) + 18px);
  z-index:55;
  font-family:'DM Mono', monospace;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.08em;
}
.slide-counter b{ color:var(--accent); }

/* ============================================================
   6. REVELADO EN CASCADA
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition: opacity .7s var(--ease-cine), transform .7s var(--ease-cine);
}
.screen.is-active .reveal{ opacity:1; transform:translateY(0); }
.screen.is-active .reveal:nth-child(1){ transition-delay:.05s; }
.screen.is-active .reveal:nth-child(2){ transition-delay:.15s; }
.screen.is-active .reveal:nth-child(3){ transition-delay:.25s; }
.screen.is-active .reveal:nth-child(4){ transition-delay:.35s; }
.screen.is-active .reveal:nth-child(5){ transition-delay:.45s; }

/* ============================================================
   7. COMPONENTES DE COPY
   ============================================================ */
.eyebrow{
  font-family:'DM Mono', monospace;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:'';
  width:26px; height:1px;
  background:var(--accent);
}
h1.hero-title{
  font-size:clamp(2.4rem, 6.4vw, 5.2rem);
  margin:0 0 22px;
}
h2.screen-title{
  font-size:clamp(1.9rem, 4.2vw, 3.2rem);
  margin:0 0 16px;
}
p.lede{
  font-size:clamp(1rem, 1.5vw, 1.25rem);
  color:var(--muted);
  max-width:640px;
  line-height:1.6;
  margin:0 0 32px;
}

/* CTAs — color de conversión reservado exclusivamente para estas acciones */
.cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 28px;
  border-radius:999px;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:14px;
  letter-spacing:.02em;
  border:1px solid transparent;
  transition: all .3s var(--ease-cine);
  text-decoration:none;
  color:var(--text);
  position:relative;
}
.btn-primary{
  background:linear-gradient(90deg, var(--accent), var(--accent-deep));
  color:#04141A;
  box-shadow:0 0 0 0 rgba(0,224,224,.55);
  animation: cta-pulse 2.6s ease-in-out infinite;
}
@keyframes cta-pulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(0,224,224,.35); }
  50%{ box-shadow:0 0 22px 4px rgba(0,224,224,.35); }
}
.btn-primary:hover{ transform:translateY(-2px); }
.btn-ghost{
  border-color:var(--line-strong);
  background:rgba(255,255,255,.02);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }

.proof-line{
  margin-top:34px;
  font-family:'DM Mono', monospace;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.04em;
}

/* ============================================================
   8. GRID DE SERVICIOS
   ============================================================ */
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-top:8px;
}
@media (max-width:900px){ .service-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .service-grid{ grid-template-columns:1fr; } }
.service-card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  transition: all .35s var(--ease-cine);
  display:block;
  text-decoration:none;
  color:var(--text);
  position:relative;
}
.service-card:hover{
  border-color:var(--accent);
  transform:translateY(-4px);
  background:rgba(0,224,224,.05);
}
.service-card .go-arrow{
  position:absolute;
  top:18px; right:18px;
  width:26px; height:26px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  transition: all .3s var(--ease-cine);
}
.service-card:hover .go-arrow{
  border-color:var(--accent);
  color:var(--accent);
  transform:translate(2px,-2px);
}
.service-card .icon-dot{
  width:34px; height:34px;
  border-radius:9px;
  background:linear-gradient(135deg, var(--accent), var(--accent-deep));
  margin-bottom:14px;
  animation: icon-pulse 3s ease-in-out infinite;
}
@keyframes icon-pulse{ 0%,100%{ opacity:1;} 50%{ opacity:.55; } }
.service-card h3{ font-family:'Outfit',sans-serif; font-size:16px; margin:0 0 6px; text-transform:uppercase; letter-spacing:.02em; }
.service-card p{ font-size:13.5px; color:var(--muted); margin:0; line-height:1.5; }

/* ============================================================
   9. PASOS / METODOLOGÍA
   ============================================================ */
.steps-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:10px;
}
@media (max-width:900px){ .steps-row{ grid-template-columns:repeat(2,1fr); } }
.step-card{ border-top:2px solid var(--line-strong); padding-top:14px; position:relative; }
.step-card .n{
  font-family:'DM Mono',monospace;
  color:var(--accent);
  font-size:13px;
  display:block;
  margin-bottom:10px;
}
.step-card h3{ font-family:'Outfit',sans-serif; font-size:15.5px; text-transform:uppercase; margin:0 0 6px; }
.step-card p{ font-size:13px; color:var(--muted); line-height:1.5; margin:0; }

/* ============================================================
   10. FAQ
   ============================================================ */
.faq-list{ display:flex; flex-direction:column; gap:10px; max-width:760px; }
.faq-item{
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px 20px;
  background:rgba(255,255,255,.02);
}
.faq-item h3{ font-size:15px; margin:0 0 6px; font-family:'Inter'; font-weight:700; }
.faq-item h3::before{ content:'· '; color:var(--accent); }
.faq-item p{ font-size:13.5px; color:var(--muted); margin:0; line-height:1.55; }

/* ============================================================
   11. COBERTURA
   ============================================================ */
.coverage-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:36px; align-items:center; }
@media (max-width:860px){ .coverage-grid{ grid-template-columns:1fr; } }
.map-schema{
  border:1px solid var(--line);
  border-radius:16px;
  padding:26px;
  background:rgba(255,255,255,.02);
  position:relative;
  min-height:220px;
}
.map-node{
  display:flex; align-items:center; gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.map-node:last-child{ border-bottom:none; }
.map-node .pulse-dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 0 rgba(0,224,224,.6);
  animation: node-pulse 2.2s ease-out infinite;
  flex-shrink:0;
}
@keyframes node-pulse{
  0%{ box-shadow:0 0 0 0 rgba(0,224,224,.55); }
  70%{ box-shadow:0 0 0 12px rgba(0,224,224,0); }
  100%{ box-shadow:0 0 0 0 rgba(0,224,224,0); }
}
.map-node b{ font-family:'Outfit'; font-size:14px; text-transform:uppercase; letter-spacing:.02em; }
.map-node span{ display:block; font-size:12.5px; color:var(--muted); }

/* ============================================================
   12. CIERRE
   ============================================================ */
.closing-quote{ font-size:clamp(1.1rem,2vw,1.5rem); max-width:620px; color:var(--text); margin-bottom:30px; }

/* ============================================================
   13. FOOTER INSTITUCIONAL FIJO (Innectia — no negociable)
   ============================================================ */
.innectia-footer{
  position:fixed;
  bottom:0; left:0;
  width:100vw;
  height:var(--footer-h);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  backdrop-filter:blur(12px);
  background:rgba(8,8,10,0.90);
  border-top:1px solid rgba(255,255,255,0.08);
  font-size:11.5px;
  color:var(--muted);
  gap:12px;
}
.innectia-footer a{ color:var(--muted); text-decoration:none; }
.innectia-footer a:hover{ color:var(--accent); }
.innectia-footer .legal-links{ display:flex; gap:16px; }
.innectia-footer .dev-credit{ white-space:nowrap; }
.innectia-footer .dev-credit a{ color:var(--accent); font-weight:600; }
@media (max-width:640px){
  .innectia-footer{ font-size:10px; padding:0 12px; }
  .innectia-footer .legal-links{ gap:10px; }
}

/* ============================================================
   14. CONCIERGE FLOTANTE
   ============================================================ */
.concierge-launcher{
  position:fixed;
  right:22px;
  bottom:calc(var(--footer-h) + 22px);
  z-index:9997;
  width:60px; height:60px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--accent), var(--accent-deep));
  border:none;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 24px rgba(0,224,224,.35);
}
.notif-badge{
  position:absolute;
  top:-2px; right:-2px;
  width:14px; height:14px;
  border-radius:50%;
  background:var(--alert);
  border:2px solid var(--bg);
  opacity:0;
  transform:scale(0);
  transition: all .3s var(--ease-cine);
  z-index:3;
}
.notif-badge.show{ opacity:1; transform:scale(1); animation: badge-pop .5s var(--ease-cine); }
@keyframes badge-pop{ 0%{ transform:scale(0); } 60%{ transform:scale(1.3); } 100%{ transform:scale(1); } }

/* Burbuja proactiva (teaser) — habla sola, sin abrir el panel completo */
.teaser-bubble{
  position:fixed;
  right:22px;
  bottom:calc(var(--footer-h) + 92px);
  z-index:9996;
  max-width:270px;
  background:var(--panel);
  border:1px solid var(--line-strong);
  border-radius:16px 16px 4px 16px;
  padding:14px 34px 14px 16px;
  box-shadow:0 14px 40px rgba(0,0,0,.45);
  opacity:0;
  transform:translateY(10px) scale(.96);
  pointer-events:none;
  transition: all .4s var(--ease-cine);
}
.teaser-bubble.show{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
  animation: teaser-breathe 3s ease-in-out infinite;
}
@keyframes teaser-breathe{
  0%,100%{ box-shadow:0 14px 40px rgba(0,0,0,.45); }
  50%{ box-shadow:0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(0,224,224,.25); }
}
.teaser-bubble p{
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:var(--text);
  cursor:pointer;
}
.teaser-dismiss{
  position:absolute;
  top:6px; right:8px;
  background:none; border:none;
  color:var(--muted);
  font-size:16px;
  line-height:1;
  padding:4px;
}
.teaser-dismiss:hover{ color:var(--text); }
.teaser-tail{
  position:absolute;
  bottom:-7px; right:26px;
  width:14px; height:14px;
  background:var(--panel);
  border-right:1px solid var(--line-strong);
  border-bottom:1px solid var(--line-strong);
  transform:rotate(45deg);
}
.concierge-launcher .ring{
  position:absolute; inset:-6px;
  border-radius:50%;
  border:1.5px solid rgba(0,224,224,.5);
  animation: launcher-ring 2.4s ease-out infinite;
}
@keyframes launcher-ring{
  0%{ transform:scale(1); opacity:.8; }
  100%{ transform:scale(1.35); opacity:0; }
}
.concierge-launcher svg{ position:relative; z-index:2; }

.concierge-panel{
  position:fixed;
  right:22px;
  bottom:calc(var(--footer-h) + 92px);
  z-index:9997;
  width:min(360px, calc(100vw - 44px));
  max-height:min(560px, calc(100vh - var(--header-h) - var(--footer-h) - 120px));
  background:var(--panel);
  border:1px solid var(--line-strong);
  border-radius:18px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  transform:translateY(16px) scale(.98);
  opacity:0;
  pointer-events:none;
  transition: all .35s var(--ease-cine);
}
.concierge-panel.open{
  transform:translateY(0) scale(1);
  opacity:1;
  pointer-events:auto;
}
.concierge-head{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(90deg, rgba(0,224,224,.08), transparent);
}
.concierge-head .avatar{
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg, var(--accent), var(--accent-deep));
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.concierge-head .meta b{ font-size:13.5px; display:block; }
.concierge-head .meta span{ font-size:11px; color:var(--muted); }
.concierge-close{
  margin-left:auto; background:none; border:none; color:var(--muted);
}
.concierge-body{
  flex:1;
  overflow-y:auto;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.concierge-body::-webkit-scrollbar{ width:4px; }
.concierge-body::-webkit-scrollbar-thumb{ background:var(--line-strong); border-radius:4px; }

.bubble{
  max-width:88%;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius:14px 14px 14px 4px;
  padding:11px 14px;
  font-size:13.5px;
  line-height:1.5;
  animation: bubble-in .4s var(--ease-cine);
}
@keyframes bubble-in{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:translateY(0);} }

.bubble-user{
  align-self:flex-end;
  background:linear-gradient(90deg, rgba(0,224,224,.18), rgba(0,153,204,.18));
  border-color:rgba(0,224,224,.35);
  border-radius:14px 14px 4px 14px;
}

.thinking{
  display:flex; align-items:center; gap:8px;
  font-size:12px; color:var(--muted);
  font-family:'DM Mono',monospace;
  padding:4px 2px;
}
.thinking .dots span{
  display:inline-block; width:4px;height:4px;border-radius:50%;
  background:var(--accent); margin-right:3px;
  animation: think-bounce 1s ease-in-out infinite;
}
.thinking .dots span:nth-child(2){ animation-delay:.15s; }
.thinking .dots span:nth-child(3){ animation-delay:.3s; }
@keyframes think-bounce{ 0%,100%{ transform:translateY(0); opacity:.4;} 50%{ transform:translateY(-4px); opacity:1; } }

.option-grid{ display:flex; flex-direction:column; gap:8px; margin-top:2px; }
.option-chip{
  text-align:left;
  padding:10px 14px;
  border-radius:11px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.02);
  color:var(--text);
  font-size:13px;
  transition: all .2s var(--ease-cine);
  display:block;
  text-decoration:none;
  width:100%;
}
.option-chip:hover{ border-color:var(--accent); background:rgba(0,224,224,.08); transform:translateX(2px); }

.concierge-foot{
  padding:12px 18px;
  border-top:1px solid var(--line);
  font-size:10.5px;
  color:var(--muted);
  text-align:center;
  font-family:'DM Mono',monospace;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, .option-chip:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* Mobile adjustments */
@media (max-width:640px){
  :root{ --header-h:68px; }
  .brand-mark .word{ font-size:12px; }
  .nav-arrows{ display:none; }
  .service-grid{ margin-top:4px; }
  .concierge-panel{ right:12px; left:12px; width:auto; bottom:calc(var(--footer-h) + 84px); }
  .concierge-launcher{ right:14px; }
}
