/* Portada 01. Composición editorial; la identidad y la navegación compartidas se conservan. */
html { scroll-behavior: auto; }
body.editorial-home { --paper: #f9f8f6; --ink: #282723; --line: #dcd9d2; --surface: #f0eee9; color: var(--ink); background: var(--paper); }
.editorial-home { --header-offset: 8rem; }
.editorial-home .container { width: min(1320px, calc(100% - clamp(40px, 8vw, 120px))); }
.editorial-home main { overflow-wrap: break-word; }
.editorial-home main :is(h1,h2,h3,p,li,figure) { min-width: 0; }
.editorial-home main :is(h1,h2,h3) { color: var(--ink); line-height: 1.12; letter-spacing: -.035em; }
.editorial-home main h2 { font-size: clamp(1.85rem, 3.2vw, 3rem); max-width: 24ch; }
.editorial-home main h3 { font-size: clamp(1.4rem, 2vw, 1.95rem); }
.editorial-home main p { line-height: 1.65; }
.editorial-home .ed-kicker { font: 500 .73rem/1.5 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.editorial-home .ed-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: .5rem; font-size: 1rem; line-height: 1.45; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.ed-link::after { content: '↗' / ''; flex: none; margin-left: .7em; font-size: .9em; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.8rem; }
.ed-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.25rem; background: var(--accent); color: #fff; font-size: 1rem; line-height: 1.4; }
.editorial-home a.ed-button:hover { color: #fff; background: var(--ink); text-decoration: none; }
.ed-hero { padding-block: clamp(2rem, 4vw, 3.5rem) 3rem; }
.ed-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-top: 1.5rem; }
.editorial-home .ed-hero h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); line-height: 1.06; margin: 0 0 1.5rem; max-width: 15ch; text-wrap: balance; }
.ed-hero .ed-lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.ed-identity { margin-block: 1.3rem 1.5rem; padding-left: 1rem; border-left: 2px solid var(--accent); font-size: .95rem; max-width: 47ch; }
.ed-hero-image { margin: 0; }
.ed-hero-image img { width: 100%; height: auto; }
.ed-hero-image figcaption { max-width: 60ch; font-size: .8rem; letter-spacing: .02em; line-height: 1.5; padding-top: .75rem; }
.ed-editorial { padding-block: clamp(2rem, 4vw, 3.5rem); background: #eeece6; border-block: 1px solid var(--line); }
.ed-editorial-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem 5rem; }
.ed-editorial h2 { margin-top: .8rem; }
.ed-editorial-grid > div > p + p { margin-top: 1rem; }
.ed-editorial .ed-actions { margin-top: 1.1rem; gap: .35rem 1.5rem; }
.ed-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.ed-section-heading { margin-bottom: 2.5rem; }
.ed-section-heading h2 { margin-top: .8rem; }
.ed-deck { max-width: 45rem; margin-top: 1.1rem; font-size: 1.15rem; }
.ed-questions { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.4rem 2.5rem; }
.ed-question { border-top: 1px solid var(--line); padding-top: 1.1rem; grid-column: span 4; }
.ed-question--1 { grid-column: span 5; grid-row: span 2; padding-right: 1rem; }
.ed-question--2, .ed-question--3 { grid-column: span 7; }
.ed-question h3 { max-width: 29ch; margin: .6rem 0 1rem; }
.ed-question p:not(.ed-number) { font-size: 1.04rem; max-width: 65ch; }
.ed-question .ed-link { margin-top: .5rem; }
.ed-number { color: var(--accent); font-size: .8rem; font-variant-numeric: tabular-nums; }
.ed-question figure { margin-top: 1.5rem; }
.ed-question figure img { width: 100%; height: auto; }
.ed-question figcaption { font-size: .8rem; line-height: 1.5; letter-spacing: 0; margin-top: .65rem; }
.ed-error { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem 4rem; margin-top: 3rem; padding: 2rem; border-left: 3px solid var(--accent); background: #eeece6; }
.ed-error h3 { margin-top: .75rem; }
.ed-error p { font-size: 1.05rem; }
.ed-error .ed-link { margin-top: .5rem; }
.ed-comparison { padding-block: clamp(3rem, 6vw, 5.5rem); border-block: 1px solid var(--line); background: #f0eee9; }
.ed-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ed-route { padding: 1.5rem 2rem; border-top: 2px solid #77736b; background: var(--paper); }
.ed-route--forest { border-color: var(--accent); }
.ed-route h3 { font-size: 1.5rem !important; margin-bottom: 1.5rem; }
.ed-route ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.ed-route li { display: flex; align-items: baseline; gap: 1rem; counter-increment: step; border-top: 1px solid var(--line); padding-block: .8rem; font-size: 1.05rem; }
.ed-route li::before { content: counter(step, decimal-leading-zero); font-size: .75rem; color: #69665f; }
.ed-route--forest li::before { color: var(--accent); }
.ed-route--forest li:nth-child(2) { margin-left: 1rem; }
.ed-route--forest li:nth-child(3) { margin-left: 2rem; }
.ed-route-figure figcaption { padding-block: 1.5rem .5rem; font-size: 1.12rem; line-height: 1.65; color: var(--ink); letter-spacing: 0; max-width: 68ch; }
.ed-comparison-end { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 3rem; margin-top: 1rem; }
.ed-comparison-end p { max-width: 67ch; font-size: 1rem; }
.ed-comparison-end a { flex: none; }
.ed-details { border-block: 1px solid var(--line); margin-top: 1.75rem; }
.ed-details + .ed-details { border-top: 0; margin-top: 0; }
.ed-details summary { cursor: pointer; padding: 1.15rem 2.5rem 1.15rem .1rem; position: relative; font-size: 1.1rem; list-style: none; min-height: 56px; }
.ed-details summary::-webkit-details-marker { display: none; }
.ed-details > summary::after { content: '+'; position: absolute; right: .3rem; top: .7rem; font-size: 1.8rem; font-weight: 300; color: var(--accent); }
.ed-details[open] > summary::after { content: '−'; }
.ed-details > summary:hover { color: var(--accent); }
.ed-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ed-detail-body { max-width: 780px; padding-block: .5rem 2rem; }
.ed-detail-body p + p { margin-top: 1rem; }
.ed-detail-body .ed-link + .ed-link { margin-left: 1.5rem; }
.ed-practice-grid, .ed-ideas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.ed-practice-grid article, .ed-ideas-grid article { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.ed-practice-grid h3, .ed-ideas-grid h3 { margin: .6rem 0 1rem; }
.ed-practice-grid h3 a, .ed-ideas-grid h3 a { font: inherit !important; line-height: 1.2 !important; text-decoration: none !important; padding: 0 !important; }
.ed-practice-grid h3 a::after, .ed-ideas-grid h3 a::after { display: none; }
.ed-practice-grid h3 a:hover, .ed-ideas-grid h3 a:hover { text-decoration: underline !important; }
.ed-practice-grid p:not(.ed-kicker), .ed-ideas-grid p:not(.ed-kicker) { font-size: 1.05rem; }
.ed-practice-grid > article > .ed-link { margin-top: .7rem; }
.ed-contrast { margin-top: 2.5rem; padding: 0 1.5rem 1.5rem; background: #efede7; border-top: 2px solid var(--accent); }
.ed-contrast:not([open]) { padding-bottom: 0; }
.ed-contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-top: .75rem; }
.ed-contrast h3 { font-size: 1.5rem !important; margin: .7rem 0; }
.ed-contrast-grid p, .ed-contrast-close { font-size: 1.02rem; }
.ed-contrast-close { margin: 1.5rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ed-research-steps { padding-left: 1.3rem; }
.ed-research-steps li { padding: .4rem 0 .4rem .4rem; }
.ed-resource-folds { margin-top: 2rem; }
.ed-resource-folds .container, .ed-mail .container { width: 100%; }
.ed-resource-folds :is(.teacher-welcome,.teacher-gallery,.teacher-mail,.home-doors) { padding-block: 2rem; border: 0; }
.ed-resource-folds .material-manifesto { margin-top: 1rem; padding: 2rem; }
.ed-resource-folds .home-punk { margin-bottom: 2rem; padding: 2rem; }
.ed-resource-folds .material-manifesto :is(h2,p,a), .ed-resource-folds .home-punk :is(h2,p,a) { color: white; }
.ed-resource-folds .material-copy h2 span { color: inherit; }
.ed-resource-folds .welcome-steps { background-image: none !important; background-color: #f0eee9 !important; border-color: var(--line) !important; }
.ed-resource-folds .teacher-poster { background-image: none; }
.ed-resource-folds .teacher-poster > div { background: transparent; }
.ed-resource-folds .teacher-compass { border: 0; margin: 0; padding: 1rem 0 2rem; }
.ed-foundations { padding-block: clamp(3rem, 6vw, 5rem); background: #eeece6; border-block: 1px solid var(--line); }
.ed-topic-links { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 2rem; padding-block: .5rem 1.5rem; }
.ed-person-grid { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ed-person-grid figure img { width: 100%; height: auto; filter: grayscale(1); }
.ed-person h2 { margin: .75rem 0 1rem; }
.ed-person-lead { font-size: 1.15rem; }
.ed-person .ed-actions { margin-top: 1rem; }
.ed-mail { margin-top: 3rem; }
.ed-mail .cork-interlude { margin: 1.5rem 0 0; }
.ed-mail .teacher-mail { padding-block: 2rem; }
.ed-closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 320px); align-items: center; gap: 2.5rem 6rem; padding-top: clamp(3rem, 6vw, 6rem); }
.editorial-home .ed-closing > p { font: 400 clamp(2rem, 3.8vw, 3.6rem)/1.2 var(--font-display) !important; letter-spacing: -.03em; max-width: 22ch; text-wrap: balance; }
.ed-closing img { width: 100%; height: auto; }
.editorial-home .site-footer { border-top: 1px solid var(--line); }
.editorial-home main :is(section,details,article)[id] { scroll-margin-top: 2rem; }
@media (max-width: 1100px) {
  .ed-hero-grid { gap: 2rem; }
  .ed-editorial-grid { gap: 2rem; }
  .ed-hero .ed-actions { gap: .6rem 1rem; }
  .ed-practice-grid, .ed-ideas-grid { gap: 1.5rem; }
}
@media (max-width: 959px) {
  .ed-hero-grid { grid-template-columns: 1fr; }
  .editorial-home .ed-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 6vw, 3.5rem); }
  .ed-hero-copy { max-width: 680px; }
  .ed-hero-image { max-width: 680px; }
  .ed-editorial-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-editorial h2 { max-width: 28ch !important; }
  .ed-question--1 { grid-column: span 6; padding-right: 0; }
  .ed-question--2, .ed-question--3 { grid-column: span 6; }
  .ed-question:nth-child(n+4) { grid-column: span 6; }
  .ed-question--6 { grid-column: 1 / -1 !important; }
  .ed-error { gap: 1.5rem; }
  .ed-comparison-end { flex-direction: column; gap: .5rem; }
  .ed-practice-grid, .ed-ideas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-practice-grid h3, .ed-ideas-grid h3 { max-width: 32ch; }
  .ed-person-grid { grid-template-columns: 180px 1fr; gap: 2rem; }
  .ed-closing { gap: 2rem; grid-template-columns: 1fr 240px; }
}
@media (max-width: 600px) {
  .editorial-home { --header-offset: 6rem; }
  .editorial-home .container { width: calc(100% - 40px); }
  .ed-hero { padding-block: 1.75rem 2rem; }
  .ed-hero-grid { gap: 1.75rem; margin-top: 1rem; }
  .editorial-home .ed-hero h1 { font-size: clamp(2.3rem, 9.5vw, 3.3rem); margin-bottom: 1.2rem; }
  .ed-hero .ed-lead { font-size: 1.05rem; }
  .ed-identity { margin-block: 1.2rem; }
  .ed-hero .ed-actions { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .ed-hero .ed-button { font-size: .95rem; }
  .ed-section-heading { margin-bottom: 1.75rem; }
  .ed-questions { grid-template-columns: 1fr; gap: 2rem; }
  .ed-question { grid-column: auto !important; grid-row: auto !important; }
  .ed-question--1 { padding-bottom: .5rem; }
  .ed-error { grid-template-columns: 1fr; padding: 1.4rem; gap: 1rem; }
  .ed-route-grid, .ed-contrast-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-route { padding: 1.2rem 1.4rem; }
  .ed-route--forest li:nth-child(3) { margin-left: 1rem; }
  .ed-contrast { padding-inline: 1.2rem; }
  .ed-resource-folds .material-manifesto, .ed-resource-folds .home-punk { padding: 1.25rem; }
  .ed-topic-links { grid-template-columns: 1fr; }
  .ed-detail-body .ed-link + .ed-link { margin-left: 0; }
  .ed-person-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-person-grid figure { max-width: 160px; }
  .ed-closing { grid-template-columns: 1fr; gap: 2rem; }
  .ed-closing figure { max-width: 260px; margin-left: auto; }
  .editorial-home .ed-closing > p { font-size: 2.2rem; }
}
@media print {
  .ed-hero-grid, .ed-editorial-grid, .ed-person-grid { display: block; }
  .ed-hero-image { max-width: 400px; margin-top: 1rem; }
  .editorial-home { background: white; }
  .ed-editorial, .ed-comparison, .ed-foundations { background: white; }
  .ed-section { padding-block: 2rem; }
}
