/* Animación del reloj de arena */
@keyframes hourglass {
  0%   { opacity: 1; transform: rotate(0deg); }
  50%  { opacity: 0.6; transform: rotate(180deg); }
  100% { opacity: 1; transform: rotate(360deg); }
}

.hourglass {
  display: inline-block;
  font-size: 3rem;   /* tamaño del reloj */
  animation: hourglass 2s infinite linear;
}

/* === Caja general del formulario === */
.form-box {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* === Inputs tipo línea === */
.form-input,
.form-select {
  width: 100%;
  border: none;
  border-bottom: 2px solid #d1d5db;
  padding: 0.5rem 0;
  font-size: 1rem;
  background: transparent;
  color: #111827;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--color-primario, #2563eb);
  box-shadow: 0 1px 0 0 var(--color-primario, #2563eb);
  outline: none;
}

/* === Botones === */
.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: #1e40af;
}

.btn-danger {
  background-color: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
}

.btn-danger:hover {
  background-color: #fef2f2;
}
/*TRANSPARENCIA DEL MENU MOVIL*/
.glassmorphism-menu {
  background: rgba(255, 255, 255, 0.85); /* Blanco con 85% de opacidad */
  backdrop-filter: blur(10px);           /* efecto de vidrio */
  -webkit-backdrop-filter: blur(10px);   /* soporte Safari */
  border: 1px solid rgba(255, 255, 255, 0.3);
}
/*ESTILOS PARA EL CONTEXTO */
/* Contenedor general */
.doc-view {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  color: #2d3748; /* gris oscuro, mejor lectura */
  font-size: 1rem;
}

/* Título principal */
.doc-view h2 {
  font-family: "Merriweather", "Georgia", serif;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #4a5568;
  padding-bottom: 0.3rem;
  color: #1a202c; 
}

/* Subtítulos */
.doc-view h3 {
  font-family: "Merriweather", "Georgia", serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: #2b2b2b;
}

/* Párrafos */
.doc-view p {
  margin-bottom: 0.9rem;
  text-align: justify; /* estilo académico */
  text-justify: inter-word;
  color: #2d3748;
}

/* Destacar valores vacíos */
.doc-view p:empty::before,
.doc-view p:has(:empty)::before {
  content: "— Sin información registrada —";
  font-style: italic;
  color: #a0aec0;
}

/* Diseño más aireado en grids */
.doc-view .grid > div {
  margin-bottom: 0.8rem;
}
