/* Interacciones accesibles y compactas de Autoconócete */
:root {
  --ac-purple: #8c4dff;
  --ac-purple-dark: #24163b;
  --ac-gold: #f8b336;
  --ac-ink: #f5f2fa;
  --ac-muted: #c5bdcf;
  --ac-panel: #15121b;
  --ac-border: rgba(196, 165, 255, .25);
}

.ac-panel,
.ac-history {
  box-sizing: border-box;
  width: 100%;
  margin: 1rem 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--ac-ink);
  background: linear-gradient(145deg, rgba(35, 26, 49, .96), rgba(16, 14, 20, .97));
  border: 1px solid var(--ac-border);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

.ac-panel h3,
.ac-panel h4,
.ac-history h4 { margin: 0 0 .65rem; color: var(--ac-ink); line-height: 1.3; }
.ac-panel p,
.ac-history p { margin: .55rem 0; color: var(--ac-muted); line-height: 1.6; }
.ac-panel .ac-eyebrow { margin: 0 0 .25rem; color: var(--ac-gold); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ac-status { min-height: 1.3em; color: #d9c7ff !important; font-size: .88rem; }
.ac-private-note { color: #aaa0b6 !important; font-size: .8rem; }

.ac-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1rem;
  border: 1px solid var(--ac-border);
  border-radius: 9px;
  color: var(--ac-ink) !important;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.ac-button:hover { transform: translateY(-1px); border-color: rgba(248, 179, 54, .7); }
.ac-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.ac-primary { color: #fff !important; background: linear-gradient(130deg, #7136dc, #9b51e0); border-color: transparent; }
.ac-secondary { background: rgba(255,255,255,.06); }
.ac-text-button { margin-top: .7rem; padding: .35rem 0; border: 0; color: #cfb9ff; background: transparent; text-decoration: underline; cursor: pointer; }
.ac-button:focus-visible,
.ac-text-button:focus-visible,
.ac-choice:focus-visible,
.ac-video-section :focus-visible,
#evaluadorVida input[type="range"]:focus-visible,
#evRadarChart:focus-visible { outline: 3px solid var(--ac-gold); outline-offset: 3px; }

.ac-wizard { margin-top: 1.25rem; }
.ac-wizard-top,
.ac-wizard-actions,
.ac-mission-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.ac-wizard-top h3 { margin: 0; }
.ac-count { color: var(--ac-muted); font-size: .86rem; }
.ac-progress { height: 8px; margin: 1rem 0; overflow: hidden; background: #342b3c; border-radius: 99px; }
.ac-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--ac-purple), var(--ac-gold)); border-radius: inherit; transition: width .2s ease; }
.ac-scale { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: .8rem 0; color: #ddd3e8; font-size: .78rem; }
.ac-area-prompt { margin: .6rem 0 0 !important; color: #cabbda !important; font-size: .83rem; }
.ac-step-hidden { display: none !important; }
.ac-wizard-actions { justify-content: flex-end; margin-top: .8rem; }
.ac-wizard-actions #ac-wizard-back { margin-right: auto; }

.ac-result-plan { margin-top: 1.1rem; }
.ac-result-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.ac-result-group { padding: .85rem; border: 1px solid var(--ac-border); border-radius: 10px; }
.ac-score-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.09); }
.ac-score-row:first-of-type { border-top: 0; }
.ac-score-row a { color: #d8c1ff !important; }
.ac-score-row strong { color: var(--ac-gold); white-space: nowrap; }
.ac-next-step { padding: .85rem 1rem; border-left: 3px solid var(--ac-gold); background: rgba(248, 179, 54, .08); }
.ac-history { padding: .9rem 1rem; background: rgba(25, 20, 32, .8); }
.ac-history h4 { font-size: 1rem; }
.ac-history p { margin: .3rem 0; font-size: .85rem; }
.ac-chart-help { color: var(--ac-muted); font-size: .8rem; }

.ac-question-card { align-items: flex-start !important; flex-direction: column; gap: .8rem !important; }
.ac-question-card > div:first-child { width: 100%; }
.ac-question-card > div:last-child { width: 100%; }
.ac-choice-group,
.ac-scenario-options { display: flex; flex-wrap: wrap; gap: .55rem; }
.ac-choice { min-width: 82px; min-height: 38px; padding: .5rem .8rem; border: 1px solid var(--ac-border); border-radius: 999px; color: var(--ac-ink); background: rgba(255,255,255,.04); font-family: inherit; font-size: .82rem; font-weight: 700; line-height: 1.2; cursor: pointer; }
.ac-choice:hover { border-color: var(--ac-gold); }
.ac-choice.is-selected { color: #fff; background: #6234ad; border-color: #b18aff; box-shadow: 0 0 0 2px rgba(140,77,255,.18); }
.ac-answer-feedback { width: 100%; margin: .4rem 0 0 !important; color: #ddcaff !important; font-size: .82rem; }
.ac-quiz-summary { padding: .7rem .9rem; border-radius: 8px; background: rgba(140,77,255,.12); }

.ac-daily-mission { margin: 1rem 0; border-color: rgba(248,179,54,.3); }
.ac-mission-title { margin: 0 0 .4rem; }
.ac-reminder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .65rem; margin-top: .85rem; }
.ac-reminder label { display: grid; gap: .35rem; color: var(--ac-muted); font-size: .82rem; }
.ac-reminder input,
.ac-reflection-label textarea { box-sizing: border-box; width: 100%; padding: .65rem .75rem; border: 1px solid var(--ac-border); border-radius: 8px; color: var(--ac-ink); background: #0e0c12; font: inherit; }
.ac-reminder .ac-private-note { grid-column: 1 / -1; }
.ac-reflection-label { display: grid; gap: .45rem; margin-top: 1rem; color: var(--ac-muted); font-size: .86rem; }
.ac-scenario-lab { margin: 1rem 0; }
.ac-scenario-lab textarea { resize: vertical; }

.ac-video-section.et_pb_section { height: auto !important; min-height: 0 !important; padding-top: clamp(1rem, 2.4vw, 2rem) !important; padding-bottom: clamp(1rem, 2.4vw, 2rem) !important; }
.ac-video-section .et_pb_row { width: min(92%, 1080px) !important; max-width: 1080px !important; min-height: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: .35rem !important; padding-bottom: .35rem !important; }
.ac-video-section .et_pb_column,
.ac-video-section .et_pb_module { min-height: 0 !important; margin-bottom: .5rem !important; }
.ac-video-section .et_pb_divider { height: .5rem !important; margin: 0 !important; }
.ac-video-section .et_pb_video_box,
.ac-video-section .ac-video-placeholder { margin: .35rem auto !important; }
.ac-video-section .ac-video-placeholder { max-width: 100%; }
.ac-video-section iframe[src*="mediadelivery.net"] { display: block; }

@media (max-width: 640px) {
  .ac-result-columns { grid-template-columns: 1fr; }
  .ac-scale { display: grid; }
  .ac-wizard-actions { justify-content: space-between; }
  .ac-wizard-actions #ac-wizard-back { margin-right: 0; }
  .ac-reminder { grid-template-columns: 1fr; }
  .ac-question-card .ac-choice { flex: 1 1 28%; min-width: 68px; }
  .ac-video-section .et_pb_row { width: 94% !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Navegación global para el inicio y las doce categorías. */
html { scroll-padding-top: 92px; }
body .ac-global-header,
body .ac-global-header * { box-sizing: border-box; }
body .ac-global-header { position: sticky; top: 0; z-index: 100000; color: #f8f5fc; background: rgba(7, 6, 10, .97); border-bottom: 1px solid rgba(248, 179, 54, .24); box-shadow: 0 10px 28px rgba(0, 0, 0, .24); backdrop-filter: blur(16px); }
body .ac-global-header[hidden],
body .ac-global-header .ac-global-header__panel[hidden] { display: none !important; }
body .et-l--header[hidden] { display: none !important; }
.ac-global-header__bar { display: flex; width: min(1200px, calc(100% - 40px)); min-height: 76px; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 0 auto; }
.ac-global-header__brand { display: inline-flex; min-width: 0; align-items: center; gap: .7rem; color: #fff !important; text-decoration: none !important; }
.ac-global-header__brand img { display: block; width: 52px; height: 44px; object-fit: contain; }
.ac-global-header__brand > span { display: grid; gap: .1rem; font-size: 1rem; font-weight: 800; letter-spacing: .015em; line-height: 1.15; }
.ac-global-header__brand small { color: #aaa1b5; font-size: .63rem; font-weight: 500; letter-spacing: .02em; }
.ac-global-header__actions { display: flex; align-items: center; gap: .55rem; }
.ac-global-header__actions > a,
.ac-global-header__toggle { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .55rem; padding: .65rem .9rem; border: 1px solid transparent; border-radius: 8px; color: #f8f5fc !important; background: transparent; font: inherit; font-size: .88rem; font-weight: 700; line-height: 1.2; text-decoration: none !important; white-space: nowrap; cursor: pointer; }
.ac-global-header__actions > a:hover,
.ac-global-header__toggle:hover,
.ac-global-header__toggle[aria-expanded="true"] { border-color: rgba(248, 179, 54, .35); background: rgba(255, 255, 255, .055); }
.ac-global-header__actions .ac-global-header__test { color: #100b16 !important; background: linear-gradient(110deg, #ffc85e, #f3a928); }
.ac-global-header__actions .ac-global-header__test:hover { background: #ffd779; }
.ac-global-header__chevron { color: var(--ac-gold); font-size: 1.15rem; transition: transform .18s ease; }
.ac-global-header.is-open .ac-global-header__chevron { transform: rotate(180deg); }
.ac-global-header__panel { max-height: min(76vh, 680px); overflow: auto; border-top: 1px solid rgba(255,255,255,.07); background: linear-gradient(135deg, rgba(19, 14, 27, .99), rgba(8, 7, 11, .99)); }
.ac-global-header__mega { display: grid; width: min(1200px, calc(100% - 40px)); grid-template-columns: minmax(210px, .78fr) minmax(0, 2fr); align-items: start; gap: clamp(1.3rem, 4vw, 3.5rem); margin: 0 auto; padding: 1.6rem 0 1.8rem; }
.ac-global-header__intro { position: sticky; top: .75rem; padding: .45rem 0; }
.ac-global-header__eyebrow { color: var(--ac-gold); font-size: .65rem; font-weight: 800; letter-spacing: .14em; }
.ac-global-header__intro h2 { margin: .6rem 0 .45rem; color: #fff; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; }
.ac-global-header__intro p { margin: 0 0 1rem; color: #c6bdcf; font-size: .88rem; line-height: 1.55; }
.ac-global-header__intro > a { display: inline-flex; min-height: 40px; align-items: center; gap: .5rem; padding: .6rem .85rem; border-radius: 7px; color: #150d20 !important; background: var(--ac-gold); font-size: .82rem; font-weight: 800; text-decoration: none !important; }
.ac-global-header__areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.ac-global-header__area { display: grid; min-height: 62px; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem .72rem; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; color: #f7f3fb !important; background: rgba(255,255,255,.025); font-size: .83rem; font-weight: 650; line-height: 1.3; text-decoration: none !important; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.ac-global-header__area:hover,
.ac-global-header__area[aria-current="page"] { transform: translateY(-1px); border-color: rgba(248,179,54,.7); background: rgba(140,77,255,.13); }
.ac-global-header__number { color: #f5b83c; font-size: .7rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.ac-global-header__arrow { color: #a995be; font-size: .75rem; }
.ac-global-header :focus-visible { outline: 3px solid #f8b336; outline-offset: 3px; }

@media (max-width: 760px) {
  .ac-global-header__bar { width: calc(100% - 28px); min-height: 66px; gap: .55rem; }
  .ac-global-header__brand { gap: .4rem; }
  .ac-global-header__brand img { width: 40px; height: 36px; }
  .ac-global-header__brand > span { font-size: .88rem; }
  .ac-global-header__brand small { display: none; }
  .ac-global-header__actions { gap: .2rem; }
  .ac-global-header__actions > a,
  .ac-global-header__toggle { min-height: 40px; padding: .55rem .62rem; font-size: .76rem; }
  .ac-global-header__home { display: none !important; }
  .ac-global-header__mega { width: calc(100% - 28px); grid-template-columns: 1fr; gap: .8rem; padding: 1.1rem 0 1.35rem; }
  .ac-global-header__intro { position: static; }
  .ac-global-header__intro h2 { margin-top: .35rem; }
  .ac-global-header__intro p { max-width: 38rem; margin-bottom: .7rem; }
  .ac-global-header__areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-global-header__area { min-height: 54px; grid-template-columns: 1.65rem minmax(0, 1fr) auto; gap: .4rem; padding: .55rem; font-size: .75rem; }
}

@media (max-width: 420px) {
  .ac-global-header__bar { width: calc(100% - 20px); }
  .ac-global-header__brand img { width: 34px; }
  .ac-global-header__actions .ac-global-header__test { display: none; }
  .ac-global-header__toggle { padding: .52rem .55rem; font-size: .72rem; }
  .ac-global-header__mega { width: calc(100% - 20px); }
}
