/* home.css — landing page. Combina con base.css. */

main { position: relative; z-index: 1; width: 100%; }

/* ── Hero ── */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) 24px clamp(20px, 6vw, 40px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
  text-align: left;
  background: linear-gradient(115deg, var(--ink) 30%, var(--rose) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-meta {
  display: flex;
  gap: clamp(20px, 4vw, 36px);
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-art { display: flex; justify-content: center; align-items: center; }
.net-svg { width: 100%; max-width: 420px; height: auto; }

.node-core rect {
  animation: core-pulse 3s ease-in-out infinite;
  transform-origin: 220px 220px;
}
@keyframes core-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(232,72,127,0)); }
  50% { filter: drop-shadow(0 0 14px rgba(232,72,127,0.45)); }
}
.node-orbit circle {
  animation: orbit-float 4s ease-in-out infinite;
}
.node-orbit circle:nth-child(2) { animation-delay: -0.6s; }
.node-orbit circle:nth-child(3) { animation-delay: -1.2s; }
.node-orbit circle:nth-child(4) { animation-delay: -1.8s; }
.node-orbit circle:nth-child(5) { animation-delay: -2.4s; }
.node-orbit circle:nth-child(6) { animation-delay: -3s; }
@keyframes orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.node-petals ellipse { animation: petal-drift 6s ease-in-out infinite; }
.node-petals ellipse:nth-child(2) { animation-delay: -2s; }
.node-petals ellipse:nth-child(3) { animation-delay: -4s; }
@keyframes petal-drift {
  0%, 100% { transform: translate(0,0) rotate(0deg); opacity: 0.7; }
  50% { transform: translate(6px,-8px) rotate(12deg); opacity: 1; }
}
.net-lines path.flow {
  stroke-dasharray: 6 8;
  animation: flow-move 2.4s linear infinite;
}
@keyframes flow-move { to { stroke-dashoffset: -140; } }

@media (prefers-reduced-motion: reduce) {
  .node-core rect, .node-orbit circle, .node-petals ellipse, .net-lines path.flow { animation: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-title, .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  box-shadow: 0 18px 36px -20px rgba(139, 107, 255, 0.4);
}
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.feature-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ── Cómo funciona ── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.how-step {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.how-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(100deg, var(--rose-deep), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.how-step h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 8px; }
.how-step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ── Estado en vivo preview ── */
.stats-preview {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 36px);
  text-align: center;
}
.stats-preview-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px 1px var(--ok);
  animation: heartbeat 1.4s ease-in-out infinite;
}
.pulse.down { background: var(--warn); box-shadow: 0 0 8px 1px var(--warn); animation: none; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.35); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.stats-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 30px);
  background: linear-gradient(100deg, var(--rose-deep), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stats-preview-link { width: 100%; }

/* ── CTA final ── */
.cta-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 48px);
  text-align: center;
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 10px;
}
.cta-panel p { color: var(--ink-soft); margin: 0 0 24px; font-size: 14.5px; }

@media (max-width: 480px) {
  .stats-preview-grid { grid-template-columns: 1fr; gap: 18px; }
}
