/* Custom Styles for Campos & Estancias - Static Client App */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800&display=swap');

:root {
  --primary: #1e3a2f; /* Deep Forest Green */
  --primary-light: #2d5a49;
  --accent: #b45309; /* Warm Amber / Gold */
  --accent-light: #d97706;
  --bg-sand: #fbfaf8;
  --card-bg: #ffffff;
  --border-subtle: #e5e7eb;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-sand);
  color: #1f2937;
  -webkit-tap-highlight-color: transparent;
}

.font-serif-brand {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.05em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card Hover */
.campo-card {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.campo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(20, 45, 35, 0.12);
}

/* Active Filter Pill */
.filter-pill.active {
  background-color: #1e3a2f !important;
  color: #ffffff !important;
  border-color: #1e3a2f !important;
  box-shadow: 0 2px 6px rgba(30, 58, 47, 0.2);
}

/* Pagination Buttons */
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
}
.page-btn:hover:not(:disabled) {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
}
.page-btn.active {
  background: #1e3a2f !important;
  color: #ffffff !important;
  border-color: #1e3a2f !important;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal Animations */
.modal-overlay {
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================== */
/* EXECUTIVE PDF & PRINT SHEET STYLING                            */
/* ============================================================== */
.pdf-container {
  width: 210mm;
  min-height: 297mm;
  padding: 12mm 15mm;
  background: #ffffff;
  margin: 0 auto;
  box-sizing: border-box;
  color: #1c1917;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

.pdf-hero-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #f5f5f4;
}

.pdf-thumb-img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 5px;
  background-color: #f5f5f4;
}

/* Print Specific Rules */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }
  
  html, body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  #pdf-preview-sheet, #pdf-preview-sheet * {
    visibility: visible;
  }

  #pdf-preview-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 8mm !important;
    box-shadow: none !important;
    border: none !important;
  }

  .no-print {
    display: none !important;
  }
}
