/* ═══════════════════════════════════════════════════════════════
   FractAIll · Componentes específicos v3
   Más vida visual: spotlight, orbes, marquee, contadores
   ─────────────────────────────────────────────────────────────── */

/* ───────── PRODUCT HERO ───────── */
.product-hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
  position: relative;
}
.product-hero .product-symbol {
  width: 120px; height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  box-shadow: 0 30px 80px -16px rgba(255, 122, 41, 0.6);
  margin-bottom: 36px;
  animation: float 6s ease-in-out infinite;
}

/* ───────── DEEP FEATURES ───────── */
.deep-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  padding: clamp(80px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--border);
}
.deep-feature.reverse > .deep-text { order: 2; }
.deep-feature .deep-text h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.deep-feature .deep-text .eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.deep-feature .deep-text p {
  font-size: 19px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.deep-visual {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 0;
  min-height: 360px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.deep-visual::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.deep-visual img.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  position: relative;
  z-index: 1;
  align-self: center;
}
.visual-card {
  position: relative;
  z-index: 1;
  padding: 44px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.visual-card .vc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}
.visual-card .vc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.visual-card .vc-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.visual-card .vc-bullets li:last-child { border-bottom: none; }
.visual-card .vc-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .deep-feature { grid-template-columns: 1fr; gap: 48px; padding: 60px 0; }
  .deep-feature.reverse > .deep-text { order: 0; }
  .deep-visual { min-height: 240px; }
  .visual-card { padding: 32px; }
}

/* ───────── BIG CTA ───────── */
.big-cta {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  background: radial-gradient(ellipse at center, rgba(255, 122, 41, 0.1) 0%, transparent 70%);
  position: relative;
}
.big-cta h2 {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #C8CBD2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.big-cta p {
  color: var(--text-dim);
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   ÁREA NUEVA: efectos visuales que dan vida
   ─────────────────────────────────────────────────────────────── */

/* ───────── ORBES FLOTANTES (fondo) ───────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatOrb 18s ease-in-out infinite;
}
.orb-1 {
  width: 420px; height: 420px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(255, 122, 41, 0.55), transparent 70%);
  animation-delay: 0s;
}
.orb-2 {
  width: 520px; height: 520px;
  top: 25%; right: -180px;
  background: radial-gradient(circle, rgba(201, 89, 25, 0.45), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}
.orb-3 {
  width: 380px; height: 380px;
  bottom: 5%; left: 35%;
  background: radial-gradient(circle, rgba(255, 122, 41, 0.32), transparent 70%);
  animation-delay: -12s;
  animation-duration: 26s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.08); }
  66%      { transform: translate(-30px, 50px) scale(0.95); }
}

/* ───────── SPOTLIGHT CARDS (luz que sigue cursor) ───────── */
.spot-card {
  position: relative;
  overflow: hidden;
}
.spot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 280px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 122, 41, 0.18) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.spot-card:hover::after { opacity: 1; }
.spot-card > * { position: relative; z-index: 2; }

/* ───────── STATS CARDS (con div, no span) ───────── */
.stats-section { padding: clamp(60px, 8vw, 120px) 0; position: relative; overflow: hidden; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--t);
  text-align: left;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 0;
}
.stat-card:hover {
  border-color: var(--border-accent);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.stat-num-box {
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin: 8px 0 16px;
  display: block;
}
.stat-lbl {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
  display: block;
}
.stat-detail {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  display: block;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 28px 24px; }
}

/* ───────── BENTO GRID (productos asimétrico) ───────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--t);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.bento-item:hover {
  border-color: var(--border-accent);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.bento-item .bento-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 16px;
}
.bento-item h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.bento-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}
.bento-item .bento-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.bento-item .bento-foot::after {
  content: '→';
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.bento-item:hover .bento-foot::after {
  background: var(--accent);
  color: #fff;
  transform: translateX(4px);
}
.bento-item.size-2 { grid-column: span 3; }
.bento-item.size-3 { grid-column: span 4; grid-row: span 1; }
.bento-item.size-tall { grid-column: span 2; grid-row: span 2; }
.bento-item.size-wide { grid-column: span 4; }
.bento-item.size-small { grid-column: span 2; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .bento-item.size-2, .bento-item.size-3, .bento-item.size-tall, .bento-item.size-wide, .bento-item.size-small { grid-column: span 1; grid-row: span 1; }
}

/* ───────── MARQUEE (banda horizontal con nombres) ───────── */
.marquee {
  overflow: hidden;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-elev), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg-elev), transparent); }

.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-soft);
}
.marquee-item .em {
  font-size: 28px;
}
.marquee-item .sep {
  color: var(--accent);
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────── INSTALL STEPS ───────── */
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 760px;
  margin: 0 auto;
}
.install-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.step-list .step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.step-list .step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
  padding-top: 4px;
}
.step-text code {
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

/* ───────── AUTH FORMS ───────── */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}
.auth-card h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.auth-card .auth-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 36px;
}
.auth-form > * + * { margin-top: 22px; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 32px;
}
.auth-divider a { color: var(--accent); font-weight: 600; }

/* ───────── DASHBOARD ───────── */
.dash-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 72px);
}
.dash-side {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 36px 24px;
}
.dash-side .user-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.dash-side .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.dash-side nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 4px;
  transition: all var(--t-fast);
}
.dash-side nav a:hover, .dash-side nav a.active {
  background: var(--surface);
  color: var(--text);
}
.dash-side nav a.active { color: var(--accent); }
.dash-main { padding: 56px 64px; }
.dash-main h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.dash-main .dash-sub { color: var(--text-dim); margin-bottom: 40px; font-size: 16px; }

@media (max-width: 800px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-main { padding: 32px 24px; }
}

/* ───────── BADGES ───────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: rgba(0, 199, 108, 0.12); color: var(--success); }
.badge-warn { background: rgba(255, 204, 0, 0.12); color: var(--amber); }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-mute { background: var(--surface-2); color: var(--text-dim); }

/* ───────── FAQ ───────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.faq-item summary {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 28px;
  font-weight: 300;
  transition: transform var(--t);
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 800px;
}
