/* ── Hero ── */
.hero {
  position: relative;
  padding: var(--space-32) 0 var(--space-24);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
/* Red de nodos interactiva (constelacion) en canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* Hero entrance animations */
.hero__updated {
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.5);
  animation: hero-fade-up 0.8s var(--ease-out) 0.1s both;
}
.hero__updated time {
  color: rgba(255, 255, 255, 0.7);
}
.hero .eyebrow-block__kw {
  color: var(--color-accent);
  animation: hero-fade-up 0.8s var(--ease-out) 0.2s both;
}
.hero .eyebrow-block__headline {
  color: #fff;
  animation: hero-fade-up 0.9s var(--ease-out) 0.35s both;
}

/* Gradient text effect on headline with shimmer */
.hero__headline--gradient {
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.65) 42%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.85) 58%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-fade-up 0.9s var(--ease-out) 0.35s both, text-shimmer 6s ease-in-out 2.5s infinite;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-normal);
  margin: var(--space-6) 0 var(--space-8);
  max-width: 600px;
  animation: hero-fade-up 0.8s var(--ease-out) 0.5s both;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: hero-fade-up 0.8s var(--ease-out) 0.65s both;
}
.hero__actions .btn--primary {
  animation: hero-fade-up 0.8s var(--ease-out) 0.65s both, btn-glow 3s ease-in-out 2s infinite;
}
.hero__actions .btn--outline {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}
.hero__actions .btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: 0 0 24px 4px rgba(249, 115, 22, 0.3); }
}

/* Hero bottom wave separator */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}
.hero__wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* Decorative gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(249, 115, 22, 0.15);
  top: -100px;
  right: -100px;
  animation: orb-float 8s ease-in-out infinite alternate;
}
.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(249, 115, 22, 0.08);
  bottom: 50px;
  left: -50px;
  animation: orb-float 10s ease-in-out 1s infinite alternate-reverse;
}
.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(251, 191, 36, 0.06);
  top: 40%;
  left: 55%;
  animation: orb-float 12s ease-in-out 2s infinite alternate;
}

/* Hero keyframes */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.05); }
}

/* Stats counter animation */
@keyframes count-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat {
  animation: count-up 0.6s var(--ease-out) both;
}
.stats-strip .stat:nth-child(1) { animation-delay: 0.1s; }
.stats-strip .stat:nth-child(2) { animation-delay: 0.2s; }
.stats-strip .stat:nth-child(3) { animation-delay: 0.3s; }
.stats-strip .stat:nth-child(4) { animation-delay: 0.4s; }

@media (max-width: 768px) {
  .hero { padding: var(--space-20) 0 var(--space-16); }
  .hero__orb--3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__updated, .hero .eyebrow-block__kw, .hero .eyebrow-block__headline,
  .hero__subtitle, .hero__actions, .stat {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero__orb--1, .hero__orb--2, .hero__orb--3 {
    animation: none;
  }
}

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding: var(--space-16) 0;
  position: relative;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.stats-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
@media (max-width: 600px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Card 3D tilt (home only) ── */
.card[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
.card[data-tilt] .card__icon,
.card[data-tilt] .card__title {
  transform: translateZ(20px);
}
.card[data-tilt] .card__link {
  transform: translateZ(10px);
}

/* ── Particle canvas ── */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* ── "Qué es" layout: text left + landscape image right ── */
.que-es-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-10);
  align-items: center;
}
@media (max-width: 900px) {
  .que-es-grid { grid-template-columns: 1fr; }
}

/* ── Section image (inline illustration) ── */
.section-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.section-img img {
  width: 100%;
  height: auto;
  display: block;
}
.section-img--landscape {
  aspect-ratio: 16 / 9;
}
.section-img--landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
