@font-face {
    font-family: Cantarell;
    src: url('../fonts/Cantarell-Bold.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Georgia";
    src: url('../fonts/Georgia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Nerd fonts";
    src: url('../fonts/DejaVuSansMNerdFont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
  margin: 0;
  padding: 0px;
  background-color: #efefef;
  font-size: 18px;
}

p, div.aviso, div.info, div.truco, div.nota {
  text-align: left;
  font-family: "Georgia", serif;
  text-indent: 0;
  margin: 0;
  padding: 0;
}

div.aviso, div.info, div.truco, div.nota {
  margin: 0.5em auto;
}

p, li {
  margin: 0.4em 0;
  font-family: "Georgia", serif;
}

li p {
    text-indent: 0;
}

p em, p i {
    font-style: italic;
}

p b, p strong {
    font-weight: bold;
}

p b i, p i b,
p strong em, p em strong,
p b em, p em b,
p strong i, p i strong {
    font-weight: bold;
    font-style: italic;
}

/* cabecera */
.mathead-title {
  display: block;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  padding: 0;
  color: #044004;
  background-color: #efefef;
  vertical-align: bottom;
  width: 100%;
}

/* The header across the top of the page */
header {
  display: table;
  width: 350px;
}

h1 {
  font-size: 1.5em;;
  margin-top: 5em;
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-size: 1.2em;
}

h4 {
  font-size: 1.1em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Cantarell, Helvetica, sans-serif;
  color: #044004;
}

/* cabecera */
.masthead {
    float:left;
    display: block;
    width: 350px;
    height: 100%;
    margin: auto;
    position: fixed;
    top: 0;
    background-color: #fffd;
}
.masthead h1 {
    font-family: Cantarell, Helvetica, 'sans serif';
    font-size: 2em;
    text-align: right;
    margin: 0 2% 0 0;
    margin-bottom: 0;
    color: #000;
}
.masthead h2 {
    font-family: Cantarell, Helvetica, 'sans serif';
    font-size: 1.2em;
    color: #844;
    text-align: right;
    margin-right: 2%;
    padding: 0;
}
.masthead a {
    color: #151;
    text-decoration: none;
}
.masthead a:hover {
    text-decoration: none;
    color: #844;
    transition: 1s;
}
.masthead p {
    font-size: 1.5em;
    margin-left: 10px;
}
.masthead ul {
    list-style: none;
    margin-top: -100px;
    margin-right: 5px;
    text-align: right;
}
.masthead li {
    font-family: Cantarell, Helvetica, 'sans serif';
    font-weight: bold;
    font-size: 1.2em;
    text-align: right;
    padding-right: 0.5em;
}
.masthead .avatar {
    margin-top: -1.2em;
    margin-left: 1em;
}

/* fin de la .cabecera */

#content {
    max-width: 750px;
    margin-left: 375px;
    margin-top: 2.5em;
    padding-bottom: 1.5em;
}

#postamble {
    max-width: 300px;
    position: fixed;
    bottom: 0;
    right: 0;
    text-align: center;
}

#postamble p {
    text-align: center;
}

a {
    color: darkgreen;
    text-decoration: none;
}

p a, a:visited {
    text-decoration: dotted;
}

h1.title {
    margin: 0;
}

footer {
    background-color: #efefef;
    width: 17%;
    font-size: 0.8em;
    padding: 0.5em;
    text-align: right;
    position: fixed;
    bottom: 0;
    left: 0;
    border: 1px solid #404040;
    border-radius: 5px;
    width: 11em;
    height: auto;
    margin: 0.5em;
}

footer:before {
    content: "\2764";
    font-size: 2.5em;
    float: left;
    margin-right: 0.1em;
    margin-left: 0.2em;
    color: red;
}

div.outline-2 {
  padding: 0;
}

div.outline-2 a:link {
    padding: 0 0.2em 0 0.2em;
    border-radius: 5px;
}

div.outline-2 a:visited {
    background-color: #eee;
}

div.outline-2 a:hover {
    color: #efefef;
    background-color: #06420a;
    transition: all 2s;
}

div.post-date {
    font-size: 1.1em;
    text-align: right;
    font-family: Cantarell, Helvetica, Arial;
    font-weight: bold;
    color: #844;
}
div.post-author {
    float: left;
    font-size: 1.1em;
    text-align: left;
    font-family: Cantarell, Helvetica, Arial;
    font-weight: bold;
    color: #844;
}

/* bloques de código */
pre.src {
  /* background-color: #efefef; */
  background-color: #222;
  color: #fefefe;
  font-size: 0.8em;
  padding: 0.5em;
  white-space: pre-wrap;
  overflow: auto;
}

/* The label/value pairs on (for example) the vinfo page */
table.label-value th {
  vertical-align: top;
  text-align: right;
  padding: 0.2ex 2ex;
}

hr.linea {
  width: 30%;
  height: 0;
  margin: 0.5em auto;
  border: none;
  border-top: 0.125em solid gray;
}

.asangre {
  text-indent: 0;
}

.caja {
  font-size: 85%;
  margin: 1em 5% 1.5em;
  padding: 10px;
  border: 0.125em solid silver;
  border-radius: 10px;
  box-shadow: 0 4px 5px silver;
}

.caja img {
  border-radius: 5px;
}

/* Añade notas al margen visuales */
.nota {
  display: none;
  float: right;
  clear: right;
  width: 300px;
  height: 200px;
  margin-right: -55%;
  padding:5px;
  border:1px solid darkgreen;
  border-radius: 5px;
  background-color:#efffef;
  font-size: 0.9em;
  text-indent: 0;
  position:relative;
  overflow:auto;
  z-index:1;
}

.nota p  {
  font-size: 0.90em;
  text-indent: 0;
}

#nota {
  background-color: #efffef;
  text-decoration: underline wavy darkgreen;
}

#nota:hover .nota {
  display: inline-block;
  position: absolute;
}

.margen {
  float: right;
  clear: right;
  margin-right: -55%;
  margin-top: 0;
  margin-bottom: 0.3em;
  font-size: 0.9em;
  width: 50%;
  position: relative;
  overflow:auto;
  text-indent: 0;
  z-index:1;
}

.margen p {
    text-indent: 0;
    margin-bottom: 0.3em;
}

sup {
    font-size: 0.75em;
}

/* Distintas clases útiles */
.aviso, .info, .truco {
  display: block;
  max-width: 80%;
  min-height: 2.5em;
  color: black;
  padding: 0.5em;
}

div.aviso {
    background: #ffefef;
    border-left: 5px solid #600;
}

div.info {
    background: #fff;
    border-left: 5px solid black;
}

div.truco {
  background: #efffef;
  border-left: 5px solid #06420a;
}

div.aviso a {
  color: #600;
}

div.info a {
  color: #911;
}

div.truco a {
  color: #060;
}

div.aviso h1, div.info h1, div.truco h1, blockquote h1 {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  padding: 0;
  margin: 0;
}

div.aviso p, div.info p, div.truco p,
div.aviso li, div.info li, div.truco li {
    padding: 0.5em;
}

blockquote {
    background-color: #efffef;
    font-size: 0.95em;
    padding: 0.5em;
    width: 80%;
}

blockquote p {
    padding: .25em 1em;
}

blockquote .autor {
    font-weight: bold;
    font-size: 0.8em;
    margin: 0 2em 0 0;
    text-align: right;
}

.autor:before {
    content: '󰛓';
    font-family: "Nerd fonts";
    font-size:2em;
    color: #9f9;
}

blockquote:before {
    content: '“';
    font-size: 4em;
    font-family: Georgia;
    position: absolute;
    color: #9f9;
    margin-top: -0.473em;
    margin-left: -0.32em;
}
blockquote:after {
    content: '”';
    font-size: 4em;
    font-family: Georgia;
    position: absolute;
    color: #9f9;
    margin-top: -0.18em;
    margin-left: 8.7em;
}
div.aviso:before {
  content: "";
  font-size: 1.5em;
  font-family: "Nerd fonts";
  float: left;
  margin-right: 0.5em;
  margin-left: -2em;
  color: #600;
  padding: 0 0.25em;
  border-radius: 4px 2px 4px 2px;
}

div.info:before {
  content: "󰋽";
  font-size: 1.5em;
  font-family: "Nerd fonts";
  float: left;
  margin-right: 0.5em;
  margin-left: -2em;
  color: #333;
  padding: 0 0.25em;
}

div.truco:before {
  content: "󱁤";
  font-size: 1.5em;
  font-family: "Nerd fonts";
  float: left;
  margin-right: 0.5em;
  margin-left: -2em;
  color: #06420a;
  padding: 0 0.25em;
  border-radius: 4px 2px 4px 2px;
}

.texto-resaltado {
    color: #ffffd0;
    font-size: 14em;
    font-weight: bold;
    font-family: Cantarell, Helvetica;
    text-shadow: 
        0 1px 0 #ccc, 
        0 2px 0 #c9c9c9, 
        0 3px 0 #bbb, 
        0 4px 0 #b9b9b9, 
        0 5px 0 #aaa, 
        0 6px 1px rgba(0,0,0,.1), 
        0 0 5px rgba(0,0,0,.1), 
        0 1px 3px rgba(0,0,0,.3), 
        0 3px 5px rgba(0,0,0,.2), 
        0 5px 10px rgba(0,0,0,.25), 
        0 10px 10px rgba(0,0,0,.2), 
        0 20px 20px rgba(0,0,0,.15);
}
.texto-resaltado {
    text-align: center;
}

.marco {
    color: black;
    background-color: silver;
    border: 1px solid;
    border-radius: 5px 15px;
    border-color: #404040;
}

.marco p, .marco li {
    padding-bottom: 0.5em;
    text-decoration: none;
    text-indent: 0;
    list-style: none;
}

code, pre {
    font-family: "Nerd fonts", Monaco, Consolas, "monospace";
    font-size: 0.8em;
}

p>code, li>code {
    padding: 0.25em;
}

h2 code, h3 code, h4 code, h5 code, td code {
    font-family: inherit !important;
    font-size: inherit !important;
}

.org-dl, .org-ul, .org-ol {
    font-size: 1em;
}

table {
    margin: auto;
    margin-bottom: 15px;
    max-width: 100%;
    background-color: #fffa;
    font-variant-numeric: lining-nums;
}

th {
    padding-left: 5px;
    padding-right: 5px;
    font-weight: bold;
    background-color: #9D9;
}

td {
    padding-left: 5px;
    padding-right: 5px;
    border-bottom: 1px solid #9D9;
}

tr:hover {
    background-color: #9D9;
}

img {
    max-width: 85%;
    display: block;
    margin: auto;
}
/* Mostrar texto efecto de acordeón */
.tabs {
    border-radius: 5px;
    overflow: hidden;
}
.tab {
    width: 100%;
    color: black;
    overflow: hidden;
}
.tab-label {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  padding: 0.5em;
  background: #9d9;
  font-weight: bold;
  cursor: pointer;
  /* Icon */
}
.tab-label:hover {
    background: #3c3;
}
.tab-label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  -webkit-transition: all .35s;
  transition: all .35s;
}
.tab-close {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: flex-end;
  padding: 1em;
  background: #efffef;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.75em;
}
.tab-content {
  max-height: 0;
  padding: 0.1px;
  color: black;
  background: #efefef;
  -webkit-transition: all .35s;
  transition: all .35s;
}
input:checked + .tab-label {
    background: #0d9;
}
input:checked + .tab-label::after {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
input:checked ~ .tab-content {
  height: auto;
  max-height: 100vh;
  padding: 1em;
}
input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

span.org-string {
    color: #f94;
}

span.org-keyword {
    color: #c07;
}

span.org-variable-name {
    color: #f04;
}

span.org-clojure-keyword {
    color: #09f;
}

span.org-comment, span.org-comment-delimiter {
    color: #999;
}

span.org-rainbow-delimiters-depth-1, span.org-rainbow-delimiters-depth-5 {
    color: #666;
}

span.org-rainbow-delimiters-depth-2, span.org-rainbow-delimiters-depth-6 {
    color: #888;
}

span.org-rainbow-delimiters-depth-3, span.org-rainbow-delimiters-depth-7 {
    color: #aaa;
}

span.org-rainbow-delimiters-depth-4, span.org-rainbow-delimiters-depth-8 {
    color: #ccc;
}

figure {
    align-content: center;
}
figure img {
    margin: auto;
    max-width: 100%;
}

/* footer */
.footer {
    margin: 80px 0 0;
    font-size: 0.85em;
    color: #333;
}
.footer code {
    color: #060;
}
.footer a {
    color: #060;
}
.footer > p {
    margin: 0;
    line-height: 1.5;
}
.footer > table {
    margin: auto;
    max-width: 100%;
}
.footpara {
    display: inline;
}
.tags-title {
    margin: 0;
    font-size: 1.2em;
    margin-top: 1em;
    margin-left: -0.5em;
    color: #400;
}
.post-title-summary {
    margin: 0 0 15px;
    font-family: "Cantarell";
    font-size: 1.25em;
    margin-left: 0;
}
.post-date-summary {
    margin-top: -0.8em;
    margin-bottom: 5px;
    font-size: 1.1em;
    font-family: "Cantarell";
    font-weight: bold;
    color: #400;
}

figure:hover img {
    max-width: 120%;
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    transition:all 1s ease-in-out;
}

.redes {
    position: fixed;
    bottom: 0;
    left: 0;
    display: inline-block;
    margin: 6px;
    float: left;
    width: 30px;
}
div.figure {
    font-size: 0.85em;
}

.figure-number, .table-number {
    font-weight: bold;
}
.table-number:after {
    content: ':';
}
figcaption {
    max-width: 100%;
    width: auto;
    border-top: 3px solid #9d9;
    margin: 0.5em auto;
    padding-top: 0.5em;
}
.caption {
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
    border-bottom: 3px solid #cfc;
}
.org-left {
    text-align: left;
}
.org-right {
    text-align: right;
}
.sinia {
    text-indent: 0;
    padding: 0.5em;
    font-size: 0.8em;
    border: 1px solid red;
    border-radius: 5px;
    width: 50%;
    display: block;
    margin: auto;
}
.sinia:before {
    content: "\2764";
    font-size: 2.5em;
    float: left;
    margin-right: 0.1em;
    margin-left: 0.2em;
    color: red;
}
.rss:before {
    content: '󰑫';
    font-family: "Nerd fonts";
    padding-right: 0.25em;
}
@media print {

        body {
            color: black;
        }

        @page {
            margin: 25mm;
        }

        h2, h3 {
            page-break-before: always;
            margin-top: 0;
        }

        table {
            page-break-inside: avoid;
        }

        a:visited {
            color: black;
            background: #ff8;
        }

        a[href^="http"]:visited {
            background: #bff;
        }

        div.notice:before {
            display: none;
        }
}

@media (max-width: 1224px) {
    #preamble {
        margin: 0;
        width: 100%;
        display: block;
        position: relative;
        float: left;
    }
    #preamble h1, #preamble h2 {
        margin: 0 5px;
        text-align: right;
        z-index: 1;
    }
    .masthead {
        position: relative;
        display: block;
        float: left;
        width: 100%;
        height: auto;
    }
    .masthead .avatar {
        max-width: 90px;
    }
    .masthead ul {
        display: block;
    }
    .masthead li {
        text-align: center;
    }
    #content {
        display: block;
        float: left;
        margin-left: 5px;
    }
    #postamble {
        clear: right;
        float: left;
        position: relative;
        display: block;
        margin-top: 25em;
        float: left;
        margin: auto;
    }
    .redes {
        position: relative;
        float: left;
    }
}
@media (min-width: 1046px) {
    #preamble {
        margin: 0;
        width: 100%;
        display: block;
        position: relative;
        float: left;
    }
    #preamble h1, #preamble h2 {
        margin: 0 5px;
        text-align: right;
        z-index: 1;
    }
    .masthead ul {
        display: block;
    }
    .footer {
        position: fixed;
        bottom: 0;
        left: 35px;
    }
}
