/* Enróllate con la Lengua · Literatura · estilo común
   Patrón cuaderno de espiral · color de sección: vinotinto
   © Borja García Valiente
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --papel:        #fffdf6;
  --papel-2:      #fff8e8;
  --papel-3:      #fbf2ea;
  --papel-4:      #f7ede0;
  --linea:        #b9c9df;
  --margin:       #e23434;
  --tinta:        #1f1812;
  --tinta-soft:   #4a3f33;
  --tinta-tenue:  #7a6f60;

  --rojo:         #e23434;
  --amarillo:     #ffd84a;
  --amarillo-bg:  #fff7c2;
  --verde-cesped: #2ea850;
  --verde-bg:     #d8eedb;
  --azul-pen:     #2b4f8a;
  --azul-bg:      #dde7f3;
  --oro:          #d8b53c;

  --vino:         #7a2a3a;
  --vino-soft:    #a05868;
  --vino-bg:      #f3dde2;
  --vino-bg2:     #e8c8d0;

  --lirica:       #7b3d96;
  --lirica-bg:    #efe1f3;
  --narrativa:    #a05a30;
  --narrativa-bg: #f3e3d0;
  --dramatica:    #a02d2d;
  --dramatica-bg: #f3d8d8;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: clamp(14px, 0.55vw + 12px, 17.5px);
}
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #fbf3f5;
  color: var(--tinta);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--amarillo); color: var(--tinta); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,246,.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--vino);
  padding: .55rem clamp(.8rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a.back {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: var(--vino);
  display: inline-flex; align-items: center; gap: .35rem;
  transition: transform .2s;
  flex-shrink: 0;
}
.topbar a.back:hover, .topbar a.back:focus-visible { transform: translateX(-3px); outline: none; }
.topbar .brand {
  font-family: 'Permanent Marker', cursive;
  font-size: .95rem;
  color: var(--tinta);
  letter-spacing: .02em;
  flex-shrink: 0;
}

/* Menú de apartados de la sección — en la cabecera */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  flex: 1 1 auto;
  justify-content: center;
  margin: 0;
}
.section-nav a {
  position: relative;
  padding: .35rem .8rem;
  color: var(--tinta-soft);
  transition: color .2s, background .2s;
  border-radius: 4px;
  white-space: nowrap;
}
.section-nav a:hover, .section-nav a:focus-visible {
  color: var(--vino);
  background: rgba(122,42,58,.08);
  outline: none;
}
.section-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  background: var(--vino);
}
.section-nav a[aria-current="page"]:hover {
  background: var(--vino);
  color: #fff;
}

@media (max-width: 880px) {
  .topbar { padding: .5rem .8rem; }
  .section-nav { font-size: .92rem; gap: .25rem; }
  .section-nav a { padding: .3rem .55rem; }
}
@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: stretch; gap: .4rem; }
  .topbar a.back, .topbar .brand { align-self: flex-start; }
  .section-nav { justify-content: flex-start; }
}

/* hoja cuaderno */
.hoja {
  position: relative;
  padding: clamp(60px, 9vw, 110px) clamp(28px, 5vw, 70px) clamp(60px, 8vw, 90px) clamp(60px, 11vw, 140px);
  isolation: isolate;
  border-bottom: 1px dashed rgba(31,24,18,.12);
  overflow: hidden;
}
.hoja::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(to bottom,
    transparent 39px, var(--linea) 39px, var(--linea) 40px, transparent 40px);
  background-size: 100% 40px;
  background-position: 0 30px;
  opacity: .35;
  z-index: -2; pointer-events: none;
}
.hoja::after {
  content: '';
  position: absolute; top: 30px; bottom: 30px;
  left: clamp(36px, 7vw, 90px); width: 1.5px;
  background: var(--margin);
  z-index: -1;
}
.hoja--alt   { background: var(--papel-4); }
.hoja--alt2  { background: var(--papel-2); }
.hoja--vino  { background: var(--papel-3); }

.tab {
  display: inline-block;
  background: var(--vino);
  color: #fff;
  font-family: 'Permanent Marker', cursive;
  letter-spacing: .04em;
  padding: .35rem 1.1rem .45rem;
  border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(31,24,18,.25);
  margin-bottom: 1.2rem;
  font-size: .9rem;
}

.paso-num {
  position: absolute;
  top: clamp(20px, 4vw, 50px);
  right: clamp(20px, 4vw, 60px);
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(7rem, 18vw, 16rem);
  line-height: .85;
  color: var(--vino);
  opacity: .07;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.05em;
}

.paso-meta {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-left: .8rem;
  font-family: 'Patrick Hand', cursive;
  font-size: .95rem; color: var(--tinta-tenue);
  letter-spacing: .04em;
}
.paso-meta .dots { display: inline-flex; gap: 4px; }
.paso-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(122, 42, 58, .25); display: inline-block;
}
.paso-meta .dot.active {
  background: var(--vino);
  box-shadow: 0 0 0 2px rgba(122, 42, 58, .18);
}
.paso-progress {
  display: block; height: 3px;
  background: linear-gradient(to right, var(--vino) var(--p, 0%), rgba(122, 42, 58, .18) var(--p, 0%));
  border-radius: 2px;
  margin: 0 0 1.4rem 0;
  max-width: 360px;
}

h1, h2, h3, h4 { font-family: 'Permanent Marker', cursive; color: var(--tinta); font-weight: normal; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin-bottom: .6rem; }
h3 { font-family: 'Caveat', cursive; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--vino); margin: 1.4rem 0 .4rem; }
h4 { font-family: 'Patrick Hand', cursive; font-size: 1.15rem; color: var(--tinta-soft); margin: 1rem 0 .4rem; letter-spacing: .02em; }
.subtitle { font-family: 'Caveat', cursive; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--tinta-soft); margin-top: .3rem; }
p { margin-bottom: .9rem; max-width: 72ch; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
ul, ol { margin: .5rem 0 1rem 1.4rem; max-width: 72ch; }
li { margin-bottom: .35rem; }
strong, b { font-weight: 700; color: var(--tinta); }
em { font-style: italic; color: var(--tinta-soft); }

.hero {
  background: var(--papel);
  padding: clamp(50px, 9vw, 100px) clamp(28px, 5vw, 70px) clamp(40px, 7vw, 80px) clamp(60px, 11vw, 140px);
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: '';
  position: absolute; top: 30px; bottom: 30px;
  left: clamp(36px, 7vw, 90px); width: 1.5px;
  background: var(--margin); z-index: -1;
}
.hero .eyebrow {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem; color: var(--vino);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.hero p.lede { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--tinta-soft); max-width: 62ch; margin-top: 1rem; }

.indice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin: 2rem 0 .5rem;
}
.indice a {
  display: block;
  background: var(--vino-bg);
  border: 1.5px solid var(--vino-soft);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  transition: transform .15s, box-shadow .15s;
}
.indice a:hover, .indice a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--vino);
  outline: none;
}
.indice .step-num {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5rem; color: var(--vino);
  display: block; line-height: 1;
}
.indice .step-name {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem; color: var(--tinta);
  margin-top: .3rem; display: block;
}
.indice .step-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .92rem;
  color: var(--tinta-soft);
  margin-top: .35rem;
  display: block;
  line-height: 1.4;
}

.box {
  background: rgba(255,255,255,.55);
  border-left: 4px solid var(--vino);
  padding: 1rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  box-shadow: 1px 1px 0 rgba(31,24,18,.05);
  max-width: 78ch;
}
.box p { max-width: none; }
.box--def {
  background: var(--vino-bg);
  border-left-color: var(--vino);
}
.box--def::before {
  content: 'DEFINICIÓN';
  display: inline-block;
  background: var(--vino); color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-size: .75rem; padding: .08em .5em;
  border-radius: 3px; margin-right: .5em;
  letter-spacing: .05em;
}
.box--aviso {
  background: var(--amarillo-bg);
  border-left-color: var(--oro);
  position: relative;
  padding-right: 3rem;
}
.box--aviso::before {
  content: '⚠';
  position: absolute; top: .8rem; right: 1rem;
  font-size: 1.6rem; color: var(--oro);
}
.box--trampa {
  background: #fde4e1;
  border-left-color: var(--rojo);
}
.box--trampa::before {
  content: 'NO CONFUNDAS';
  display: inline-block;
  background: var(--rojo); color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-size: .75rem; padding: .08em .5em;
  border-radius: 3px; margin-right: .5em;
  letter-spacing: .05em;
}
.box--clave {
  background: var(--verde-bg);
  border-left-color: var(--verde-cesped);
}
.box--clave::before {
  content: '★ CLAVE';
  display: inline-block;
  background: var(--verde-cesped); color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-size: .75rem; padding: .08em .5em;
  border-radius: 3px; margin-right: .5em;
  letter-spacing: .05em;
}
.box--historia {
  background: #f3ecd9;
  border-left-color: #8a7233;
}
.box--historia::before {
  content: '📜 HISTORIA';
  display: inline-block;
  background: #8a7233; color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-size: .75rem; padding: .08em .5em;
  border-radius: 3px; margin-right: .5em;
  letter-spacing: .05em;
}

.ejemplo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.55;
  padding: .7rem 1.1rem;
  background: rgba(255,255,255,.6);
  border-radius: 4px;
  margin: .6rem 0;
  border: 1px dashed rgba(31,24,18,.18);
  max-width: 70ch;
}
.ejemplo cite { display: block; margin-top: .35rem; font-family: 'Patrick Hand', cursive; font-style: normal; color: var(--tinta-tenue); font-size: .92rem; }

/* géneros */
.generos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0;
}
.genero {
  border-radius: 10px;
  overflow: hidden;
  background: var(--papel);
  border: 1.5px solid rgba(31,24,18,.15);
  box-shadow: 3px 3px 0 rgba(31,24,18,.06);
  display: flex; flex-direction: column;
  position: relative;
}
.genero-head {
  padding: 1rem 1.1rem .7rem;
  display: flex; align-items: center; gap: .9rem;
  color: #fff;
  font-family: 'Permanent Marker', cursive;
}
.genero--lirica .genero-head { background: var(--lirica); }
.genero--narrativa .genero-head { background: var(--narrativa); }
.genero--dramatica .genero-head { background: var(--dramatica); }
.genero-head svg { width: 42px; height: 42px; flex-shrink: 0; }
.genero-head h3 {
  font-family: 'Permanent Marker', cursive;
  color: #fff;
  font-size: 1.7rem;
  margin: 0;
  line-height: 1;
}
.genero-head .raiz {
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: 1.05rem;
  opacity: .9;
  margin-top: .15rem;
}
.genero-body { padding: 1rem 1.1rem 1.2rem; }
.genero--lirica .genero-body { background: var(--lirica-bg); }
.genero--narrativa .genero-body { background: var(--narrativa-bg); }
.genero--dramatica .genero-body { background: var(--dramatica-bg); }
.genero-def {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--tinta);
  margin-bottom: .8rem;
  line-height: 1.45;
}
.genero h4 {
  font-family: 'Patrick Hand', cursive;
  color: var(--tinta);
  margin: .9rem 0 .35rem;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1.5px dashed rgba(31,24,18,.25);
  padding-bottom: .2rem;
}
.genero ul { margin: .3rem 0 .6rem 1.1rem; }
.genero li { margin-bottom: .25rem; font-size: .95rem; }
.soporte {
  display: inline-flex; flex-wrap: wrap; gap: .35rem;
  margin: .4rem 0 .2rem;
}
.soporte span {
  font-family: 'Patrick Hand', cursive;
  font-size: .82rem;
  padding: .15em .55em;
  border-radius: 3px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(31,24,18,.18);
  letter-spacing: .04em;
}
.soporte .verso  { color: var(--vino); border-color: var(--vino); }
.soporte .prosa  { color: var(--azul-pen); border-color: var(--azul-pen); }
.soporte .mixto  { color: var(--verde-cesped); border-color: var(--verde-cesped); }

.sub-card {
  background: rgba(255,255,255,.55);
  border-radius: 4px;
  padding: .45rem .65rem;
  margin: .35rem 0;
  font-size: .92rem;
  line-height: 1.4;
  border-left: 3px solid currentColor;
}
.genero--lirica .sub-card { color: var(--lirica); }
.genero--narrativa .sub-card { color: var(--narrativa); }
.genero--dramatica .sub-card { color: var(--dramatica); }
.sub-card b {
  font-family: 'Permanent Marker', cursive;
  font-weight: normal;
  color: currentColor;
  font-size: 1rem;
  display: block;
  letter-spacing: .03em;
}
.sub-card span.def {
  color: var(--tinta);
  font-style: italic;
  display: block;
  margin: .05rem 0 .1rem;
  font-size: .88rem;
}
.sub-card span.ej {
  color: var(--tinta-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  display: block;
}

.tabla-resumen, .tabla-versos, .tabla-estrofas {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--papel);
  font-size: .92rem;
}
.tabla-resumen th, .tabla-resumen td,
.tabla-versos th, .tabla-versos td,
.tabla-estrofas th, .tabla-estrofas td {
  border: 1px solid rgba(31,24,18,.18);
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}
.tabla-resumen thead th,
.tabla-versos thead th,
.tabla-estrofas thead th {
  background: var(--vino);
  color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-weight: normal;
  letter-spacing: .04em;
}
.tabla-resumen tbody tr:nth-child(odd),
.tabla-versos tbody tr:nth-child(odd),
.tabla-estrofas tbody tr:nth-child(odd) { background: var(--vino-bg); }
.tabla-versos td:nth-child(1) { font-family: 'JetBrains Mono', monospace; text-align: center; width: 4.5em; }
.tabla-versos td:nth-child(2) { font-family: 'Patrick Hand', cursive; color: var(--vino); font-size: 1rem; width: 9em; }
.tabla-versos td:nth-child(3) { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.tabla-estrofas td code,
.tabla-resumen td code {
  font-family: 'JetBrains Mono', monospace; font-size: .85em;
  background: rgba(31,24,18,.05); padding: 0 .25em; border-radius: 2px;
}

/* escansión */
.escansion { margin: 1.2rem 0; }
.verso {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.5rem;
  gap: .4rem .9rem;
  padding: .55rem .8rem;
  margin: .35rem 0;
  background: rgba(255,255,255,.65);
  border-radius: 4px;
  border-left: 3px solid var(--vino-soft);
  align-items: baseline;
}
.verso.par { border-left-color: var(--vino); background: rgba(122,42,58,.06); }
.verso.suelto { border-left-color: rgba(31,24,18,.2); }
.verso .v-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--tinta-tenue);
  text-align: right;
}
.verso .v-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.4;
}
.verso .v-rima {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  color: var(--vino);
  text-align: center;
  letter-spacing: .02em;
  line-height: 1;
}
.verso .v-rima.silencio {
  color: rgba(31,24,18,.3);
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
}
.verso .v-esc {
  grid-column: 2 / span 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--tinta-soft);
  background: rgba(31,24,18,.04);
  padding: .25rem .55rem;
  border-radius: 3px;
  margin-top: .1rem;
}
.sinalefa { background: var(--amarillo-bg); padding: 0 .12em; border-radius: 2px; border-bottom: 2px solid var(--oro); font-weight: 500; }
.dieresis { background: var(--verde-bg); padding: 0 .12em; border-radius: 2px; border-bottom: 2px solid var(--verde-cesped); font-weight: 500; }
.sineresis { background: var(--azul-bg); padding: 0 .12em; border-radius: 2px; border-bottom: 2px solid var(--azul-pen); font-weight: 500; }
.aguda { color: var(--vino); font-weight: 700; }

.leyenda {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin: .8rem 0 1.2rem;
  font-family: 'Patrick Hand', cursive;
  font-size: .92rem;
}
.leyenda span {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .5rem;
  background: rgba(255,255,255,.6);
  border-radius: 3px;
  border: 1px solid rgba(31,24,18,.12);
}

.esquema-acento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
  margin: 1rem 0;
}
.esquema-acento .card {
  background: var(--papel);
  border-radius: 6px;
  padding: .9rem 1rem;
  border: 1.5px solid rgba(31,24,18,.15);
  text-align: center;
}
.esquema-acento .card .big {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.6rem;
  color: var(--vino);
  display: block;
  line-height: 1;
  margin-bottom: .3rem;
}
.esquema-acento .card.aguda    { background: var(--vino-bg); }
.esquema-acento .card.llana    { background: var(--vino-bg2); }
.esquema-acento .card.esdrujula{ background: var(--amarillo-bg); }
.esquema-acento .card .lbl {
  font-family: 'Patrick Hand', cursive;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tinta-soft);
  font-size: .85rem;
  display: block;
}
.esquema-acento .card em {
  font-family: 'Cormorant Garamond', serif;
  font-size: .98rem;
  display: block;
  margin-top: .4rem;
  color: var(--tinta-soft);
}

.nav-pasos {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px dashed rgba(31,24,18,.15);
}
.nav-pasos a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  padding: .5rem 1rem;
  background: var(--papel);
  border: 1.5px solid var(--vino);
  border-radius: 4px;
  color: var(--vino);
  transition: all .15s;
}
.nav-pasos a:hover, .nav-pasos a:focus-visible {
  background: var(--vino);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--tinta);
  outline: none;
}

.footer {
  background: var(--tinta);
  color: #d4cbb9;
  padding: 2.5rem clamp(28px, 5vw, 70px);
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: .95rem;
}
.footer a { color: var(--amarillo); }

/* Sello NGLE */
.sello-ngle-bar { display:flex; justify-content:flex-end; padding:8px 5vw 0; max-width:1240px; margin:0 auto; }
.sello-ngle { display:inline-flex; align-items:center; gap:10px; padding:6px 12px 6px 8px; border:2px dashed var(--azul-pen); border-radius:12px; background:rgba(43,79,138,.045); color:var(--azul-pen); text-decoration:none; font-family:'Patrick Hand',cursive; font-size:.85rem; line-height:1.1; transform:rotate(-2deg); transition:transform .25s, background .25s, box-shadow .25s; box-shadow:0 2px 0 rgba(43,79,138,.06); }
.sello-ngle:hover, .sello-ngle:focus-visible { transform:rotate(0) scale(1.04); background:rgba(43,79,138,.1); box-shadow:0 6px 18px rgba(43,79,138,.15); outline:none; }
.sello-ngle-sello { flex-shrink:0; width:42px; height:42px; }
.sello-ngle-sello svg { width:100%; height:100%; }
.sello-ngle-texto { font-weight:700; letter-spacing:.2px; }
.sello-ngle-texto small { display:block; font-size:.78em; opacity:.8; font-weight:400; margin-top:1px; }

@media print {
  .topbar, .nav-pasos { display: none; }
  .hoja::before { opacity: .2; }
  body { background: white; }
  .ejemplo, .verso { background: white; border-color: #ccc; }
}

@media (max-width: 700px) {
  .hoja { padding-left: clamp(36px, 8vw, 60px); padding-right: 20px; }
  .hero { padding-left: clamp(36px, 8vw, 60px); padding-right: 20px; }
  .indice { grid-template-columns: 1fr; }
  .generos-grid { grid-template-columns: 1fr; }
  .tabla-resumen, .tabla-versos, .tabla-estrofas { font-size: .85rem; }
  .verso { grid-template-columns: 2rem 1fr 2rem; gap: .25rem .55rem; padding: .45rem .55rem; }
  .verso .v-text { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .sello-ngle, .sello-ngle:hover { transition:none; transform:rotate(-2deg); }
}

:focus-visible { outline: 2px solid var(--vino); outline-offset: 2px; border-radius: 2px; }

/* ── Justificación global (landing) — 2026-05-22 ── */
p, .lede, .box, .box--ngle, .nota, .pista, blockquote,
.arbol-caption, .seccion__desc, .banco__desc,
.actividad__solucion .nota, .actividad__solucion .tipo {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
  text-wrap: pretty;
}

/* ── Subgéneros: rótulos de grupo, notas y desplegable de la novela ── */
.sub-rotulo {
  font-family: 'Patrick Hand', cursive;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tinta-soft);
  margin: .85rem 0 .15rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.sub-rotulo::after { content: ""; flex: 1; border-top: 1px dashed currentColor; opacity: .45; }

.sub-nota {
  font-size: .85rem;
  font-style: italic;
  color: var(--tinta-soft);
  margin: .7rem 0 0;
  padding: .45rem .6rem;
  border: 1px dashed var(--tinta-soft);
  border-radius: 4px;
  background: rgba(255,255,255,.4);
  line-height: 1.45;
}
.sub-nota a { color: inherit; text-decoration-style: wavy; text-underline-offset: 2px; }

.sub-grupo {
  background: rgba(255,255,255,.55);
  border-radius: 4px;
  margin: .35rem 0;
  border-left: 3px solid currentColor;
}
.genero--lirica .sub-grupo { color: var(--lirica); }
.genero--narrativa .sub-grupo { color: var(--narrativa); }
.genero--dramatica .sub-grupo { color: var(--dramatica); }

.sub-grupo > summary {
  cursor: pointer;
  list-style: none;
  padding: .45rem 2rem .45rem .65rem;
  font-size: .92rem;
  line-height: 1.4;
  position: relative;
}
.sub-grupo > summary::-webkit-details-marker { display: none; }
.sub-grupo > summary b {
  font-family: 'Permanent Marker', cursive;
  font-weight: normal;
  color: currentColor;
  font-size: 1rem;
  display: block;
  letter-spacing: .03em;
}
.sub-grupo > summary span.def {
  color: var(--tinta);
  font-style: italic;
  display: block;
  margin: .05rem 0 .1rem;
  font-size: .88rem;
}
.sub-grupo > summary .pista {
  display: block;
  font-family: 'Patrick Hand', cursive;
  font-size: .8rem;
  color: var(--tinta-soft);
  letter-spacing: .04em;
}
.sub-grupo[open] > summary .pista { display: none; }
.sub-grupo .chev {
  position: absolute;
  right: .65rem;
  top: .5rem;
  font-size: 1rem;
  color: currentColor;
  transition: transform .25s ease;
}
.sub-grupo[open] .chev { transform: rotate(180deg); }
.sub-grupo > summary:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.sub-grupo-body {
  padding: 0 .55rem .55rem;
  display: grid;
  gap: .3rem;
}
.sub-grupo[open] .sub-grupo-body { animation: subDespliega .28s ease; }
@keyframes subDespliega {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

.sub-card--mini {
  margin: 0;
  background: rgba(255,255,255,.75);
  border-left-style: dashed;
  border-left-width: 2px;
  font-size: .88rem;
}
.sub-card--mini b { font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  .sub-grupo[open] .sub-grupo-body { animation: none; }
  .sub-grupo .chev { transition: none; }
}
