/*!
 * Start Bootstrap - Simple Sidebar (https://startbootstrap.com/template-overviews/simple-sidebar)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-simple-sidebar/blob/master/LICENSE)
 */

 @font-face{ 
	font-family: 'UmaFont';
  src: url('malacitana-sans-regular-webfont.woff2') format('woff2'),
  url('malacitana-sans-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
 }


body {
  overflow-x: hidden;
  margin: 5%;
  background-image: url("../img/uma.jpg");
  background-repeat: repeat;
  font-family: 'UmaFont', Arial, sans-serif;
}


html {
  font-size: 100%; /* 100% = 16px */
  font-family: 'UmaFont', Arial, sans-serif;
}
p {
  font-size: 1em; /* 1em = 16px */
}

.container {
  margin-top: 20px;
  background: #babafcbc;
  border: 1px solid #E0E0E0;
  padding: 15px;
  -moz-border-radius: 20px;
  -khtml-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;
}

.intermedia {
  margin-top: 20px;
  background: #babafcbc;
  border: 1px solid #E0E0E0;
  padding: 15px;
  -moz-border-radius: 20px;
  -khtml-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;
}

.media {
  background: #d9bafcec;
}

.eval {
  background: #fcbacad7;
}


h1 {
  color: #6c2eb9;
  font-weight: normal;
  font-size: 1.4em;
  font-family: Arial;
}
h2 {
  color: #3c1b66;
  font-weight: normal;
  font-size: 1.3em;
  font-family: Arial;
}
h3 {
  color: #443963;
  font-weight: normal;
  font-size: 1.2em;
  font-family: Arial;
}

div.soluciones {
display: inline-block; 
vertical-align:top;
font-family: Courier;
font-size: 1.2em;
  color: rgb(158, 64, 64);
}
.clearBoth { clear:both; }

div.codigo {
  display: inline-block; 
  font-family: Courier;
    color: rgb(158, 64, 64);
  }
  .clearBoth { clear:both; }
  

input{
  border-radius: 3px;
}

div.respuesta
{
	  margin-top: 10px;
	  margin-bottom: 10px;
    background: #CCCCFC;
    border: 1px solid #E0E0E0;
    padding: 10px;
	display: inline-block; 
    -moz-border-radius: 10px;
    -khtml-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}




/* The Modal (background) */
.modalEval {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  text-align: center;
  }

/* Modal Content/Box */
.modalEval-content {
  background-color: #f2d4f7;

  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  /*width: 80%;  Could be more or less, depending on screen size */
  display: inline-block;
  -moz-border-radius: 10px;
  -khtml-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

/* The Close Button */
.closeEval {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.closeEval:hover,
.closeEval:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Botón para abrir calificaciones */
.btn-ver-calificacion {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  margin: 10px auto;
  display: block;
  width: fit-content;
}

.btn-ver-calificacion:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-ver-calificacion:active {
  transform: translateY(0);
}

/* Overlay de fondo para el modal */
.cal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Calificación Moderna - Desplegable y Bonita */
.calificacion-moderna {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.9) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cal-header {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cal-titulo {
  color: white;
  font-size: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cal-dni {
  font-size: 0.7em;
  opacity: 0.9;
  font-weight: normal;
}

.cal-close {
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.cal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.cal-info {
  padding: 15px 25px;
  background: rgba(255,255,255,0.1);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  color: white;
}

.cal-badge {
  background: rgba(255,193,7,0.9);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
}

.cal-periodo {
  font-size: 0.9em;
  opacity: 0.95;
}

.cal-table-wrapper {
  background: white;
  padding: 20px;
  overflow-y: auto;
  max-height: 50vh;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.cal-table thead {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  z-index: 10;
}

.cal-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
}

.cal-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

.cal-table tbody tr:hover {
  background: #f5f5ff;
}

.cal-table td {
  padding: 10px 8px;
}

.cal-footer {
  background: rgba(255,255,255,0.95);
  padding: 20px 25px;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cal-resumen {
  font-size: 1.2em;
}

.cal-label {
  color: #666;
}

.cal-nota-final {
  font-size: 1.8em;
  font-weight: bold;
  color: #667eea;
  margin: 0 8px;
}

.cal-stats {
  color: #666;
  font-size: 0.95em;
}
