/* ============================================================
   CloudIT — Design System
   Concepto: la marca ES un panel de operaciones. CloudIT vive
   monitoreando redes de forma remota, así que el sitio adopta
   el lenguaje visual de un centro de operaciones (NOC): nodos,
   pulsos de estado, líneas de datos, tipografía monoespaciada
   para las métricas. Nada de esto es decorativo — es lo que la
   empresa hace todos los días.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color — extraído del logo (nube en degradé cian/teal sobre azul noche) */
  --bg-950: #060d15;
  --bg-900: #0a1622;
  --bg-800: #0f2130;
  --bg-700: #17324a;
  --bg-600: #1f4560;

  --cyan-300: #7fe6f6;
  --cyan-400: #34d3ee;
  --cyan-500: #17aed4;
  --teal-400: #2bd9b0;
  --teal-600: #0f9c82;

  --ink-050: #eef7fa;
  --ink-200: #c3d7e2;
  --ink-400: #8ba7b8;
  --ink-600: #4f7180;
  --ink-muted: #6c8898;

  --status-live: #35e39f;
  --status-warn: #f5b942;

  --line: rgba(140, 190, 210, 0.14);
  --line-strong: rgba(140, 190, 210, 0.28);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-950);
  color: var(--ink-050);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* fondo ambiental fijo: velo de color saturado por cada servicio +
     textura de estrellas/nodos — visible, no un susurro */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(950px 700px at 8% -12%, rgba(52, 211, 238, 0.32), transparent 62%),
    radial-gradient(850px 750px at 98% 2%, rgba(192, 132, 252, 0.30), transparent 60%),
    radial-gradient(1000px 800px at 48% 42%, rgba(52, 211, 153, 0.20), transparent 64%),
    radial-gradient(900px 700px at 2% 100%, rgba(56, 189, 248, 0.26), transparent 60%),
    radial-gradient(800px 650px at 100% 102%, rgba(251, 191, 36, 0.22), transparent 58%),
    radial-gradient(700px 600px at 58% 100%, rgba(129, 140, 248, 0.20), transparent 58%),
    radial-gradient(1px 1px at 12% 22%, rgba(127, 230, 246, 0.35), transparent),
    radial-gradient(1px 1px at 78% 10%, rgba(127, 230, 246, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 42% 68%, rgba(43, 217, 176, 0.3), transparent),
    radial-gradient(1px 1px at 88% 78%, rgba(127, 230, 246, 0.2), transparent),
    radial-gradient(1px 1px at 24% 88%, rgba(43, 217, 176, 0.22), transparent),
    radial-gradient(1.5px 1.5px at 60% 35%, rgba(127, 230, 246, 0.28), transparent);
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink-050);
}

p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 0 3px rgba(53, 227, 159, 0.18);
  animation: pulse-dot 2.2s var(--ease-in-out) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 227, 159, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(53, 227, 159, 0.06); }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out), background 160ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-400), var(--teal-400));
  color: #06141c;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px -10px rgba(52, 211, 238, 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -8px rgba(52, 211, 238, 0.7); transform: translateY(-1px); }
}

.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--ink-050);
  border-color: var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--cyan-400); background: rgba(52, 211, 238, 0.06); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 20px 0;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  background: rgba(9, 19, 29, 0.66);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 40px -18px rgba(0,0,0,0.6);
  pointer-events: auto;
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.brand .accent { color: var(--cyan-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-200);
  border-radius: 999px;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink-050); background: rgba(255,255,255,0.06); }
}
.nav-links a.active { color: var(--bg-950); background: linear-gradient(120deg, var(--cyan-300), var(--teal-400)); font-weight: 600; }
.nav-links a.active::after { content: none; }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 10px 18px; border-radius: 999px; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-050);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  .mobile-menu {
    flex-direction: column;
    gap: 3px;
    margin: 8px auto 0;
    max-width: calc(var(--container) + 40px);
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(9, 19, 29, 0.92);
    backdrop-filter: blur(16px);
    pointer-events: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 13px 14px;
    font-size: 15px;
    color: var(--ink-200);
    border-radius: 12px;
  }
  .mobile-menu a.active { color: var(--cyan-300); background: rgba(52,211,238,0.08); }
  .mobile-menu .btn { margin-top: 8px; border-radius: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan-300), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17.5px;
  color: var(--ink-200);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats .stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-050);
}
.hero-stats .stat span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Signature element: mapa de red animado */
.net-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}

.net-panel svg { width: 100%; height: 100%; overflow: visible; }

.net-line {
  fill: none;
  stroke: url(#lineGrad);
  stroke-width: 1.4;
  stroke-dasharray: 6 7;
  opacity: 0.55;
  animation: dash-flow 6s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -260; } }

.net-pulse-line {
  fill: none;
  stroke: var(--cyan-400);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 22 500;
  opacity: 0.9;
  animation: pulse-travel 3.4s linear infinite;
}
@keyframes pulse-travel { to { stroke-dashoffset: -522; } }

.net-node {
  animation: node-breathe 3.6s var(--ease-in-out) infinite;
}
@keyframes node-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.18); opacity: 1; }
}

.net-node-core {
  animation: core-glow 4.4s var(--ease-in-out) infinite;
  transform-origin: center;
}
@keyframes core-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(52, 211, 238, 0.45)); }
  50% { filter: drop-shadow(0 0 22px rgba(52, 211, 238, 0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  .net-line, .net-pulse-line, .net-node, .net-node-core { animation: none; }
}

/* ---------- Ticker (estado en vivo) ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-900);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: ticker-scroll 34s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-400);
  white-space: nowrap;
}
.ticker-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 8px rgba(53, 227, 159, 0.6);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* ---------- Sections ---------- */
section { position: relative; padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.section-head p { color: var(--ink-200); font-size: 16px; }

.section-alt {
  background:
    radial-gradient(700px 420px at 12% 0%, rgba(192, 132, 252, 0.05), transparent 65%),
    radial-gradient(700px 420px at 88% 100%, rgba(52, 211, 238, 0.06), transparent 65%),
    linear-gradient(180deg, transparent, rgba(15, 33, 48, 0.5), transparent);
}

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background:
    radial-gradient(160px 120px at 100% 0%, rgba(52, 211, 238, 0.05), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); }
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(52,211,238,0.16), rgba(43,217,176,0.1));
  border: 1px solid rgba(52,211,238,0.25);
  margin-bottom: 18px;
  color: var(--cyan-300);
}
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--ink-400); font-size: 14.5px; line-height: 1.65; }

/* ---------- Tinted tile: tarjeta con color real de marca (borde, ícono
   relleno, franja superior y halo), usada en homepage/servicios/nosotros ---------- */
.card.tinted-tile {
  position: relative;
  overflow: hidden;
  color: var(--tile-accent, var(--cyan-400));
  border-color: color-mix(in srgb, currentColor 38%, var(--line));
  background:
    radial-gradient(220px 170px at 100% 0%, color-mix(in srgb, currentColor 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.card.tinted-tile::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, currentColor, transparent 85%);
}
@media (hover: hover) and (pointer: fine) {
  .card.tinted-tile:hover { border-color: color-mix(in srgb, currentColor 65%, var(--line)); }
}
.card.tinted-tile .card-icon {
  color: currentColor;
  background: linear-gradient(135deg, color-mix(in srgb, currentColor 34%, transparent), color-mix(in srgb, currentColor 12%, transparent));
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  box-shadow: 0 0 18px -6px currentColor;
}
.card.tinted-tile .tile-viz-sm { margin-top: 16px; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* stagger via inline --d custom property set by JS or nth-child */
.grid-3 .reveal:nth-child(1), .grid-2 .reveal:nth-child(1) { transition-delay: 0ms; }
.grid-3 .reveal:nth-child(2), .grid-2 .reveal:nth-child(2) { transition-delay: 70ms; }
.grid-3 .reveal:nth-child(3) { transition-delay: 140ms; }

/* ---------- Process (línea de tiempo real: flujo remoto) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } }

.process-step { position: relative; padding: 0 22px 0 0; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px; right: -2px;
  width: calc(100% - 44px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
@media (max-width: 900px) {
  .process-step:not(:last-child)::after { display: none; }
  .process-step { padding: 0 0 34px 0; }
}
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-300);
  border: 1px solid var(--line-strong);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: var(--bg-900);
  position: relative; z-index: 1;
}
.process-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { color: var(--ink-400); font-size: 14px; }

/* ---------- Stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band .stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  background: linear-gradient(120deg, var(--cyan-300), var(--teal-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-band .stat span { font-size: 13px; color: var(--ink-400); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-l);
  padding: 56px 48px;
  background: linear-gradient(135deg, rgba(52,211,238,0.1), rgba(43,217,176,0.06));
  border: 1px solid rgba(52,211,238,0.22);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta-band p { color: var(--ink-200); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink-200); font-size: 14.5px; transition: color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--cyan-300); }
}
.footer-brand p { color: var(--ink-400); font-size: 14px; max-width: 34ch; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12.5px; color: var(--ink-muted); }
.footer-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--status-live); }
.footer-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-live); box-shadow: 0 0 8px rgba(53,227,159,0.6); }

/* ---------- Page header (páginas interiores) ---------- */
.page-header { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.page-header p { color: var(--ink-200); max-width: 60ch; font-size: 16.5px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-400); font-family: var(--font-mono); }
.field input, .field select, .field textarea {
  background: var(--bg-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--ink-050);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(52, 211, 238, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* ---------- Service block (servicios.html) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: none; }
.service-block.reverse { grid-template-columns: 0.85fr 1fr; }
.service-block.reverse .service-text { order: 2; }
.service-block.reverse .readout { order: 1; }
@media (max-width: 900px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-text, .service-block.reverse .readout { order: unset; }
}

.service-text h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 14px 0 14px; }
.service-text > p { color: var(--ink-200); font-size: 15.5px; margin-bottom: 20px; }
.service-text ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.service-text li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-200); }
.service-text li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-400); }

.readout {
  background:
    radial-gradient(220px 140px at 100% 0%, rgba(192, 132, 252, 0.06), transparent 65%),
    var(--bg-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.readout-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
  color: var(--ink-muted); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.readout-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-live); box-shadow: 0 0 8px rgba(53,227,159,0.6); }
.readout-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; color: var(--ink-200); border-bottom: 1px dashed var(--line); }
.readout-row:last-child { border-bottom: none; }
.readout-row .ok { color: var(--status-live); }
.readout-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin: 4px 0 14px; }
.readout-bars span { flex: 1; background: linear-gradient(180deg, var(--cyan-400), var(--teal-600)); border-radius: 2px; opacity: 0.85; }

/* ============================================================
   Bento de servicios — cada tarjeta es distinta a propósito:
   tamaño, forma y la micro-visualización adentro cuentan qué
   hace ese servicio, en vez de repetir la misma caja seis veces.
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(170px, auto));
  gap: 16px;
  grid-template-areas:
    "ciber ciber soporte soporte"
    "ciber ciber monitoreo mesa"
    "ia ia monitoreo web";
}
@media (max-width: 980px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "ciber"
      "soporte"
      "monitoreo"
      "mesa"
      "ia"
      "web";
  }
}

.bento-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid color-mix(in srgb, currentColor 32%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, currentColor 10%, transparent), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  color: var(--tile-accent, var(--cyan-400));
  transition: border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento-tile:hover { border-color: color-mix(in srgb, currentColor 60%, var(--line-strong)); transform: translateY(-2px); }
}

/* franja de acento arriba: identifica el servicio de un vistazo */
.bento-tile::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, currentColor, transparent 90%);
  z-index: 1;
}

/* halo de color ambiental: cada servicio tiñe su propio rincón del tile,
   así se llenan los espacios vacíos con tono en vez de negro plano */
.bento-tile::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  right: -100px; bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.26;
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}
.bento-tile > * { position: relative; z-index: 1; }

.bento-ciber { grid-area: ciber; --tile-accent: #34d399; }
.bento-soporte { grid-area: soporte; --tile-accent: #22d3ee; }
.bento-monitoreo { grid-area: monitoreo; --tile-accent: #38bdf8; }
.bento-mesa { grid-area: mesa; --tile-accent: #fbbf24; }
.bento-ia { grid-area: ia; --tile-accent: #c084fc; }
.bento-web { grid-area: web; --tile-accent: #818cf8; }

.bento-tile .tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bento-tile h3 { font-size: 18px; }
.bento-tile > p.tile-line { color: var(--ink-200); font-size: 14px; margin-bottom: 16px; max-width: 40ch; }

.bento-tile .card-icon {
  color: currentColor;
  background: linear-gradient(135deg, color-mix(in srgb, currentColor 34%, transparent), color-mix(in srgb, currentColor 12%, transparent));
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  box-shadow: 0 0 18px -6px currentColor;
}

.bento-tile .tile-viz { margin-top: 4px; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.bento-tile details { margin-top: 16px; }
.bento-tile summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.bento-tile summary::-webkit-details-marker { display: none; }
.bento-tile summary::after {
  content: '+';
  font-size: 14px;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}
.bento-tile details[open] summary::after { transform: rotate(45deg); }
.bento-tile details ul {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.bento-tile details li {
  font-size: 13px; color: var(--ink-400); display: flex; gap: 8px;
}
.bento-tile details li::before { content: '—'; color: var(--ink-muted); flex-shrink: 0; }

/* ---- Ciberseguridad: escudo con línea de escaneo + checklist de estado ---- */
.viz-shield { width: 96px; height: 96px; position: relative; margin: 0 auto 4px 0; }
.viz-shield svg { width: 100%; height: 100%; }
.viz-shield .scan {
  position: absolute; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  animation: scan-sweep 2.8s var(--ease-in-out) infinite;
}
@keyframes scan-sweep {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 85%; opacity: 1; }
  60% { opacity: 0; }
  100% { top: 85%; opacity: 0; }
}
.viz-checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-400); }
.viz-checklist .check-row { display: flex; align-items: center; gap: 9px; }
.accent-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex-shrink: 0; }

/* ---- Soporte remoto: sesión conectando dos puntos + estado ---- */
.viz-session { display: flex; align-items: center; gap: 0; height: 40px; }
.viz-session .node { width: 11px; height: 11px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex-shrink: 0; }
.viz-session .node.you { background: var(--ink-400); box-shadow: none; }
.viz-session .link { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px); position: relative; margin: 0 8px; }
.viz-session .link::after {
  content: ''; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
  animation: session-travel 2.2s linear infinite;
}
@keyframes session-travel { 0% { left: 0; } 100% { left: calc(100% - 7px); } }
.session-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-top: 8px; }
.session-status { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-400); }

/* ---- Monitoreo: sparkline dibujándose en loop + lectura ---- */
.viz-spark { width: 100%; height: 68px; }
.viz-spark path {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 220;
  animation: spark-draw 3.2s var(--ease-in-out) infinite;
}
@keyframes spark-draw {
  0% { stroke-dashoffset: 220; opacity: 0.4; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.35; }
}
.spark-stats { display: flex; gap: 26px; margin-top: 18px; }
.spark-stats b { display: block; font-family: var(--font-mono); font-size: 18px; color: var(--ink-050); }
.spark-stats span { font-size: 11.5px; color: var(--ink-muted); }

/* ---- Mesa de ayuda: ticket recorriendo un mini kanban ---- */
.viz-kanban { display: flex; gap: 6px; height: 46px; }
.viz-kanban .col { flex: 1; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px dashed var(--line); position: relative; }
.viz-kanban .chip {
  position: absolute; left: 6px; right: 6px; top: 6px; height: 10px; border-radius: 4px;
  background: currentColor; box-shadow: 0 0 10px currentColor;
  animation: kanban-hop 3.6s var(--ease-in-out) infinite;
}
@keyframes kanban-hop {
  0%, 24% { transform: translateX(0); opacity: 1; }
  33%, 57% { transform: translateX(calc(100% + 6px)); opacity: 1; }
  66%, 90% { transform: translateX(calc(200% + 12px)); opacity: 1; }
  96%, 100% { transform: translateX(calc(200% + 12px)); opacity: 0.4; }
}
.kanban-labels { display: flex; gap: 6px; margin-top: 7px; }
.kanban-labels span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-muted); }

/* ---- IA: nodos de una mini red pulsando + texto "escribiéndose" ---- */
.viz-neural { width: 100%; height: 58px; }
.viz-neural circle { fill: currentColor; animation: neural-pulse 2.4s ease-in-out infinite; }
.viz-neural line { stroke: var(--line-strong); stroke-width: 1; }
.viz-neural circle:nth-child(1) { animation-delay: 0s; }
.viz-neural circle:nth-child(2) { animation-delay: 0.3s; }
.viz-neural circle:nth-child(3) { animation-delay: 0.6s; }
@keyframes neural-pulse {
  0%, 100% { r: 3.5; opacity: 0.6; }
  50% { r: 5.5; opacity: 1; }
}
.viz-typing { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-400); }
.viz-typing .typing-text::after { content: '▍'; margin-left: 2px; color: currentColor; animation: blink-caret 1s step-end infinite; }
@keyframes blink-caret { 50% { opacity: 0; } }

/* ---- Desarrollo web: mini navegador con líneas cargando + acción ---- */
.viz-browser { border-radius: 8px; border: 1px solid var(--line-strong); overflow: hidden; }
.viz-browser .chrome { display: flex; gap: 4px; padding: 7px 8px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line); }
.viz-browser .chrome span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); }
.viz-browser .body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.viz-browser .skel { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bg-700) 25%, var(--bg-600) 37%, var(--bg-700) 63%); background-size: 400% 100%; animation: skel-shimmer 2.2s ease-in-out infinite; }
@keyframes skel-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.web-btn {
  margin-top: 12px; display: inline-flex; width: fit-content;
  padding: 7px 15px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px;
  color: currentColor; background: color-mix(in srgb, currentColor 18%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .viz-shield .scan, .viz-session .link::after, .viz-spark path,
  .viz-kanban .chip, .viz-neural circle, .viz-browser .skel, .viz-typing .typing-text::after,
  .viz-bars span { animation: none; }
}

/* ---- Industria: barras tipo ecualizador, pulso de línea productiva ---- */
.viz-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.viz-bars span {
  flex: 1; border-radius: 3px; background: currentColor; opacity: 0.85;
  box-shadow: 0 0 10px -2px currentColor;
  animation: bars-pulse 2.6s var(--ease-in-out) infinite;
}
.viz-bars span:nth-child(1) { animation-delay: 0s; }
.viz-bars span:nth-child(2) { animation-delay: 0.15s; }
.viz-bars span:nth-child(3) { animation-delay: 0.3s; }
.viz-bars span:nth-child(4) { animation-delay: 0.45s; }
.viz-bars span:nth-child(5) { animation-delay: 0.6s; }
@keyframes bars-pulse {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

/* Contact info list */
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 14px; }
.info-item .card-icon { flex-shrink: 0; margin-bottom: 0; }
.info-item h4 { font-size: 15px; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--ink-400); font-size: 14.5px; }
.info-item a:hover { color: var(--cyan-300); }
