/* Estilo general */
body {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

footer {
  height: 60px;
  z-index: 1030;
  font-size: 0.9rem;
  background-color: #212529;
}

main.container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

/* ---------------------------------------------- */
/* Index */
/* ---------------------------------------------- */

/* Hero moderno sin imagen */
.nd-hero {
  background: linear-gradient(135deg, #1e1f29, #34354a);
  color: white;
  padding: 6rem 2rem;
  height: 60vh;
}

.nd-hero img {
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

.nd-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.neat {
  color: #fff;
  font-weight: 400;
}

.dox {
  font-weight: 700;
  display: inline-block;
  background: linear-gradient(90deg, #0d6efd, #00c2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nd-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.5;
  max-width: 600px;
}

/* Botones personalizados */
.nd-btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nd-btn-primary {
  background-color: #4e60ff;
  color: #fff;
  border: none;
}

.nd-btn-primary:hover {
  background-color: #3f4ed6;
}

.nd-btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.nd-btn-outline:hover {
  background: white;
  color: #1e1f29;
}

/* Sección de funcionalidades */
.nd-feature-box {
  padding: 2rem;
  border-radius: 1.5rem;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.nd-feature-box i {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #4e60ff;
}

.nd-feature-box h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nd-feature-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Sección de planes */
.nd-pricing-card {
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.nd-pricing-card:hover {
  transform: translateY(-5px);
}

.nd-badge {
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  display: inline-block;
}

.nd-badge-primary {
  background-color: #4e60ff;
  color: white;
}

.nd-badge-secondary {
  background-color: #6c757d;
  color: white;
}

.nd-badge-success {
  background-color: #28a745;
  color: white;
}

.nd-badge-dark {
  background-color: #343a40;
  color: white;
}

.nd-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.nd-pricing-card ul {
  list-style: none;
  padding: 0;
}

.nd-pricing-card li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Botón en tarjeta */
.nd-btn-primary,
.nd-btn-secondary,
.nd-btn-success,
.nd-btn-dark {
  color: white;
  border: none;
}

.nd-btn-primary {
  background-color: #4e60ff;
}

.nd-btn-secondary {
  background-color: #6c757d;
}

.nd-btn-success {
  background-color: #28a745;
}

.nd-btn-dark {
  background-color: #343a40;
}

.nd-btn-primary:hover {
  background-color: #3f4ed6;
}

.nd-btn-secondary:hover {
  background-color: #5a6268;
}

.nd-btn-success:hover {
  background-color: #218838;
}

.nd-btn-dark:hover {
  background-color: #23272b;
}

/* Responsive mejoras */
@media (max-width: 768px) {
  .nd-hero-title {
    font-size: 2.2rem;
  }

  .nd-feature-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .nd-feature-box i {
    margin: 0 0 0.75rem 0;
  }
}

/* ---------------------------------------------- */
/* Registro / Login */
/* ---------------------------------------------- */

/* Formulario */
.nd-card {
  min-height: 625px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.tab-content>.tab-pane {
  transition: opacity 0.2s ease-in-out;
}

/* ---------------------------------------------- */
/* Dashboard */
/* ---------------------------------------------- */

.pdf-viewer {
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

canvas {
  width: 100%;
  height: auto;
}

.pdf-scroll-viewer {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  margin: 0 auto;
}

.pdf-scroll-viewer canvas {
  display: block;
  margin: 0 auto 20px;
}

.textLayer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.textLayer span {
  position: absolute;
  white-space: pre;
  transform-origin: 0 0;
  color: transparent;
  background-color: transparent;
}

.textLayer span mark.highlight {
  background-color: rgba(255, 255, 0, 0.4);
  color: transparent;
  border-radius: 2px;
}

.textLayer span.highlight {
  background-color: rgba(255, 255, 0, 0.4);
  border-radius: 2px;
  color: transparent !important;
}

/* Navbar */
.navbar {
  height: 80px;
  z-index: 1030;
}

/* Botones Navbar */
.btn.rounded-pill {
  border-radius: 50rem !important;
}

/* Busqueda Navbar */
#searchInput:focus,
#tipoBusqueda:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  border-color: #80bdff;
}

/* Lista de documentos (Izquierda) */
.document-list {
  overflow-y: auto;
  background-color: #fff;
  border-right: 1px solid #dee2e6;
}

.document-list .doc-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.document-list .doc-item:hover {
  background-color: #f8f9fa;
}

/* Visor de documentos (Derecha) */
#visorPDF {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-viewer {
  overflow: hidden;
  background-color: #f4f6f9;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pdf-scroll-viewer {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  margin: 0 auto;
}

/* Documentos */
.doc-item {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.doc-item:hover {
  background-color: #f1f3f5;
}

/* Overlay */
#progresoOverlay {
  z-index: 2000;
  backdrop-filter: blur(4px);
}

/* OFFCANVAS CONFIG */
.offcanvas-body {
  font-size: 0.95rem;
}

.offcanvas .btn {
  margin-top: 10px;
}

/* Modal cambio plan */
.modal .card {
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.modal .card:hover {
  transform: translateY(-5px);
}

.modal .card-body {
  padding: 2rem 1.5rem;
}

.modal .card ul {
  padding-left: 0;
  list-style: none;
}

.modal .card ul li {
  margin-bottom: 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .pdf-scroll-viewer {
    padding: 10px;
  }

  .doc-item {
    padding: 12px 16px;
  }
}

.document-list,
.pdf-viewer {
  height: 100%;
}