/* =========================================================================
   HOME — versión FUTURISTA
   Hero con carousel minero de fondo + logo grande + glass + partículas
   ========================================================================= */

/* ---------- HERO CAROUSEL ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--space-12));
  padding-bottom: var(--space-16);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-rotate 24s infinite;
  transform: scale(1.1);
  will-change: transform, opacity;
}

.hero__slide:nth-child(1) {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 60, 0.55), rgba(10, 30, 80, 0.75)),
    url("../img/hero/hero-slide-1.webp");
  animation-delay: 0s;
}

.hero__slide:nth-child(2) {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 60, 0.55), rgba(10, 30, 80, 0.75)),
    url("../img/hero/hero-slide-2.webp");
  animation-delay: 8s;
}

.hero__slide:nth-child(3) {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 60, 0.55), rgba(10, 30, 80, 0.75)),
    url("../img/hero/hero-slide-3.webp");
  animation-delay: 16s;
}

@keyframes hero-rotate {
  0%, 5%    { opacity: 0; transform: scale(1.1); }
  10%, 30%  { opacity: 1; transform: scale(1.0); }
  35%, 100% { opacity: 0; transform: scale(1.15); }
}

@media (max-width: 720px) {
  .hero__slide:nth-child(1) { background-image: linear-gradient(135deg, rgba(10, 22, 60, 0.6), rgba(10, 30, 80, 0.8)), url("../img/hero/hero-slide-1-mobile.webp"); }
  .hero__slide:nth-child(2) { background-image: linear-gradient(135deg, rgba(10, 22, 60, 0.6), rgba(10, 30, 80, 0.8)), url("../img/hero/hero-slide-2-mobile.webp"); }
  .hero__slide:nth-child(3) { background-image: linear-gradient(135deg, rgba(10, 22, 60, 0.6), rgba(10, 30, 80, 0.8)), url("../img/hero/hero-slide-3-mobile.webp"); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 20% 40%, rgba(0, 194, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(90, 155, 240, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(10, 16, 32, 0.4) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  pointer-events: none;
  animation: grid-drift 30s linear infinite;
}

@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(0, 194, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.9);
  animation: particle-float linear infinite;
}

.particle:nth-child(1)  { left: 8%;  top: 30%; animation-duration: 14s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 22%; top: 60%; animation-duration: 18s; animation-delay: -3s; background: rgba(90, 155, 240, 0.6); }
.particle:nth-child(3)  { left: 40%; top: 20%; animation-duration: 16s; animation-delay: -6s; width: 3px; height: 3px; }
.particle:nth-child(4)  { left: 55%; top: 75%; animation-duration: 20s; animation-delay: -2s; }
.particle:nth-child(5)  { left: 68%; top: 40%; animation-duration: 15s; animation-delay: -8s; width: 5px; height: 5px; }
.particle:nth-child(6)  { left: 80%; top: 65%; animation-duration: 17s; animation-delay: -1s; background: rgba(255, 184, 0, 0.5); }
.particle:nth-child(7)  { left: 92%; top: 25%; animation-duration: 19s; animation-delay: -5s; }
.particle:nth-child(8)  { left: 15%; top: 85%; animation-duration: 22s; animation-delay: -10s; width: 3px; height: 3px; }
.particle:nth-child(9)  { left: 35%; top: 50%; animation-duration: 16s; animation-delay: -4s; }
.particle:nth-child(10) { left: 72%; top: 15%; animation-duration: 21s; animation-delay: -7s; width: 6px; height: 6px; }

@keyframes particle-float {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(30px, -40px) scale(1.2); opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translate(-20px, -120px) scale(0.5); opacity: 0; }
}

/* ---------- HERO CONTENT ---------- */
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-10); }
}

.hero__badge-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero__badge-top::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--color-accent); }
  50% { box-shadow: 0 0 20px var(--color-accent), 0 0 32px var(--color-accent); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: line-reveal 0.9s var(--ease) forwards;
}

.hero__title .line:nth-child(1) { animation-delay: 0.2s; }
.hero__title .line:nth-child(2) { animation-delay: 0.4s; }

@keyframes line-reveal { to { opacity: 1; transform: translateY(0); } }

.hero__title .gradient {
  background: linear-gradient(135deg, #00c2ff 0%, #5a9bf0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 194, 255, 0.4));
}

.hero__subtitle {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: var(--space-8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: line-reveal 0.9s var(--ease) 0.6s forwards;
}

@media (max-width: 960px) { .hero__subtitle { margin-inline: auto; } }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  opacity: 0;
  animation: line-reveal 0.9s var(--ease) 0.8s forwards;
}

@media (max-width: 960px) { .hero__cta { justify-content: center; } }

.hero__cta .btn-primary {
  background: linear-gradient(135deg, #00c2ff 0%, #1e5bb8 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px -5px rgba(0, 194, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__cta .btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s var(--ease);
}

.hero__cta .btn-primary:hover::before { left: 100%; }
.hero__cta .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -5px rgba(0, 194, 255, 0.7); }

.hero__cta .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero__cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- HERO VISUAL: logo ENORME ---------- */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 194, 255, 0.25);
  animation: ring-rotate linear infinite;
}

.hero__ring:nth-child(1) {
  inset: 0;
  animation-duration: 30s;
  border-style: dashed;
  border-color: rgba(0, 194, 255, 0.35);
}

.hero__ring:nth-child(2) {
  inset: 8%;
  animation-duration: 45s;
  animation-direction: reverse;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero__ring:nth-child(3) {
  inset: 18%;
  animation-duration: 20s;
  border-color: rgba(0, 194, 255, 0.35);
}

@keyframes ring-rotate { to { transform: rotate(360deg); } }

.hero__logo-disc {
  position: relative;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(230, 240, 255, 0.92) 50%, rgba(200, 220, 250, 0.88));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px -10px rgba(0, 0, 0, 0.5),
    0 10px 40px -10px rgba(0, 194, 255, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 12px rgba(16, 64, 138, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  padding: 10%;
  z-index: 3;
  animation: logo-float 6s ease-in-out infinite;
}

.hero__logo-disc::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.4), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.8;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__logo-disc img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(16, 64, 138, 0.3));
}

.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 4;
  animation: chip-float 5s ease-in-out infinite;
}

.hero__chip svg {
  width: 16px; height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__chip--1 { top: 5%; left: -10%; animation-delay: 0s; }
.hero__chip--2 { top: 40%; right: -14%; animation-delay: 1.5s; }
.hero__chip--3 { bottom: 15%; left: -5%; animation-delay: 3s; }
.hero__chip--4 { bottom: 5%; right: -5%; animation-delay: 4.5s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 680px) {
  .hero__chip { font-size: 0.65rem; padding: 0.5rem 0.75rem; }
  .hero__chip--1 { left: -2%; top: 0; }
  .hero__chip--2 { right: -2%; }
  .hero__chip--3 { left: 0; }
  .hero__chip--4 { right: 0; bottom: 0; }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: scroll-bob 2.5s ease-in-out infinite;
  z-index: 5;
}

.hero__scroll-line {
  width: 2px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  border-radius: 2px;
}

@keyframes scroll-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

@media (max-width: 520px) { .hero__scroll { display: none; } }

/* ---------- STATS flotantes sobre hero ---------- */
.stats {
  margin-top: calc(-1 * var(--space-20));
  padding: 0;
  position: relative;
  z-index: 10;
}

.stats__inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.9));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  box-shadow: 0 30px 80px -20px rgba(10, 22, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .stats__inner {
  background: linear-gradient(135deg, rgba(20, 30, 56, 0.95), rgba(16, 35, 64, 0.9));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats__inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-brand-700), var(--color-accent), var(--color-brand-700), transparent);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .stats__inner { padding: var(--space-6) var(--space-5); }
}

.stat { position: relative; padding: var(--space-2); }

.stat + .stat::before {
  content: "";
  position: absolute;
  left: calc(-0.5 * var(--space-6));
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-border-strong), transparent);
}

@media (max-width: 720px) { .stat + .stat::before { display: none; } }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-brand-700), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-2);
}

.stat__label { font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 500; }

/* ---------- SERVICES ---------- */
.services { padding-top: calc(var(--space-20) + var(--space-4)); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-brand-700), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 25%, transparent), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
  box-shadow: var(--shadow-lg), 0 20px 50px -10px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; transform: scale(1.3); }

.service-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
}

.service-card h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.service-card p { color: var(--color-text-muted); margin-bottom: var(--space-6); flex: 1; }

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-brand-700);
  font-size: var(--fs-sm);
}

.service-card__cta svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service-card:hover .service-card__cta { color: var(--color-accent); }
.service-card:hover .service-card__cta svg { transform: translateX(4px); }

/* ---------- WHY US ---------- */
.why { background: var(--color-bg-alt); position: relative; overflow: hidden; }

.why::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.why::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-brand-700) 12%, transparent), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.why > * { position: relative; }

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.why-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px -15px rgba(16, 64, 138, 0.25);
}

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-brand-700) 15%, transparent), color-mix(in srgb, var(--color-accent) 15%, transparent));
  color: var(--color-brand-700);
  margin-bottom: var(--space-5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 12px -4px color-mix(in srgb, var(--color-brand-700) 25%, transparent);
}

.why-card__icon svg { width: 28px; height: 28px; }
.why-card h4 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.why-card p { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------- CTA BAND ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }

.cta-band__inner {
  background: linear-gradient(135deg, var(--color-brand-900) 0%, var(--color-brand-800) 50%, #1e5bb8 100%);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(10, 22, 60, 0.5);
}

.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 194, 255, 0.35), transparent 40%), radial-gradient(circle at 80% 80%, rgba(90, 155, 240, 0.3), transparent 40%);
}

.cta-band__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.6;
  animation: grid-drift 30s linear infinite;
}

.cta-band__inner > * { position: relative; z-index: 1; }

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  margin-bottom: var(--space-4);
}

.cta-band p {
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-lg);
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.cta-band__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
