/* ============================================================
   INDEX.CSS — Página de inicio
   ============================================================ */

/* -- HERO -- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: url('../fonditourban.png') center center/cover no-repeat;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(8, 10, 14, 0.2), rgba(5, 7, 10, 0.66) 62%),
    linear-gradient(180deg, rgba(8, 11, 14, 0.35) 0%, rgba(7, 9, 13, 0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  mix-blend-mode: screen;
}

/* Grid de líneas de fondo */
.hero-grid {
  display: none;
}

.hero-glow {
  display: none;
}

.hero-content {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.35rem;
  padding: clamp(1.35rem, 2vw, 1.9rem) clamp(1.3rem, 2.6vw, 2.2rem);
  max-width: 760px;
}

.hero-title {
  font-family: var(--font-head), var(--font-ui), sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--orange-2);
}

.hero-accent {
  display: inline-block;
  color: var(--orange-2);
  position: relative;
  padding-bottom: 0.08em;
  font-family: var(--font-head), var(--font-ui), sans-serif;
  font-feature-settings: normal;
  font-variant-ligatures: none;
}

.hero-accent-word {
  font-family: var(--font-ui), Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-synthesis: none;
  font-variant-ligatures: none;
  text-rendering: optimizeLegibility;
}

/* Línea bajo el acento */
.hero-accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2), transparent);
  border-radius: 1px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #e2e8f0;
  max-width: 560px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

.hero .btn-outline {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(8, 12, 16, 0.42);
}

.hero .btn-outline:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(8, 12, 16, 0.62);
}

/* -- Mini stats en hero -- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.5rem;
  background: rgba(8, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 14px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
}

.hstat-n {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange-2);
  line-height: 1;
}

.hstat-s {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  margin-left: 2px;
}

.hstat-l {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hstat-sep {
  width: 1px; height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll line */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--orange), transparent);
  margin: 0 auto;
  animation: float 2s ease-in-out infinite;
}

/* Logo bubble animation */
.bubble-logo {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('../urbanlegacy.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0,0,0);
  z-index: 5;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
  animation: bubbleAscend 4s ease-in forwards;
}

@keyframes bubbleAscend {
  0% {
    opacity: 0.18;
    transform: translateY(0) scale(0.6);
  }
  20% {
    opacity: 0.95;
    transform: translateY(-20px) scale(0.8);
  }
  100% {
    opacity: 0.25;
    transform: translateY(-260px) scale(1.2);
  }
}


/* -- FEATURES -- */
.features-section { background: var(--bg-1); }

.section-header { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feat-card {
  background: var(--bg-card);
  border: none;
  border-radius: 0;
  padding: 2rem 1.75rem;
  transition: background var(--t);
}
.feat-card:hover { background: var(--bg-hover); border-color: transparent; box-shadow: none; }

.feat-icon-wrap {
  width: 36px; height: 36px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-2);
  margin-bottom: 1rem;
}

.feat-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.5rem; color: var(--text);
}

.feat-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* -- HOW IT WORKS -- */
.how-section { background: var(--bg); }

.steps-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(240,90,26,0.15);
  line-height: 1;
}

.step-body h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--text); }
.step-body p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

.step-arrow {
  position: absolute;
  top: 50%; right: -10px;
  transform: translateY(-50%);
  z-index: 2;
  width: 20px; height: 20px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--orange);
  font-weight: 700;
}
.step-arrow.last { color: #4ade80; border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,.08); }

/* -- CTA -- */
.cta-section { background: var(--bg-1); }

.cta-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-wrap: wrap;
}

.cta-bg-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.5;
}

.cta-content h2 { font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 0.4rem; }
.cta-content p  { font-size: 0.95rem; color: var(--text-2); }

/* -- RESPONSIVE -- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-row     { grid-template-columns: 1fr; }
  .step-arrow    { display: none; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; padding: 16px 24px; }
  .hstat-sep { width: 40px; height: 1px; }
  .hstat { flex-direction: row; gap: 6px; }
  .cta-box { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}