/* ── SECCIONES NUEVAS: base compartida ── */
.section-new {
  margin: 48px 0;
  scroll-margin-top: 80px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.section-title .icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent2), var(--color-accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.section-badge {
  margin-left: auto;
  font-size: 0.65rem;
  background: rgba(245, 197, 24, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}

/* ── SOBRE EL PROYECTO ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent2), var(--color-accent));
}

.about-card h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 0 0 8px;
}

.about-card p {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.about-hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0d1f3c 0%, #0a1628 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
}

@media (max-width: 640px) {
  .about-hero {
    flex-direction: column;
  }
}

.about-hero-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.about-hero-text h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
}

.about-hero-text p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.about-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 131, 42, 0.08);
  color: var(--color-accent);
  border: 1px solid rgba(232, 131, 42, 0.2);
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: rgba(245, 197, 24, 0.4);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  gap: 12px;
  user-select: none;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-accent);
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

/* ── CONTACTO ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 131, 42, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.contact-card:hover {
  border-color: rgba(232, 131, 42, 0.5);
  transform: translateY(-2px);
}

.contact-card:hover::after {
  opacity: 1;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-icon.mail {
  background: rgba(232, 131, 42, 0.1);
}

.contact-icon.wp {
  background: rgba(34, 197, 94, 0.1);
}

.contact-icon.ig {
  background: rgba(240, 165, 0, 0.1);
}

.contact-icon.loc {
  background: rgba(239, 68, 68, 0.1);
}

.contact-info {
  min-width: 0;
}

.contact-info strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 3px;
}

.contact-info span {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.contact-form-wrap {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-form-wrap h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin: 0 0 16px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 500px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cf-field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.cf-field input,
.cf-field textarea {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--color-text);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: none;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--color-accent);
}

.cf-field textarea {
  min-height: 90px;
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--color-accent2), var(--color-accent));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s;
}

.cf-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cf-success {
  display: none;
  color: var(--color-success);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ── SEPARADOR ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 8px 0;
}

/* ── ESTADÍSTICAS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: rgba(232, 131, 42, 0.4);
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent2), var(--color-accent));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.stat-sub {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 4px;
}

/* ── PROGRESO GLOBAL ── */
.progress-global-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.progress-global-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.progress-global-header span {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-global-pct {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
}

.progress-bar-outer {
  background: #1e2d40;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-inner {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent2), var(--color-accent));
  transition: width 1s ease;
}

.modules-progress-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.mod-progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
}

.mod-status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mod-status.done {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.mod-status.active {
  background: rgba(245, 197, 24, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(245, 197, 24, 0.3);
}

.mod-status.locked {
  background: rgba(100, 116, 139, 0.1);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.mod-info strong {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text);
}

.mod-info span {
  font-size: 0.68rem;
  color: var(--color-muted);
}

/* ── RECURSOS SEC ── */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.recurso-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.recurso-card:hover {
  border-color: rgba(232, 131, 42, 0.4);
  transform: translateY(-2px);
}

.recurso-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.recurso-icon.pdf {
  background: rgba(239, 68, 68, 0.12);
}

.recurso-icon.table {
  background: rgba(232, 131, 42, 0.12);
}

.recurso-icon.calc {
  background: rgba(34, 197, 94, 0.12);
}

.recurso-icon.form {
  background: rgba(240, 165, 0, 0.12);
}

.recurso-icon.ref {
  background: rgba(168, 85, 247, 0.12);
}

.recurso-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 3px;
}

.recurso-info p {
  font-size: 0.76rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

.recurso-badge {
  margin-left: auto;
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  align-self: flex-start;
}

.recurso-badge.pronto {
  background: rgba(240, 165, 0, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(240, 165, 0, 0.25);
}

.recurso-badge.disponible {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ── CHANGELOG ── */
.changelog-list {
  position: relative;
  padding-left: 24px;
}

.changelog-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-border));
}

.changelog-item {
  position: relative;
  margin-bottom: 28px;
}

.changelog-dot {
  position: absolute;
  left: -21px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent2);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.4);
}

.changelog-item.latest .changelog-dot {
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.6);
}

.changelog-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.changelog-item.latest .changelog-content {
  border-color: rgba(245, 197, 24, 0.3);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.changelog-version {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-accent);
}

.changelog-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.changelog-tag {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.changelog-tag.new {
  background: rgba(245, 197, 24, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(245, 197, 24, 0.3);
}

.changelog-tag.origin {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.changelog-changes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-changes li {
  font-size: 0.84rem;
  color: #94a3b8;
}

/* ── AYUDA ── */
.ayuda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ayuda-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}

.ayuda-card:hover {
  border-color: rgba(232, 131, 42, 0.3);
}

.ayuda-card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.ayuda-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}

.ayuda-card ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ayuda-card ol li {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.ayuda-card ol li strong {
  color: var(--color-text);
}

/* ── MÓDULOS PROGRESIVOS ── */
.modules-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.modules-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modules-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.done {
  background: #22c55e;
}

.legend-dot.active {
  background: #f0a500;
}

.legend-dot.locked {
  background: #334155;
}

#modules-grid {
  scroll-margin-top: 20px;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  min-height: 200px;
}

.mod-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.mod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  transition: background 0.3s;
}

.mod-card.done::before {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.mod-card.active::before {
  background: linear-gradient(90deg, #d97706, #f0a500);
}

.mod-card.next::before {
  background: linear-gradient(90deg, var(--color-accent2), var(--color-accent));
}

.mod-card.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.mod-card.locked:hover {
  transform: none;
  border-color: var(--color-border);
}

.mod-card:not(.locked):hover {
  transform: translateY(-3px);
  border-color: rgba(232, 131, 42, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mod-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mod-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mod-card.done .mod-num {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.mod-card.active .mod-num {
  background: rgba(240, 165, 0, 0.15);
  color: #f0a500;
}

.mod-card.next .mod-num {
  background: rgba(245, 197, 24, 0.15);
  color: var(--color-accent);
}

.mod-card.locked .mod-num {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.mod-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mod-card.done .mod-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.mod-card.active .mod-badge {
  background: rgba(240, 165, 0, 0.12);
  color: #f0a500;
  border: 1px solid rgba(240, 165, 0, 0.25);
}

.mod-card.next .mod-badge {
  background: rgba(245, 197, 24, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(245, 197, 24, 0.25);
}

.mod-card.locked .mod-badge {
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
  border: 1px solid var(--color-border);
}

.mod-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 6px;
}

.mod-desc {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0 0 14px;
}

.mod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mod-meta {
  display: flex;
  gap: 10px;
}

.mod-meta span {
  font-size: 0.68rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mod-action {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.mod-card.done .mod-action {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.mod-card.active .mod-action {
  background: rgba(240, 165, 0, 0.15);
  color: #f0a500;
}

.mod-card.next .mod-action {
  background: linear-gradient(135deg, var(--color-accent2), var(--color-accent));
  color: #fff;
}

.mod-card.locked .mod-action {
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
  cursor: not-allowed;
}

.mod-lock-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 1.1rem;
  opacity: 0.3;
}

/* Toast desbloqueado */
.unlock-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.unlock-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── DRAWERS LATERALES ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.drawer-overlay.open {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 950;
  width: 340px;
  max-width: 90vw;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.drawer-left {
  left: 0;
  transform: translateX(-100%);
  border-right: 1px solid var(--color-border);
}

.drawer-right {
  right: 0;
  transform: translateX(100%);
  border-left: 1px solid var(--color-border);
}

.drawer-left.open {
  transform: translateX(0);
}

.drawer-right.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-surface);
  position: relative;
}

.drawer-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent2), var(--color-accent));
}

.drawer-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
}

.drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.drawer-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-body::-webkit-scrollbar {
  width: 4px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.drawer-section-title {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.drawer-trigger {
  position: fixed;
  top: 14px;
  transform: none;
  z-index: 1000;
  width: 36px;
  height: 72px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: none; /* visible solo en mobile via media query */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-muted);
}

@media (max-width: 960px) {
  .drawer-trigger {
    display: flex;
  }
}

.drawer-trigger:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(232, 131, 42, 0.06);
}

.drawer-trigger-left {
  left: 0;
  border-left: none;
  border-radius: 0 10px 10px 0;
  transition: opacity 0.2s;
}

.drawer-trigger-right {
  right: 0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  transition: opacity 0.2s;
}

.drawer-trigger-bar {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.2s;
}

.drawer-trigger:hover .drawer-trigger-bar:nth-child(2) {
  width: 10px;
}

.drawer-overlay.open~.drawer-trigger-left,
.drawer-overlay.open~.drawer-trigger-right {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.drawer-profile {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.06), rgba(232, 131, 42, 0.04));
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-accent2), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.drawer-profile-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.drawer-profile-email {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.drawer-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--color-border);
  background: var(--color-surface2);
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-weight: 500;
}

.drawer-action-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.drawer-action-btn.danger:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.drawer-action-btn.primary {
  background: linear-gradient(135deg, var(--color-accent2), var(--color-accent));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.drawer-action-btn.primary:hover {
  opacity: 0.9;
  color: #fff;
}

.drawer-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-stat-card {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.drawer-stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
}

.drawer-stat-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: 3px;
  display: block;
}

.drawer-progress-bar-outer {
  height: 8px;
  background: var(--color-surface2);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.drawer-progress-bar-inner {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent2), var(--color-accent));
  transition: width 0.8s ease;
  width: 0%;
}

.drawer-mod-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-mod-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-muted);
  padding: 5px 8px;
  border-radius: 6px;
}

.drawer-mod-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drawer-mod-dot.done {
  background: #22c55e;
}

.drawer-mod-dot.active {
  background: #f0a500;
}

.drawer-mod-dot.locked {
  background: #1e3a5f;
}

.drawer-recurso-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface2);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
}

.drawer-recurso-item:hover {
  border-color: rgba(232, 131, 42, 0.3);
}

.drawer-recurso-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.drawer-recurso-text strong {
  font-size: 0.8rem;
  color: var(--color-text);
  display: block;
}

.drawer-recurso-text span {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface2);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 500;
}

.drawer-menu-item:hover {
  border-color: rgba(232, 131, 42, 0.3);
  color: var(--color-accent);
}

/* ── FOOTER LEGAL ── */
.footer-legal {
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

.footer-version {
  font-size: 0.68rem;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a,
.footer-links span {
  font-size: 0.8rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom span {
  font-size: 0.72rem;
  color: #334155;
}

/* ── PRICING SECTION ─────────────────────────────────────── */
.pricing-section {
  display: flex;
  justify-content: center;
  padding: 32px 0 48px;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: calc(var(--radius) * 2);
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.06);
}

.pricing-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

.pricing-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 28px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 6px;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pricing-founder-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 197, 24, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: middle;
  margin-bottom: 4px;
  width: 100%;
}

.pricing-period {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
}

.pricing-slots {
  font-size: 0.78rem;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
}

.pricing-slots--available {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.pricing-slots--full {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.4;
}

.pricing-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
  color: #0A0A0F;
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.pricing-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.pricing-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pricing-note {
  font-size: 0.72rem;
  color: #475569;
  margin: 12px 0 0;
}

/* ── PAGO TOAST ──────────────────────────────────────────── */
.pago-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.pago-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pago-toast--success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pago-toast--info {
  background: rgba(245, 197, 24, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(245, 197, 24, 0.25);
}

.pago-toast--error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
