/* AuditMyth - hoja de estilos unica. Vocabulario propio con prefijo myth- */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --myth-ink: #131313;
  --myth-paper: #ffffff;
  --myth-mist: #f6f6f6;
  --myth-ash: #e4e4e4;
  --myth-slate: #5f5f5f;
  --myth-accent: #b45309;
  --myth-accent-deep: #8a3f07;
  --myth-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --myth-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --myth-wide: 1080px;
  --myth-cut: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--myth-paper);
  color: var(--myth-ink);
  font-family: var(--myth-sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(32px, 5.2vw, 50px); letter-spacing: -0.043em; line-height: 1.04; }
h2 { font-size: clamp(24px, 3.1vw, 33px); letter-spacing: -0.038em; }
h3 { font-size: 20px; letter-spacing: -0.024em; line-height: 1.22; }
p { margin: 0; }

a { color: var(--myth-accent); text-underline-offset: 3px; }
a:hover { color: var(--myth-accent-deep); }

[hidden] { display: none !important; }

.myth-vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.myth-wrap {
  width: 100%;
  max-width: var(--myth-wide);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.myth-skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--myth-ink); color: #fff; padding: 12px 18px; font-size: 14px;
}
.myth-skip:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- microtipografia ---------- */
.myth-eyebrow {
  font-family: var(--myth-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--myth-slate);
}
.myth-dot {
  display: inline-block; width: 6px; height: 6px; background: var(--myth-accent);
  margin-right: 9px; vertical-align: 0.12em;
}
.myth-num { font-family: var(--myth-mono); font-weight: 500; font-feature-settings: "tnum" 1; }
.myth-hl { color: var(--myth-accent); }

/* ---------- accion (geometria unica: esquinas biseladas) ---------- */
.myth-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 0;
  font-family: var(--myth-sans); font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--myth-cut)) 0, 100% var(--myth-cut), 100% 100%, var(--myth-cut) 100%, 0 calc(100% - var(--myth-cut)));
  transition: background-color .18s ease, color .18s ease;
}
.myth-act--strong { background: var(--myth-accent); color: #fff; }
.myth-act--strong:hover { background: var(--myth-accent-deep); color: #fff; }
.myth-act--soft { background: var(--myth-mist); color: var(--myth-ink); font-weight: 600; }
.myth-act--soft:hover { background: var(--myth-ash); color: var(--myth-ink); }
.myth-act--plain { background: transparent; color: var(--myth-ink); font-weight: 400; padding: 0 14px; }
.myth-act--plain:hover { background: var(--myth-mist); color: var(--myth-ink); }
.myth-act--tight { min-height: 48px; padding: 0 18px; font-size: 14px; }
.myth-act:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--myth-ink); }
.myth-act--strong:focus-visible { box-shadow: inset 0 0 0 3px #fff; }
.myth-act:active { transform: translateY(1px); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--myth-accent); outline-offset: 2px;
}

/* ---------- cabecera ---------- */
.myth-top { position: sticky; top: 0; z-index: 40; background: var(--myth-paper); }
.myth-top.is-stuck { background: var(--myth-mist); }
.myth-top__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }

.myth-mark {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--myth-mono); font-weight: 500; font-size: 17px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--myth-ink); text-decoration: none;
}
.myth-mark__end { color: var(--myth-accent); }

.myth-nav { display: flex; align-items: center; gap: 2px; }
.myth-nav__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  font-size: 14.5px; color: var(--myth-slate); text-decoration: none;
}
.myth-nav__link:hover { color: var(--myth-ink); }
.myth-nav__link--now { color: var(--myth-ink); font-weight: 600; }

.myth-burger {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--myth-ink); cursor: pointer; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--myth-cut)) 0, 100% var(--myth-cut), 100% 100%, var(--myth-cut) 100%, 0 calc(100% - var(--myth-cut)));
}
.myth-burger:hover { background: var(--myth-mist); }

@media (max-width: 880px) {
  .myth-burger { display: inline-flex; }
  .myth-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--myth-paper); padding: 8px clamp(20px, 5vw, 40px) 20px;
  }
  .myth-top__bar { position: relative; }
  .myth-nav.is-open { display: flex; }
  .myth-nav__link { min-height: 52px; font-size: 16px; padding: 0 4px; }
}

/* ---------- portada ---------- */
.myth-intro { padding: 40px 0 54px; }
.myth-intro__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 46px; align-items: center; }
.myth-intro__title { margin-top: 16px; max-width: 12em; }
.myth-intro__lede { margin-top: 20px; max-width: 32em; color: var(--myth-slate); font-size: 17px; }
.myth-intro__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.myth-count { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 34px; }
.myth-count__n { display: block; font-family: var(--myth-mono); font-weight: 500; font-size: 27px; letter-spacing: -0.02em; }
.myth-count__t { display: block; font-size: 13px; color: var(--myth-slate); margin-top: 2px; }

.myth-panel { margin: 0; background: var(--myth-mist); padding: 26px 24px; }
.myth-panel__list { list-style: none; margin: 14px 0 0; padding: 0; }
.myth-panel__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; font-size: 16px; border-bottom: 1px solid var(--myth-ash);
}
.myth-panel__list li:last-child { border-bottom: 0; }
.myth-panel__list b { font-weight: 600; }
.myth-panel__list span { font-family: var(--myth-mono); font-weight: 500; font-size: 12.5px; color: var(--myth-slate); }
.myth-panel__sub { margin-top: 26px; padding-top: 22px; border-top: 2px solid var(--myth-ink); }
.myth-panel__meta { margin: 12px 0 0; }
.myth-panel__meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; }
.myth-panel__meta dt { font-size: 14px; color: var(--myth-slate); }
.myth-panel__meta dd {
  margin: 0; font-family: var(--myth-mono); font-weight: 500; font-size: 12.5px;
  color: var(--myth-ink); text-align: right; white-space: nowrap;
}
.myth-panel__note {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--myth-ash);
  font-size: 13px; line-height: 1.55; color: var(--myth-slate);
}

@media (max-width: 900px) {
  .myth-intro { padding: 28px 0 40px; }
  .myth-intro__grid { grid-template-columns: 1fr; gap: 30px; }
  .myth-intro__title { max-width: none; }
}

/* ---------- comparativa ---------- */
.myth-board { padding: 20px 0 46px; }
.myth-board__head { max-width: 40em; }
.myth-board__lede { margin-top: 14px; color: var(--myth-slate); }
.myth-board__scroll { margin-top: 26px; overflow-x: auto; }
.myth-board__scroll:focus-visible { outline: 3px solid var(--myth-accent); outline-offset: 3px; }
.myth-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.myth-table caption {
  text-align: left; font-size: 13px; color: var(--myth-slate); padding-bottom: 14px; line-height: 1.5;
}
.myth-table thead th {
  font-family: var(--myth-mono); font-weight: 500; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--myth-slate); text-align: left;
  padding: 0 14px 10px; border-bottom: 1px solid var(--myth-ink); white-space: nowrap;
}
.myth-table tbody th, .myth-table tbody td { padding: 13px 14px; font-size: 14.5px; text-align: left; vertical-align: top; }
.myth-table tbody th { font-weight: 600; width: 22%; }
.myth-table tbody tr:nth-child(even) { background: var(--myth-mist); }
.myth-table__yes { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.myth-table__score { font-family: var(--myth-mono); font-weight: 500; font-size: 15px; }
.myth-board__note { margin-top: 18px; font-size: 14px; color: var(--myth-slate); max-width: 46em; }

/* ---------- catalogo en filas ---------- */
.myth-ledger { padding: 26px 0 60px; }
.myth-ledger__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.myth-ledger__intro { color: var(--myth-slate); margin-top: 14px; max-width: 34em; }
.myth-strip { margin: 30px 0 10px; }
.myth-strip__img { display: block; width: 100%; height: auto; background: var(--myth-mist); }
.myth-strip__cap { margin-top: 12px; font-size: 13px; color: var(--myth-slate); }

.myth-ledger__rows { margin-top: 22px; }
.myth-row {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 30px; align-items: start; padding: 26px 0;
}
.myth-row--wide { grid-template-columns: minmax(0, 486px) minmax(0, 1fr); gap: 36px; padding: 34px 0; }
.myth-row__shot { display: block; width: 100%; height: auto; background: var(--myth-mist); }
.myth-row__kicker { display: flex; align-items: center; }
.myth-row__name { margin-top: 10px; }
.myth-row__id { font-family: var(--myth-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; color: var(--myth-slate); text-transform: uppercase; }
.myth-row__by { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.myth-row__icon { display: block; width: 48px; height: 48px; flex: none; }
.myth-row__dev { font-size: 14px; color: var(--myth-slate); }
.myth-row__score { display: block; font-family: var(--myth-mono); font-weight: 500; font-size: 18px; color: var(--myth-ink); }
.myth-row__text { margin-top: 16px; max-width: 40em; }
.myth-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.myth-row__tags li {
  font-family: var(--myth-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.04em;
  background: var(--myth-mist); color: var(--myth-slate); padding: 7px 11px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.myth-row__go { margin-top: 20px; }

@media (max-width: 860px) {
  .myth-ledger__head { grid-template-columns: 1fr; gap: 8px; }
  .myth-row, .myth-row--wide { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
}

/* ---------- plus y contacto ---------- */
.myth-plus { padding: 22px 0 58px; }
.myth-plus__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 44px; align-items: start; margin-top: 26px; }
.myth-plus__lede { color: var(--myth-slate); margin-top: 14px; max-width: 42em; }
.myth-plus__body p + p { margin-top: 14px; }
.myth-plus__frame { padding: 24px; border: 1px solid var(--myth-accent); }
.myth-plus__frame h3 { margin-bottom: 12px; }
.myth-plus__list { margin: 14px 0 0; padding: 0; list-style: none; }
.myth-plus__list li { position: relative; padding-left: 18px; font-size: 15px; margin-top: 9px; }
.myth-plus__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--myth-accent); }
.myth-plus__state { margin-top: 16px; font-size: 14px; color: var(--myth-slate); }
.myth-plus__contact { margin-top: 26px; background: var(--myth-mist); padding: 22px; }
.myth-plus__mail { font-family: var(--myth-mono); font-weight: 500; font-size: 16px; display: inline-block; margin-top: 10px; }
.myth-plus__body figure { margin: 0; }
.myth-plus__pic { display: block; width: 100%; height: auto; margin-top: 26px; }
.myth-plus__piccap { margin-top: 10px; font-size: 13px; color: var(--myth-slate); }

@media (max-width: 900px) { .myth-plus__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- documentos legales ---------- */
.myth-doc { padding: 34px 0 56px; }
.myth-doc__meta { margin-top: 12px; }
.myth-doc__body { max-width: 44em; margin-top: 28px; }
.myth-doc__body h2 { margin-top: 34px; font-size: clamp(20px, 2.4vw, 25px); }
.myth-doc__body h3 { margin-top: 22px; font-size: 17px; }
.myth-doc__body p, .myth-doc__body ul { margin-top: 12px; }
.myth-doc__body ul { padding-left: 20px; }
.myth-doc__body li { margin-top: 7px; }
.myth-doc__back { margin-top: 34px; }

/* ---------- error 404 ---------- */
.myth-lost { padding: 70px 0 90px; text-align: center; }
.myth-lost__code { font-family: var(--myth-mono); font-weight: 500; font-size: 58px; letter-spacing: 0.04em; }
.myth-lost__text { margin: 16px auto 0; max-width: 30em; color: var(--myth-slate); }
.myth-lost__acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- pie ---------- */
.myth-foot { background: var(--myth-mist); margin-top: 10px; padding: 44px 0 34px; }
.myth-foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.myth-foot__about { font-size: 14px; color: var(--myth-slate); margin-top: 12px; max-width: 30em; }
.myth-foot__title { font-family: var(--myth-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--myth-slate); }
.myth-foot__list { list-style: none; margin: 6px 0 0; padding: 0; }
.myth-foot__list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--myth-ink); text-decoration: none; }
.myth-foot__list a:hover { color: var(--myth-accent); }
.myth-foot__mail { font-family: var(--myth-mono); font-weight: 500; font-size: 14px; }
.myth-foot__legal { margin-top: 34px; font-size: 13px; color: var(--myth-slate); display: flex; flex-wrap: wrap; gap: 6px 26px; }

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

/* ---------- aviso y volver arriba ---------- */
.myth-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--myth-ink); color: #fff; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  max-width: 940px; margin: 0 auto;
}
.myth-notice__text { font-size: 14px; line-height: 1.5; flex: 1 1 380px; color: #f2f2f2; }
.myth-notice__text a { color: #fff; }
.myth-notice__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.myth-notice .myth-act--soft { background: #fff; color: var(--myth-ink); }
.myth-notice .myth-act--plain { color: #fff; }
.myth-notice .myth-act--plain:hover { background: #2c2c2c; color: #fff; }

.myth-lift {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 50px; height: 50px; padding: 0; border: 0; background: var(--myth-ink); color: #fff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - var(--myth-cut)) 0, 100% var(--myth-cut), 100% 100%, var(--myth-cut) 100%, 0 calc(100% - var(--myth-cut)));
}
.myth-lift:hover { background: var(--myth-accent); }
.myth-lift:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Preguntas */
.myth-quests{padding:clamp(56px,7vw,92px) 0;background:var(--myth-paper);}
.myth-quests__head{max-width:640px;margin-bottom:clamp(24px,3vw,38px);}
.myth-quests__head h2{font-size:clamp(26px,3.2vw,38px);letter-spacing:-.02em;margin-top:8px;}
.myth-quests__list{display:grid;}
.myth-quest{border-top:1px solid var(--myth-ash);}
.myth-quest:last-child{border-bottom:1px solid var(--myth-ash);}
.myth-quest__head{margin:0;}
.myth-quest__btn{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;background:none;border:0;padding:20px 4px;text-align:left;cursor:pointer;color:inherit;font:inherit;min-height:48px;}
.myth-quest__num{font-family:var(--myth-mono);font-size:12px;color:var(--myth-accent);letter-spacing:.08em;}
.myth-quest__q{font-size:clamp(16px,1.8vw,19px);font-weight:600;}
.myth-quest__sign{position:relative;width:16px;height:16px;flex:none;}
.myth-quest__sign::before,.myth-quest__sign::after{content:"";position:absolute;background:var(--myth-ink);transition:transform .18s ease;}
.myth-quest__sign::before{left:0;top:7px;width:16px;height:2px;}
.myth-quest__sign::after{left:7px;top:0;width:2px;height:16px;}
.myth-quest.is-open .myth-quest__sign::after{transform:scaleY(0);}
.myth-quest__btn:hover .myth-quest__q{color:var(--myth-accent-deep);}
.myth-quest__btn:focus-visible{outline:2px solid var(--myth-accent);outline-offset:3px;}
.myth-quest__panel{display:none;padding:0 4px 22px 44px;color:var(--myth-slate);max-width:70em;}
.myth-quest.is-open .myth-quest__panel{display:block;}
@media (prefers-reduced-motion:reduce){.myth-quest__sign::before,.myth-quest__sign::after{transition:none;}}
