/* ============================================================
   HOME.CSS — Estilos específicos de index.html
   ============================================================ */


/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 78% 8%,  rgba(0, 102, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 12% 88%, rgba(0, 212, 255, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Patrón de puntos */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 102, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 80%);
}

/* Blobs decorativos */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.hero__blob--1 {
  width: 480px;
  height: 480px;
  background: var(--gradient-hero);
  top: -120px;
  right: -100px;
}

.hero__blob--2 {
  width: 360px;
  height: 360px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  bottom: -80px;
  left: -80px;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-hero);
  top: 40%;
  left: 40%;
}

/* Layout grid */
.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-4xl);
  align-items: center;
  padding-block: var(--space-4xl);
}

/* ── Contenido texto ───────────────────────────────────────── */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hero__eyebrow-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--color-success);
  animation: eyebrowRipple 2.5s ease-out infinite;
}

@keyframes eyebrowRipple {
  0%   { opacity: 0.7; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(2.2); }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: 0;
}

/* Contenedor de la palabra rotante — recorta el slide */
.hero__cycle-wrap {
  display: inline-block;
  overflow: hidden;
  /* Altura = 1 línea del h1 para que el clip funcione */
  line-height: 1.04;
  vertical-align: bottom;
}

/* La palabra en sí */
.hero__cycle-word {
  display: block;
  will-change: transform, opacity;
  transition:
    transform 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 0;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-surface);
  width: 100%;
  margin-bottom: 0;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero__trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
  flex-shrink: 0;
}


/* ── Visual / Mockup ───────────────────────────────────────── */

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero Visual — Nebulosa + Card "Actividad en vivo" ── */

/* Nebulosa: sin recuadro, desborda libremente en el hero */
.hv-cloud {
  position: absolute;
  inset: -120px -160px;
  pointer-events: none;
}

.hv-cloud__light {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.hv-cloud__light--1 {
  width: 560px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(0, 102, 255, 0.38) 0%, rgba(0, 102, 255, 0.12) 40%, transparent 70%);
  filter: blur(80px);
  top: 5%;
  left: 0%;
  animation: cloud-drift-1 17s ease-in-out infinite;
}

.hv-cloud__light--2 {
  width: 480px;
  height: 540px;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.28) 0%, rgba(0, 180, 255, 0.10) 40%, transparent 70%);
  filter: blur(90px);
  bottom: 0%;
  right: 0%;
  animation: cloud-drift-2 22s ease-in-out infinite;
}

.hv-cloud__light--3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(0, 48, 180, 0.30) 0%, transparent 65%);
  filter: blur(72px);
  top: 35%;
  left: 20%;
  animation: cloud-drift-3 14s ease-in-out infinite;
}

.hv-cloud__light--4 {
  width: 380px;
  height: 360px;
  background: radial-gradient(circle at center, rgba(51, 136, 255, 0.20) 0%, transparent 65%);
  filter: blur(68px);
  top: -5%;
  right: 5%;
  animation: cloud-drift-4 26s ease-in-out infinite;
}

.hv-cloud__light--5 {
  width: 320px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.18) 0%, transparent 65%);
  filter: blur(60px);
  bottom: 10%;
  left: 10%;
  animation: cloud-drift-5 19s ease-in-out infinite;
}

@keyframes cloud-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1);          opacity: 0.9; }
  28%       { transform: translate(40px, 25px) scale(1.1);  opacity: 1; }
  62%       { transform: translate(-18px, 45px) scale(0.93); opacity: 0.75; }
}

@keyframes cloud-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1);           opacity: 0.8; }
  38%       { transform: translate(-32px, -28px) scale(1.12); opacity: 1; }
  74%       { transform: translate(24px, -40px) scale(0.90); opacity: 0.82; }
}

@keyframes cloud-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1);           opacity: 0.7; }
  45%       { transform: translate(-28px, 20px) scale(1.15); opacity: 0.92; }
  80%       { transform: translate(20px, -15px) scale(0.95); opacity: 0.65; }
}

@keyframes cloud-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1);           opacity: 0.6; }
  33%       { transform: translate(18px, 28px) scale(1.08);  opacity: 0.8; }
  70%       { transform: translate(-14px, -22px) scale(0.93); opacity: 0.62; }
}

@keyframes cloud-drift-5 {
  0%, 100% { transform: translate(0, 0) scale(1);           opacity: 0.55; }
  50%       { transform: translate(22px, -18px) scale(1.12); opacity: 0.78; }
}

/* Flow wrapper: centra channels + card */
.hv-flow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

/* Iconos de canal */
.hv-channels {
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hv-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hv-channel-line {
  width: 0.5px;
  height: 14px;
  background: #CBD5E1;
}

/* Card glass */
.hv-card {
  width: 320px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  -webkit-font-smoothing: antialiased;
}

/* Header de la card */
.hv-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hv-card__label {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-card__status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hv-card__now {
  font-size: 10px;
  color: #94A3B8;
}

.hv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* Notificaciones */
.hv-notif {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
}

.hv-notif + .hv-notif {
  border-top: 0.5px solid rgba(0, 0, 0, 0.04);
}

.hv-notif__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hv-notif__body {
  flex: 1;
  min-width: 0;
}

.hv-notif__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

.hv-notif__sub {
  font-size: 11px;
  font-weight: 400;
  color: #94A3B8;
  margin-top: 1px;
}

.hv-notif__time {
  font-size: 10px;
  color: #CBD5E1;
  white-space: nowrap;
  padding-top: 2px;
}

/* Separador */
.hv-separator {
  height: 0.5px;
  background: rgba(0, 0, 0, 0.04);
  margin: 14px 0 12px;
}

/* Métricas */
.hv-metrics {
  display: flex;
}

.hv-metric {
  flex: 1;
  text-align: center;
}

.hv-metric + .hv-metric {
  border-left: 0.5px solid rgba(0, 0, 0, 0.04);
}

.hv-metric__val {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.hv-metric__label {
  font-size: 9.5px;
  color: #94A3B8;
  margin-top: 3px;
}

.hv-metric--blue   .hv-metric__val { color: #2563EB; }
.hv-metric--green  .hv-metric__val { color: #16A34A; }
.hv-metric--purple .hv-metric__val { color: #7C3AED; }

/* Estado inicial animable */
.hv-animate {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hv-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hv-cloud__light         { animation: none !important; }
  .hv-dot                  { animation: none !important; opacity: 1; }
  .hv-animate              { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ── Scroll indicator ──────────────────────────────────────── */

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.45;
  z-index: 1;
}

.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--color-text-secondary);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.hero__scroll-dot {
  width: 4px;
  height: 6px;
  background: var(--color-text-secondary);
  border-radius: var(--radius-full);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%       { transform: translateY(10px); opacity: 0.2; }
}


/* ═══════════════════════════════════════════════════════════
   SECCIÓN PROBLEMAS
   ═══════════════════════════════════════════════════════════ */

.problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.problem-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-surface);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 var(--space-xl);
  align-items: start;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.problem-card:hover {
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.15), 0 0 20px rgba(0, 102, 255, 0.12), 0 0 60px rgba(0, 102, 255, 0.06);
}

/* Columna izquierda: dato estadístico */
.problem-card__left {
  padding-right: var(--space-xl);
  border-right: 1px solid var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: 2px;
}

.problem-card__stat {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.problem-card__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  font-weight: 400;
}

/* Columna derecha: contenido */
.problem-card__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.problem-card__icon {
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.problem-card__icon svg {
  width: 100%;
  height: 100%;
}

.problem-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0;
}

.problem-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0;
}

.problems__cta {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.problems__cta-text {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════
   SECCIÓN SOLUCIONES
   ═══════════════════════════════════════════════════════════ */

@keyframes orbPulse {
  0%, 100% { transform: scale(1);     opacity: 0.55; }
  50%       { transform: scale(1.15); opacity: 0.8;  }
}


.solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.solution-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(240, 244, 255, 0.92) 50%,
    rgba(232, 238, 255, 0.88) 100%
  );
  border-radius: var(--radius-xl);
  padding: 40px 36px 36px;
  border: 1px solid rgba(0, 102, 255, 0.12);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 24px rgba(0, 0, 0, 0.05),
    0 8px 48px rgba(0, 102, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition:
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease;
}

/* Mouse spotlight */
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 102, 255, 0.06) 0%,
    rgba(0, 212, 255, 0.03) 30%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

/* Top edge highlight */
.solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(255, 255, 255, 0.95) 70%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.solution-card:hover {
  border-color: rgba(0, 102, 255, 0.22);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 40px rgba(0, 102, 255, 0.10),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Barra neon superior */
.solution-card__top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 102, 255, 0.5) 25%,
    rgba(0, 212, 255, 0.8) 50%,
    rgba(0, 102, 255, 0.5) 75%,
    transparent 100%
  );
  opacity: 0.55;
  z-index: 2;
  transition: opacity 0.45s ease;
  overflow: visible;
}

/* Halo de luz que se expande hacia abajo en hover */
.solution-card__top-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: radial-gradient(
    ellipse 70% 100% at 50% 0%,
    rgba(0, 130, 255, 0.18) 0%,
    rgba(0, 180, 255, 0.07) 45%,
    transparent 75%
  );
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center top;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.solution-card:hover .solution-card__top-border {
  opacity: 1;
}

.solution-card:hover .solution-card__top-border::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Orb decorativo de fondo */
.solution-card__orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 102, 255, 0.06) 0%,
    rgba(0, 212, 255, 0.03) 50%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  bottom: -80px;
  right: -80px;
  animation: orbPulse 6s ease-in-out infinite;
}

.solution-card--web .solution-card__orb {
  bottom: -80px;
  right: auto;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.07) 0%,
    rgba(0, 102, 255, 0.03) 50%,
    transparent 70%
  );
}

/* Header editorial con número de paso */
.solution-card__category {
  display: flex;
  align-items: baseline;
  gap: 14px;
  position: relative;
  z-index: 1;
  margin-bottom: -8px;
}

.solution-card__step {
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.18;
  -webkit-user-select: none;
  user-select: none;
}

.solution-card__service {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.6;
  padding-bottom: 0.2em;
}

/* Barra superior diferenciada por variante */
.solution-card--automation .solution-card__top-border {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #0066FF 30%,
    #0044CC 70%,
    transparent 100%
  );
  opacity: 0.85;
}

.solution-card--web .solution-card__top-border {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #0066FF 25%,
    #00D4FF 75%,
    transparent 100%
  );
  opacity: 0.85;
}



.solution-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Título */
.solution-card__title {
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

/* Descripción */
.solution-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Lista de servicios */
.solution-card__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.solution-card__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 11px 0;
  border-radius: 0;
  background: none;
  border: none;
  border-top: 1px solid rgba(0, 102, 255, 0.08);
  transition: color 0.2s ease;
}

.solution-card__item:first-child {
  border-top: none;
}

.solution-card__item:hover {
  background: none;
  color: var(--color-text);
}

.solution-card__item svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
  background: none;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CTA full-width */
.solution-card__cta {
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  font-size: var(--text-sm);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.solution-card__cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.solution-card__cta:hover svg {
  transform: translateX(4px);
}

/* Hook para glow (el efecto real va en ::before) */
.solution-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 24px;
}


/* ── Responsive soluciones ─────────────────────────────────── */

@media (max-width: 900px) {
  .solutions__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 600px) {
  .solution-card {
    padding: 28px 24px 24px;
    border-radius: 20px;
  }

  .solution-card::before {
    display: none; /* glow no aplica en touch */
  }

  .solution-card__chip {
    font-size: 0.75rem;
  }

  .solution-card__item {
    padding: 8px 12px;
  }
}

/* ── Responsive hero visual ────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__visual {
    min-height: 420px;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .hv-card {
    width: 300px;
  }

  .hv-channels {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero__visual {
    min-height: 380px;
  }

  .hv-channels {
    display: none;
  }

  .hv-card {
    width: 90%;
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .hero__visual {
    min-height: 320px;
  }

  .hv-card {
    padding: 16px;
  }

  .hv-metric__val {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__title {
    text-align: center;
  }

  .hero__subtitle {
    text-align: center;
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN POR QUÉ VELEX
   ═══════════════════════════════════════════════════════════ */

/* Grid 2×2 — 4 tarjetas simétricas */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 880px;
  margin-inline: auto;
}

/* ── Tarjeta ────────────────────────────────────────────── */

.trust-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid rgba(0, 102, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 102, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  overflow: hidden;
  /* Variables para tilt (JS las sobreescribe, no necesitamos glow) */
  --mouse-x: 50%;
  --mouse-y: 50%;
  --glow-opacity: 0;
}

/* Línea de acento superior — solo visible en hover */
.trust-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.09);
  border-color: rgba(0, 102, 255, 0.16);
}

.trust-card:hover::after {
  opacity: 1;
}

/* ── Icono ──────────────────────────────────────────────── */

.trust-card__icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-base);
}

.trust-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trust-card:hover .trust-card__icon {
  opacity: 1;
  transform: translateY(-1px);
}

/* ── Texto ──────────────────────────────────────────────── */

.trust-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.trust-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.72;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
  .trust__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN PROCESO
   ═══════════════════════════════════════════════════════════ */

.process__wrapper {
  position: relative;
}

.process__line {
  position: absolute;
  top: 20px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 2px;
  background: var(--color-surface);
  z-index: 1;
  overflow: visible;
}

/* Relleno animado que crece de izquierda a derecha */
.process__line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 2px;
}

/* Punto luminoso que viaja por la línea */
.process__line-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 3px rgba(0, 102, 255, 0.15),
    0 0 14px rgba(0, 102, 255, 0.9),
    0 0 28px rgba(0, 102, 255, 0.5);
  z-index: 2;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.process-step__circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--color-bg);
  position: relative;
  z-index: 2;
  /* El scale inicial lo fija JS; la transición hace el spring suave */
  will-change: transform;
}

.process-step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.process__link {
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════════ */

.cta-final {
  position: relative;
  background: var(--gradient-hero);
  padding-block: var(--space-4xl);
  overflow: hidden;
}

.cta-final__pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.cta-final__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
}

.cta-final__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 0;
}

.cta-final__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-sm);
}

.cta-final__btn-primary {
  background: #ffffff;
  color: var(--color-primary);
}

.cta-final__btn-primary:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  transform: scale(1.03);
}

.cta-final__btn-whatsapp {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta-final__btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.03);
}


/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .problems__grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl);
  }

  .problem-card__left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-surface);
    padding-bottom: var(--space-md);
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-md);
  }

  .problem-card__stat-label {
    font-size: var(--text-xs);
  }

  .solutions__grid {
    grid-template-columns: 1fr;
  }

  /* Proceso: layout vertical en móvil */
  .process__line {
    top: 20px;
    bottom: 20px;
    left: 19px;
    right: auto;
    width: 2px;
    height: auto;
    overflow: hidden;
  }

  .process__line-fill {
    transform-origin: top center;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-left: 60px;
  }

  .process-step {
    position: relative;
    align-items: flex-start;
    text-align: left;
  }

  .process-step__circle {
    position: absolute;
    left: -60px;
    top: 0;
    box-shadow: 0 0 0 6px var(--color-bg);
  }
}


/* ============================================================
   TECH BAR — Tecnologías que Integramos
   ============================================================ */

.tech-bar {
  padding-block: var(--space-lg);
  background: var(--color-bg);
  border-top: 1px solid var(--color-surface);
  border-bottom: 1px solid var(--color-surface);
  overflow: hidden;
}

.tech-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.tech-bar__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  white-space: normal;
  min-width: 7rem;
  max-width: 7rem;
  line-height: 1.3;
  text-align: center;
  flex-shrink: 0;
}

/* ── Marquee ───────────────────────────────────────────────── */

.marquee {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Fade en los bordes */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ── Item individual ───────────────────────────────────────── */

.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  color: #B0B8C9;
  filter: grayscale(100%) opacity(0.6);
  transition: color var(--transition-base), filter var(--transition-base);
  flex-shrink: 0;
}

.marquee__item svg {
  flex-shrink: 0;
  height: 28px;
  width: auto;
}

.marquee__item span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.marquee__item:hover {
  color: #026cd0;
  filter: grayscale(0%) opacity(1);
}

/* ── Accesibilidad: prefers-reduced-motion ─────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero-orb__sphere,
  .hero-orb__glow,
  .hero-orb__layer--1,
  .hero-orb__layer--2,
  .hero-orb__layer--3,
  .hero-orb__layer--4,
  .orbit-icon,
  .orbit-icon__inner,
  .hero-pill,
  .hero__scroll-dot {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    overflow-x: auto;
    width: auto;
    flex-wrap: nowrap;
  }

  .marquee__track::-webkit-scrollbar {
    display: none;
  }

  .marquee__track {
    scrollbar-width: none;
  }
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .tech-bar__label {
    display: none;
  }

  .tech-bar__inner {
    gap: 0;
  }

  .marquee {
    flex: unset;
    width: 100%;
  }

  .marquee__track {
    animation-duration: 25s;
  }
}
