@charset "UTF-8";
@font-face {
    font-family: "Emmett";
    src: url(../res/Emmett.ttf);
}
@font-face {
    font-family: "Droid Sans";
    src: url(../res/DroidSans.ttf);
}
:root {
    --pixeles-h1: 2.8rem;
    --pixeles-h2: 2.2rem;
    --size-peque: 0.75rem;
    --size-normal: 1rem;
    --size-mayor: 1.36rem;
    --size-grande: 1.8rem;
    --size-doblemayor: 2.3rem;
    --size-gigante: 3.2rem;
    --size-hipergigante: 5.4rem;
    --space: 5;
}
/* =================  */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    font-family:
        BlinkMacSystemFont,
        -apple-system,
        Ubuntu,
        "Droid Sans",
        Arial,
        Roboto,
        sans-serif;
    font-size: 12px;
}

body {
    margin: 0 auto;
    width: min(1024px, 98%);
    background-color: #f3f3f3;
    background-image: linear-gradient(to bottom, #f3f3f3 0%, #fff 100%);
    color: #666;
    font-family: inherit;
    font-size: 1.5em;
}

footer {
    display: block;
    position: relative;
    bottom: 0;
    margin: 2rem auto 0 auto;
    min-height: 65px;
    max-width: 100%;
    padding: 4px;
    background-color: #011119;
    color: aliceblue;
    background: #5f657d;
    box-shadow:
        inset 1px 1px 12px #1e1f20,
        -2px -2px 10px rgb(151, 147, 147);
}
header {
    margin: 1em;
	border-bottom: 1px dashed blueviolet;
	display: flex;
    /* padding: 1em; */
    /* position: relative; */
    /* background-color: rgba(91.4%, 58.8%, 47.8%, 0.22); */
}

header h1 {
    padding-top: 1em;
    font-size: clamp(var(--pixeles-h1), 1.4vw, 4em);
    line-height: calc(0.4 + var(--pixeles-h1) / 300);
    color: #60a6f5;
    text-shadow: 1px 1px 1px rgb(13 55 211);
    font-family: "Emmett", serif;
    font-variant: petite-caps;
    letter-spacing: 0.0825em;
    text-align: end;
}

header h2 {
    font-size: var(--pixeles-h2);
    line-height: calc(0.3 + var(--pixeles-h2) / 100);
    display: inline-block;
}

h3 {
    font-size: 1.6em;
    font-weight: bolder;
    width: 100%;
    text-align: center;
    margin-bottom: 2em;
    display: block;
    font-variant: petite-caps;
    color: #720072;
}

.portada {   
    background-repeat: no-repeat;
    background-position: 0 0;
    margin: 0 auto;
    background-size: contain;
   
}

.menu {
    position: relative;
    width: 320px;
    margin: 3em auto 3em auto;
    border-bottom: 1px solid #a8d5dd;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.menu img {
    max-width: 42px;
    max-height: 42px;
    height: auto;
    vertical-align: sub;
}
.menu input[type="color"],
.menu button {
    text-align: center;
    vertical-align: middle;
    background-color: transparent;
    display: inline-block;
    appearance: none;
    max-width: 48px;
    margin: 0 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 1;
    color: dodgerblue;
    cursor: pointer;
    border: 2px inset #2196f3 !important;
    border-radius: 4px;
    opacity: 0.6;
}

.menu input[type="color"]:hover,
.menu button:hover {
    opacity: 1;
}
.menu input[type="color"] {
    margin: 0;
}

#lector #duracion,
#lector sup {
    color: #2d5b8f;
}
/* ---------------------------- */
#autores {
    width: 100%;
    margin: 30px 20px auto;
    text-align: center;
}

#ornato {
    width: 100px;
    height: auto;
    margin: 0 auto;
}

#escritopor {
    display: inline-block;
    color: #333;
    font-size: var(--size-mayor);
    font-weight: 600;
}
.wrapper#main {
    /*color: #565656;*/
    background-color: #fff;
    --red: 255;
    --green: 255;
    --blue: 255;
    --aa-brightness: ((var(--red) * 299) + (var(--green) * 587) + (var(--blue) * 114)) / 1000;
    --aa-color: calc((var(--aa-brightness) - 128) * -1000);
    background: rgb(var(--red), var(--green), var(--blue));
    color: rgb(var(--aa-color), var(--aa-color), var(--aa-color));
}

@supports (font-size-adjust: 1) {
    article {
        font-size-adjust: 0.5;
    }
}

.wrapper {
    margin-top: 3em;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
}

#main p {
    margin: .2rem .2rem;
    padding: .2rem;    
    color: inherit;
    background-color: inherit;
    font-family: "Droid Sans", sans-serif;
    /*font-size: max(var(--size-grande), 1.2em);*/
    font-size: clamp(1.4rem, calc(0.95rem + 0.25vw), 1.25em);
    line-height: calc(1.3 + var(--space) / 100);
    letter-spacing: calc(1.2rem * (var(--space) / 200));
    word-spacing: calc(1.5rem * (var(--space) / 100));
    text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
    overflow-wrap: break-word;
}

#main p:first-of-type {
    padding-top: 2em;
}
#main p + p {
    text-indent: 1rem;
}

.wrapper #main img {
    max-width: min(55rem, 100%);
    height: auto;
    display: inline-block;
}

:focus {
    outline: none;
}
::selection {
    color: #fff;
    background: rgba(91.4%, 58.8%, 47.8%, 0.99);
}

/* ---------------------------- */
#cita {
    display: block;
    font-family: inherit;
    color: #666;
    font-size: 90%;
    margin: 30px auto 20px 30px;
    padding: 1rem;
    border-left: 5px solid;
    font-style: italic;
}

#cita header div {
    margin: 50% 0;
    text-align: right;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    padding: 6pt 0 6pt 0;
    margin-top: 1.33em;
    margin-bottom: 1.33em;
    margin-left: 20pt;
    margin-right: 20pt;
}

header p {
    text-align: right;
    font-size: 1rem;
    text-indent: 0.95em;
    line-height: 1.3em;
    margin: 0;
}

nav {width: 100%; 
	     line-height: 1; }
      ul { list-style-type: none;
	       margin: 0; padding: 0;
		   background-color: #724f72;
		   display: flex; }
      ul li a { display: block;
	            color: #fff;
				padding: 14px 16px;
				text-decoration: none; }
	ul li a:hover { background-color: #111;}