/* === Fuente personalizada: Halimun (para el nombre del certificado) === */
@font-face {
  font-family: 'Halimun';
  src: url('Fuentes/Halimun.ttf') format('truetype');
}

/* === Fuente personalizada: Maven Pro (para la cédula en el certificado) === */
@font-face {
  font-family: 'Maven Pro';
  src: url('Fuentes/MavenPro-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* === Estilos generales === */
body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

/* === Contenedor principal === */
.container {
  background: rgba(0, 0, 0, 0.9);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 195, 255, 0.3);
  text-align: center;
  max-width: 380px;
  width: 90%;
  animation: fadeIn 0.8s ease-in-out;
}

/* === Título === */
.container h1 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #00c3ff;
  text-shadow: 0 0 8px rgba(0, 195, 255, 0.4);
}

/* === Descripción bajo el título === */
.descripcion {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* === Formulario === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Campos de texto === */
input {
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  outline: none;
  background: #f2f2f2;
  color: #333;
  transition: 0.3s ease;
}

input:focus {
  box-shadow: 0 0 8px #00c3ff;
  transform: scale(1.02);
}

/* === Botón principal === */
button {
  background: linear-gradient(90deg, #00c3ff, #0088ff);
  border: none;
  border-radius: 10px;
  color: white;
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(90deg, #0088ff, #00c3ff);
  transform: scale(1.03);
}

/* === Canvas del certificado (oculto por defecto) === */
canvas {
  margin-top: 2rem;
  max-width: 90%;
  border: 3px solid #00c3ff;
  border-radius: 10px;
  display: none;
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

/* === Animación para entrada del contenedor === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === MODAL (ventanas emergentes) === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
}

.modal-content h2 {
  margin-bottom: 12px;
  color: #2e6db4;
  font-size: 1.4rem;
}

.modal-content p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #333;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-buttons button {
  padding: 10px 18px;
  background-color: #2e6db4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 600;
}

.modal-buttons button:hover {
  background-color: #1e4e82;
}

/* === Animación del modal === */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


#btnAyuda {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0db2ff;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
  transition: 0.2s;
}

#btnAyuda:hover {
  background: #0aa0e6;
  transform: scale(1.05);
}

