/**
 * GSS Frameworks Carousel
 * Marquee de dos filas con direcciones opuestas mostrando los marcos normativos soportados.
 *
 * Marker: .gss-fw-section
 * JS:     (sin JS, animación 100% CSS)
 */

/* =============================================================
   SECTION ROOT
   ============================================================= */
.gss-fw-section {
  --gss-neon: #5078FF;
  --gss-dark: #041438;
  --gss-aqua: #00FFD7;
  --gss-sky:  #50DCFF;
  --gss-gray: #787882;
  --gss-card-bg: #FFFFFF;
  --gss-card-border: rgba(80, 120, 255, 0.10);
  --gss-card-border-hover: #5078FF;
  --gss-radius-card: 16px;

  position: relative;
  padding: 110px 20px 100px;
  background: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.gss-fw-section *,
.gss-fw-section *::before,
.gss-fw-section *::after {
  box-sizing: border-box;
}

.gss-fw-section .gss-fw-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* =============================================================
   HEADER
   ============================================================= */
.gss-fw-section .gss-fw-header {
  text-align: center;
  margin-bottom: 70px;
}

.gss-fw-section .gss-fw-tag {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(80, 120, 255, 0.10);
  color: var(--gss-neon);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  border-radius: 100px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.gss-fw-section .gss-fw-title {
  font-size: 60px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--gss-dark);
  max-width: 990px;
  margin: 0 auto 26px;
  letter-spacing: -0.5px;
}

.gss-fw-section .gss-fw-title-accent {
  color: var(--gss-neon);
}

.gss-fw-section .gss-fw-subtitle {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  color: #454545;
  max-width: 760px;
  margin: 0 auto;
}

/* =============================================================
   MARQUEE — DOS FILAS, DIRECCIONES OPUESTAS
   ============================================================= */
.gss-fw-section .gss-fw-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 60px;
}

.gss-fw-section .gss-fw-row {
  overflow: hidden;
  width: 100%;
}

.gss-fw-section .gss-fw-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.gss-fw-section .gss-fw-row-1 .gss-fw-track {
  animation: gss-fw-scroll-left 75s linear infinite;
}

.gss-fw-section .gss-fw-row-2 .gss-fw-track {
  animation: gss-fw-scroll-right 75s linear infinite;
}

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

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

/* Pause on hover (entire row) */
.gss-fw-section .gss-fw-row:hover .gss-fw-track {
  animation-play-state: paused;
}

/* =============================================================
   CARD
   ============================================================= */
.gss-fw-section .gss-fw-card {
  flex-shrink: 0;
  width: 180px;
  height: 110px;
  background: var(--gss-card-bg);
  border: 1px solid var(--gss-card-border);
  border-radius: var(--gss-radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.35s ease;
  cursor: pointer;
}

.gss-fw-section .gss-fw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5078FF 0%, #50DCFF 50%, #00FFD7 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gss-fw-section .gss-fw-card:hover {
  transform: translateY(-4px);
  border-color: var(--gss-card-border-hover);
  box-shadow: 0 12px 32px rgba(80, 120, 255, 0.18);
}

.gss-fw-section .gss-fw-card:hover::before {
  opacity: 1;
}

.gss-fw-section .gss-fw-card:focus-visible {
  outline: 3px solid var(--gss-neon);
  outline-offset: 3px;
}

.gss-fw-section .gss-fw-card-logo {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gss-fw-section .gss-fw-card-logo img {
  max-height: 70px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gss-fw-section .gss-fw-card:hover .gss-fw-card-logo img {
  transform: scale(1.08);
}

/* =============================================================
   CTA
   ============================================================= */
.gss-fw-section .gss-fw-cta {
  text-align: center;
  margin-top: 30px;
}

.gss-fw-section .gss-fw-btn {
  display: inline-block;
  padding: 16px 38px;
  background: var(--gss-neon);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none !important;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(80, 120, 255, 0.25);
}

.gss-fw-section .gss-fw-btn:hover {
  background: #3d64e6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 120, 255, 0.35);
}

.gss-fw-section .gss-fw-btn:focus-visible {
  outline: 3px solid var(--gss-neon);
  outline-offset: 3px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .gss-fw-section { padding: 80px 20px; }
  .gss-fw-section .gss-fw-header { margin-bottom: 50px; }
  .gss-fw-section .gss-fw-title { font-size: 44px; }
  .gss-fw-section .gss-fw-subtitle { font-size: 17px; }
}

@media (max-width: 768px) {
  .gss-fw-section { padding: 70px 16px; }
  .gss-fw-section .gss-fw-title { font-size: 32px; line-height: 1.1; }
  .gss-fw-section .gss-fw-subtitle { font-size: 15px; }
  .gss-fw-section .gss-fw-tag { font-size: 11px; padding: 6px 14px; letter-spacing: 1.2px; }
  .gss-fw-section .gss-fw-card {
    width: 140px;
    height: 90px;
  }
  .gss-fw-section .gss-fw-card-logo { height: 55px; }
  .gss-fw-section .gss-fw-card-logo img { max-height: 55px; max-width: 110px; }
  .gss-fw-section .gss-fw-marquee { gap: 14px; }
  .gss-fw-section .gss-fw-track { gap: 12px; }
  .gss-fw-section .gss-fw-row-1 .gss-fw-track,
  .gss-fw-section .gss-fw-row-2 .gss-fw-track {
    animation-duration: 55s;
  }
}

@media (max-width: 480px) {
  .gss-fw-section .gss-fw-title { font-size: 28px; }
  .gss-fw-section .gss-fw-card {
    width: 120px;
    height: 80px;
  }
  .gss-fw-section .gss-fw-card-logo { height: 48px; }
  .gss-fw-section .gss-fw-card-logo img { max-height: 48px; max-width: 95px; }
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .gss-fw-section .gss-fw-row-1 .gss-fw-track,
  .gss-fw-section .gss-fw-row-2 .gss-fw-track {
    animation-duration: 200s;
  }
}
