/* Editorial pages, reading resources and bilingual character profiles. */
.info-heading { background: #14243B; color: #F4F7FB; border-bottom: 2px solid var(--signal); padding-block: 2.5rem 3rem; }
.info-heading-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.info-heading-top > p { color: #C8D7E8; font-size: .95rem; margin: 0; }
.info-heading h1 { color: #fff; font-size: clamp(3rem,5.5vw,4.8rem); line-height: 1.05; max-width: 22ch; margin-block: 1.3rem 1rem; }
.info-intro { color: #C8D7E8; font-size: 1.15rem; line-height: 1.7; max-width: 65ch; margin: 0; }
.info-language { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-size: .95rem; border: 1px solid #5D7592; padding: .5rem .8rem; border-radius: 4px; flex-shrink: 0; }
.info-language:hover { color: #fff; border-color: var(--signal); }
.info-layout { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 3.5rem; padding-top: 3rem; padding-bottom: 3rem; align-items: start; }
.info-layout.info-layout-full { grid-template-columns: minmax(0,1fr); }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 5rem; align-items: start; }
.contact-introduction { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; }
.contact-message .contact-form { max-width: none; }
.contact-message .form-label { color: var(--heading); font-size: 1rem; font-weight: 600; }
.contact-message .form-input, .contact-message .form-textarea { font-size: 1rem; padding: .8rem 1rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 4px; width: 100%; }
.contact-message .form-textarea { min-height: 170px; resize: vertical; }
.contact-message .form-input::placeholder, .contact-message .form-textarea::placeholder { color: var(--text-muted); opacity: 1; }
.contact-submit { display: inline-flex; align-items: center; gap: .7rem; }
.contact-channels { background: var(--surface); border-top: 3px solid var(--signal); padding: 1.75rem; }
.contact-channels > p:not(.reading-label) { color: var(--text-muted); font-size: 1rem; }
.contact-channels ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.contact-channels li { margin: 0; }
.contact-channels li a { display: flex; align-items: center; gap: .9rem; color: var(--heading); padding: 1rem 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.contact-channels li a:hover { color: var(--accent); }
.contact-channels li a > i:last-child { margin-left: auto; font-size: .8rem; }
.contact-channels small { display: block; color: var(--text-muted); font-size: .85rem; }
.info-toc { position: sticky; top: 95px; min-width: 0; }
.info-toc summary { font-size: .9rem; font-weight: 600; color: var(--heading); list-style: none; padding-bottom: 1rem; }
.info-toc summary::-webkit-details-marker { display: none; }
.info-toc summary i { display: none; }
.info-toc nav { display: grid; gap: .3rem; border-left: 1px solid var(--border); }
.info-toc nav a { font-size: .92rem; line-height: 1.4; color: var(--text-muted); padding: .6rem 0 .6rem 1rem; border-left: 2px solid transparent; margin-left: -1px; }
.info-toc nav a:hover, .info-toc nav a[aria-current] { color: var(--heading); border-left-color: var(--signal); }
.info-book-return { display: inline-block; font-size: .9rem; color: var(--heading); border-bottom: 1px solid var(--signal); margin-top: 1.5rem; }
.info-content { min-width: 0; }
.info-content section[id], .info-content article[id] { scroll-margin-top: 100px; }
.info-content h2 { font-size: clamp(2rem,3vw,2.6rem); line-height: 1.15; margin-bottom: 1.4rem; }
.info-content p { max-width: 72ch; }
.info-content h3 { font-size: 1.6rem; line-height: 1.25; margin-block: 1.5rem 1rem; }
.info-content figure { margin: 0; }
.info-content figcaption { color: var(--text-muted); font-size: .85rem; margin-top: .7rem; }
.info-related:empty { display: none; }
.info-next { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--border); padding: 2rem 0; }
.info-next h2 { font-size: 2rem; line-height: 1.1; }
.info-next .reading-label { margin-bottom: .5rem; }
.info-next .btn { flex-shrink: 0; }
.universe-front img { width: 100%; max-height: 380px; object-fit: cover; object-position: center 45%; }
.universe-front { margin-bottom: 2.5rem !important; }
.universe-chapter { border-top: 1px solid var(--border); padding-block: 2.5rem; display: flow-root; }
.universe-chapter .lead { font-size: 1.1rem; }
.universe-copy .creator-box { padding: 1rem 0; margin-bottom: 1rem; background: transparent; border: 0; border-radius: 0; font-size: .95rem; color: var(--text-muted); }
.universe-copy .feature-note { font-size: .95rem; border-left: 2px solid var(--signal); background: var(--surface); padding: 1rem; border-radius: 0; }
.universe-copy .feature-note p:last-child { margin: 0; }
.universe-detail { float: right; width: 42%; margin: 0 0 1.5rem 2rem !important; }
.universe-detail img { width: 100%; height: auto; }
.universe-books { list-style: none; padding: 0; }
.universe-books li { margin: 0; }
.universe-books a { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); color: var(--heading); }
.universe-books a > span { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0; }
.universe-books strong { display: block; font-size: 1.1rem; }
.universe-books small { display: block; color: var(--text-muted); font-size: .85rem; }
.universe-books i { margin-left: auto; font-size: .8rem; }
.author-biography { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr); gap: 2rem; align-items: start; padding-bottom: 2rem; }
.author-biography figure img { width: 100%; height: auto; }
.author-biography h2 { margin-top: 0; }
.author-journey { border-top: 1px solid var(--border); padding-top: 2.5rem; }
.author-journey ol { list-style: none; margin: 2rem 0 0; padding: 0; }
.author-journey li { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 1.5rem; padding-bottom: 2rem; margin: 0; position: relative; }
.author-journey li > span { color: var(--accent); font-weight: 600; font-size: .95rem; border-right: 1px solid var(--border); }
.author-journey h3 { margin-top: 0; font-size: 1.8rem; }
.author-voice { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 1rem; }
.author-voice blockquote { margin: 0; padding: 1rem 0 1rem 1.5rem; border-left: 3px solid var(--signal); }
.author-voice blockquote > p { font-family: var(--font-display); font-size: 2rem; line-height: 1.35; color: var(--heading); }
.author-voice footer { font-size: .9rem; color: var(--text-muted); }
.info-context-note { color: var(--text-muted); font-size: .9rem; padding: .7rem 0 .7rem 1rem; border-left: 2px solid var(--signal); margin-bottom: 2rem; }
.info-content .character-group { font-size: .95rem; font-family: var(--font); font-weight: 600; color: var(--text-muted); padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin: 2rem 0 0; }
.character-profile { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 2rem; padding-block: 2rem 3rem; border-bottom: 1px solid var(--border); }
.character-portrait > img { max-height: 400px; width: 100%; height: auto; object-fit: contain; background: var(--surface); }
.character-roles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .8rem; }
.character-roles li { color: var(--text-muted); font-size: .8rem; padding: .2rem .5rem; border: 1px solid var(--border); border-radius: 3px; margin: 0; line-height: 1.5; }
.character-description h3 { font-size: 2.4rem; line-height: 1; margin: 0 0 1.3rem; }
.character-lead { font-weight: 600; color: var(--heading); }
.character-detail { margin-top: 1.5rem; border-left: 2px solid var(--signal); background: var(--surface); padding: 1rem; }
.character-detail > span { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: .6rem; }
.character-detail p { font-size: .95rem; margin: 0; line-height: 1.7; }
.character-gallery { border-bottom: 1px solid var(--border); margin-top: 1rem; padding-bottom: .75rem; }
.character-gallery summary { color: var(--heading); font-size: .85rem; cursor: pointer; }
.character-gallery > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin-top: .75rem; }
.character-gallery img { width: 100%; height: auto; }
.guide-section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.guide-section:last-child { margin: 0; padding: 0; border: 0; }
.guide-section h3 { margin-top: 2rem; }
.guide-section > h2 { display: block; }
.guide-section h4 { font-family: var(--font); font-size: 1.1rem; line-height: 1.4; margin: 0 0 .5rem; color: var(--heading); }
.guide-section .alert { display: flex; align-items: start; gap: .8rem; padding: 1rem; border-radius: 4px; }
.guide-section .alert > i { flex-shrink: 0; margin-top: .2rem; }
.guide-section .alert p:last-child { margin: 0; }
.guide-section#aviso { border: 0; }
.guide-section#aviso h2 { font-family: var(--font); font-size: 1.1rem; }
.guide-table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 4px; }
.guide-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .95rem; line-height: 1.6; }
.guide-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.guide-table th { background: #14243B; color: #F4F7FB; text-align: left; font-weight: 600; padding: 1rem; vertical-align: top; }
.guide-table td { padding: 1rem; vertical-align: top; border-bottom: 1px solid var(--border); }
.guide-table tbody tr:nth-child(even) { background: var(--surface); }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { font-weight: 600; }
.guide-step { display: flex; align-items: start; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--border); }
.guide-step p:last-child { margin: 0; }
.guide-step-mark { width: 2.5rem; height: 2.5rem; flex-shrink: 0; display: grid; place-items: center; color: #14243B; background: var(--signal); font-size: 1.1rem; border-radius: 4px; font-weight: 600; }
.guide-step-copy { min-width: 0; flex: 1; }
.school-guide a { overflow-wrap: anywhere; }
.guide-section#fuentes p { font-size: .95rem; padding-left: 1rem; border-left: 1px solid var(--border); }
/* A document needs a quieter type scale than book presentation pages. */
.info-page--guide .info-heading { padding-block: 2rem; }
.info-page--guide .info-heading h1 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.15; max-width: none; margin-block: 1rem .8rem; text-wrap: balance; }
.info-page--guide .info-intro { max-width: 68ch; font-size: 1.05rem; line-height: 1.7; }
.info-page--guide .info-layout { grid-template-columns: 185px minmax(0,760px); column-gap: 3rem; padding-top: 2.5rem; }
.school-guide { font-size: 1.0625rem; font-weight: 400; text-align: left; }
.school-guide p { font-weight: 400; line-height: 1.8; margin: 0 0 1.1rem; max-width: none; }
.school-guide strong { font-weight: 600; }
.school-guide h2, .school-guide h3, .school-guide h4 { font-family: var(--font); font-weight: 600; color: var(--heading); letter-spacing: normal; text-wrap: pretty; }
.school-guide h2 { display: block; font-size: clamp(1.35rem,2vw,1.65rem); line-height: 1.35; margin: 0 0 1.25rem; }
.school-guide h3 { font-size: 1.2rem; line-height: 1.4; margin: 2rem 0 1rem; }
.school-guide h4 { font-size: 1.05rem; line-height: 1.45; margin: 0 0 .5rem; }
.school-guide .guide-section { padding-bottom: 2rem; margin-bottom: 2rem; }
.school-guide .alert { gap: .75rem; line-height: 1.75; }
.school-guide .alert > div, .school-guide .alert > span { min-width: 0; }
.school-guide .alert h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.school-guide .alert p { font-size: .95rem; }
.school-guide .guide-step { padding-block: 1.2rem; }
.school-guide .guide-step p { margin-bottom: 0; }
.school-guide .guide-table { font-size: .95rem; }
.school-guide #fuentes p { line-height: 1.7; margin-bottom: 1.4rem; }
@media(max-width: 1050px) {
  .info-layout { grid-template-columns: 165px minmax(0,1fr); gap: 2rem; }
  .author-biography { grid-template-columns: 1fr; }
  .author-biography figure { max-width: 240px; }
  .character-profile { gap: 1.5rem; }
}
@media(max-width: 850px) {
  .contact-layout { gap: 2rem; }
  .info-page--guide .info-layout { grid-template-columns: minmax(0,1fr); gap: 1.75rem; padding-top: 1.25rem; }
  .info-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .info-toc { position: static; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
  .info-toc summary { cursor: pointer; display: flex; justify-content: space-between; padding: .5rem 0; }
  .info-toc summary i { display: block; }
  .info-toc details[open] summary i { transform: rotate(180deg); }
  .info-toc nav { margin-block: .75rem; }
  .info-book-return { margin-top: .6rem; }
  .author-biography { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
}
@media(max-width: 600px) {
  .contact-layout { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .contact-channels { padding: 1.25rem; }
  .contact-submit { width: 100%; justify-content: center; }
  .info-page--guide .info-heading { padding-block: 1.5rem 1.75rem; }
  .info-page--guide .info-heading h1 { font-size: 2.15rem; line-height: 1.2; margin-block: .75rem; }
  .info-page--guide .info-intro { font-size: 1rem; }
  .school-guide { font-size: 1rem; }
  .school-guide h2 { font-size: 1.35rem; }
  .school-guide h3 { font-size: 1.1rem; }
  .school-guide h4 { font-size: 1rem; }
  .info-heading { padding-block: 2rem 2.5rem; }
  .info-heading-top { align-items: start; flex-direction: column; gap: 1rem; }
  .info-heading h1 { font-size: 3.1rem; }
  .info-intro { font-size: 1.05rem; }
  .info-language { font-size: .85rem; }
  .info-next { align-items: start; flex-direction: column; gap: 1.25rem; }
  .universe-front img { height: 260px; }
  .universe-detail { float: none; width: 100%; max-width: 300px; margin: 0 0 1.5rem !important; }
  .universe-chapter { padding-block: 1.75rem; }
  .author-biography { grid-template-columns: 1fr; }
  .author-biography figure { max-width: 220px; }
  .author-journey li { grid-template-columns: 65px minmax(0,1fr); gap: 1rem; }
  .author-voice blockquote > p { font-size: 1.75rem; }
  .character-profile { grid-template-columns: 1fr; }
  .character-portrait { max-width: 300px; width: 100%; }
  .character-portrait > img { max-height: 320px; }
  .character-description h3 { font-size: 2.3rem; }
  .guide-step { gap: .8rem; }
  .guide-step-mark { width: 2rem; height: 2rem; }
}
