:root {
  --paper-base: #f1f4f5;
  --paper-light: #fafbfc;
  --paper-shadow: #d6dfe4;
  --workshop-heading: #062b3d;
  --workshop-text: #354a60;
  --lab-base: #020617;
  --lab-surface: #071129;
  --lab-surface-light: #0b1835;
  --lab-text: #c3cae3;
  --cyan: #00d9f7;
  --electric-cyan: #00e8ff;
  --electric-blue: #2385ff;
  --blue: #426aff;
  --violet: #844eff;
  --purple: #a34fff;
  --white: #f8fcff;
  --metal-light: #f4f7fa;
  --metal-mid: #9da9b6;
  --metal-dark: #354353;
  --sans: "Manrope", -apple-system, system-ui, sans-serif;
  --brand: "Orbitron", var(--sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--lab-base); color: var(--lab-text); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--electric-cyan); outline-offset: 3px; }

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* ═══ Capa 1 · fondos base ═══ */
.bg { position: absolute; top: 0; bottom: 0; z-index: 1; }
.bg-workshop {
  left: 0; width: 50%;
  background:
    radial-gradient(ellipse 70% 50% at 40% 30%, var(--paper-light), transparent 70%),
    var(--paper-base);
}
.bg-lab {
  right: 0; width: 50%;
  background:
    radial-gradient(circle at 65% 42%, rgba(18,46,105,0.30), transparent 48%),
    radial-gradient(circle at 92% 80%, rgba(120,60,220,0.14), transparent 40%),
    linear-gradient(145deg, #020617 0%, #03091d 50%, #01030d 100%);
}
.grid-fine, .grid-major { position: absolute; inset: 0; }
.grid-fine {
  background-image: linear-gradient(rgba(60,90,110,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(60,90,110,0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}
.grid-major {
  background-image: linear-gradient(rgba(60,90,110,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(60,90,110,0.12) 1px, transparent 1px);
  background-size: 108px 108px;
}
.blueprint { position: absolute; inset: 0; opacity: 0.09; color: var(--workshop-heading); }
.bp-marks { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.bp-marks .cota { font-size: 13px; fill: currentColor; stroke: none; font-family: var(--sans); }
.note { position: absolute; font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: 0.02em; }
.note-1 { top: 8%; left: 44%; transform: rotate(-4deg); }
.note-2 { top: 12%; left: 40%; transform: rotate(2deg); }
.note-3 { top: 16%; left: 46%; transform: rotate(-2deg); }
.dot-matrix {
  position: absolute; top: 26px; left: 26px; width: 74px; height: 74px;
  background-image: radial-gradient(var(--cyan) 1.6px, transparent 2px);
  background-size: 20px 20px; opacity: 0.55;
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ═══ Capa 3 · foto taller (placeholder) + ola ═══ */
/* Placeholder oculto hasta tener la foto real: el recuadro oscuro tapaba
   el último servicio ("Soporte para empresas"). Reactivar quitando display:none
   y reemplazando el SVG por la foto. */
.workshop-photo {
  display: none;
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: 26%; height: 46%;
  -webkit-mask-image: linear-gradient(105deg, #000 40%, transparent 92%), linear-gradient(to top, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(105deg, #000 40%, transparent 92%), linear-gradient(to top, #000 55%, transparent 100%);
  filter: drop-shadow(0 0 24px rgba(0,207,245,0.18));
}
.workshop-photo svg { width: 100%; height: 100%; }
#wave { position: absolute; right: 0; bottom: 0; z-index: 2; width: 46%; height: 40%; pointer-events: none; }

/* ═══ Capa 4 · contenido ═══ */
.content {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  padding-bottom: clamp(40px, 8svh, 96px);
}
.col { padding: 12svh clamp(28px, 4vw, 66px) 0; }
.col-workshop { color: var(--workshop-heading); }
.col-lab { position: relative; }

.title { font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; }
.title-workshop {
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  background: linear-gradient(180deg, #06445a, #061c2b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-lab {
  font-size: clamp(3rem, 7vw, 6.8rem);
  background: linear-gradient(90deg, #8a49ff 0%, #5969ff 38%, #248bff 68%, #00d8ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { font-weight: 800; margin-top: 14px; letter-spacing: -0.01em; }
.subtitle-workshop { font-size: clamp(1.5rem, 2.6vw, 2.6rem); color: #0b3143; }
.dot-cyan { color: var(--cyan); }
.subtitle-lab {
  font-size: clamp(1.55rem, 2.7vw, 2.7rem);
  background: linear-gradient(90deg, #9a6bff, #5f7bff, #33a0ff, #00d8ef);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.svc { list-style: none; margin-top: clamp(28px, 5vh, 54px); display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 26px); }
.svc li { display: flex; align-items: center; gap: 18px; }
.svc .lbl { font-size: clamp(1.05rem, 1.5vw, 1.55rem); font-weight: 500; line-height: 1.25; }
.svc-workshop .lbl { color: var(--workshop-text); }
.svc-lab .lbl { color: var(--lab-text); }
.ic { flex-shrink: 0; display: grid; place-items: center; }
.svc-workshop .ic {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1px solid rgba(60,90,110,0.35); background: rgba(255,255,255,0.6);
}
.svc-workshop .ic svg { width: 34px; height: 34px; fill: none; stroke: var(--workshop-heading); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-line svg { width: 52px; height: 52px; fill: none; stroke: #9850ff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(150,80,255,0.5)); }

/* Dashboard flotante (recortado por el borde derecho del hero) */
.dashboard {
  position: absolute; top: 30%; right: -14px; left: auto;
  width: min(322px, 22vw); z-index: 5;
  background: linear-gradient(160deg, rgba(11,24,53,0.82), rgba(3,7,20,0.9));
  border: 1px solid rgba(150,80,255,0.4);
  border-radius: 20px; padding: 18px 20px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 40px rgba(120,60,220,0.18);
  transform: perspective(900px) rotateY(-3deg) rotateX(1deg);
  backdrop-filter: blur(6px);
}
.db-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: #9fb0d6; margin-bottom: 12px; }
.db-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-metric { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 11px; }
.db-k { display: block; font-size: 0.7rem; color: #8ea0c6; }
.db-v { display: block; font-size: 1.35rem; font-weight: 800; color: var(--white); margin: 2px 0 4px; }
.spark { width: 100%; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(0,217,247,0.5)); }
.db-sub { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8ea0c6; margin: 15px 0 8px; }
.db-flow { width: 100%; height: 62px; }
.db-flow line { stroke: rgba(150,170,220,0.4); stroke-width: 1.3; }
.db-flow .nb { fill: rgba(40,110,220,0.55); stroke: #2385ff; stroke-width: 1; }
.db-flow .nv { fill: rgba(130,70,240,0.5); stroke: #9850ff; stroke-width: 1; }
.db-int { display: flex; gap: 8px; }
.db-int span { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, rgba(35,133,255,0.25), rgba(150,80,255,0.25)); border: 1px solid rgba(255,255,255,0.08); }

/* ═══ Capa 5 · grieta eléctrica ═══ */
.crack-fog {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 220px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(180,210,225,0.16), rgba(0,232,255,0.05) 45%, rgba(30,60,140,0.22) 55%, rgba(10,20,50,0.28));
  filter: blur(14px);
}
.crack {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 100%; z-index: 6; pointer-events: none;
  overflow: visible;
}
.crack path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#bolt {
  stroke: var(--electric-cyan); stroke-width: 2.4;
  filter:
    drop-shadow(0 0 3px #f5fdff)
    drop-shadow(0 0 8px var(--electric-cyan))
    drop-shadow(0 0 20px rgba(24,139,255,0.9))
    drop-shadow(0 0 46px rgba(24,139,255,0.5));
  animation: flicker 5s ease-in-out infinite;
}
#branch1, #branch3 { stroke: var(--purple); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(150,80,255,0.8)); opacity: 0.8; }
#branch2 { stroke: var(--electric-cyan); stroke-width: 1.4; filter: drop-shadow(0 0 6px var(--electric-cyan)); opacity: 0.75; }
@keyframes flicker { 0%,100% { opacity: 1; } 48% { opacity: 0.9; } 52% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #bolt { animation: none; } }

/* ═══ Capa 6 · marca superior ═══ */
.brand-plate {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 8;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 26px;
  background: rgba(4,10,26,0.72);
  border: 1px solid rgba(0,232,255,0.6);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  box-shadow: 0 0 24px rgba(0,232,255,0.28), inset 0 0 12px rgba(0,232,255,0.08);
}
.bp-text { font-family: var(--brand); font-weight: 550; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: 0.16em; color: var(--white); text-shadow: 0 0 10px rgba(0,232,255,0.5); }
.bp-ray { width: 26px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--electric-cyan)); box-shadow: 0 0 6px var(--electric-cyan); }
.bp-ray.left { background: linear-gradient(270deg, transparent, var(--electric-cyan)); }

/* ═══ isotipo central ═══ */
.emblem {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); z-index: 8;
  width: clamp(120px, 10vw, 152px);
}
.emblem svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 26px rgba(66,106,255,0.55)); }
.hex-fill { fill: #050b1c; }
.hex-stroke { fill: none; stroke: url(#hexb); stroke-width: 3; }
.ess { fill: none; stroke: url(#steel); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(10,30,60,0.6)); }

/* ═══ Paquetes · banda en flujo, todo el ancho ═══ */
.packages {
  position: relative; z-index: 7; text-align: center;
  padding: clamp(52px, 9vh, 104px) 20px clamp(58px, 10vh, 112px);
  background:
    radial-gradient(ellipse 62% 82% at 50% 0%, rgba(18,46,105,0.42), transparent 68%),
    linear-gradient(180deg, #01030d, #050b1c);
}
.paq-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 22px; }
.paq-head h3 { font-size: clamp(1.1rem, 1.7vw, 1.6rem); font-weight: 650; letter-spacing: 0.38em; color: var(--white); text-indent: 0.38em; }
.ph-line { width: clamp(60px, 8vw, 108px); height: 1px; background: rgba(230,235,240,0.5); position: relative; }
.ph-line.left::after, .ph-line.right::before { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%; transform: translateY(-50%); }
.ph-line.left::after { right: 0; background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }
.ph-line.right::before { left: 0; background: var(--purple); box-shadow: 0 0 7px var(--purple); }

.paq-cards { display: flex; gap: 20px; justify-content: center; align-items: stretch; flex-wrap: wrap; padding: 0 20px; }
.pcard {
  width: 275px; min-height: 172px; border-radius: 26px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  text-align: left; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: default;
}
.pcard:hover { transform: translateY(-5px); }
.pcard p { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.pc-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.pc-ic svg { width: 26px; height: 26px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pcard-workshop { background: rgba(247,250,251,0.92); border: 1px solid var(--cyan); box-shadow: 0 0 26px rgba(0,213,255,0.28); color: #10243a; }
.pcard-workshop:hover { box-shadow: 0 8px 34px rgba(0,213,255,0.4); }
.ic-cyan { background: rgba(0,207,243,0.14); } .ic-cyan svg { stroke: #0b7f91; }
.pcard-both { background: linear-gradient(115deg, rgba(225,231,234,0.86) 0%, rgba(85,105,135,0.72) 48%, rgba(20,26,61,0.9) 100%); border: 1px solid transparent; border-image: linear-gradient(115deg, var(--cyan), var(--purple)) 1; color: var(--white); box-shadow: 0 0 26px rgba(90,110,200,0.3); }
.ic-white { background: rgba(255,255,255,0.18); } .ic-white svg { stroke: #fff; }
.pcard-lab { background: rgba(5,10,31,0.94); border: 1px solid var(--purple); box-shadow: 0 0 26px rgba(135,60,255,0.35); color: var(--white); }
.pcard-lab:hover { box-shadow: 0 8px 34px rgba(135,60,255,0.5); }
.ic-violet { background: rgba(150,80,255,0.16); } .ic-violet svg { stroke: #b07bff; }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .dashboard { left: auto; right: -6%; top: 40%; width: 300px; }
  .col { padding-top: 10svh; }
}
@media (max-width: 768px) {
  .hero { overflow: visible; }
  .bg-workshop, .bg-lab { position: relative; width: 100%; min-height: 100svh; }
  .bg-workshop { left: 0; } .bg-lab { right: 0; }
  .content { position: absolute; top: 0; grid-template-columns: 1fr; min-height: 0; padding-bottom: 0; }
  .col { min-height: 100svh; padding: 15svh 24px 32vh; }
  .col-lab { min-height: 100svh; }
  .crack, .crack-fog { display: none; }
  .workshop-photo { width: 60%; height: 30%; }
  #wave { width: 100%; height: 30%; }
  .dashboard { position: relative; left: 0; right: 0; top: 0; width: 100%; margin-top: 32px; transform: none; }
  .emblem { top: 100svh; }
  .brand-plate { top: 14px; }
  .paq-cards { flex-direction: column; align-items: center; }
  .pcard { width: min(340px, 88vw); }
}
