/* ===== BOTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn--orange {
  background: var(--orange);
  color: #fff;
}

.btn--orange:hover {
  background: var(--orange-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.btn--sm {
  padding: 0.4rem 1rem;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn svg {
  flex-shrink: 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--s3);
  transition: box-shadow var(--transition), transform var(--transition);
  will-change: transform;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--featured {
  border-top: 3px solid var(--orange);
}

.card--navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy-dark);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: var(--s2);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--s1);
  color: var(--navy);
}

.card--navy .card__title {
  color: #fff;
}

.card__body {
  color: var(--text-muted);
  font-size: var(--text-md);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.badge--navy    { background: var(--navy-muted); color: var(--navy-dark); }
.badge--orange  { background: var(--orange-muted); color: #92400E; }
.badge--success { background: var(--success-muted); color: #065F46; }

/* ===== TIMELINE ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s2);
  position: relative;
  padding-bottom: var(--s4);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.timeline__node--optional {
  background: var(--text-muted);
}

.timeline__content {
  padding-top: 0.5rem;
  padding-bottom: var(--s2);
}

.timeline__header {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.timeline__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
}

.timeline__meta {
  display: flex;
  gap: var(--s1);
  align-items: center;
}

.timeline__items {
  color: var(--text-muted);
  font-size: var(--text-md);
}

.timeline__items li {
  padding-left: var(--s2);
  position: relative;
  margin-bottom: 0.25rem;
}

.timeline__items li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  text-align: left;
  padding: var(--s2) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  background: none;
  cursor: pointer;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--navy);
}

.faq__icon {
  font-size: var(--text-xl);
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--navy);
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding-bottom: var(--s2);
  color: var(--text-muted);
  font-size: var(--text-md);
}

.faq__item.open .faq__answer {
  display: block;
}

/* ===== DOWNLOAD CARD ===== */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: box-shadow var(--transition), transform var(--transition);
  will-change: transform;
  cursor: default;
}

.download-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.download-card__icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
}

/* ===== ICONES SVG ===== */
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon--sm  { width: 16px; height: 16px; }
.icon--md  { width: 20px; height: 20px; }
.icon--lg  { width: 24px; height: 24px; }
.icon--xl  { width: 32px; height: 32px; }
.icon--2xl { width: 40px; height: 40px; }

.download-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
}

.download-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex: 1;
}

.download-card__actions {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
}

/* ===== AVÍS / ALERT ===== */
.alert {
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  border-left: 4px solid;
  font-size: var(--text-sm);
}

.alert--warning {
  background: var(--orange-muted);
  border-color: var(--orange);
  color: #92400E;
}

.alert--info {
  background: var(--navy-muted);
  border-color: var(--navy);
  color: var(--navy-dark);
}

/* ===== COMPARATIVA (MCP vs Skills) ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s3);
  align-items: start;
}

.compare__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  margin-top: var(--s2);
}

.compare__col h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--s2);
}

.compare__col--mcp h3 { color: var(--navy); }
.compare__col--skills h3 { color: var(--orange); }

.compare__list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  padding-left: var(--s2);
  position: relative;
}

.compare__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ===== QUIZZ EMBED ===== */
.quizz-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quizz-embed__header {
  background: var(--navy);
  color: #fff;
  padding: var(--s2) var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.quizz-embed__body {
  padding: var(--s3);
}

/* ===== CHIPS / TAGS ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag--practica { background: var(--navy-muted); color: var(--navy-dark); }
.tag--demo     { background: var(--orange-muted); color: #92400E; }
.tag--xerrada  { background: var(--success-muted); color: #065F46; }
