/* Home v3 (2026-11-15): se suma a /assets/v2/home.css. Hero con el estilo de las páginas renovadas,
   sección del iPad en oscuro con cuadrícula tipo AutoCAD e iconos de software dibujados (sin imágenes). */

/* ---------- Hero: texto grande a la izquierda, vídeo detrás con degradado ---------- */
.hero { min-height: min(92svh, 880px); }
.hero-overlay { background: color-mix(in srgb, #0b0d12 30%, transparent); }
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(900px 600px at 12% 55%, rgba(47,111,237,.32), transparent 62%),
    linear-gradient(90deg, rgba(11,13,18,.96) 0%, rgba(11,13,18,.84) 38%, rgba(11,13,18,.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%); }
.hero-content { padding-top: 150px; padding-bottom: 64px; }
.hero-content h1 { font-size: clamp(44px, 6.6vw, 92px); font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  max-width: 980px; margin: 0; text-shadow: none; }
.hero-content h1 .grad-text { display: inline-block; padding-bottom: .06em; }
.hero-content p { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; color: #c5ccdb; margin-top: 22px; }
.hero-actions { margin-top: 34px; }
.hero-actions .btn-primary { box-shadow: 0 14px 40px -12px rgba(47,111,237,.75); }
.hero-actions .btn-primary:hover { box-shadow: 0 18px 48px -10px rgba(47,111,237,.95); }
@media (max-width: 720px) {
  .hero { min-height: 86svh; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 6%, rgba(11,13,18,.9) 50%, rgba(11,13,18,.3) 100%); }
  .hero-content { padding-top: 110px; padding-bottom: 40px; }
  .hero-content h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-content p { font-size: 16px; }
}

/* ---------- Sección del iPad: fondo oscuro con cuadrícula tipo AutoCAD ---------- */
.device-showcase { background: radial-gradient(1200px 640px at 50% 58%, rgba(47,111,237,.2), transparent 72%), #08090d; }
.device-showcase__top { background: none; }
.device-showcase__bar { background: transparent; }
.device-showcase .section-glow { display: none; }
.ds-grid { position: absolute; inset: -80px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(120,160,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,160,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(120,160,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(120,160,255,.035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000 35%, transparent 90%); mask-image: radial-gradient(75% 65% at 50% 45%, #000 35%, transparent 90%);
  animation: ds-grid 28s linear infinite; }
@keyframes ds-grid { to { transform: translate(80px, 80px); } }

/* ---------- Iconos de software tipo app ---------- */
.apps { list-style: none; margin: 8px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; max-width: 900px; }
.app { --c: #8fb3ff; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92px; }
.app__tile { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px;
  font: 700 26px/1 var(--font-heading); letter-spacing: -0.03em; color: var(--c);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, #1a1d26), #0f1117 70%);
  border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 28px -14px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .25s ease, box-shadow .25s ease; }
.app__tile::after { content: ""; position: absolute; inset: 5px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); pointer-events: none; }
.app:hover .app__tile { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 18px 34px -12px color-mix(in srgb, var(--c) 85%, transparent); }
.app__name { font-size: 12.5px; line-height: 1.3; text-align: center; color: var(--fg-muted); }
/* IA: la que resalta (el giro de Render 7) */
.app--ai { width: 120px; }
.app--ai .app__tile { width: 84px; height: 84px; border-radius: 22px; font-size: 30px; color: #fff; border: 0;
  background: linear-gradient(135deg, #2f6fed, #7c3aed 55%, #34d399); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 16px 44px -10px rgba(124,58,237,.8); }
.app--ai .app__tile::after { inset: -6px; border-radius: 28px; border: 1.5px solid rgba(143,179,255,.45); animation: app-pulse 2.6s ease-out infinite; }
.app--ai .app__name { color: #fff; font-weight: 600; }
@keyframes app-pulse { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
@media (max-width: 560px) {
  .apps { gap: 18px 10px; }
  .app { width: 76px; }
  .app__tile { width: 58px; height: 58px; border-radius: 15px; font-size: 22px; }
  .app__tile::after { border-radius: 11px; }
  .app--ai { width: 100%; }
}

/* ---------- Cursos populares: 6 y enlace a todos ---------- */
.courses-all { display: flex; justify-content: center; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { .ds-grid, .app--ai .app__tile::after { animation: none; } }
