/* ============================================================
   AIONIK Landing — aionik-landing.css
   Static premium landing page for Hostinger deployment
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg:        #080b14;
  --bg-2:      #0d1120;
  --surface:   #12162a;
  --surface-2: #1a1f38;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8eaf0;
  --text-2:    #8b90a5;
  --accent:    #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99,102,241,0.18);
  --green:     #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --white:     #ffffff;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,0.4);
  --max:       1140px;
  --nav-h:     72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 48px;
}
.highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: var(--white);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(99,102,241,0.35);
}
.btn-outline {
  color: var(--text);
  border: 1.5px solid var(--border);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-full { width: 100%; justify-content: center; padding: 16px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem !important;
  transition: all 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--accent-glow);
}
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  gap: 12px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 0;
}
.nav-mobile-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: var(--white) !important;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 120px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.08);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 28px;
}
.hero-title {
  margin-bottom: 24px;
  max-width: 720px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--accent-2); }
.contact-item svg { flex-shrink: 0; }
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }

/* ---------- PROPUESTA ---------- */
.propuesta { background: var(--bg-2); }
.propuesta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.propuesta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.propuesta-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-4px);
}
.propuesta-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.propuesta-card h3 { margin-bottom: 12px; }
.propuesta-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ---------- SPLIT LAYOUT ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-reverse .split-layout { direction: rtl; }
.split-reverse .split-layout > * { direction: ltr; }
.split-content .feature-list { margin-bottom: 36px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 14px;
}
.feature-list li svg { color: var(--green); flex-shrink: 0; }

/* ---------- VISUAL CARD (decorative) ---------- */
.split-visual { display: flex; justify-content: center; }
.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.visual-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.visual-card-header .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.visual-card-header span {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-left: 8px;
}
.visual-card-body { padding: 24px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-2);
}
.stat-label { font-size: 0.75rem; color: var(--text-2); }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
}
.bar:hover { opacity: 1; }

/* ---------- MEDIA BUYERS ---------- */
.media-buyers { background: var(--bg); }
.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.metric {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}
.metric-label { font-size: 0.75rem; color: var(--text-2); }
.progress-bars { display: flex; flex-direction: column; gap: 14px; }
.prog { display: flex; flex-direction: column; gap: 6px; }
.prog span { font-size: 0.75rem; color: var(--text-2); }
.prog-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--green) 0%, #4ade80 100%);
  border-radius: 100px;
}

/* ---------- COMO FUNCIONA ---------- */
.como-funciona {
  background: var(--bg-2);
}
.pasos-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-top: 60px;
}
.paso-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.paso-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-4px);
}
.paso-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.paso-card h3 { margin-bottom: 12px; }
.paso-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }
.paso-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 0;
  color: var(--text-2);
  opacity: 0.4;
}

/* ---------- FORMULARIO ---------- */
.formulario-section { background: var(--bg); }
.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.form-header { margin-bottom: 48px; }
.form-header .section-sub { margin: 0 auto 48px; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { margin-bottom: 24px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-2); opacity: 0.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b90a5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group select option { background: var(--bg-2); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ---------- CTA FINAL ---------- */
.cta-final { background: var(--bg-2); }
.cta-inner {
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(79,70,229,0.1) 100%);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 28px;
  padding: 80px 48px;
  text-align: center;
}
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom span { font-size: 0.8rem; color: var(--text-2); }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .propuesta-grid { grid-template-columns: repeat(2, 1fr); }
  .pasos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .paso-arrow { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .section { padding: 72px 0; }
  .split-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .split-reverse .split-layout { direction: ltr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .cta-inner { padding: 48px 28px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links { flex-direction: column; gap: 32px; }
  .propuesta-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-contact { flex-direction: column; gap: 12px; }
  .hero-scroll-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-line { animation: none; }
}
