/* ===== HumanIA — Design tokens & utilidades propias =====
   Nota: Tailwind Play CDN no procesa @apply en CSS externo,
   por eso estas clases están escritas en CSS plano. */

:root {
  --brand-50: #EEF4FF;
  --brand-100: #DBE8FE;
  --brand-200: #BED7FE;
  --brand-300: #93BCFD;
  --brand-400: #6099FA;
  --brand-500: #3B76F6;
  --brand-600: #2558EB;
  --brand-700: #1D45D8;
  --brand-800: #1E3AAF;
  --brand-900: #0B2E6E;
  --brand-950: #081F4D;
  --ink: #0F172A;
  --font-display: "Space Grotesk", sans-serif;
}

/* Texto con gradiente de marca */
.gradient-text {
  background: linear-gradient(92deg, var(--brand-600) 0%, var(--brand-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Contenedor de sección (equivale a max-w-7xl mx-auto px-6 lg:px-8) */
.section-shell {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .section-shell { padding-inline: 2rem; }
}

/* Botón primario */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background-color: var(--brand-600);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 20px 60px -15px rgba(37, 88, 235, 0.35);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--brand-700);
}

/* Botón secundario */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--brand-200);
  background-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--brand-400);
}

/* Tarjeta glassmorphism */
.glass-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px -12px rgba(8, 31, 77, 0.18);
}

/* ===== T3: Navegación ===== */
#nav.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px -12px rgba(8, 31, 77, 0.18);
  border-bottom: 1px solid var(--brand-100);
}
.btn-primary.nav-cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
@media (max-width: 639px) {
  .btn-primary.nav-cta {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* ===== T5: Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(8, 31, 77, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.lightbox-close:hover { background-color: rgba(255, 255, 255, 0.25); }

/* ===== T6: Fondo animado del hero ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
}
.hero-blob-1 {
  width: 36rem;
  height: 36rem;
  top: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(96, 153, 250, 0.50), transparent 70%);
}
.hero-blob-2 {
  width: 40rem;
  height: 40rem;
  top: 20%;
  right: -12rem;
  background: radial-gradient(circle, rgba(190, 215, 254, 0.65), transparent 70%);
}

/* ===== Capas cinematográficas del hero (beams, haze, grain) ===== */
.hero-beam {
  position: absolute;
  top: -30%;
  height: 160%;
  width: 28rem;
  transform: rotate(18deg);
  filter: blur(40px);
  opacity: 0;
}
.hero-beam-1 {
  left: 8%;
  background: linear-gradient(180deg, rgba(96, 153, 250, 0.55), transparent 70%);
}
.hero-beam-2 {
  right: 14%;
  width: 20rem;
  background: linear-gradient(180deg, rgba(147, 188, 253, 0.45), transparent 70%);
}
.hero-layer {
  position: absolute;
  inset: 0;
}
.hero-sweep {
  position: absolute;
  top: -30%;
  left: 0;
  height: 160%;
  width: 8rem;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(219, 234, 254, 0.85), transparent);
  filter: blur(24px);
  mix-blend-mode: screen;
}
.hero-haze {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(238, 244, 255, 0.9) 80%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ===== Banda ROI cinematográfica ===== */
.roi-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 60rem;
  height: 60rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(96, 153, 250, 0.28), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.roi-beam {
  position: absolute;
  top: -30%;
  left: 20%;
  width: 18rem;
  height: 160%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(147, 188, 253, 0.18), transparent 70%);
  filter: blur(50px);
  opacity: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 9999px;
  background-color: rgba(96, 153, 250, 0.8);
}

/* ===== T7: Pilares ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.hover-lift {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(8, 31, 77, 0.28);
}

/* ===== Trust strip: hover que agranda texto e icono ===== */
.trust-item {
  transition: transform 0.25s ease;
}
.trust-item i {
  transition: transform 0.25s ease;
}
.trust-item:hover {
  transform: scale(1.06);
}
.trust-item:hover i {
  transform: scale(1.15);
}

/* ===== T8: Botón claro (sobre fondo brand-900) ===== */
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--brand-900);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(2, 12, 38, 0.28);
}
.btn-light:hover {
  transform: translateY(-2px);
  background: var(--brand-50);
}

/* ===== Accesibilidad: skip link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--brand-600);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Accesibilidad: foco visible global */
:focus-visible {
  outline: 2px solid var(--brand-600, #2558EB);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== T3: 9-Box flotante en pilar 3 ===== */
.pillar-float {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  box-shadow: 0 12px 32px rgba(8, 31, 77, .18);
}

/* Accesibilidad: respetar reduced-motion globalmente */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .trust-item:hover,
  .trust-item:hover i {
    transform: none;
  }
  .hero-beam,
  .roi-beam,
  .hero-sweep {
    display: none;
  }
}
