:root{
  --tema-papel:#fbfaf4;
  --tema-papel-2:#f3f1e6;
  --tema-tinta:#1d2621;
  --tema-tinta-suave:#4a5650;
  --tema-renglon:#dedbf0;
  --tema-margen:#01b93c;
  --tema-verde:#01b93c;
  --tema-verde-medio:#019931;
  --tema-verde-hondo:#034b26;
  --tema-menta:#b2e9c8;
  --tema-lila:#7e76c3;
  --tema-linea:28px;
  --tema-titular:"Urbanist",system-ui,sans-serif;
  --tema-cuerpo:"Atkinson Hyperlegible",system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--tema-cuerpo);
  font-size:17px;
  line-height:var(--tema-linea);
  color:var(--tema-tinta);
  background-color:var(--tema-papel-2);
}
img,svg{max-width:100%;height:auto}
a{color:var(--tema-verde-hondo);text-decoration-color:var(--tema-verde);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{color:var(--tema-verde-medio)}
a:focus-visible,button:focus-visible{outline:3px dashed var(--tema-lila);outline-offset:3px}

/* cabecera */
.tema-portada{
  background:var(--tema-verde-hondo);
  color:#fff;
  text-align:center;
  padding:18px 16px 0;
  position:relative;
}
.tema-portada::after{
  content:"";
  display:block;
  height:14px;
  margin:0 -16px;
  background:radial-gradient(circle at 12px 7px,var(--tema-papel-2) 5px,transparent 6px) repeat-x;
  background-size:34px 14px;
}
.tema-rotulo{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#fff;
  font-family:var(--tema-titular);
  font-weight:900;
  font-style:italic;
  font-size:30px;
  letter-spacing:.5px;
  line-height:1;
}
.tema-rotulo:hover{color:#fff}
.tema-rotulo-caja{
  background:var(--tema-verde);
  color:#fff;
  border-radius:7px;
  padding:4px 9px 5px;
  box-shadow:0 0 0 2px rgba(255,255,255,.12) inset;
}
.tema-subrotulo{
  display:block;
  margin:8px 0 0;
  font-size:14px;
  line-height:20px;
  color:var(--tema-menta);
}
.tema-pestanas{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:4px 22px;
  list-style:none;
  margin:14px 0 0;
  padding:10px 0 12px;
  border-top:1px dashed rgba(178,233,200,.45);
  font-family:var(--tema-titular);
  font-weight:700;
  font-size:16px;
}
.tema-pestanas a{color:#fff;text-decoration:none;padding:4px 2px;border-bottom:3px solid transparent}
.tema-pestanas a:hover,.tema-pestanas a[aria-current="page"]{border-bottom-color:var(--tema-verde)}
.tema-pestanas .tema-salto{margin-left:6px}
.tema-iconos-boton,.tema-iconos{display:none}

/* hoja de cuaderno */
.tema-hoja{
  max-width:860px;
  margin:26px auto 40px;
  background-color:var(--tema-papel);
  background-image:
    linear-gradient(90deg,transparent 58px,var(--tema-margen) 58px,var(--tema-margen) 60px,transparent 60px),
    repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--tema-linea) - 1px),var(--tema-renglon) calc(var(--tema-linea) - 1px),var(--tema-renglon) var(--tema-linea));
  background-position:0 0,0 6px;
  padding:var(--tema-linea) 34px calc(var(--tema-linea)*2) 84px;
  border-radius:4px 10px 10px 4px;
  box-shadow:0 1px 0 #e7e4d6,0 10px 30px rgba(3,75,38,.10);
  position:relative;
}
.tema-hoja::before{
  content:"";
  position:absolute;
  left:18px;top:40px;bottom:40px;
  width:14px;
  background:radial-gradient(circle,var(--tema-papel-2) 5px,transparent 6px) repeat-y;
  background-size:14px 56px;
}
.tema-ruta{font-size:14px;color:var(--tema-tinta-suave);margin:0 0 var(--tema-linea)}
.tema-ruta a{color:var(--tema-tinta-suave)}
.tema-sello-dia{
  display:inline-block;
  font-size:14px;
  color:var(--tema-lila);
  font-weight:700;
  margin:0;
}
h1,h2,h3{font-family:var(--tema-titular);color:var(--tema-verde-hondo);margin:0}
h1{font-size:38px;line-height:calc(var(--tema-linea)*2);font-weight:900;margin-bottom:var(--tema-linea)}
h2{font-size:26px;line-height:calc(var(--tema-linea)*1.5);font-weight:800;margin:var(--tema-linea) 0 calc(var(--tema-linea)/2)}
h2::before{content:"\2116\00a0";color:var(--tema-verde);font-weight:900}
.tema-sin-num h2::before{content:none}
h3{font-size:20px;line-height:var(--tema-linea);font-weight:800;margin:var(--tema-linea) 0 0}
p{margin:0 0 var(--tema-linea)}
ul,ol{margin:0 0 var(--tema-linea);padding-left:22px}
li{margin:0}
strong{color:var(--tema-verde-hondo)}
.tema-entrada{font-size:19px;color:var(--tema-tinta)}
.tema-subrayado{background:linear-gradient(transparent 58%,var(--tema-menta) 58%)}

/* notas tipo post-it */
.tema-card{
  background:#fff9c9;
  padding:14px 18px 4px;
  margin:var(--tema-linea) 0;
  box-shadow:0 6px 14px rgba(29,38,33,.12);
  transform:rotate(-.6deg);
  position:relative;
}
.tema-card::before{
  content:"";
  position:absolute;
  top:-10px;left:50%;
  width:84px;height:20px;
  margin-left:-42px;
  background:rgba(178,233,200,.75);
  transform:rotate(2deg);
}
.tema-card h3{margin-top:0}
.tema-card.tema-azul{background:#ebe9fa;transform:rotate(.5deg)}
.tema-card.tema-azul::before{background:rgba(126,118,195,.35)}
.tema-card.tema-menta{background:#e3f7ea;transform:rotate(.3deg)}
.tema-par{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.tema-par .tema-card{margin:var(--tema-linea) 0 0}

/* tabla como libreta */
.tema-tabla-caja{overflow-x:auto;margin:0 0 var(--tema-linea)}
.tema-tabla{width:100%;border-collapse:collapse;font-size:15px;line-height:22px;min-width:460px}
.tema-tabla th,.tema-tabla td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--tema-renglon);vertical-align:top}
.tema-tabla th{font-family:var(--tema-titular);color:var(--tema-verde-hondo);background:rgba(178,233,200,.35)}

/* lista de chequeo */
.tema-check{list-style:none;padding-left:0}
.tema-check li{padding-left:30px;position:relative}
.tema-check li::before{content:"";position:absolute;left:2px;top:6px;width:15px;height:15px;border:2px solid var(--tema-verde-medio);border-radius:3px}
.tema-check li.tema-hecho::before{background:var(--tema-verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") center/12px no-repeat}
.tema-pasos{counter-reset:tema-n;list-style:none;padding-left:0}
.tema-pasos li{counter-increment:tema-n;padding-left:44px;position:relative;margin-bottom:calc(var(--tema-linea)/2)}
.tema-pasos li::before{content:counter(tema-n);position:absolute;left:0;top:0;width:30px;height:28px;border:2px solid var(--tema-lila);border-radius:50%;text-align:center;font-family:var(--tema-titular);font-weight:900;color:var(--tema-lila);line-height:24px}

/* calificación */
.tema-nota{display:flex;align-items:center;gap:18px;margin:var(--tema-linea) 0}
.tema-nota-sello{
  flex:0 0 auto;
  width:96px;height:96px;
  border:4px double var(--tema-verde-medio);
  border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-family:var(--tema-titular);font-weight:900;color:var(--tema-verde-medio);
  transform:rotate(-8deg);
  line-height:1;
}
.tema-nota-sello b{font-size:34px}
.tema-nota-sello span{font-size:12px;margin-top:4px}

/* llamadas a la acción */
.tema-salto{
  display:inline-block;
  background:var(--tema-verde);
  color:#02240f;
  font-family:var(--tema-titular);
  font-weight:800;
  font-size:16px;
  line-height:22px;
  text-decoration:none;
  padding:9px 18px;
  border-radius:999px 999px 999px 6px;
  box-shadow:3px 3px 0 var(--tema-verde-hondo);
}
.tema-salto:hover{color:#02240f;background:#2fd263}
.tema-pestanas .tema-salto{box-shadow:2px 2px 0 rgba(0,0,0,.35);padding:4px 14px;border-bottom:0}
.tema-section-salto{
  border:2px dashed var(--tema-verde-medio);
  border-radius:10px;
  padding:14px 18px;
  margin:var(--tema-linea) 0;
  background:rgba(178,233,200,.25);
}
.tema-section-salto p{margin-bottom:12px}
.tema-aviso{font-size:14px;line-height:22px;color:var(--tema-tinta-suave)}

/* preguntas */
.tema-pliegue{border-bottom:1px dashed var(--tema-renglon);padding:4px 0}
.tema-pliegue summary{cursor:pointer;font-family:var(--tema-titular);font-weight:800;color:var(--tema-verde-hondo);list-style:none;padding-left:26px;position:relative}
.tema-pliegue summary::-webkit-details-marker{display:none}
.tema-pliegue summary::before{content:"+";position:absolute;left:4px;color:var(--tema-verde);font-weight:900}
.tema-pliegue[open] summary::before{content:"\2212"}
.tema-pliegue p{margin:6px 0 10px}

/* firma */
.tema-colofon{
  margin-top:var(--tema-linea);
  padding-top:var(--tema-linea);
  border-top:2px solid var(--tema-renglon);
  font-size:15px;
}
.tema-colofon p{margin-bottom:10px;line-height:24px}

/* pie */
.tema-zocalo{
  background:var(--tema-verde-hondo);
  color:#d8efe0;
  padding:26px 16px 30px;
  font-size:14px;
  line-height:22px;
  text-align:center;
}
.tema-zocalo p{margin:0 auto 10px;max-width:720px}
.tema-zocalo a{color:#fff}
.tema-zocalo-enlaces{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;list-style:none;padding:0;margin:0 0 14px}

/* 404 */
.tema-borron{text-align:center}
.tema-borron .tema-num{font-family:var(--tema-titular);font-weight:900;font-size:110px;line-height:112px;color:var(--tema-menta);text-decoration:line-through;text-decoration-color:var(--tema-lila);text-decoration-thickness:8px;margin:0}
.tema-borron ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px}

@media (max-width:760px){
  body{font-size:16px}
  .tema-portada{padding-top:14px}
  .tema-rotulo{font-size:25px}
  .tema-pestanas{display:none}
  .tema-iconos-boton{
    display:inline-flex;align-items:center;justify-content:center;
    position:absolute;right:12px;top:14px;
    width:42px;height:42px;
    border:2px solid var(--tema-menta);border-radius:10px;
    background:transparent;color:#fff;cursor:pointer;padding:0;
  }
  .tema-iconos{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    list-style:none;
    margin:14px 0 0;
    padding:12px 0 14px;
    border-top:1px dashed rgba(178,233,200,.45);
  }
  .tema-iconos[hidden]{display:none}
  .tema-iconos a{
    display:flex;align-items:center;justify-content:center;
    height:52px;border-radius:12px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(178,233,200,.35);
    color:#fff;
  }
  .tema-iconos a[aria-current="page"]{background:var(--tema-verde-medio)}
  .tema-iconos a.tema-icono-salto{background:var(--tema-verde);color:#02240f}
  .tema-hoja{
    margin:16px 10px 28px;
    padding:var(--tema-linea) 16px calc(var(--tema-linea)*1.5) 42px;
    background-image:
      linear-gradient(90deg,transparent 28px,var(--tema-margen) 28px,var(--tema-margen) 30px,transparent 30px),
      repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--tema-linea) - 1px),var(--tema-renglon) calc(var(--tema-linea) - 1px),var(--tema-renglon) var(--tema-linea));
  }
  .tema-hoja::before{left:7px;width:12px;background-size:12px 56px}
  h1{font-size:29px;line-height:36px}
  h2{font-size:22px;line-height:30px}
  .tema-par{grid-template-columns:1fr;gap:0}
  .tema-card,.tema-card.tema-azul,.tema-card.tema-menta{transform:none}
}
.tema-nota p{margin:0}
.tema-tabla caption{caption-side:bottom;text-align:left;padding-top:6px}
.tema-hojeo{border-left:4px solid var(--tema-lila);padding:6px 0 2px 16px;margin:0 0 var(--tema-linea);font-size:15px;line-height:24px}
.tema-hojeo p{margin:0 0 4px;font-family:var(--tema-titular);font-weight:800;color:var(--tema-lila)}
.tema-hojeo ol{margin:0 0 6px;padding-left:20px;columns:2;column-gap:28px}
.tema-hojeo a{text-decoration-thickness:1px}
@media (max-width:760px){.tema-hojeo ol{columns:1}}
.tema-glosa{margin:0 0 var(--tema-linea)}
.tema-glosa dt{font-family:var(--tema-titular);font-weight:800;color:var(--tema-verde-hondo);margin-top:10px}
.tema-glosa dt::before{content:"\2192\00a0";color:var(--tema-lila)}
.tema-glosa dd{margin:0 0 6px 22px}
