/* Manual de usuario: usa los tokens y la tipografía del sitio (css/styles.css) */
.manual-hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(120% 90% at 75% 20%, #12294a 0%, var(--void) 60%); padding: var(--s7) 0 var(--s8); border-bottom: 1px solid #ffffff14; }
.manual-hero h1 { font-size: var(--fs-4); max-width: 18ch; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manual-hero .actions { margin-bottom: 0; }
.nav a[aria-current="page"] { color: var(--ice); }

.manual-layout { color: var(--ink); display: grid; gap: var(--s5); padding: var(--s7) 0 var(--s8); }
@media (min-width: 900px) { .manual-layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); } }

/* Índice */
#indice { align-self: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4); }
@media (min-width: 900px) { #indice { position: sticky; top: calc(var(--header-h) + var(--s5)); } }
#indice h2 { font-size: var(--fs-1); margin: 0 0 var(--s3) var(--s2); color: var(--ink); }
#indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 560px) and (max-width: 899px) { #indice ol { grid-template-columns: 1fr 1fr; } }
#indice a { display: flex; gap: var(--s3); padding: var(--s2) var(--s3); min-height: 44px; align-items: center; border-radius: var(--r1); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1.3; }
#indice a span { font-family: var(--display); font-weight: 600; color: var(--steel); font-size: .85rem; }
#indice a:hover { background: var(--paper); }
#indice a:hover span { color: var(--navy); }

/* Capítulos */
.chapter { background: var(--white); border: 1px solid var(--line); border-radius: var(--r2); padding: clamp(var(--s4), 3vw, var(--s6)); margin-bottom: var(--s5); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.chapter:target { border-color: var(--navy); box-shadow: 0 0 0 3px rgb(124 200 255 / .35); }
.chapter h2 { display: flex; align-items: baseline; gap: var(--s3); font-size: var(--fs-3); color: var(--ink); }
.chapter h2 span { flex: none; font-size: .9rem; color: var(--white); background: var(--void); border-radius: var(--r1); padding: 4px 9px; letter-spacing: .04em; }
.chapter h3 { font-size: var(--fs-2); margin: var(--s5) 0 var(--s2); color: var(--navy); }
#manual p { max-width: none; margin: 0 0 var(--s3); }

.route { margin: 0 0 var(--s5); border-left: 3px solid var(--navy); background: var(--paper); padding: var(--s3) var(--s4); border-radius: 0 var(--r1) var(--r1) 0; }
.route > span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.route ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px var(--s2); font-weight: 600; color: var(--navy); }
.route li + li::before { content: "›"; margin-right: var(--s2); color: var(--steel); }

.m-steps { padding-left: 1.5rem; margin: var(--s3) 0; }
.m-steps li + li { margin-top: var(--s2); }
.m-steps li::marker { color: var(--navy); font-weight: 700; }

.menu-shot { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); align-items: start; gap: clamp(var(--s3), 3vw, var(--s5)); margin: 0 0 var(--s5); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper); }
.menu-shot img { width: 100%; height: auto; border-radius: var(--r1); background: var(--navy); }
.menu-shot figcaption { display: grid; gap: var(--s1); align-self: center; color: var(--steel); }
.menu-shot figcaption > strong { font-family: var(--display); font-weight: 600; font-size: var(--fs-1); color: var(--ink); }

.table-wrap { background: var(--white); overflow-x: auto; margin: var(--s4) 0; border: 1px solid var(--line); border-radius: var(--r2); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 420px; }
.table-wrap th, .table-wrap td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--void); color: var(--silver); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td { background: var(--white); color: var(--ink); }
.table-wrap tr:nth-child(odd) td { background: var(--paper); }

details.capture { border: 1px solid var(--line); border-radius: var(--r2); margin-top: var(--s4); overflow: hidden; }
details.capture summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: var(--s2) var(--s4); font-weight: 600; color: var(--navy); background: var(--paper); }
details.capture summary:hover { background: #e8edf2; }
details.capture img { margin: 0 auto; height: auto; }
.capture-note { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); color: var(--steel); }

.billing-choice { margin: var(--s5) 0; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-left: 3px solid var(--apc); border-radius: 0 var(--r2) var(--r2) 0; background: #f4faf7; }
.billing-choice h3 { margin-top: 0; }
.billing-shot { margin: var(--s3) 0 0; }
.billing-shot img { height: auto; border-radius: var(--r1); }
.billing-shot figcaption { font-size: .9rem; color: var(--steel); margin-top: var(--s2); }

.m-check { padding-left: var(--s5); position: relative; }
.m-check::before { content: ""; position: absolute; left: 2px; top: .4em; width: 12px; height: 7px; border-left: 2px solid var(--apc); border-bottom: 2px solid var(--apc); transform: rotate(-45deg); }

.next-step { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s4); color: var(--navy); font-weight: 600; text-underline-offset: 4px; }
.next-step::after { content: "→"; margin-left: var(--s2); transition: transform .15s ease; }
.next-step:hover::after { transform: translateX(3px); }
.top { display: inline-flex; min-height: 44px; align-items: center; color: var(--navy); font-weight: 600; }

@media (max-width: 420px) { .menu-shot { grid-template-columns: minmax(96px, 128px) minmax(0, 1fr); padding: var(--s2); } .menu-shot figcaption { font-size: .9rem; } }
