p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}



/* Bloques de recordatorio tipo "cerebro" */
.box-cerebro {
  border-left: 4px solid #800080; /* morado oscuro */
  background-color: #f5f0fa;
  padding: 1em;
  margin: 1em 0;
  border-radius: 6px;
  font-size: 0.95em;
}

.box-cerebro h3 {
  margin-top: 0;
  color: #5a2a85; /* morado medio para título */
}

.box-cerebro p:last-child {
  margin-bottom: 0;
}

/* Bloques de Tarea */
.box-tarea {
  border-left: 4px solid #007acc;
  background-color: #eaf4fb;
  padding: 1em;
  margin: 1em 0;
  border-radius: 6px;
  font-size: 0.95em;
}

.box-tarea h3 {
  margin-top: 0;
  color: #005c99;
}

.box-tarea p:last-child {
  margin-bottom: 0;
}

/* Caja de Preguntas de Repaso (amarillo) */
.box-repaso {
  border-left: 4px solid #e6ac00;
  background-color: #fffbe6;
  padding: 1em;
  margin: 1.5em 0;
  border-radius: 6px;
  font-size: 0.95em;
  
}

.box-repaso h3 {
  margin-top: 0;
  color: #b38600;
}


/* === Pruebas y Teoremas === */

.proof {
  background-color:  #f9ebea ;
  border-left: 5px solid #c0392b;
  padding: 1em;
  margin: 1em 0;
  font-family: Georgia, serif;
  label: "Demostración"" ;
  }

.theorem {
  background-color: #e8f8f5;
  border-left: 5px solid #1abc9c;
  padding: 1em;
  margin: 1em 0;
  font-family: Georgia, serif;
}

.xca {
  background-color: #f9ebea;
  border-left: 5px solid #c0392b;
  padding: 1em;
  margin: 1em 0;
  font-family: Georgia, serif;
}


/* === Soluciones desplegables (parciales) === */

details {
  margin: 0.6em 0 1em;
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  color: #1a5276;
  padding: 0.4em 0.6em;
  border-radius: 6px;
  background: #eaf4fb;
  border-left: 4px solid #2d6a9f;
  list-style: none;
  user-select: none;
}

details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▶ "; font-size: 0.75em; }
details[open] > summary::before { content: "▼ "; font-size: 0.75em; }

.sol-box {
  background: #f4f9f4;
  border-left: 4px solid #27ae60;
  border-radius: 0 8px 8px 0;
  padding: 1em 1.2em;
  margin-top: 0.5em;
  font-size: 0.95em;
  line-height: 1.7;
}

.sol-box hr {
  border: none;
  border-top: 1px dashed #a9dfbf;
  margin: 0.8em 0;
}

language:
  ui:
    chapter_name: "Capítulo "
  label:
    fig: 'Figura '
    tab: 'Tabla '
    eq: 'Ecuación '
    thm: 'Teorema '
    lem: 'Lema '
    cor: 'Corolario '
    prp: 'Proposición '
    cnj: 'Conjetura '
    def: 'Definición '
    exm: 'Ejemplo '
    exr: 'Ejercicio '
    proof: 'Demostración'
    remark: 'Comentario'

