:root {
  --gr-red: #ff9900;
  --gr-red-dark: #65121e;
  --gr-green: #627e3f;
  --gr-cream: #fbf6ee;
  --gr-ink: #f7ebeb;
  --gr-muted: #6e6a66;
}

html, body {
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--gr-ink);
  background: #f6f3ef;
}

a {
  text-decoration: none;
}

.fw-bold {
  font-size: small;
  color: var(--gr-red-dark) !important;
}

.title2 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.2;
}


.public-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(139, 30, 45, .13), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(98, 126, 63, .14), transparent 34%),
    linear-gradient(145deg, #fffaf4, #f3eee8);
  min-height: 100vh;
}

.brand-logo {
  max-height: 88px;
  max-width: 270px;
  object-fit: contain;
  filter: contrast(1.05);
}

.hero-shell {
  min-height: calc(100vh);
  background-image: url(/assets/img/bg.jpg);
  background-size: cover;
  background-position: center center;
  display: grid;
  place-items: center;
}

.hero-card {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(60, 36, 24, .17);
  background: rgba(3, 3, 3, 0.60);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 54px;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gr-red);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  color: #ffffff;
}

.hero-accent {
  color: var(--gr-red);
}

.search-panel {
  padding: 28px;
  border: 1px solid rgba(139, 30, 45, .12);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fffaf5);
  box-shadow: 0 16px 38px rgba(60, 36, 24, .08);
}

.form-control, .form-select {
  border-radius: 12px;
  padding: .78rem .95rem;
  border-color: #ded6cf;
}

.form-control:focus, .form-select:focus {
  border-color: rgba(139, 30, 45, .55);
  box-shadow: 0 0 0 .25rem rgba(139, 30, 45, .12);
}

.btn-gr {
  background: linear-gradient(135deg, var(--gr-red), var(--gr-red-dark));
  border: 0;
  color: white;
  border-radius: 12px;
  font-weight: 800;
  padding: .78rem 1.1rem;
  box-shadow: 0 8px 18px rgba(139, 30, 45, .24);
}

.btn-gr:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-gr {
  border: 1px solid var(--gr-red);
  color: var(--gr-red);
  border-radius: 12px;
  font-weight: 700;
}

.btn-outline-gr:hover {
  background: var(--gr-red);
  color: #fff;
}

.contract-card {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(48, 38, 30, .1);
}

.metric {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ece5de;
  padding: 20px;
  height: 100%;
}

.metric .value {
  font-size: 1.7rem;
  font-weight: 900;
}

.status-pill {
  font-weight: 800;
  letter-spacing: .02em;
}

.admin-body {
  background: #f5f4f2;
}

.admin-sidebar {
  background: linear-gradient(180deg, #221e1d, #161313);
  min-height: 100vh;
  color: #fff;
  position: sticky;
  top: 0;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, .74);
  border-radius: 12px;
  padding: .72rem .85rem;
  font-weight: 650;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.admin-logo {
  border-radius: 14px;
  padding: 8px;
  max-width: 200px;
  object-fit: contain;
}

.admin-main {
  padding: 30px;
}

.page-title {
  font-weight: 900;
  letter-spacing: -.025em;
}

.kpi-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(31, 24, 20, .06);
}

.kpi-card .kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f5ebe4;
  font-weight: 900;
  color: var(--gr-red);
}

.textConsulta{
  color: #fff;
}

.table-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(31, 24, 20, .06);
  overflow: hidden;
}

.table>thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #766f6a;
  background: #faf8f5;
  border-bottom: 1px solid #ece6e0;
}

.section-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(31, 24, 20, .06);
}

.section-title {
  font-size: 1rem;
  font-weight: 850;
  margin: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-head {
  font-size: .75rem;
  font-weight: 800;
  color: #777;
  text-align: center;
  text-transform: uppercase;
  padding: 6px;
}

.calendar-day {
  min-height: 120px;
  background: #fff;
  border: 1px solid #e8e2dc;
  border-radius: 14px;
  padding: 8px;
  overflow: hidden;
}

.calendar-day.muted {
  background: #f7f5f2;
  color: #aaa;
}

.calendar-number {
  font-weight: 850;
  font-size: .88rem;
}

.calendar-event {
  display: block;
  margin-top: 6px;
  padding: 6px 7px;
  border-radius: 8px;
  background: #f6e7e8;
  color: #761825;
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract-doc {
  background: #fff;
  color: #111;
  max-width: 980px;
  margin: 24px auto;
  padding: 32px;
  border: 1px solid #ddd;
}

.contract-doc .doc-logo {
  max-width: 180px;
  max-height: 90px;
  object-fit: contain;
}

.doc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
}

.doc-value {
  border-bottom: 1px solid #444;
  min-height: 12px;
  padding: 2px 2px;
  font-size: 11px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.doc-table td {
  padding: 4px 4px;
  vertical-align: top;
}

.clauses {
  font-size: 11px;
  line-height: 1.38;
  text-align: justify;
}

.signature-line {
  border-top: 1px solid #111;
  margin-top: 42px;
  padding-top: 6px;
  text-align: center;
  font-weight: 700;
}

@media (max-width:991.98px) {
  .admin-sidebar {
    min-height: auto;
    position: relative
  }

  .admin-main {
    padding: 18px
  }

  .hero-copy {
    padding: 32px
  }

  .calendar-day {
    min-height: 88px
  }
}

@media print {
  .no-print {
    display: none !important
  }

  .contract-doc {
    border: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 0
  }

  .public-page {
    background: #fff
  }

  .contract-doc {
    font-size: 10px
  }

  @page {
    size: A4;
    margin: 10mm
  }
}
/* v1.3.0: QR compacto dentro del bloque financiero del contrato */
.contract-qr {
  display: none !important;
  margin: 0 4px 4px 0;
  break-inside: avoid;
  page-break-inside: avoid;
  line-height: 1.1;
}

.contract-qr .qr-folio {
  font-size: 7.5px;
  margin-top: 2px;
  word-break: break-all;
}

.mb-2 {
  margin-bottom: .1rem !important;
}

.mb-1 {
    margin-bottom: 0rem !important;
    font-size: smaller !important;
}

.fs-4 {
    font-size: 1rem !important;
}

.folio {
  font-size: 11px;
  word-break: break-all;
}

.h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
  margin-top: 1rem;
  color: #000 !important;     
}

.value {
  color: #000 !important;
  font-size: 11px;
  word-break: break-all;
}

.form-switch .form-check-input {
    margin-left: 0em !important;
}


.subtotalInfo {
    padding-top: 20px;
}