/* Spanish edition of the public guide: same sidebar/content layout as English. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; display: flex; min-height: 100vh; background: #f8fafc; color: #334155; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.65; }
a { color: #1d4ed8; }
a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
#sidebar { width: 280px; min-width: 280px; height: 100vh; position: sticky; top: 0; overflow-y: auto; background: #0f172a; color: #cbd5e1; padding-bottom: 2rem; }
.sidebar-header { padding: 1.5rem 1.25rem 1rem; border-bottom: 1px solid #334155; }
.sidebar-logo { font-size: 1.1rem; font-weight: 800; color: #f1f5f9; text-decoration: none; }
.sidebar-subtitle { color: #94a3b8; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.guide-home-link { display: inline-flex; align-items: center; min-height: 44px; margin: .4rem 0; padding: .5rem .7rem; border: 1px solid #475569; border-radius: 8px; color: #f1f5f9; text-decoration: none; font-size: .85rem; }
.guide-home-link:hover { background: #1e293b; }
.sidebar-section-label { margin: 0; border: 0; padding: .9rem 1.25rem .25rem; color: #94a3b8; font-size: .7rem; font-weight: 700; line-height: inherit; text-transform: uppercase; letter-spacing: .08em; }
.sidebar-nav a { display: block; padding: .4rem 1.25rem; border-left: 3px solid transparent; color: #94a3b8; text-decoration: none; font-size: .85rem; line-height: 1.4; }
.sidebar-nav a.sub { padding-left: 2rem; font-size: .8rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: #60a5fa; background: #1e293b; border-left-color: #2563eb; }
#content { flex: 1; min-width: 0; }
.hero { padding: 3rem; color: #fff; background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.hero h1 { margin: 0 0 .5rem; font-size: 2rem; line-height: 1.25; }
.hero p { max-width: 700px; color: #cbd5e1; }
.main-body { max-width: 900px; padding: 2.5rem 3rem; }
section { margin-bottom: 3.5rem; }
h2 { border-bottom: 2px solid #e2e8f0; padding-bottom: .5rem; color: #0f172a; font-size: 1.45rem; line-height: 1.35; }
h3 { color: #1e293b; font-size: 1.1rem; line-height: 1.4; }
h4 { font-size: 1rem; }
.subsection { margin: 2rem 0; }
li { margin-bottom: .6rem; }
ol, ul { padding-left: 1.5rem; }
.role { color: #1e40af; font-weight: 700; font-size: .85rem; }
.callout { padding: 1rem; margin: 1rem 0; border-left: 4px solid #3b82f6; border-radius: 8px; background: #eff6ff; color: #1e3a5f; }
.callout > strong:first-child { display: block; }
.plan-gate { display: inline-block; padding: .1rem .5rem; border: 1px solid #fde68a; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: .75rem; font-weight: 700; }
.toc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .5rem; margin: 1.25rem 0; }
.toc-grid a { display: block; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; padding: .75rem 1rem; text-decoration: none; font-weight: 600; }
code { overflow-wrap: anywhere; background: #f1f5f9; padding: .1em .3em; border: 1px solid #e2e8f0; border-radius: 4px; }
[id] { scroll-margin-top: 1.5rem; }
.guide-footer { padding: 1.5rem; background: #0f172a; color: #94a3b8; text-align: center; font-size: .85rem; }
.guide-footer a { color: #60a5fa; }
@media (max-width: 768px) {
  body { flex-direction: column; }
  #sidebar { width: 100%; min-width: 0; height: auto; position: relative; }
  .hero, .main-body { padding: 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  #sidebar { display: none; }
  body { display: block; }
  .hero { background: #0f172a !important; print-color-adjust: exact; }
}
