/* Presentación y guía de capturas reales. Sin dependencias externas. */
.hero-screenshot { min-width: 0; margin: 0; }
.hero-screenshot .capture-link { box-shadow: 0 24px 65px rgba(20, 45, 56, 0.15); }
.hero-screenshot figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.83rem; }
.capture-link {
  position: relative;
  display: block;
  border: 1px solid #cbd8d8;
  border-radius: 0.7rem;
  background: #f4f6f8;
  color: var(--ink);
  text-decoration: none;
}
.capture-link img { width: 100%; border-radius: 0.65rem 0.65rem 0 0; }
.capture-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid #d2e1dc;
  border-radius: 0 0 0.65rem 0.65rem;
  background: white;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}
.capture-link:hover .capture-action { background: var(--accent-soft); border-color: var(--accent); }
.screens-section { padding-top: clamp(3rem, 5vw, 4.5rem); background: #f7faf9; }
.screens-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr); align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.screens-heading h2 { max-width: 680px; margin: 0; font-size: clamp(2.25rem, 4vw, 3.55rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1.08; }
.screens-heading > div > p:not(.eyebrow) { color: var(--muted); }
.screens-heading .text-link { display: inline-flex; min-height: 44px; align-items: center; }
.screens-section .arca-note { max-width: none; margin-top: 2rem; }

/* Guía de uso: contenido HTML disponible sin scripts, filtros ni pestañas. */
.manual-hero h1 { max-width: 890px; }
.manual-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 0.83rem; }
.manual-toc-label { margin: 1.25rem 0 0.3rem; color: var(--accent-strong); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.manual-toc-label:first-child { margin-top: 0; }
.manual-section { scroll-margin-top: 1.5rem; }
.manual-section h3 { margin: 1.8rem 0 0.7rem; font-size: 1.17rem; line-height: 1.35; }
.manual-section h4 { margin: 0 0 0.7rem; font-size: 1.02rem; line-height: 1.45; }
.manual-section > p, .manual-section > ul, .manual-section > ol { color: #526671; }
.manual-section > ol, .manual-section > ul { padding-left: 1.4rem; }
.manual-section li { margin-block: 0.55rem; padding-left: 0.15rem; }
.manual-section strong { color: var(--ink); }
.manual-section a:not(.capture-link) { color: var(--accent-strong); text-underline-offset: 3px; }
.manual-section a:not(.capture-link):hover { text-decoration-thickness: 2px; }
.manual-notice, .manual-tip, .manual-warning { margin: 1.3rem 0; padding: 1rem 1.2rem; border-left: 3px solid #8bb9a7; border-radius: 0 0.5rem 0.5rem 0; background: #eef7f2; color: #3c5862; font-size: 0.92rem; }
.manual-notice { border-color: #8eaebe; background: #eef4f8; }
.manual-warning { border-color: #c99238; background: #fff7e9; color: #695334; }
.manual-capture { margin: 1.5rem 0; padding: 1rem; border: 1px solid #d5e2dc; border-radius: 0.85rem; background: #f5f9f7; }
.manual-capture figcaption { margin-top: 0.8rem; color: #526671; font-size: 0.88rem; line-height: 1.5; }
.manual-more-screens { margin: 1.2rem 0; padding: 0.25rem 1rem; border: 1px solid #cbded4; border-radius: 0.65rem; background: #fafcfb; }
.manual-more-screens summary { min-height: 48px; padding-block: 0.75rem; color: var(--accent-strong); font-weight: 700; cursor: pointer; }
.manual-more-screens[open] > summary { border-bottom: 1px solid #d5e2dc; }
.manual-more-screens .manual-capture { padding: 0; border: 0; background: transparent; }
.palette-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.manual-error { margin-top: 1.2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 0.65rem; background: #fafcfb; scroll-margin-top: 1.5rem; }
.manual-error p { margin-bottom: 0.6rem; color: #526671; }
.manual-error p:last-child { margin-bottom: 0; }
.manual-code { display: inline-block; margin-right: 0.45rem; padding: 0.15rem 0.4rem; border-radius: 0.3rem; background: #def0e7; color: var(--accent-strong); font-size: 0.86rem; }
.manual-section-end { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.manual-section-end a { display: inline-flex; min-height: 44px; align-items: center; font-size: 0.9rem; }
.manual-section .table-scroll { margin: 1.2rem 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
.manual-section .table-scroll:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.manual-section table { width: 100%; min-width: 38rem; border-collapse: collapse; color: #526671; font-size: 0.92rem; line-height: 1.45; }
.manual-section caption { margin-bottom: 0.55rem; color: var(--ink); font-weight: 700; text-align: start; }
.manual-section th, .manual-section td { padding: 0.7rem 0.8rem; border: 1px solid #cbded4; vertical-align: top; text-align: start; }
.manual-section th { background: #eef7f2; color: var(--ink); font-size: 0.88rem; }
.manual-section tr:nth-child(even) td { background: #fafcfb; }

/* El diálogo nativo permite cerrar con Escape y mantiene el foco adentro. */
.capture-viewer { width: min(1440px, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; border: 1px solid #a5bcb1; border-radius: 0.85rem; background: white; color: var(--ink); box-shadow: 0 24px 80px rgba(10, 30, 38, 0.3); }
.capture-viewer::backdrop { background: rgba(10, 30, 38, 0.82); }
.capture-viewer-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1.5rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.capture-viewer-heading h2 { flex: 1 1 220px; margin: 0; font-size: 1.15rem; letter-spacing: -0.025em; line-height: 1.4; }
.capture-viewer-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.capture-viewer button { min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid #a7c6bd; border-radius: 0.55rem; background: white; color: var(--accent-strong); font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.capture-viewer button:hover, .capture-viewer button[aria-pressed="true"] { background: var(--accent-soft); }
.capture-viewer-body { max-height: 70dvh; overflow: auto; margin: 1rem; padding: 0.3rem; background: #f4f6f8; scrollbar-gutter: stable; }
.capture-viewer-body img { width: 100%; }
.capture-viewer-body.is-original-size img { width: auto; max-width: none; }
.capture-viewer-caption { margin: 0; padding: 0 1.2rem 1.1rem; color: #526671; font-size: 0.87rem; }


@media (max-width: 760px) {
  .screens-heading { grid-template-columns: minmax(0, 1fr); }
  .screens-heading { gap: 1rem; }
  .screens-heading > div > p { max-width: 580px; }



  .manual-toc-label { grid-column: 1 / -1; }
  .capture-viewer { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .capture-viewer-heading { padding: 0.8rem; }
  .capture-viewer-body { margin: 0.6rem; }
}
@media (max-width: 520px) {
  .palette-grid { grid-template-columns: minmax(0, 1fr); }
  .manual-capture, .manual-more-screens { padding-inline: 0.65rem; }
}
@media (forced-colors: active) {
  .capture-link, .capture-action, .essential-grid article, .manual-more-screens, .manual-error, .capture-viewer, .capture-viewer button { border-color: CanvasText; }
}
@media print {
  .capture-action, .capture-viewer, .manual-section-end, .manual-toc { display: none; }
  .manual-page-layout { display: block; }
  .manual-capture, .manual-error { break-inside: avoid; }
  .manual-section a:not(.capture-link) { color: inherit; }
}

/* Portada: presentación breve, sin galería repetida ni librerías de animación. */
.essential-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
.essential-grid article{display:flex;flex-direction:column;align-items:flex-start;padding:1.5rem;border:1px solid var(--line);border-radius:.85rem;background:white}
.essential-number{color:var(--accent-strong);font-size:.8rem;font-weight:800;letter-spacing:.08em}
.essential-grid h3,.essential-results h3{margin:.8rem 0;font-size:clamp(1.3rem,2vw,1.75rem);line-height:1.25;letter-spacing:-.035em}
.essential-grid p,.essential-results p:not(.eyebrow){color:var(--muted)}
.essential-grid .text-link{margin-top:auto}
.essential-results{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:2rem;margin-top:2.5rem}
.essential-screenshot{min-width:0;margin:0}
.essential-screenshot figcaption{margin-top:.65rem;color:var(--muted);font-size:.83rem}
.essential-guide{margin:2rem 0 0;padding-top:1.5rem;border-top:1px solid var(--line);color:var(--muted)}
.essential-guide a{color:var(--accent-strong);text-underline-offset:3px}
.setup-compact{margin-top:2rem;padding:1.25rem 1.5rem;border:1px solid #b5cfc4;border-radius:.85rem;background:white;color:var(--muted)}
.setup-compact p:last-of-type{margin-bottom:.2rem}
.manual-capture--compact{max-width:32rem}
.manual-section .flow{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:1rem 0;color:var(--muted)}
.manual-section .flow span{padding:.45rem .7rem;border:1px solid var(--line);border-radius:.5rem}
@media(max-width:760px){.essential-grid,.essential-results{grid-template-columns:minmax(0,1fr)}.essential-results{gap:1rem}.essential-grid article{padding:1.2rem}}
@media(prefers-reduced-motion:no-preference){
  @keyframes settle{from{transform:translateY(8px)}to{transform:none}}
  .hero-screenshot{animation:settle .6s ease-out}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
  .essential-grid article{transition:transform .18s ease,border-color .18s ease}
  .essential-grid article:hover{transform:translateY(-3px);border-color:#8eb7a5}
}
@supports(animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference){
    @keyframes enter-view{from{transform:translateY(12px)}to{transform:none}}
    .essential-results{animation:enter-view linear both;animation-timeline:view();animation-range:entry 0% entry 35%}
  }
}
