/* ═══════════════════════════════════════════
   Ingversia — style.css
   ═══════════════════════════════════════════ */

/* ── RESET + BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080c14;
  --bg2:         #0d1220;
  --border:      rgba(255,255,255,0.07);
  --border-blue: rgba(96,165,250,0.28);
  --text:        #f1f5f9;
  --muted:       #94a3b8;
  --faint:       #475569;
  --blue:        #60a5fa;
  --blue-deep:   #3b82f6;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* ── CANVAS FONDO ── */
#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── GLOW AMBIENTAL ── */
.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
}
.ambient-1 { width: 600px; height: 600px; top: -200px;  left: -150px;  background: #3b82f6; opacity: 0.10; }
.ambient-2 { width: 500px; height: 500px; bottom: -150px; right: -100px; background: #a78bfa; opacity: 0.09; }
.ambient-3 { width: 400px; height: 300px; top: 50%;    left: 40%;     background: #2dd4bf; opacity: 0.05; }

/* ── LAYOUT ── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 24px 80px;
}

/* ── BADGE ESTADO ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  font-size: 12px;
  font-weight: 500;
  color: #6ee7b7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}
/* Creamos el pulso con un pseudo-elemento animando transform/opacity */
.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot-efficient 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes pulse-dot-efficient {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ── LOGO / TÍTULO ── */
.logo-wrap { text-align: center; margin-bottom: 20px; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.logo-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-name {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
  display: inline-block; /* Evita variaciones de bloque inline */
}
.tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  text-align: center;
  text-rendering: optimizeLegibility;
  font-display: swap;
}
.tagline strong { color: var(--blue); font-weight: 500; }

/* ── SEPARADOR ── */
.divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(96,165,250,0.25), transparent);
  margin: 36px auto;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-bottom: 20px;
}

/* ── GRID DE LÍNEAS ── */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 840px;
  margin-bottom: 40px;
}

.line-card {
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: var(--bg2);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.line-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* IVIA — activa */
.card-ivia {
  border-color: var(--border-blue);
  background: linear-gradient(135deg, #0d1220 0%, #0f1a30 100%);
}
.card-ivia::before {
  background: radial-gradient(ellipse at top left, rgba(59,130,246,0.1) 0%, transparent 70%);
}
.card-ivia:hover {
  border-color: rgba(96,165,250,0.6);
  transform: translateY(-3px);
}
.card-ivia:hover::before { opacity: 1; }

/* Próximamente */
.card-coming {
  border-color: rgba(255,255,255,0.04);
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ivia-icon   { background: rgba(59,130,246,0.14);  border: 1px solid rgba(59,130,246,0.25); }
.print-icon  { background: rgba(167,139,250,0.10); border: 1px solid rgba(167,139,250,0.18); }
.auto-icon   { background: rgba(45,212,191,0.10);  border: 1px solid rgba(45,212,191,0.18); }
.nexus-icon  { background: rgba(251,191,36,0.10);  border: 1px solid rgba(251,191,36,0.18); }

.card-status-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.pill-live { background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.pill-soon { background: rgba(71,85,105,0.25);  color: var(--faint); border: 1px solid rgba(71,85,105,0.2); }

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.card-ivia .card-name { color: var(--blue); }

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  margin-top: 4px;
}
.card-link-arrow { transition: transform 0.2s; }
.card-ivia:hover .card-link-arrow { transform: translateX(4px); }

/* ── EN CONSTRUCCIÓN ── */
.under-construction {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(251,191,36,0.05);
  border: 1px solid rgba(251,191,36,0.2);
  font-size: 0.82rem;
  color: #fbbf24;
  max-width: 560px;
  width: 100%;
  line-height: 1.6;
  margin-bottom: 40px;
}
.uc-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── BOTONES UTILIDADES ── */
.utilities-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.btn-util {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-util:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ── FOOTER ── */
.footer {
  font-size: 0.75rem;
  color: #94a3b8; /* Cambiado de var(--faint) a un gris claro legible */
  text-align: center;
  line-height: 1.8;
}
.footer a {
  color: var(--blue); /* Usamos tu azul para resaltar el enlace de contacto */
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}
.footer a:hover {
  color: #93c5fd; /* Un azul aún más claro al pasar el cursor */
  text-decoration: underline;
}

/* ── ANIMACIONES ENTRADA ── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.55s ease forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
.d6 { animation-delay: 0.55s; }
.d7 { animation-delay: 0.65s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .logo-mark { gap: 10px; }
  .logo-name  { font-size: 2.6rem; letter-spacing: -1.5px; }
  .lines-grid { grid-template-columns: 1fr; }
}