/* AmerConex - estilos custom (complemento a Tailwind CDN) */

:root {
  --c-bg:        #fafafa;
  --c-bg-dark:   #0b1120;
  --c-surface:   #ffffff;
  --c-surface-d: #111827;
  --c-border:    #e5e7eb;
  --c-border-d:  #1f2937;
  --c-text:      #0f172a;
  --c-text-d:    #f1f5f9;
  --c-primary:   #0ea5e9;
  --c-primary-h: #0284c7;
  --c-accent:    #14b8a6;
  --c-success:   #10b981;
  --c-danger:    #ef4444;
  --c-warning:   #f59e0b;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4, h5, h6, .display {
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.font-mono, code, pre, .num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-feature-settings: "zero", "ss01";
}

/* Hero gradient */
.hero-gradient {
  background:
    radial-gradient(ellipse at top right, rgba(14, 165, 233, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(20, 184, 166, 0.14), transparent 50%);
}

.dark .hero-gradient {
  background:
    radial-gradient(ellipse at top right, rgba(14, 165, 233, 0.30), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(20, 184, 166, 0.20), transparent 50%);
}

/* Grid de fondo sutil */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.dark .grid-bg {
  background-image:
    linear-gradient(to right, rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
}

/* Botón primario */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}
.btn-primary:active { transform: translateY(0); }

/* Card con borde gradiente sutil */
.card-elevated {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 1rem;
  transition: all 0.2s;
}
.dark .card-elevated {
  background: var(--c-surface-d);
  border-color: var(--c-border-d);
}
.card-elevated:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.badge-danger  { background: rgba(239, 68, 68, 0.12);  color: #ef4444; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.badge-info    { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
.badge-neutral { background: rgba(100, 116, 139, 0.12); color: #64748b; }

/* Status dot animado */
.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: currentColor;
  position: relative;
}
.status-dot.live::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.4;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  color: var(--c-text);
  font-size: 0.95rem;
  transition: all 0.15s;
}
.dark .input {
  background: var(--c-surface-d);
  border-color: var(--c-border-d);
  color: var(--c-text-d);
}
.input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Animación entrada */
.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

/* Scroll-bar custom */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.5);
}

/* Marquee de logos / tickers */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
