/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY ===== */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background-color: linear-gradient(to bottom, #f4f6f9, #e9edf3);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
#registro {
  background: white;
  width: 95%;
  max-width: 420px;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}

#test {
  background: white;
  width: 95%;
  max-width: 1000px;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: center; 
}

h2 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #222;
}

/* ===== INPUTS ===== */
input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

input:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

/* ===== BOTONES ===== */
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  border: none;
  background-color: #4a90e2;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background-color: #357abd;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Botón flotante */
.info-container {
  position: relative;
  margin-bottom: 10px;
}

#btnInfo {
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
}

#btnInfo:hover {
  background: #125aa0;
}

/* Panel de instrucciones */
.panel-instrucciones {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  width: 280px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 100;
  text-align: left;
  font-size: 14px;
}

.panel-instrucciones button {
  margin-top: 10px;
  width: 100%;
  background: #e53935;
  color: white;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}


/* ===== TIEMPO ===== */
#time {
  font-size: 14px;
  margin-bottom: 8px;
  color: #888;
}

/* ===== CANVAS ===== */
canvas {
  background: #fafafa;
  border-radius: 16px;
  margin-top: 15px;
  max-width: 100%;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  touch-action: none;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

.modal-contenido {
  background: white;
  width: 90%;
  max-width: 450px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 18px;
  text-align: left;
}

.politica-texto {
  height: 220px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 12px;
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.5;
}

.modal-botones {
  text-align: right;
}

/* ===== ANIMACIÓN ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
