/*
 * Correcciones y mejoras para indexGD.css
 * Cárgalo DESPUÉS del CSS original.
 */

/* Base segura */
.modern-storefront,
.modern-storefront *,
.eu-embed,
.eu-embed * {
  box-sizing: border-box;
}

.modern-storefront {
  overflow-x: clip;
}

/* Evita desbordamientos en móviles */
.container-modern,
.eu-embed .wrap {
  width: min(100% - 32px, 1400px);
  margin-inline: auto;
}

.eu-embed .wrap {
  max-width: 1180px;
  margin-inline: auto;
}

/* Corrección del degradado: "TEXT" no es una función CSS válida */
.hero-title,
.eu-embed .hero h1,
.eu-embed .hero h1 .grad {
  background-image: linear-gradient(
    90deg,
    #8957ff,
    #6429ed,
    #dd4040,
    #6429ed,
    #8957ff
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Mejor legibilidad y consistencia de botones */
.btn-primary,
.service-btn,
.cta-btn,
.eu-embed .eu-btn {
  min-height: 44px;
}

.btn-primary:focus-visible,
.service-btn:focus-visible,
.product-card:focus-visible,
.cta-btn:focus-visible,
.eu-embed a:focus-visible,
.eu-embed button:focus-visible {
  outline: 3px solid #19c8f5;
  outline-offset: 3px;
}

/* Tarjetas de producto */
.product-card {
  position: relative;
  display: block;
  color: #6e29ed;
}

.product-image {
  display: block;
  aspect-ratio: 4 / 3;
  height: auto;
}

.product-title {
  line-height: 1.35;
}


/* Ticker: detenerlo al interactuar mejora accesibilidad */
.ticker-wrap:hover .ticker,
.ticker-wrap:focus-within .ticker,
.tool-strip-wrap:hover .tool-strip-inner,
.tool-strip-wrap:focus-within .tool-strip-inner {
  animation-play-state: paused;
}

.ticker {
  will-change: transform;
}

/* Herramientas: variables faltantes y borde válido */
.tool-strip-wrap {
  --bg1: #0a0a0f;
  --neonA: #6429ed;
  --neonA-glow: rgba(100, 41, 237, 0.35);
}


.tool-card-icon img {
  display: block;
}

/* Servicios: el borde ahora es visible al pasar el cursor */
.service-card {
  border: 1px solid transparent;
}

/* Consola: el contenido no debe crear scroll horizontal */
.eu-embed {
  overflow: hidden;
}

.eu-embed .hero {
  padding-top: 48px;
}

.eu-embed .console {
  min-width: 0;
}

.eu-embed .imei-row {
  gap: 12px;
  flex-wrap: wrap;
}

/* Escala tipográfica en pantallas pequeñas */
@media (max-width: 968px) {
  .eu-embed .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .eu-embed .lead {
    margin-inline: auto;
  }

  .eu-embed .hero-cta,
  .eu-embed .hero-meta {
    justify-content: center;
  }
}

@media (max-width: 568px) {
  .container-modern,
  .eu-embed .wrap {
    width: min(100% - 24px, 1400px);
  }

  .hero-grid {
    gap: 28px;
    padding-block: 24px;
  }

  .hero-badge {
    margin-bottom: 20px;
    padding-inline: 14px;
  }

  .carousel-track {
    width: min(220px, 72vw);
    height: 292px;
  }

  .carousel-card.prev,
  .carousel-card.next {
    transform: translateX(0) scale(0.82) translateZ(-50px);
    opacity: 0.35;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    min-height: 190px;
    padding: 22px;
  }

  .section-title {
    font-size: 24px;
  }

  .eu-embed .sec {
    padding-block: 56px;
  }

  .eu-embed .console {
    padding: 18px;
  }
}

/* Usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ticker,
  .tool-strip-inner {
    animation: none !important;
    transform: none !important;
  }
}