@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Legal watermark effect */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><text x="0" y="100" font-family="Arial" font-size="16" fill="%23065f4630" transform="rotate(-45 100,100)">SEGOB • INDAUTOR • SECTUR • REGISTRO OFICIAL</text></svg>');
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}
.prose {
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}
@media print {
  .prose {
    text-align: left;
    hyphens: none;
  }
  body {
    padding: 0 !important;
    margin: 0 !important;
  }
  .bg-white {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}
.prose-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
/* Animation for button feedback */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.button-pulse {
  animation: pulse 0.3s ease-in-out;
}

/* Spin animation for loading */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* PDF specific styles for better printing */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .bg-wblack, .bg-gray-900 {
    background: white !important;
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .official-stamp {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
  }
}
/* Official Government Styles */
.bg-gradient-to-r.from-green-800.to-green-900,
.bg-gradient-to-r.from-green-800.to-green-900 * {
  color: #ffffff !important;
}
.text-white {
  color: #ffffff !important;
}
.text-green-200 {
  color: #d1fae5 !important;
}
.text-green-600 {
  color: #059669 !important;
}
.text-indautor {
  color: #1e40af !important;
  font-weight: 600;
}
.official-stamp {
  position: relative;
  background: #ffffff;
  border: 2px solid #065f46;
  border-left: 8px solid #065f46;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.1);
  page-break-inside: avoid;
background-image: 
    linear-gradient(to right, rgba(6, 95, 70, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 95, 70, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 0 8px 8px 0;
  color: #000000 !important;
}
.official-stamp::before {
  content: "DOCUMENTO OFICIAL REGISTRADO - SEGOB/INDAUTOR";
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(to right, #065f46, #0c4a6e);
  color: white;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border-radius: 4px 4px 0 0;
  border-left: 3px solid rgba(255,255,255,0.3);
}
.official-stamp::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%2300653c" fill-opacity="0.1" d="M50 0 L100 50 L50 100 L0 50 Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
}
.gov-badge {
  background: linear-gradient(to right, #065f46, #0c4a6e);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-right: 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2), 
    0 2px 4px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.gov-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
}
.legal-highlight h3 {
  color: #065f46;
  font-weight: 700;
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 2px solid #065f46;
  padding-bottom: 0.5rem;
  display: inline-block;
}
.rfc-badge {
  background: linear-gradient(to right, #1e40af, #1e3a8a);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-left: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  top: -1px;
}
