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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header con fondo blanco y mejor espaciado */
.header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #1a1a1a;
}

.header h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: #111827;
}

.subtitle {
  font-size: 1.125rem;
  opacity: 1;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.75;
}

.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 24px 24px 24px;
  margin-bottom: 32px;
}

.info-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box h3 {
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
  font-size: 1rem;
}

.info-box p {
  margin-bottom: 0;
  color: #1e40af;
  font-size: 0.875rem;
  line-height: 1.5;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
}

.info-box li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #495057;
}

.info-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* Drop zone con mejor diseño */
.drop-zone {
  border: 3px dashed #6c30ba;
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fafb;
  margin-bottom: 32px;
}

.drop-zone:hover {
  border-color: #2372fa;
  background: #f3f4f6;
}

.drop-zone.drag-over {
  border-color: #3b82f6;
  background: #dbeafe;
  transform: scale(1.01);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: #2372fa;
}

.drop-zone h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
}

.drop-zone p {
  color: #6b7280;
  margin-bottom: 4px;
  font-size: 1rem;
}

.file-types {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 16px;
}

.results-section {
  display: none;
  margin-top: 40px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h2 {
  font-size: 1.8rem;
  color: #2d3748;
}

.clear-button {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-button:hover {
  background: #dc2626;
}

.button-icon {
  width: 16px;
  height: 16px;
}

.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.results-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  color: #004eca;
  font-size: 1.rem;
  border-bottom: none;
  position: relative;
}

.results-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  color: #4d246c;
  font-size: 0.9rem;
}

.results-table td:first-child {
  font-weight: 500;
}

.results-table tbody tr:hover {
  background: #f9fafb;
  transition: background 0.2s ease;
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
}

.badge-print {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge-pdf {
  background: #d1fae5;
  color: #059669;
}

.badge-screen {
  background: #dbeafe;
  color: #2563eb;
}

.help-section {
  margin-top: 48px;
  padding: 32px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.help-section h2 {
  color: #111827;
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.help-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.help-badge {
  width: 100%;
  height: 35px;
  border-radius: 8px;
  display: flex;
  align-items: left;
  justify-content: left;
  padding-left: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.badge-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge-green {
  background: #d1fae5;
  color: #059669;
}

.badge-blue {
  background: #dbeafe;
  color: #2563eb;
}

.help-card h3 {
  color: #111827;
  margin-bottom: 12px;
  font-size: 1.125rem;
  font-weight: 600;
}

.help-card p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tip-box {
  padding: 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.tip-box p {
  color: #92400e;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.tooltip-header {
  cursor: help;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/*.info-icon-small {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  cursor: help;
}*/

.tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  width: 256px;
  padding: 12px;
  background-color: #111827;
  color: white;
  text-align: center;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: normal;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  white-space: normal;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #111827;
}

.tooltip-header:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .drop-zone {
    padding: 40px 20px;
  }

  .results-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .results-table {
    font-size: 0.9rem;
  }

  .results-table th,
  .results-table td {
    padding: 10px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
}
