/* ==========================================================
   COMPUIA — Página Web Informativa Express — Landing Page
   ========================================================== */

:root {
  /* Color tokens */
  --void: #05060d;
  --panel: #0b0e20;
  --panel-2: #0f1330;
  --line: #1c2450;
  --blue-deep: #12308f;
  --blue-electric: #2f6bff;
  --cyan: #34e7ff;
  --violet: #8b5cff;
  --magenta: #ff3fd8;
  --text-primary: #edeffb;
  --text-muted: #97a1c4;
  --text-faint: #5c6690;

  /* Type */
  --f-heading: 'Poppins', 'Montserrat', sans-serif;
  --f-body: 'Montserrat', 'Poppins', sans-serif;
  --f-tech: 'Orbitron', var(--f-heading);

  /* Layout */
  --max-w: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-heading); margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue-electric) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Background FX canvas ===== */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue-electric), var(--violet));
  color: #fff;
  box-shadow: 0 0 0 rgba(52, 231, 255, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px -6px rgba(139, 92, 255, 0.55), 0 0 18px -4px rgba(52, 231, 255, 0.45);
  filter: brightness(1.06);
}
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 17px 34px; font-size: 1.02rem; }

.link-ghost {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 92, 255, 0.18);
}
.header-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo { height: 65px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 6px;
  cursor: pointer;
}
.nav-toggle .bar { transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-3 { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 80% 15%, rgba(139, 92, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 10% 85%, rgba(52, 231, 255, 0.12), transparent 60%),
    var(--void);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border: 1px solid rgba(52, 231, 255, 0.3);
  border-radius: 999px;
  background: rgba(52, 231, 255, 0.06);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

/* --- Hero visual / mockup --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-frame {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 26, 60, 0.9), rgba(9, 11, 26, 0.95));
  border: 1px solid rgba(139, 92, 255, 0.28);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7), 0 0 60px -18px rgba(52, 231, 255, 0.28);
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0.2deg); }
  50% { transform: translateY(-12px) rotate(-0.2deg); }
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(139, 92, 255, 0.2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-c { background: var(--cyan); }
.dot-m { background: var(--violet); }
.dot-y { background: var(--magenta); }
.mockup-url {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-family: var(--f-tech);
  letter-spacing: 0.03em;
}
.mockup-screen {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.mockup-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(47, 107, 255, 0.28), rgba(5, 6, 13, 0.55) 70%);
  mix-blend-mode: multiply;
}
.hud-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-family: var(--f-tech);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 24, 0.72);
  border: 1px solid rgba(52, 231, 255, 0.35);
  backdrop-filter: blur(4px);
}
.hud-chip svg { color: var(--cyan); flex-shrink: 0; }
.hud-chip-1 { top: 14px; left: 14px; }
.hud-chip-2 { bottom: 14px; right: 14px; color: var(--violet); }
.hud-chip-2 svg { color: var(--violet); }

.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(11, 14, 32, 0.85);
  border: 1px solid rgba(139, 92, 255, 0.4);
  color: var(--cyan);
  z-index: 1;
  animation: floatY 6s ease-in-out infinite;
}
.node-a { top: 6%; left: -4%; animation-delay: 0.6s; }
.node-b { bottom: 10%; right: -3%; color: var(--violet); animation-delay: 1.2s; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.scroll-cue:hover { color: var(--cyan); opacity: 1; }
.scroll-dot { animation: scrollDot 2.2s ease-in-out infinite; }
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(8px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================
   SHARED SECTION STYLES
   ========================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 108px 0;
}
.section-alt { background: linear-gradient(180deg, var(--void), #070914 50%, var(--void)); }

.section-head { margin-bottom: 56px; max-width: 620px; }
.section-index {
  display: block;
  font-family: var(--f-tech);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-sub { color: var(--text-muted); font-size: 1.02rem; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   ARQUITECTURA WEB
   ========================================================== */
.arch-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.arch-connector {
  position: absolute;
  top: 34px;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: visible;
  z-index: 0;
}
.arch-flow { stroke-dashoffset: 0; animation: dashFlow 3.2s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -36; } }

.arch-node {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 16px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.arch-node:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 231, 255, 0.45);
  box-shadow: 0 16px 34px -18px rgba(52, 231, 255, 0.35);
}
.arch-num {
  display: block;
  font-family: var(--f-tech);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.arch-icon {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(52, 231, 255, 0.08);
  color: var(--cyan);
}
.arch-node h3 { font-size: 0.95rem; font-weight: 600; }

/* ==========================================================
   FUNCIONALIDADES
   ========================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: linear-gradient(160deg, rgba(20, 24, 52, 0.6), rgba(9, 11, 24, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 255, 0.4);
  box-shadow: 0 18px 34px -20px rgba(139, 92, 255, 0.4);
}
.feature-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(139, 92, 255, 0.1);
  color: var(--violet);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

/* ==========================================================
   OFERTA
   ========================================================== */
.offer-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: linear-gradient(150deg, rgba(18, 22, 50, 0.9), rgba(7, 8, 18, 0.95));
  border: 1px solid rgba(139, 92, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
}
.offer-panel-glow {
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, transparent, rgba(52, 231, 255, 0.22), transparent 30%);
  animation: rotateGlow 9s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes rotateGlow { to { transform: rotate(360deg); } }

.offer-main {
  position: relative;
  z-index: 1;
  padding: 48px 44px;
  border-right: 1px solid rgba(139, 92, 255, 0.18);
}
.offer-name { font-size: 1.15rem; font-weight: 600; margin-bottom: 26px; color: var(--text-primary); }
.offer-price-label {
  font-family: var(--f-tech);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.offer-price {
  font-family: var(--f-tech);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  background: linear-gradient(100deg, #fff, var(--cyan) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 30px;
}
.offer-currency { font-size: 0.55em; vertical-align: top; }
.offer-cop { font-size: 0.34em; margin-left: 8px; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }

.offer-bonus {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 63, 216, 0.08);
  border: 1px solid rgba(255, 63, 216, 0.35);
}
.offer-bonus-icon { color: var(--magenta); flex-shrink: 0; }
.offer-bonus p { font-size: 0.94rem; color: var(--text-primary); }
.bonus-tag {
  display: inline-block;
  font-family: var(--f-tech);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--void);
  background: linear-gradient(100deg, var(--magenta), var(--violet));
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 8px;
  animation: pulseTag 2.4s ease-in-out infinite;
}
@keyframes pulseTag {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 63, 216, 0.5); }
  50% { box-shadow: 0 0 16px rgba(255, 63, 216, 0.55); }
}

.offer-specs {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
}
.offer-specs li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.offer-specs li svg { color: var(--cyan); flex-shrink: 0; }
.offer-specs strong { color: var(--text-primary); font-weight: 600; }
.offer-tech strong { font-family: var(--f-tech); font-size: 0.78rem; letter-spacing: 0.02em; }

/* ==========================================================
   SERVICIOS ADICIONALES + CTA FINAL
   ========================================================== */
.section-final {
  position: relative;
  overflow: hidden;
  padding-bottom: 130px;
}
.final-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(52, 231, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 80%, rgba(139, 92, 255, 0.2), transparent 60%);
  z-index: 0;
}

.addon-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 76px;
}
.addon-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.addon-card:hover { border-color: rgba(52, 231, 255, 0.4); transform: translateY(-4px); }
.addon-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(52, 231, 255, 0.08);
  color: var(--cyan);
}
.addon-text h3 { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); line-height: 1.4; }
.addon-price {
  margin-left: auto;
  font-family: var(--f-tech);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  flex-shrink: 0;
  padding-left: 12px;
}

.final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.final-cta h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.35;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: var(--void);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { height: 26px; width: auto; opacity: 0.85; }
.footer-inner p { font-size: 0.82rem; color: var(--text-faint); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .hero-copy { text-align: left; }
  .node-a, .node-b { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-panel { grid-template-columns: 1fr; }
  .offer-main { border-right: none; border-bottom: 1px solid rgba(139, 92, 255, 0.18); }
  .arch-diagram { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .arch-connector { display: none; }
}

@media (max-width: 700px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 8, 18, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 255, 0.2);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
    padding: 10px 24px 22px;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .main-nav .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid rgba(139, 92, 255, 0.12);
  }
  .main-nav .btn { margin-top: 18px; justify-content: center; }
  .nav-toggle { display: block; }

  .hero { padding-top: calc(var(--header-h) + 24px); text-align: left; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .mockup-frame { max-width: 100%; }

  .section { padding: 76px 0; }
  .arch-diagram { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }

  .offer-main, .offer-specs { padding: 34px 26px; }
  .offer-bonus { flex-direction: column; text-align: center; gap: 10px; }

  .addon-grid { grid-template-columns: 1fr; }
  .addon-price { margin-left: 0; padding-left: 0; padding-top: 4px; }
  .addon-card { flex-wrap: wrap; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
  .arch-diagram { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
}
