/* COMEXT-WEB-UX-01: Platform page — layout specific to this page only. Shared glow/tilt/reveal
   mechanics and the generic modal shell live in comext-interactive-cards.css. */

.comext-platform-section {
  position: relative;
  padding-block: 2.5rem 4rem;
}

.comext-platform-header {
  margin-bottom: 3rem;
}

.comext-platform-subtitle {
  font-size: 1.1rem;
  color: var(--c-text);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 1.75rem;
}

.comext-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.comext-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(15, 29, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--c-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.comext-filter-btn:hover,
.comext-filter-btn:focus-visible {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--c-title);
}

.comext-filter-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--c-cyan);
  color: var(--c-title);
}

.comext-filter-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.6);
}

.comext-filter-btn.active .comext-filter-count {
  color: var(--c-cyan);
}

.comext-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.35rem;
  margin-bottom: 4rem;
}

.comext-module-card-inner {
  gap: 0.75rem;
}

.comext-module-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.comext-module-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cyan);
}

.comext-status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7DD3FC;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.comext-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  transition: background-color 0.2s ease;
}

/* COMEXT-WEB-UX-02: module cards are selectable (role="button") — hover, keyboard focus and
   the persisted "selected" state all use the same amber treatment, reusing the exact gold the
   "Contáctenos"/"Contact Us" CTA already uses (var(--c-gold)), never a new tone. Deliberately a
   static color/background swap, not a new animation — a card that's merely "coming soon" should
   never look busier than one that's actually interactive. */
.comext-module-card {
  cursor: pointer;
  /* Restates .comext-glow-card's own transform/opacity transition alongside the new ones —
     a second `transition` shorthand on the same element would otherwise replace it outright
     rather than add to it, silently breaking the existing tilt reset on mouseleave. */
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease,
    background-color 0.25s ease, box-shadow 0.25s ease;
}

.comext-module-card:hover,
.comext-module-card:focus-visible,
.comext-module-card.is-selected {
  background: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.18);
  outline: none;
}

.comext-module-card:hover .comext-status-pill,
.comext-module-card:focus-visible .comext-status-pill,
.comext-module-card.is-selected .comext-status-pill {
  color: var(--c-gold);
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
}

.comext-module-card:hover .comext-status-dot,
.comext-module-card:focus-visible .comext-status-dot,
.comext-module-card.is-selected .comext-status-dot {
  background: var(--c-gold);
}

/* Visible focus indicator independent of the amber treatment above, kept even under
   prefers-reduced-motion (that query only strips transitions/animations, never this). */
.comext-module-card:focus-visible {
  box-shadow: 0 0 0 2px var(--c-gold), 0 0 22px rgba(245, 158, 11, 0.18);
}

.comext-module-card-inner h3 {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-title);
  margin: 0;
}

.comext-module-card-inner p {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--c-text);
  margin: 0;
}

.comext-module-meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.75);
}

.comext-early-access-banner {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 29, 52, 0.92), rgba(10, 20, 38, 0.96));
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}

.comext-banner-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 70%);
  pointer-events: none;
}

.comext-banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.comext-banner-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  margin-bottom: 0.75rem;
}

.comext-banner-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--c-title);
  margin-bottom: 0.85rem;
}

.comext-banner-content p {
  font-size: 1rem;
  color: var(--c-text);
  margin-bottom: 2rem;
}

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