/* ════════════════════════════════════════════════════
   page-roadmap.css — Estilos exclusivos del Roadmap
   ════════════════════════════════════════════════════ */

/* ---- Main container ---- */

.roadmap-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

/* ---- Product tabs ---- */

.roadmap-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-tabs::-webkit-scrollbar {
  display: none;
}

.roadmap-tab {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.roadmap-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.roadmap-tab.is-active {
  background: var(--color-primario-100);
  border-color: var(--color-primario-100);
  color: #fff;
  font-weight: var(--font-bold);
}

/* ---- Status badges ---- */

.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.roadmap-status::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.roadmap-status--planned {
  background: rgba(99, 151, 255, 0.12);
  color: var(--color-primario-75, #6397ff);
}

.roadmap-status--in_progress {
  background: rgba(242, 182, 48, 0.12);
  color: #F2B630;
}

.roadmap-status--completed {
  background: rgba(88, 229, 91, 0.12);
  color: var(--color-secundario-100, #58E55B);
}

/* ---- Grid ---- */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---- Card ---- */

.roadmap-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  opacity: 0;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.16);
}

.roadmap-card:focus-visible {
  outline: 2px solid var(--color-primario-100);
  outline-offset: 2px;
}

@keyframes roadmap-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.roadmap-card-enter {
  animation: roadmap-card-in 0.35s ease both;
}

/* Card image */

.roadmap-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.roadmap-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.roadmap-card:hover .roadmap-card-img img {
  transform: scale(1.05);
}

.roadmap-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(48, 113, 242, 0.08) 0%, rgba(0, 12, 30, 0.6) 100%);
}

.roadmap-card-img--empty::after {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  opacity: 0.2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Card body */

.roadmap-card-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roadmap-card-title {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

/* ---- States ---- */

.roadmap-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  text-align: center;
}

.roadmap-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primario-100, #3071F2);
  border-radius: 50%;
  animation: roadmap-spin 0.75s linear infinite;
}

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

.roadmap-empty-msg {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  grid-column: 1 / -1;
}

/* ---- Modal ---- */

.roadmap-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.roadmap-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.roadmap-modal-panel {
  position: relative;
  z-index: 1;
  background: #0b1828;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: roadmap-modal-in 0.28s ease both;
}

@keyframes roadmap-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.roadmap-modal-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1rem 0;
  flex-shrink: 0;
}

.roadmap-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.roadmap-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.roadmap-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 2rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.roadmap-modal-content::-webkit-scrollbar {
  width: 4px;
}

.roadmap-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.roadmap-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* Modal header (status + title) */

.roadmap-modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.roadmap-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--font-extrabold, 800);
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

/* Content blocks */

.roadmap-modal-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.roadmap-block-text {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.roadmap-block-image {
  margin: 1rem 0;
}

.roadmap-block-image img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.roadmap-block-youtube {
  margin: 1rem 0;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
}

.roadmap-block-youtube iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Body lock */

body.modal-open {
  overflow: hidden;
}