/* ═══════════════════════════════════════════════
   FREECOLORS — INDEX.CSS
   Estilos específicos de la página de inicio.
   Requiere: global.css
═══════════════════════════════════════════════ */


/* ── HERO ─────────────────────────────────────
   Sección de bienvenida. Mobile: 1 columna.
   Desktop: 2 columnas (texto + abanico).
────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(155deg, #07091d 0%, #0c0535 45%, #130050 65%, #07091d 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 5% 2rem;
  position: relative; overflow: hidden;
  text-align: center;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(-45deg, transparent 0%, rgba(0,68,255,0.07) 25%, rgba(153,0,238,0.10) 45%, rgba(0,68,255,0.05) 60%, transparent 75%),
    radial-gradient(ellipse at 15% 25%, rgba(0,68,255,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(153,0,238,0.22) 0%, transparent 55%);
  pointer-events: none;
}

.hero-texto { position: relative; z-index: 5; max-width: 520px; margin: 0 auto; }

.hero-logo {
  width: min(480px, 90%);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  animation: subirAparecer 0.6s 0.1s ease both;
}

.hero p {
  color: var(--gris); font-size: 1.1rem; line-height: 1.6;
  margin: 0 auto 2.5rem; max-width: 400px;
  animation: subirAparecer 0.6s 0.2s ease both;
}

.hero-botones {
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  animation: subirAparecer 0.6s 0.3s ease both;
}

.btn-primario {
  background: var(--degradado); color: #fff; border: none; cursor: pointer;
  padding: 1.1rem 2.5rem; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 700;
  text-decoration: none; display: inline-block;
  width: 100%; max-width: 280px; text-align: center; min-height: 56px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,68,255,0.4);
}
.btn-primario:hover  { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,68,255,0.5); }
.btn-primario:active { transform: scale(0.95); }

.btn-fantasma {
  color: var(--blanco); font-size: 1rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.5rem 1.5rem; border-radius: 50px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.btn-fantasma:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }


/* ── ABANICO DE COLORES ───────────────────────
   Decoración visual del hero en la parte derecha.
────────────────────────────────────────────── */
.hero-visual {
  position: relative; margin-top: 3rem;
  height: 200px;
  display: flex; justify-content: center; align-items: flex-end;
  perspective: 1000px; z-index: 2;
}

.color-fan {
  display: flex; justify-content: center; align-items: flex-end;
  height: 100%; width: 100%; max-width: 600px;
  position: relative;
}

.fan-card {
  width: 60px; height: 160px; border-radius: 12px;
  position: absolute; bottom: 0; transform-origin: bottom center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px; color: white; font-size: 0.6rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  overflow: hidden; pointer-events: none;
}
.fan-card span { display: none; }

.fan-card:nth-child(1) { background: #1e3a8a; transform: rotate(-30deg) translateX(-120px); z-index: 1; }
.fan-card:nth-child(2) { background: #dc2626; transform: rotate(-20deg) translateX(-80px);  z-index: 2; }
.fan-card:nth-child(3) { background: #0f766e; transform: rotate(-10deg) translateX(-40px);  z-index: 3; }
.fan-card:nth-child(4) { background: #f59e0b; transform: rotate(0deg);                      z-index: 4; }
.fan-card:nth-child(5) { background: #7c3aed; transform: rotate(10deg)  translateX(40px);   z-index: 3; }
.fan-card:nth-child(6) { background: #ec4899; transform: rotate(20deg)  translateX(80px);   z-index: 2; }
.fan-card:nth-child(7) { background: #f5f5f5; color: #333; transform: rotate(30deg) translateX(120px); z-index: 1; }


/* ── ESTADÍSTICAS ─────────────────────────────
   Banda oscura entre el hero y el contenido.
────────────────────────────────────────────── */
.stats-bar {
  background: var(--azul-medio);
  border-top: 1px solid rgba(77,163,255,0.12);
  border-bottom: 1px solid rgba(77,163,255,0.08);
  display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center; padding: 1.25rem 4%;
}
.stat { padding: 0.75rem 0.5rem; }
.stat + .stat  { border-left: 1px solid rgba(77,163,255,0.2); }
.stat-numero   { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--violeta); display: block; }
.stat-texto    { color: var(--gris); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; line-height: 1.3; font-weight: 600; }


/* ── SECCIONES ────────────────────────────────── */
section { padding: 3rem 4%; }
.etiqueta-seccion { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: var(--azul-fuerte); margin-bottom: 0.6rem; }
.titulo-seccion   { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 8vw, 3rem); color: var(--azul-oscuro); line-height: 1; margin-bottom: 0.75rem; }


/* ── BENEFICIOS ───────────────────────────────
   Scroll horizontal en mobile, grilla en desktop.
────────────────────────────────────────────── */
.beneficios { background: #e8effc; }
.beneficios-scroll {
  display: flex; gap: 1rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.beneficios-scroll::-webkit-scrollbar { display: none; }
.beneficio-tarjeta {
  background: #fff; border-radius: 14px; padding: 1.5rem 1.25rem;
  border-left: 4px solid var(--azul-fuerte);
  box-shadow: 0 2px 12px rgba(0,68,255,0.08);
  flex-shrink: 0; width: 240px; scroll-snap-align: start;
}
.beneficio-icono     { font-size: 1.8rem; margin-bottom: 0.75rem; }
.beneficio-tarjeta h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--azul-oscuro); }
.beneficio-tarjeta p  { font-size: 0.8rem; color: #4a6080; line-height: 1.6; }


/* ── DESKTOP (≥ 768px) ────────────────────────── */
@media (min-width: 768px) {
  body { padding-bottom: 0; }

  /* Hero: 2 columnas */
  .hero          { flex-direction: row; padding: 80px 5%; }
  .hero-texto    {
    max-width: 50%; margin: auto 0; text-align: center;
    display: flex; flex-direction: column; align-items: center;
  }
  .hero-botones  { flex-direction: row; align-items: center; }
  .btn-primario  { width: auto; }

  .hero-visual   { display: flex; justify-content: center; align-items: center; flex: 1; height: 400px; margin-top: 0; }
  .color-fan     { max-width: 500px; }
  .fan-card      { width: 80px; height: 280px; }
  .fan-card span { font-size: 0.8rem; }

  .stats-bar     { padding: 2rem 5%; }
  .stat-numero   { font-size: 2.5rem; }

  section        { padding: 5rem 5%; }

  .beneficios-scroll { flex-wrap: wrap; overflow: visible; }
  .beneficio-tarjeta { width: auto; flex: 1; min-width: 200px; }
}
