/* Autocustodia (autocustodia.html) — rediseño 2026-11-16
   Cabecera «exchange → tus claves» (misma composición que UTXO y Direcciones) y secciones con profundidad.
   Sin JS o con «Reducir movimiento» la ilustración se ve completa (todas las clases on1…on4 puestas). */

/* ---------- Cabecera en dos columnas ---------- */
html body .page-hero.ux-hero { max-width:1180px; margin:0 auto; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.04fr); gap:56px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.ux-hero::after { display:none; }
html body .page-hero.ux-hero::before { content:''; position:absolute; z-index:-1; right:-4%; top:4%; width:60%; height:92%; background:radial-gradient(closest-side,rgba(247,147,26,.15),transparent 72%); pointer-events:none; }
html body .page-hero.ux-hero h1 { max-width:none; margin:14px 0 22px; font-size:clamp(2.2rem,4.2vw,3.7rem); background:linear-gradient(180deg,#fff 40%,#F7931A 150%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html body .page-hero.ux-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.ux-hero p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }
.ux-chips { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; list-style:none; padding:0; }
.ux-chips li { display:inline-flex; align-items:center; gap:9px; padding:8px 15px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05); font-size:.86rem; color:#D0D0D3; }
.ux-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ux-chips li.g svg { stroke:#3fd37a; }

/* ---------- Ilustración ---------- */
.ux-art { margin:0; border-radius:26px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(160deg,rgba(255,255,255,.065),rgba(255,255,255,.01) 55%),#050505; box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 34px 70px -26px rgba(0,0,0,.95),0 0 70px -22px rgba(247,147,26,.4); overflow:hidden; }
.ux-top { display:flex; align-items:center; gap:10px; padding:13px 18px; border-bottom:1px solid rgba(255,255,255,.08); font:500 .74rem/1 'JetBrains Mono',monospace; color:#A1A1A6; }
.ux-live { width:8px; height:8px; border-radius:50%; background:#3fd37a; box-shadow:0 0 8px #3fd37a; animation:uxPulse 2s ease-in-out infinite; flex:none; }
.ux-std { margin-left:auto; color:#F7931A; white-space:nowrap; }
.ux-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.ac-stage { display:grid; grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr); align-items:stretch; padding:26px 18px 6px; }
.ac-frame { position:relative; display:flex; flex-direction:column; gap:12px; border-radius:18px; padding:26px 12px 12px; transition:border-color .5s,box-shadow .5s,opacity .5s; }
.ac-ex { border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.025); }
.ac-me { border:1.5px dashed rgba(63,211,122,.55); background:rgba(63,211,122,.035); }
.ac-lbl { position:absolute; top:-11px; left:12px; right:12px; width:max-content; max-width:calc(100% - 24px); padding:4px 10px; border-radius:999px; background:#0b0b0b; font-size:.7rem; font-weight:700; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ac-ex > .ac-lbl { color:#D0D0D3; border:1px solid rgba(255,255,255,.2); }
.ac-me > .ac-lbl { color:#3fd37a; border:1px solid rgba(63,211,122,.5); }

/* Base de datos del exchange */
.ac-db { border-radius:12px; border:1px solid rgba(255,255,255,.1); background:#080808; overflow:hidden; }
.ac-dbh { display:flex; align-items:center; gap:7px; padding:7px 10px; border-bottom:1px solid rgba(255,255,255,.08); font-size:.64rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#A1A1A6; }
.ac-dbh svg { width:13px; height:13px; flex:none; stroke:#A1A1A6; fill:none; stroke-width:2; }
.ac-ledger { list-style:none; margin:0; padding:4px 0; }
.ac-ledger li { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:6px 10px; font-size:.72rem; color:#A1A1A6; transition:background .5s,color .5s; }
.ac-ledger b { font:600 .74rem/1 'JetBrains Mono',monospace; color:#D0D0D3; white-space:nowrap; }
.ac-ledger .you b.b1 { display:none; }
.ac-ledger .you { position:relative; }

/* Fila de claves */
.ac-keyrow { display:flex; align-items:center; gap:8px; margin-top:auto; padding:8px 10px; border-radius:11px; font-size:.72rem; font-weight:700; line-height:1.2; transition:background .5s,border-color .5s,box-shadow .5s,color .5s; }
.ac-keyrow svg { width:18px; height:18px; flex:none; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .5s; }
.ac-keyrow.co { color:#D0D0D3; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04); }
.ac-keyrow.co svg { stroke:#B9B9BE; }
.ac-keyrow.me { color:#3fd37a; border:1px solid rgba(63,211,122,.4); background:rgba(63,211,122,.06); }
.ac-keyrow.me svg { stroke:#3fd37a; }

/* Hardware wallet */
.ac-dev { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 8px 10px; border-radius:16px; background:linear-gradient(180deg,#151515,#0a0a0a); border:1px solid rgba(255,255,255,.12); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); transition:box-shadow .5s,border-color .5s; }
.ac-scr { width:100%; padding:9px 8px; border-radius:9px; background:#000; border:1px solid rgba(255,255,255,.1); text-align:center; }
.ac-scr b { display:block; font:600 1rem/1.1 'JetBrains Mono',monospace; color:#F5F5F5; transition:opacity .5s,transform .5s; }
.ac-scr small { display:block; margin-top:5px; font-size:.62rem; font-weight:700; color:#3fd37a; transition:opacity .5s; }
.ac-btns { display:flex; gap:8px; }
.ac-btns i { width:22px; height:6px; border-radius:4px; background:rgba(255,255,255,.14); }

/* Semilla */
.ac-seed { display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:11px; border:1px solid rgba(247,147,26,.35); background:rgba(247,147,26,.06); transition:box-shadow .5s,border-color .5s; }
.ac-dots { display:grid; grid-template-columns:repeat(6,5px); gap:3px; flex:none; }
.ac-dots i { width:5px; height:5px; border-radius:50%; background:#F7931A; opacity:.75; }
.ac-seed span { font-size:.66rem; line-height:1.25; color:#D0D0D3; }
.ac-seed span b { display:block; color:#F7931A; font-size:.7rem; }

/* Tubo de la retirada */
.ac-pipe { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.ac-pipe::before, .ac-pipe::after { content:''; position:absolute; left:4px; right:4px; top:50%; height:2px; margin-top:-1px; }
.ac-pipe::before { background:rgba(255,255,255,.12); }
.ac-pipe::after { background:linear-gradient(90deg,#F7931A,#3fd37a); box-shadow:0 0 8px rgba(247,147,26,.8); transform:scaleX(0); transform-origin:left; transition:transform .7s cubic-bezier(.2,.8,.2,1); }
.ac-pipe i { position:absolute; z-index:2; top:50%; left:0; width:10px; height:10px; margin-top:-5px; border-radius:50%; background:#F7931A; box-shadow:0 0 12px #F7931A; opacity:0; }
.ac-pipe em, .ac-pipe small { position:relative; z-index:1; font-style:normal; white-space:nowrap; padding:3px 7px; border-radius:999px; background:#070707; line-height:1.1; transition:opacity .4s; }
.ac-pipe em { order:-1; margin-bottom:22px; border:1px solid rgba(247,147,26,.45); color:#F7931A; font-size:.64rem; font-weight:700; }
.ac-pipe small { margin-top:22px; font:500 .58rem/1.1 'JetBrains Mono',monospace; color:#A1A1A6; white-space:normal; text-align:center; max-width:62px; padding:0; background:none; }

/* Estadísticas */
.ux-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:18px 0 0; border-top:1px solid rgba(255,255,255,.08); }
.ux-stats div { padding:14px 16px; }
.ux-stats div + div { border-left:1px solid rgba(255,255,255,.08); }
.ux-stats dt { font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; margin-bottom:6px; }
.ux-stats dd { margin:0; font:600 clamp(.8rem,1.1vw,.95rem)/1.15 'JetBrains Mono',monospace; color:#F5F5F5; }
.ux-stats dd.g { color:#3fd37a; }
.ux-stats dd.o { color:#F7931A; }
.ux-art figcaption { padding:0 18px 16px; font-size:.8rem; color:#A1A1A6; line-height:1.5; }

/* ---------- Estados de la animación ---------- */
.ux-art.on1 .ac-ledger .you { background:rgba(247,147,26,.12); color:#F5F5F5; box-shadow:inset 3px 0 0 #F7931A; }
.ux-art.on1 .ac-ledger .you b { color:#F7931A; }
.ux-art.on2 .ac-ledger .you b.b0 { display:none; }
.ux-art.on2 .ac-ledger .you b.b1 { display:inline; color:#8a8a90; }
.ux-art.on2 .ac-ledger .you { background:transparent; box-shadow:none; color:#A1A1A6; }
.ux-art.on2 .ac-pipe::after { transform:scaleX(1); }
.ux-art:not(.on2) .ac-pipe em, .ux-art:not(.on2) .ac-pipe small { opacity:.35; }
.ux-art.go2 .ac-pipe i { animation:acRun .8s ease-in both; }
.ux-art.on2 .ac-ex { opacity:.72; }
.ux-art:not(.on3) .ac-scr b { opacity:.18; transform:translateY(4px); }
.ux-art:not(.on3) .ac-scr small { opacity:0; }
.ux-art.on3 .ac-dev { border-color:rgba(63,211,122,.55); box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 26px -6px rgba(63,211,122,.55); }
.ux-art.on3 .ac-keyrow.me { background:rgba(63,211,122,.14); border-color:rgba(63,211,122,.75); box-shadow:0 0 22px -6px rgba(63,211,122,.7); }
.ux-art.on3 .ac-keyrow.me svg { transform:rotate(-20deg); }
.ux-art:not(.on3) .ac-keyrow.me { opacity:.5; }
.ux-art.on4 .ac-seed { border-color:rgba(247,147,26,.7); box-shadow:0 0 22px -8px rgba(247,147,26,.8); }
.ux-art:not(.on4) .ux-stats dd { opacity:.35; }
.ux-stats dd { transition:opacity .5s; }

@keyframes uxPulse { 50% { transform:scale(1.45); opacity:.55; } }
@keyframes acRun { 0% { opacity:1; left:0; } 85% { opacity:1; } 100% { opacity:0; left:calc(100% - 10px); } }
@keyframes acRunV { 0% { opacity:1; top:0; } 85% { opacity:1; } 100% { opacity:0; top:calc(100% - 10px); } }

/* ---------- Secciones: tarjetas con profundidad, numeración de fondo y acento naranja ---------- */
html body .com-wrap.ac-main { max-width:860px; }
html body .ac-main :is(.com-card, .com-live) { overflow:hidden; padding:34px 34px 30px; margin-bottom:18px; border-radius:22px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008) 55%),#0a0a0a; box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 22px 44px -26px rgba(0,0,0,.95); }
html body .ac-main :is(.com-card, .com-live)::after { content:''; position:absolute; left:34px; top:0; width:56px; height:3px; border-radius:0 0 3px 3px; background:#F7931A; box-shadow:0 0 14px rgba(247,147,26,.7); }
html body .ac-main [data-n]::before { content:attr(data-n); position:absolute; right:22px; top:10px; font-family:'Archivo',sans-serif; font-weight:900; font-stretch:115%; font-size:5.4rem; line-height:1; color:transparent; -webkit-text-stroke:1px rgba(247,147,26,.28); pointer-events:none; }
html body .ac-main [data-n] > h2 { padding-right:96px; }
html body .ac-main h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .ac-main .com-card p, html body .ac-main .com-live p, html body .ac-main .com-list li { color:#B9B9BE; }
@media (hover:hover) { html body .ac-main .com-card:hover { transform:none; border-color:rgba(247,147,26,.3); box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 22px 44px -16px rgba(0,0,0,.95),0 0 32px -10px rgba(247,147,26,.25); } }
html body .ac-main .com-live { border:1px solid rgba(247,147,26,.4); background-image:radial-gradient(120% 140% at 0% 0%,rgba(247,147,26,.15),rgba(247,147,26,0) 55%); }
html body .ac-main .com-live p { color:#D2D2D6; }
html body .ac-main .com-card.cust, html body .ac-main .com-card#multisig { border-color:rgba(247,147,26,.4); background-image:radial-gradient(130% 120% at 100% 0%,rgba(247,147,26,.12),rgba(247,147,26,0) 50%),linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008) 55%); box-shadow:0 0 0 1px rgba(247,147,26,.1),0 30px 60px -30px rgba(247,147,26,.45); }
/* Riesgo del exchange (rojo) y de la autocustodia (verde) */
html body .ac-main .com-card.ac-r { border-color:rgba(255,107,94,.32); background-image:radial-gradient(120% 140% at 100% 0%,rgba(255,107,94,.1),rgba(255,107,94,0) 55%); }
html body .ac-main .com-card.ac-r::after { background:#ff6b5e; box-shadow:0 0 14px rgba(255,107,94,.7); }
html body .ac-main .com-card.ac-r[data-n]::before { -webkit-text-stroke-color:rgba(255,107,94,.32); }
html body .ac-main .com-card.ac-g { border-color:rgba(63,211,122,.35); background-image:radial-gradient(120% 140% at 100% 0%,rgba(63,211,122,.12),rgba(63,211,122,0) 55%); }
html body .ac-main .com-card.ac-g::after { background:#3fd37a; box-shadow:0 0 14px rgba(63,211,122,.7); }
html body .ac-main .com-card.ac-g[data-n]::before { -webkit-text-stroke-color:rgba(63,211,122,.32); }
html body .ac-main .com-card.ac-g strong { color:#3fd37a; }
/* Tabla comparativa */
html body .ac-main .com-tbl-wrap { border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); }
html body .ac-main .com-tbl th { font-size:.72rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; background:rgba(255,255,255,.03); }
html body .ac-main .com-tbl th:nth-child(2) { color:#ff8a80; }
html body .ac-main .com-tbl th:nth-child(3) { color:#3fd37a; }
html body .ac-main .com-tbl td { color:#B9B9BE; }
html body .ac-main .com-tbl td:nth-child(1) { font-family:'Archivo',sans-serif; font-weight:700; color:#F5F5F5; }
html body .ac-main .com-tbl td:nth-child(2) { font-family:inherit; color:#B9B9BE; }
html body .ac-main .com-tbl td:nth-child(3) { background:rgba(63,211,122,.035); }
html body .ac-main .com-tbl tbody tr { transition:background .25s; }
html body .ac-main .com-tbl tbody tr:hover { background:rgba(247,147,26,.05); }
html body .ac-main .com-tbl tr:last-child td { border-bottom:0; }
/* Lista de cómo reducir el riesgo: cada punto como una tarjeta pequeña */
html body .ac-main .com-list.ac-steps { list-style:none; padding:0; display:grid; gap:10px; margin-bottom:18px; }
html body .ac-main .com-list.ac-steps li { margin:0; padding:14px 16px 14px 18px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.025); box-shadow:inset 3px 0 0 rgba(247,147,26,.6); }
/* FAQ y enlaces */
html body .ac-main .com-faq h2 { margin-bottom:16px; }
html body .ac-main .faq-item { border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:0 18px; margin-bottom:10px; background:rgba(255,255,255,.025); transition:border-color .3s,background .3s; }
html body .ac-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .ac-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; }
html body .ac-main .faq-item summary::-webkit-details-marker { display:none; }
html body .ac-main .faq-item summary::after { content:'+'; position:absolute; right:0; top:50%; transform:translateY(-50%); font:600 1.3rem/1 'JetBrains Mono',monospace; color:#F7931A; transition:transform .3s; }
html body .ac-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .ac-main .faq-item p { margin:0; padding-bottom:16px; }
html body .ac-main .ac-more .com-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
html body .ac-main .ac-more .com-list li { margin:0; }
html body .ac-main .ac-more .com-link { display:flex; align-items:center; justify-content:space-between; gap:10px; height:100%; padding:14px 16px; border-radius:14px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.03); color:#F5F5F5; font-size:.92rem; font-weight:600; text-decoration:none; transition:border-color .3s,background .3s,transform .3s; }
html body .ac-main .ac-more .com-link::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .ac-main .ac-more .com-link:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .ac-main .ac-more .com-link:hover::after { transform:translateX(3px); }

/* ---------- Responsive ---------- */
@media (max-width:900px) {
  html body .page-hero.ux-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
  html body .page-hero.ux-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
  html body .ac-main :is(.com-card, .com-live) { padding:26px 20px 22px; }
  html body .ac-main :is(.com-card, .com-live)::after { left:20px; }
  html body .ac-main [data-n]::before { font-size:3.6rem; right:14px; top:12px; }
  html body .ac-main [data-n] > h2 { padding-right:62px; }
  html body .ac-main .ac-more .com-list { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .ac-stage { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 74px auto; padding:24px 12px 4px; }
  .ac-pipe { flex-direction:row; gap:10px; }
  .ac-pipe::before, .ac-pipe::after { left:50%; right:auto; top:6px; bottom:6px; width:2px; height:auto; margin:0 0 0 -1px; }
  .ac-pipe::after { background:linear-gradient(180deg,#F7931A,#3fd37a); transform:scaleY(0); transform-origin:top; }
  .ux-art.on2 .ac-pipe::after { transform:scaleY(1); }
  .ac-pipe i { left:50%; top:0; margin:0 0 0 -5px; }
  .ux-art.go2 .ac-pipe i { animation-name:acRunV; }
  .ac-pipe em { position:absolute; right:calc(50% + 12px); margin:0; }
  .ac-pipe small { position:absolute; left:calc(50% + 12px); margin:0; max-width:none; white-space:nowrap; }
  .ac-frame { padding:24px 10px 10px; }
  .ac-me { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:stretch; }
  .ac-me .ac-keyrow { grid-column:1 / -1; }
  .ux-top .ux-std { display:none; }
  .ux-stats div { padding:12px 10px; }
  .ux-stats dt { font-size:.6rem; letter-spacing:.03em; }
  .ux-stats dd { font-size:.8rem; }
}
@media (prefers-reduced-motion:reduce) {
  .ux-live { animation:none; }
  .ac-frame, .ac-ledger li, .ac-keyrow, .ac-keyrow svg, .ac-dev, .ac-scr b, .ac-scr small, .ac-seed, .ac-pipe::after, .ac-pipe em, .ac-pipe small, .ux-stats dd,
  html body .ac-main .faq-item, html body .ac-main .faq-item summary::after, html body .ac-main .ac-more .com-link, html body .ac-main .ac-more .com-link::after, html body .ac-main .com-tbl tbody tr { transition:none!important; }
  .ac-pipe i { animation:none!important; }
  html body .ac-main .ac-more .com-link:hover { transform:none; }
}
