/**********************************************************/
/***** reset.css v2.0 (Eric Meyer's original version) *****/
/**********************************************************/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
body {line-height: 1;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}
table {border-collapse: collapse; border-spacing: 0;}

/******************/
/***** Layout *****/
/******************/

:root {
	--escritorio: '1000px';
	--tipo-marca: 'Arvo', serif;
	--tipo-enlanube: 'Dosis', sans-serif;
	--tipo-monoespaciado: monospace;
	--color-cielo: #68b8d7;
}

@keyframes blink {
	0% {opacity: 1;}
 	50% {opacity: 0;}
  	100% {opacity: 1;}
}
@keyframes parpadeo {
  from {
    background: radial-gradient(
      circle at center,
      color-mix(in srgb, red 95%, whitesmoke 5%) 0%,
      color-mix(in srgb, red 80%, whitesmoke 20%) 50%,
      color-mix(in srgb, red 60%, black 10%) 100%
    );
    box-shadow:
      inset 0 0 25px color-mix(in srgb, red 75%, whitesmoke 25%),
      0 0 8px red,
      0 0 16px rgba(255, 0, 0, 0.6);
  }
  to {
    background: radial-gradient(
      circle at center,
      color-mix(in srgb, red 70%, whitesmoke 30%) 0%,
      color-mix(in srgb, red 50%, whitesmoke 50%) 50%,
      color-mix(in srgb, red 40%, black 20%) 100%
    );
    box-shadow:
      inset 0 0 15px color-mix(in srgb, red 60%, whitesmoke 40%),
      0 0 3px red,
      0 0 8px rgba(255, 0, 0, 0.3);
  }
}

html {box-sizing: border-box; font-size: clamp(18px, 5vw, 22px); scroll-behavior: smooth;}
*, *:before, *:after {box-sizing: inherit;}

html, body {height: 100%;}

/***** Commons *****/
a {text-decoration: none;}
a:hover {color: red; }
strong {font-weight: bold;}
.centrado {text-align: center;}
.texto {text-align: left;}
.numero {text-align: right; white-space: nowrap;}

/***** Header *****/
header {position: sticky; top: 0; width: 100%; height: 50px; padding: 0.5rem 1rem; display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center; gap: 1rem; background-color: var(--color-cielo); z-index: 999;}
header h1, header form {display: inline-block;}
header h1 {font-family: var(--tipo-marca); font-size: 1rem;}
header input, header button {font-family: var(--tipo-enlanube);}

/***** Portada *****/
#portada {padding: 1rem}

/***** Botones *****/
#botones {padding: 1rem; display: flex; flex-flow: column wrap; align-items: flex-start; gap: 1rem; counter-reset: boton-contador;}
#botones > div {display: flex; flex-flow: row wrap; align-items: flex-start; gap: 1rem;}
#botones > div > div {width: 250px; display: flex; flex-flow: column wrap; align-items: flex-start;}
.generales button {width: 250px; height: 100px; --boton-color: #ffebae;}
.imagenes button {width: 250px; height: 200px; --boton-color: #ff3fa6;}
.sonidos button {width: 250px; height: 200px; --boton-color: #1ea7ff;}
.musicas button {width: 250px; height: 200px; --boton-color: #1ed760;}
.videos button {width: 250px; height: 200px; --boton-color: #a93fff;}
#botones button {position: relative; font-size: 0.75rem; color: rgba(0, 0, 0, 0.5); border-radius: 0.5rem; counter-increment: boton-contador; cursor: pointer; background: radial-gradient(circle at center, color-mix(in srgb, var(--boton-color) 95%, whitesmoke 5%) 0%, color-mix(in srgb, var(--boton-color) 70%, whitesmoke 30%) 60%, color-mix(in srgb, var(--boton-color) 60%, black 10%) 100%); box-shadow: inset 0 0 10px color-mix(in srgb, var(--boton-color) 70%, whitesmoke 30%), 0 2px 6px rgba(0, 0, 0, 0.15);
  	border: 1px solid rgba(255, 255, 255, 0.8); transition: all 0.1s cubic-bezier(1, 0, 0.3, 1);}
#botones button::before {content: counter(boton-contador); position: absolute; top: 0.25rem; right: 0.5rem; font-size: 0.75rem; color: rgba(0, 0, 0, 0.5);}
#botones button:hover, #botones button.active {background: radial-gradient(circle at center, color-mix(in srgb, var(--boton-color) 95%, whitesmoke 5%) 0%, color-mix(in srgb, var(--boton-color) 80%, whitesmoke 20%) 50%, color-mix(in srgb, var(--boton-color) 60%, black 10%) 100%); box-shadow: inset 0 0 25px color-mix(in srgb, var(--boton-color) 75%, whitesmoke 25%), 0 0 10px color-mix(in srgb, var(--boton-color) 90%, transparent 10%), 0 0 30px color-mix(in srgb, var(--boton-color) 80%, transparent 20%); border: 1px solid whitesmoke;}
#botones button[data-estado="on"], #botones button[data-estado="play"] {animation: parpadeo 0.4s linear infinite alternate;}
#botones .tipo {position: absolute; top: 0.5rem; left: 0.5rem; text-transform: uppercase; font-size: 0.5rem; color: rgba(0, 0, 0, 0.5);}
#botones .descripcion {width: 100%; line-height: 105%; font-size: 1.25rem; font-weight: bold;}
#botones .controles {margin-top: 5px; width: 100%; display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-end; gap: 5px;}
#botones .controles button::before {content: none;}
#botones .controles button {counter-increment: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 1rem; --boton-color: #ffebae;}

/***** Información *****/
[popover] {position: fixed; top: 50%; left: 50%; text-align: left; border: 1px solid #ccc; border-radius: 8px; padding: 1rem; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.25); max-width: 300px;}
[popover] h3 {margin-top: 0; text-align: center; font-size: 1rem;}

/***** Footer *****/
footer {padding: 1rem; font-family: var(--tipo-enlanube); text-align: center; border-top: 1px solid black;}

/***** Modal *****/
.modal {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999;}
.modal-content {text-align: center; background-color: #fff; padding: 2rem; border-radius: 8px; max-width: 400px; width: 90%;}
.modal-content button {cursor: pointer;}
#alerta {display: none;}

/***** Scrollbars *****/
[style*="overflow"], [style*="scroll"], textarea, pre {scrollbar-width: auto; scrollbar-color: silver black;}
[style*="overflow"]::-webkit-scrollbar, [style*="scroll"]::-webkit-scrollbar, textarea::-webkit-scrollbar, pre::-webkit-scrollbar {width: 16px; height: 16px;}
[style*="overflow"]::-webkit-scrollbar-track, [style*="scroll"]::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track, pre::-webkit-scrollbar-track {background: black;}
[style*="overflow"]::-webkit-scrollbar-thumb, [style*="scroll"]::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb, pre::-webkit-scrollbar-thumb {background-color: silver; border-radius: 8px; border: 4px solid black;}

/***** Icons *****/
.emoji {margin: 0 10px; font-size: 0.9rem;}
.icon {width: 25px; height: 25px;}

/***** @media *****/
@media (prefers-reduced-motion: reduce) {
	* {animation: none; transition: none; scroll-behavior: auto;}
}

@media print {
	body {margin: 1.5cm; font-size: 12pt; color: black; background-color: white;}
	header, nav, footer {display: none !important;}
	a[href]:after {content: " (" attr(href) ")"; font-size: 10pt; color: #666;}
	h1, h2, h3, h4 {page-break-after: avoid; break-after: avoid;}
	thead {display: table-header-group;}
	img, ul, ol {page-break-inside: avoid; break-inside: avoid;}
	img {max-width: 100% !important; height: auto !important;}
}