/* ════════════════════════════════════════════════════════════
   ATSoftware — Sistema visual refinado (dark púrpura premium)
   Inspirado en la precisión de Supabase / Vercel
   ════════════════════════════════════════════════════════════ */

:root {
  /* Base — fondo profundo de marca con superficies estratificadas */
  --bg: #07001e;
  --bg-2: #0a0426;
  --surface: rgba(255, 255, 255, .025);
  --surface-2: rgba(255, 255, 255, .045);

  /* Hairlines */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .13);

  /* Texto */
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, .62);
  --fg-3: rgba(255, 255, 255, .42);
  --fg-4: rgba(255, 255, 255, .28);

  /* Marca */
  --purple: #9900cc;
  --purple-lt: #cc44ff;
  --blue: #4f79ea;
  --cyan: #1fcaff;
  --grad: linear-gradient(115deg, #9900cc 0%, #7b30d8 34%, #4f79ea 68%, #1fcaff 100%);
  --grad-text: linear-gradient(115deg, #cc44ff, #9a7bff, #1fcaff);

  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --sans: 'Inter', 'system-ui', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

.ats {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow: hidden;
}

/* ─── Eyebrow monoespaciado con corchetes ─── */
.ats-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.ats-eyebrow .br {
  color: var(--purple-lt);
  opacity: .7;
}

.ats-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 1px rgba(31, 202, 255, .7);
}

/* ─── Texto con gradiente ─── */
.ats-grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Botones ─── */
.ats-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.ats-btn-primary {
  color: #fff;
  position: relative;
  background: var(--grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset,
    0 8px 30px -8px rgba(153, 0, 204, .55);
}

.ats-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 14px 40px -10px rgba(153, 0, 204, .7);
}

.ats-btn-ghost {
  color: var(--fg);
  background: var(--surface-2);
  border-color: var(--line-2);
}

.ats-btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}

/* ─── Nav ─── */
.ats-nav {
  height: 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 0, 30, .6);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 20;
}

.ats-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ats-nav-brand img {
  height: 26px;
  width: auto;
}

.ats-nav-brand .wm {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}

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

.ats-nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-3);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.ats-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.ats-nav-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 10px;
}

.ats-nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  transition: background .15s, border-color .15s;
}

.ats-nav-cta:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .24);
}

/* ─── Fondos decorativos refinados ─── */
.ats-grid-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}

.ats-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

/* ─── Placeholder de imagen (striped + label mono) ─── */
.ats-ph {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .02);
  background-image: repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, .04) 0 1px,
      transparent 1px 11px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ats-ph .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-4);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 5px 12px;
  background: rgba(7, 0, 30, .5);
}

/* ─── Línea de gradiente fina ─── */
.ats-hr-grad {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(153, 0, 204, .5), rgba(31, 202, 255, .4), transparent);
}

/* ─── Tarjeta de servicio ─── */
.ats-card {
  position: relative;
  border-radius: 18px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s, background .25s, transform .25s;
  overflow: hidden;
}

.ats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s;
}

.ats-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.ats-card:hover::before {
  opacity: .8;
}

.ats-card.hl {
  background: linear-gradient(165deg, rgba(153, 0, 204, .10), rgba(31, 202, 255, .04));
  border-color: rgba(153, 0, 204, .32);
}

.ats-card.hl::before {
  opacity: .9;
}

.ats-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-lt);
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(153, 0, 204, .10);
  border: 1px solid rgba(153, 0, 204, .28);
}

.ats-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(153, 0, 204, .14);
  border: 1px solid rgba(153, 0, 204, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--purple-lt);
}

/* ─── Mapa de productos (hub-and-spoke) ─── */
@keyframes ats-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: .85;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes ats-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ats-dash {
  to {
    stroke-dashoffset: -14;
  }
}

.ats-edge {
  stroke-dasharray: 4 10;
  animation: ats-dash 1.8s linear infinite;
}

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

.ats-hub {
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2a0055, #0a001f);
  border: 2px solid rgba(153, 0, 204, .9);
  box-shadow: 0 0 0 10px rgba(153, 0, 204, .06),
    0 0 56px rgba(153, 0, 204, .45),
    inset 0 0 20px rgba(153, 0, 204, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ats-node {
  border-radius: 12px;
  text-align: center;
  background: rgba(8, 0, 32, .82);
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ats-node:hover {
  background: rgba(110, 0, 170, .2);
  border-color: rgba(153, 0, 204, .85);
  box-shadow: 0 0 32px rgba(153, 0, 204, .4), 0 8px 32px rgba(0, 0, 0, .55);
  transform: translateY(-1px);
}

.ats-node.star {
  background: rgba(80, 0, 130, .14);
  border-color: rgba(153, 0, 204, .5);
  box-shadow: 0 0 20px rgba(153, 0, 204, .2), 0 4px 20px rgba(0, 0, 0, .4);
}

/* ─── Ventana de producto (browser chrome) ─── */
.ats-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

/* ─── Fixed nav container ─── */
.ats-page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* ─── Contenedores responsive ─── */
.container-responsive {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

.py-responsive {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ─── Grids responsive ─── */
.grid-responsive-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ════════════════════════════════════════════════════════════
   MEDIA QUERIES - RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .container-responsive {
    padding-left: 40px;
    padding-right: 40px;
  }

  .py-responsive {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .grid-responsive-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ats-nav {
    padding: 0 40px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .container-responsive {
    padding-left: 64px;
    padding-right: 64px;
  }

  .py-responsive {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .ats-nav {
    padding: 0 20px;
  }

  .ats-nav-brand .wm {
    font-size: 15px;
  }

  .ats-nav-links {
    gap: 2px;
  }

  .ats-nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }

  .ats-nav-cta {
    font-size: 12px;
    padding: 7px 14px;
  }

  /* Ocultar algunos links en mobile si es necesario */
  .ats-nav-sep {
    margin: 0 4px;
  }
}

box-shadow: 0 8px 26px -8px rgba(153, 0, 204, .6);
}

.ats-page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.ats-window {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(153, 0, 204, .10),
    0 0 60px -10px rgba(153, 0, 204, .25);
}

.ats-window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line);
}

.ats-window-bar .tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.ats-window-bar .url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 12px;
}