.guia-artistas,
.artist-guide-doc {
  --ag-card: rgba(255, 255, 255, 0.04);
  --ag-border: rgba(255, 255, 255, 0.08);
  --ag-text: #e8e8ec;
  --ag-muted: #9a9aa8;
}

.guia-artistas {
  position: relative;
  isolation: isolate;
  background: #08080b;
  min-height: 85vh;
  margin-top: -92px;
  padding: calc(92px + 40px) 0 80px;
  overflow: hidden;
}

.guia-artistas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(255, 162, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 15%, rgba(0, 219, 222, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #121218 0%, #0a0a0d 50%, #0f1016 100%);
  z-index: 0;
}

.guia-artistas .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.guia-artistas-head {
  text-align: center;
  margin-bottom: 36px;
}

.guia-artistas-kicker {
  display: inline-block;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.guia-artistas-head h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.guia-artistas-sub {
  color: var(--ag-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.artist-guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.artist-guide-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--ag-border);
  background: var(--ag-card);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.artist-guide-toc-link:hover {
  border-color: rgba(255, 162, 0, 0.45);
  background: rgba(255, 162, 0, 0.08);
}

.artist-guide-toc-link--rules:hover {
  border-color: rgba(0, 219, 222, 0.45);
  background: rgba(0, 219, 222, 0.08);
}

.artist-guide-section {
  background: rgba(12, 12, 16, 0.82);
  border: 1px solid var(--ag-border);
  border-radius: 18px;
  padding: 28px 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.artist-guide-section--rules {
  border-color: rgba(0, 219, 222, 0.18);
}

.artist-guide-section-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ag-border);
}

.artist-guide-section-kicker {
  display: inline-block;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.artist-guide-section-kicker--rules {
  color: #00dbde;
}

.artist-guide-section-head h2 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.15;
}

.ag-rich {
  color: var(--ag-text);
  font-size: 0.98rem;
  line-height: 1.65;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ag-rich p,
.ag-rich ul,
.ag-rich ol,
.ag-rich .ag-rule-card,
.ag-rich .ag-table-wrap {
  margin: 0 0 14px;
}

.ag-rich .ag-rule-card > :last-child {
  margin-bottom: 0;
}

.ag-rich h3,
.ag-rich h4 {
  color: #fff;
  margin: 22px 0 10px;
  line-height: 1.25;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.ag-rich h3 { font-size: 1.02rem; }
.ag-rich h4 { font-size: 1.02rem; }

.ag-rule-card h4 {
  margin: 0 0 10px;
}

.ag-section-title {
  margin: 0 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 162, 0, 0.22);
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffe8b8 !important;
}

.artist-guide-section--rules .ag-section-title {
  border-bottom-color: rgba(0, 219, 222, 0.22);
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0.01em;
}

.ag-faq-item {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ag-faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ag-faq-q {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.ag-faq-a {
  margin: 0 !important;
  color: #d4d4de !important;
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
}

ul.ag-faq-a,
ol.ag-faq-a {
  margin: 0 !important;
  padding: 10px 14px 10px 1.35rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

ul.ag-faq-a li,
ol.ag-faq-a li {
  color: #d4d4de;
}

.ag-rich--guide .ag-lead {
  margin-bottom: 18px;
}

.ag-steps {
  margin: 0 0 14px;
  padding-left: 1.35rem;
  counter-reset: ag-step;
  list-style: none;
}

.ag-steps li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 4px;
  color: #d4d4de;
  line-height: 1.55;
}

.ag-steps li::marker {
  color: var(--orange);
  font-weight: 700;
}

.ag-rich p,
.ag-rich li,
.ag-rich td,
.ag-rich th {
  font-family: inherit;
}

.ag-rich span[style],
.ag-rich font {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

.ag-rich ul,
.ag-rich ol {
  padding-left: 1.35rem;
}

.ag-rich li + li {
  margin-top: 6px;
}

.ag-lead {
  font-size: 1.05rem;
  color: #f2f2f6;
}

.ag-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--ag-border);
}

.ag-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 260px;
}

.ag-table caption {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--ag-border);
}

.ag-table th,
.ag-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.ag-table th {
  color: var(--ag-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ag-rule-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--ag-border);
  background: rgba(255, 255, 255, 0.03);
}

.ag-rule-card p,
.ag-rule-card ul,
.ag-rule-card ol {
  color: var(--ag-text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.ag-rule-card--danger {
  border-color: rgba(255, 90, 90, 0.35);
  background: rgba(255, 70, 70, 0.07);
}

.ag-rule-card--warn {
  border-color: rgba(255, 162, 0, 0.35);
  background: rgba(255, 162, 0, 0.07);
}

.ag-rule-card--note {
  border-color: rgba(0, 219, 222, 0.28);
  background: rgba(0, 219, 222, 0.06);
}

.guia-artistas-recruit {
  margin-top: 36px;
  padding: 28px 24px 30px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(0, 219, 222, 0.22);
  background:
    linear-gradient(145deg, rgba(0, 219, 222, 0.1), rgba(255, 162, 0, 0.08)),
    rgba(12, 12, 16, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.guia-artistas-recruit-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #7efcff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guia-artistas-recruit-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.guia-artistas-recruit-text {
  max-width: 560px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.65;
}

.guia-artistas-foot {
  text-align: center;
  margin-top: 32px;
  color: var(--ag-muted);
}

.guia-artistas-foot p {
  margin-bottom: 16px;
}

.guia-artistas-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.guia-artistas-cta:hover {
  filter: brightness(1.05);
}

.guia-artistas-recruit .ck-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  background: linear-gradient(135deg, #ffd35c, #ffa200);
  color: #141414;
  border: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 5px 0 #b87400, 0 10px 22px rgba(255, 162, 0, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none;
}

.guia-artistas-recruit .ck-confirm__icon {
  display: block;
  flex: none;
}

.guia-artistas-recruit .ck-confirm__label {
  line-height: 1;
}

.guia-artistas-recruit .ck-confirm:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #b87400, 0 14px 26px rgba(255, 162, 0, 0.5);
}

.guia-artistas-recruit .ck-confirm:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b87400;
}

/* Panel admin */
.admin-guide-preview-box--edit {
  border-color: rgba(255, 162, 0, 0.22);
}

.ag-edit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ag-edit-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f6;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ag-edit-btn:hover {
  border-color: rgba(255, 162, 0, 0.45);
  background: rgba(255, 162, 0, 0.1);
}

.ag-rich--editable {
  min-height: 180px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 162, 0, 0.35);
  background: rgba(255, 255, 255, 0.02);
  outline: none;
  cursor: text;
}

.ag-rich--editable:focus {
  border-style: solid;
  border-color: rgba(255, 162, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 162, 0, 0.12);
}

.artist-guide-doc--editable .artist-guide-section {
  margin-bottom: 20px;
}

.admin-guide-editor .ag-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-guide-editor .ag-editor-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.admin-guide-editor .ag-editor-card h4 {
  margin: 0 0 12px;
  color: #fff;
}

.admin-guide-editor textarea.ag-html-field {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-guide-preview-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c10;
}

.admin-guide-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-guide-meta .pf-field--full {
  grid-column: 1 / -1;
}

.admin-guide-version-note {
  margin: 12px 0 0;
  color: #9a9aa8;
  font-size: 0.88rem;
}

.artist-terms-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 4, 8, 0.88);
  backdrop-filter: blur(8px);
}

.artist-terms-gate__panel {
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 162, 0, 0.28);
  background: #101015;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.artist-terms-gate__head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.artist-terms-gate__head h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.artist-terms-gate__head p {
  color: #a8a8b4;
  font-size: 0.92rem;
  line-height: 1.5;
}

.artist-terms-gate__scroll {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
}

.artist-terms-gate__scroll .artist-guide-section {
  padding: 18px 18px 22px;
  margin-bottom: 16px;
}

.artist-terms-gate__foot {
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
}

.artist-terms-gate__accept-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 162, 0, 0.2);
  background: linear-gradient(165deg, rgba(255, 162, 0, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.artist-terms-gate__progress-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.artist-terms-gate__progress-icon {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(255, 162, 0, 0.55);
  box-shadow: 0 0 12px rgba(255, 162, 0, 0.35);
}

.artist-terms-gate__progress-wrap.is-done .artist-terms-gate__progress-icon {
  background: #7dffb0;
  box-shadow: 0 0 12px rgba(125, 255, 176, 0.35);
}

.artist-terms-gate__progress {
  color: #b8b8c2;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.artist-terms-gate__progress.is-done {
  color: #b8f5cd;
}

.artist-terms-gate__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 14, 0.55);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.artist-terms-gate__check:hover:not(.is-disabled) {
  border-color: rgba(255, 162, 0, 0.35);
  background: rgba(255, 162, 0, 0.06);
}

.artist-terms-gate__check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.artist-terms-gate__check-box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: #141417;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.artist-terms-gate__check input:checked + .artist-terms-gate__check-box {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 162, 0, 0.2);
}

.artist-terms-gate__check input:checked + .artist-terms-gate__check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #111;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.artist-terms-gate__check-text {
  color: #ececf0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.artist-terms-gate__check.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.artist-terms-gate__actions {
  display: flex;
  justify-content: stretch;
}

.artist-terms-gate__submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: #111;
  background: linear-gradient(135deg, #ffc451, var(--orange));
  box-shadow: 0 8px 24px rgba(255, 162, 0, 0.28);
  transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.artist-terms-gate__submit:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 162, 0, 0.34);
}

.artist-terms-gate__submit.is-ready {
  box-shadow:
    0 0 0 1px rgba(255, 162, 0, 0.45),
    0 12px 30px rgba(255, 162, 0, 0.38);
}

.artist-terms-gate__submit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

.artist-terms-gate__error {
  color: #ff9b9b;
  font-size: 0.86rem;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.25);
}

.admin-panel--terms-locked .admin-tabs-nav a:not([href*="guia-reglamento"]) {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 820px) {
  .admin-guide-editor .ag-editor-grid,
  .admin-guide-meta {
    grid-template-columns: 1fr;
  }

  .artist-guide-section,
  .guia-artistas {
    padding-left: 0;
    padding-right: 0;
  }

  .artist-guide-section {
    padding: 20px 16px 24px;
    border-radius: 14px;
  }
}
