/*
Ventanas XP
Hugo Lerma Vivar
mailto:hlv2@ arroba @ua.es
*/
html, body { margin: 0; padding: 0; height: 100%; }
* { box-sizing: border-box; }

body {
  background: #5a8fd5 url('fondo_escritorio_1920x1080_parte_inferior.jpg') center bottom no-repeat fixed;
  background-size: cover; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 19px; line-height: 1.5;
  color: #000; padding: 20px 10px;
}

#contenedor {
  max-width: 1100px; width: 95%; margin: 0 auto 50px; background: #09003f;
  border: 3px solid; border-color: #0055e4 #003c9d #003c9d #0055e4;
  border-radius: 8px 8px 0 0; box-shadow: 0 0 0 1px #6a96d7, 0 0 0 2px #86b3e8, 4px 4px 12px rgba(0,0,0,.5);
  overflow: hidden;
}

#intro {
  background: linear-gradient(#09003f 100%);
  color: #fff; padding: 8px 12px 30px; position: relative;
}

#intro:before {
  content: "\00D7"; position: absolute; top: 6px; right: 12px; width: 21px; height: 21px; line-height: 19px;
  text-align: center; font-size: 18px; font-weight: bold; color: #fff;
  background: linear-gradient(180d9g, #ef8c8c 0%, #e95c5c 50%, #dc2626 51%, #b91c1c 100%);
  border: 1px solid; border-color: #fff #b91c1c #b91c1c #fff;
  border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; cursor: pointer;
}

#titulo:before {
  content: "_"; position: absolute; top: 6px; right: 39px; width: 21px; height: 21px; line-height: 14px;
  text-align: center; font-size: 20px; font-weight: bold; color: #003d9c;
  background: linear-gradient(18019g, #d7e8f8 0%, #a6c9e2 50%, #7db9de 51%, #5a9dd1 100%);
  border: 1px solid; border-color: #fff #5a9dd1 #5a9dd1 #fff;
  border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; cursor: pointer;
}

#intro:after {
  content: ""; position: absolute; top: 6px; left: 8px; width: 20px; height: 20px;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAQAAAC1QeVaAAAAUklEQVR4AYXBMQrDMBBAwVX+/8+tLIRgY4i7eY0xxljwzjvvvPPOO++8886TTz755JNPPvnkk08++eSTTz755JNPPvnkk08++eST/7D/AKcrKR5V2J+rAAAAAElFTkSuQmCC') no-repeat center;
  background-size: contain;
}

#titulo { padding-top: 20px; }
#titulo h1 { margin: 0 0 10px; font-size: 19px; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,.5); }
#titulo h2 { margin: 0; font-size: 19px; font-weight: normal; opacity: .95; text-shadow: 1px 1px 1px rgba(0,0,0,.3); }

#resumen { margin-top: 25px; padding: 15px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); border-radius: 4px; }
#resumen p { margin: 8px 0; }
#resumen ul { margin: 8px 0; padding-left: 20px; }
#resumen li { margin: 4px 0; }

#comentario { margin-top: 15px; padding: 12px; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.5); border-radius: 4px; }
#comentario p { margin: 6px 0; }
#comentario a { color: #fff; text-decoration: underline; font-weight: bold; }
#comentario a:hover { color: #ffd; }

#enlacesintra {
  background: #09003f; padding: 30px 25px 40px; border-bottom: 2px solid #aea899;
  border-top: 1px solid #fff; text-align: center;
}
#enlacesintra h3 { margin: 0 0 30px; font-size: 19px; color: #fff; font-weight: normal; font-family: Arial, sans-serif; text-shadow: 1px 1px 2px rgba(0,0,0,.3); }
#enlacesintra ul {
  margin: 0 auto; padding: 12px 20px 12px 50px; list-style: none; display: block; max-width: 900px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') 20px center no-repeat;
  border: 1px solid #dfe1e5; border-radius: 24px;
  box-shadow: 0 1px 6px rgba(32,33,36,.28); text-align: center; white-space: nowrap; overflow: hidden; position: relative;
}
#enlacesintra li { display: inline-block; margin: 0 12px; background: transparent; padding: 0; white-space: normal; }
#enlacesintra a {
  color: #000; text-decoration: none; padding: 0; font-weight: normal;
  font-family: Arial, sans-serif; background: transparent; border: none; display: inline-block; line-height: 1.4; cursor: pointer;
}
#enlacesintra a:hover { text-decoration: underline; }
#enlacesintra a:visited, #enlacesintra a:active { color: #000; background: transparent; }

#apartados { padding: 0; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
#apartados > div { padding: 30px 25px; border: 2px solid #aea899; margin: -1px; box-shadow: 2px 2px 4px rgba(0,0,0,.2); }
#apartados h3 { margin: 0 0 15px; font-weight: bold; padding: 10px 12px; color: #000; }

#profesores {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 50%, #c92a2a 100%); color: #000;
  border-top: 3px solid #7ec8ff; border-left: 3px solid #7ec8ff; grid-column: 1; grid-row: 1;
}
#objetivos {
  background: linear-gradient(135deg, #7ea84b 0%, #5e8531 50%, #076632 100%); color: #000;
  border-top: 3px solid #ff9999; border-right: 3px solid #ff9999; grid-column: 2; grid-row: 1;
}
#bibliografia {
  background: linear-gradient(135deg, #5cb3ff 0%, #3498db 50%, #0652dd 100%); color: #000;
  border-bottom: 3px solid #ffe699; border-left: 3px solid #ffe699; grid-column: 1; grid-row: 2;
}
#contenidos {
  background: linear-gradient(135deg, #ffd966 0%, #f2a900 50%, #d68c00 100%); color: #000;
  border-bottom: 3px solid #c5f084; border-right: 3px solid #c5f084; grid-column: 2; grid-row: 2;
}

#apartados p, #apartados li, #apartados dt, #apartados dd { color: #000; }
#apartados p { margin: 12px 0; }
#apartados ul { margin: 12px 0; padding-left: 25px; }
#apartados li { margin: 6px 0; }
#apartados dl { margin: 12px 0; }
#apartados dt { font-weight: bold; margin-top: 12px; }
#apartados dt a { color: #000; text-decoration: underline; font-weight: bold; }
#apartados dd { margin: 4px 0 4px 20px; }

#enlaces {
  display: flex; flex-wrap: wrap; padding: 0; background: transparent; width: 100%; max-width: 1100px;
  margin: -10px auto 0; position: relative; z-index: 10;
}
#enlaces > div {
  padding: 12px 18px 15px; margin-right: 3px; border: 2px solid; border-bottom: none; border-radius: 8px 8px 0 0;
  box-shadow: 2px -2px 4px rgba(0,0,0,.2); cursor: pointer; position: relative; top: 2px; flex: 1 1 auto; min-width: 180px;
}

#lselecciona {
  background: linear-gradient(180deg, #8dc6ff 0%, #5cb3ff 100%); color: #003d9c;
  border-color: #0055e4 #003c9d #003c9d #0055e4; font-weight: bold;
}
#lselecciona:hover { background: linear-gradient(180deg, #a8d6ff 0%, #7ec8ff 100%); }

#lhistorico {
  background: linear-gradient(180deg, #b8e68a 0%, #9fd663 100%); color: #2d4a00;
  border-color: #56ab2f #4a6600 #4a6600 #56ab2f; font-weight: bold;
}
#lhistorico:hover { background: linear-gradient(180deg, #c5f084 0%, #b8e68a 100%); }

#lrecursos {
  background: linear-gradient(180deg, #ffe699 0%, #ffd966 100%); color: #8a6600;
  border-color: #f2a900 #8a6600 #8a6600 #f2a900; font-weight: bold;
}
#lrecursos:hover { background: linear-gradient(180deg, #fff5cc 0%, #ffe699 100%); }

#enlaces h3 { margin: 0; font-weight: bold; }
#enlaces ul { margin: 10px 0 0; padding: 0; list-style: none; }
#enlaces li { margin: 5px 0; }
#enlaces a { color: inherit; text-decoration: none; font-weight: normal; display: block; padding: 3px 0; }
#enlaces a:hover { text-decoration: underline; }

#enlacesversiones {
  max-width: 1100px; width: 95%; margin: 30px auto 0; background: #09003f;
  border: 3px solid; border-color: #ee5253 #8a0000 #8a0000 #ee5253;
  border-radius: 8px 8px 0 0; box-shadow: 0 0 0 1px #ff9999, 0 0 0 2px #ffb3b3, 4px 4px 12px rgba(0,0,0,.5);
  overflow: hidden; position: relative;
}
#enlacesversiones h3 {
  margin: -8px -12px 0; padding: 6px 12px; font-weight: bold; text-shadow: 1px 1px 1px rgba(0,0,0,.3);
  color: #fff; background: linear-gradient(180deg, #ff6b6b 0%, #ee5253 50%, #c92a2a 100%);
  border-bottom: 2px solid #8a0000;
}
#enlacesversiones ul { margin: 0; padding: 15px 20px; list-style: none; background: #09003f; }
#enlacesversiones li { display: inline-block; margin-right: 10px; margin-bottom: 8px; }
#enlacesversiones a {
  color: #003d9c; text-decoration: none; font-weight: bold; padding: 4px 10px;
  background: linear-gradient(180deg, #fff 0%, #d7e8f8 100%); border: 1px solid;
  border-color: #fff #5a9dd1 #5a9dd1 #fff;
  border-radius: 3px; display: inline-block; box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
#enlacesversiones a:hover {
  background: linear-gradient(180deg, #fff 0%, #a6c9e2 100%);
  border-color: #5a9dd1 #003d9c #003d9c #5a9dd1;
}
/* Prueba: ñ óáéíú*/
@media screen and (max-width: 900px) {
  body { padding: 10px 5px; }
  #contenedor { width: 98%; }
  #intro { padding: 8px 12px 25px; }
  #titulo h1 { font-size: 1.6em; }
  #enlaces > div { flex: 1 1 auto; min-width: 160px; }
}

@media screen and (max-width: 600px) {
  body { padding: 5px; font-size: 19px; }
  #intro { padding: 6px 10px 20px; }
  #intro:before { width: 18px; height: 18px; top: 5px; right: 10px; }
  #titulo { padding-top: 15px; }
  #resumen, #comentario { padding: 10px; }
  #enlacesintra { padding: 15px 12px; }
  #enlacesintra li { display: block; margin-right: 0; margin-bottom: 8px; }
  #enlacesintra a { display: block; text-align: center; }
  #apartados { padding: 15px 10px; }
  #apartados h3 { min-width: 100%; }
  #enlacesversiones { padding: 15px 12px; }
  #enlacesversiones li { display: block; margin-right: 0; margin-bottom: 8px; }
  #enlacesversiones a { display: block; text-align: center; }
}

@media print {
  body { background: #fff; padding: 0; }
  #contenedor { box-shadow: none; border: 1px solid #000; border-radius: 0; }
  #intro { background: #0055e4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #enlaces, #enlacesversiones { display: none; }
}
