/* AceRosinOxidAblesAdriaNo.com — hoja de estilos propia */
:root {
  --ink-0: #090b1c;
  --ink-1: #0d1130;
  --ink-2: #141943;
  --ink-3: #1c2358;
  --rule: #272f6c;
  --rule-hi: #3a4488;
  --body: #c9cfee;
  --white: #ffffff;
  --quiet: #8e98cb;
  --aqua: #27e0c5;
  --aqua-lt: #8bf4e4;
  --iris: #6a63ff;
  --iris-lt: #a09bff;
  --coral: #ff6b57;
  --rail-w: 268px;
  --font-ui: "Bricolage Grotesque", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.ax-frozen, html.ax-frozen body { overflow: hidden; }
body {
  margin: 0;
  color: var(--body);
  background:
    radial-gradient(760px 520px at 100% 0%, rgba(106,99,255,.26), transparent 70%),
    radial-gradient(700px 520px at 30% 100%, rgba(39,224,197,.08), transparent 70%),
    var(--ink-0);
  font: 400 17px/1.7 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }

.ax-jump { position: absolute; left: 12px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--aqua); color: #04231e; font-weight: 700; }
.ax-jump:focus { top: 12px; }
.ax-mark { color: var(--white); font-size: 2rem; font-weight: 800; font-style: italic; letter-spacing: -.05em; line-height: 1; }

/* ---------- estructura general ---------- */
.ax-shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.ax-rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 28px 18px 24px; background: var(--ink-1); border-right: 1px solid var(--rule); overflow-y: auto; }
.ax-links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.ax-links a, .ax-sheet ul a { position: relative; display: block; padding: 10px 14px 10px 18px; border-radius: 12px; color: #d3d8f3; font-size: .98rem; font-weight: 500; transition: background .15s, color .15s; }
.ax-links a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--aqua); transform: scaleY(0); transition: transform .18s; }
.ax-links a:hover { background: var(--ink-2); color: var(--white); }
.ax-links a[aria-current="true"] { background: rgba(39,224,197,.1); color: var(--aqua-lt); font-weight: 700; }
.ax-links a[aria-current="true"]::before { transform: scaleY(1); }
.ax-rail__go { margin-top: auto; }
.ax-main { min-width: 0; padding: 0 clamp(20px, 4.4vw, 64px); }

/* ---------- botones ---------- */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 0; border-radius: 999px; font: 700 1rem/1.2 var(--font-ui); text-align: center; cursor: pointer; transition: transform .15s, filter .15s, background .15s; }
.ax-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.ax-btn:focus-visible, a:focus-visible, summary:focus-visible, .ax-burger:focus-visible { outline: 3px solid var(--aqua-lt); outline-offset: 2px; }
.ax-btn--aqua { background: linear-gradient(135deg, var(--aqua), var(--aqua-lt)); color: #04231e; box-shadow: 0 8px 24px rgba(39,224,197,.28); }
.ax-btn--iris { background: linear-gradient(135deg, var(--iris), var(--iris-lt)); color: #fff; box-shadow: 0 8px 24px rgba(106,99,255,.4); }
.ax-btn--ghost { background: transparent; color: var(--white); border: 2px solid var(--rule-hi); }
.ax-btn--ghost:hover { background: var(--ink-2); }
.ax-btn--small { padding: 11px 20px; font-size: .95rem; }
.ax-btn--big { padding: 16px 32px; font-size: 1.04rem; }
.ax-btn--full { display: flex; width: 100%; }

/* ---------- portada ---------- */
.ax-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: center; padding: 64px 0 30px; scroll-margin-top: 24px; }
.ax-hero h1 { margin: 0 0 22px; color: var(--white); font-size: clamp(2.1rem, 3.9vw, 3.4rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; }
.ax-hero__text p { font-size: 1.08rem; }
.ax-hero__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ax-frame { position: relative; margin: 0; padding: 8px; border-radius: 28px; background: linear-gradient(140deg, var(--aqua), var(--iris) 60%, var(--coral)); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 90px rgba(106,99,255,.28); }
.ax-frame img { width: 100%; height: auto; aspect-ratio: 1408 / 768; border-radius: 21px; background: #2b6ea3; }
.ax-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 46px; margin: 14px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--rule); }
.ax-stats strong { display: block; color: var(--white); font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.ax-stats span { display: block; color: var(--quiet); font-size: .95rem; }

/* ---------- capítulos ---------- */
.ax-flow { max-width: 1000px; padding-bottom: 20px; }
.ax-chapter { padding: 48px 0 12px; border-top: 1px dashed var(--rule-hi); scroll-margin-top: 24px; }
.ax-chapter:first-child { border-top: 0; }
.ax-chapter__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.ax-chapter__n { flex: none; color: transparent; -webkit-text-stroke: 1.6px var(--aqua); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ax-chapter h2 { margin: 0; color: var(--white); font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.ax-chapter h3 { scroll-margin-top: 28px; margin: 32px 0 12px; display: flex; align-items: center; gap: 12px; color: var(--aqua-lt); font-size: 1.22rem; line-height: 1.3; font-weight: 700; }
.ax-chapter h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,87,.2); }
.ax-chapter__body > :last-child { margin-bottom: 0; }
.ax-chapter p { line-height: 1.78; }
.ax-chapter strong { color: var(--white); }

.ax-dots { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; }
.ax-dots li { position: relative; padding: 13px 16px 13px 46px; border-radius: 14px; border: 1px solid var(--rule); background: var(--ink-2); line-height: 1.6; }
.ax-dots li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 12px; height: 12px; border-radius: 4px; background: var(--aqua); transform: rotate(45deg); }
.ax-dots--cards { grid-template-columns: 1fr 1fr; }
.ax-steps { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; counter-reset: ax; }
.ax-steps li { position: relative; counter-increment: ax; min-height: 56px; padding: 14px 16px 14px 64px; border-radius: 14px; border: 1px solid var(--rule); background: var(--ink-2); line-height: 1.6; }
.ax-steps li::before { content: counter(ax); position: absolute; left: 14px; top: 11px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--iris), var(--iris-lt)); color: #fff; font-weight: 800; }

.ax-grid { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--rule-hi); background: #0b0f2b; }
.ax-grid table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.ax-grid--wide table { min-width: 540px; }
.ax-grid th { padding: 14px 18px; text-align: left; background: #1a2260; color: var(--aqua-lt); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ax-grid td { padding: 12px 18px; border-top: 1px solid var(--rule); vertical-align: top; }
.ax-grid tbody tr:first-child td { border-top: 0; }
.ax-grid tbody tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.ax-grid td:first-child { color: var(--white); font-weight: 600; }

.ax-cta { display: flex; justify-content: center; margin: 28px 0 6px; padding: 26px 20px; border-radius: 22px; border: 1px solid var(--rule-hi); background: linear-gradient(120deg, rgba(106,99,255,.28), rgba(39,224,197,.14)); }

.ax-faq { display: grid; gap: 10px; margin: 6px 0 12px; }
.ax-ask { border-radius: 16px; border: 1px solid var(--rule); background: var(--ink-2); overflow: hidden; }
.ax-ask[open] { border-color: var(--aqua); }
.ax-ask summary { position: relative; padding: 18px 64px 18px 22px; color: var(--white); font-size: 1.04rem; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.ax-ask summary::-webkit-details-marker { display: none; }
.ax-ask summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; background: var(--iris); color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.ax-ask[open] summary::after { content: "−"; background: var(--aqua); color: #04231e; }
.ax-ask__txt { padding: 0 22px 20px; }
.ax-ask__txt p { margin: 0; }

/* ---------- pie ---------- */
.ax-foot { margin-top: 46px; padding: 40px 0 28px; border-top: 1px solid var(--rule); }
.ax-foot__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 24px; max-width: 1000px; }
.ax-foot p { color: var(--quiet); font-size: .96rem; }
.ax-foot__cols > div > p:not(.ax-foot__h) { margin: 12px 0 0; max-width: 320px; }
.ax-foot__h { margin: 0 0 12px !important; color: var(--aqua-lt) !important; font-size: .78rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ax-foot ul { margin: 0; padding: 0; list-style: none; }
.ax-foot li a { display: inline-block; padding: 5px 0; color: #e0e4fa; font-size: .97rem; }
.ax-foot li a:hover { color: var(--white); text-decoration: underline; }
.ax-foot__c { margin: 0 !important; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .88rem !important; }

/* ---------- 404 ---------- */
.ax-void { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.ax-void__box { width: 100%; max-width: 520px; padding: 44px 32px; text-align: center; border-radius: 26px; border: 1px solid var(--rule-hi); background: var(--ink-2); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.ax-void__n { margin: 0 0 6px; color: var(--aqua); font-size: 4rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.ax-void h1 { margin: 0 0 12px; color: var(--white); font-size: 1.7rem; line-height: 1.2; }

/* ---------- barra superior móvil ---------- */
.ax-topbar, .ax-sheet { display: none; }

@media (max-width: 960px) {
  .ax-shell { display: block; }
  .ax-rail { display: none; }
  .ax-topbar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; background: var(--ink-1); border-bottom: 1px solid var(--rule); }
  .ax-burger { width: 46px; height: 46px; padding: 0; border: 1px solid var(--rule-hi); border-radius: 12px; background: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; z-index: 72; }
  .ax-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .ax-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ax-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .ax-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .ax-sheet { position: fixed; inset: 0; z-index: 65; padding: 92px 20px 36px; background: var(--ink-1); overflow-y: auto; }
  .ax-sheet.is-shown { display: block; }
  .ax-sheet ul { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
  .ax-sheet ul a { padding: 15px 18px; border: 1px solid var(--rule); background: var(--ink-2); color: #fff; font-size: 1.08rem; }
  .ax-sheet ul a[aria-current="true"] { border-color: var(--aqua); color: var(--aqua-lt); }
  .ax-hero { grid-template-columns: 1fr; padding-top: 38px; }
  .ax-flow, .ax-foot__cols { max-width: none; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .ax-main { padding: 0 18px; }
  .ax-hero__row .ax-btn { width: 100%; }
  .ax-frame { padding: 6px; border-radius: 22px; }
  .ax-frame img { border-radius: 17px; }
  .ax-stats { gap: 14px 30px; }
  .ax-stats strong { font-size: 1.6rem; }
  .ax-chapter { padding-top: 38px; }
  .ax-chapter__n { font-size: 2.3rem; }
  .ax-dots--cards { grid-template-columns: 1fr; }
  .ax-chapter h3 { font-size: 1.1rem; }
  .ax-btn { white-space: normal; }
  .ax-cta .ax-btn { width: 100%; }
  .ax-foot__cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
