/* ============================================================================
   El Cortijo Residencial — Estilos compartidos
   Tipografías: Fraunces (serif) + Manrope (sans) + JetBrains Mono (data)
   ============================================================================ */

:root {
  --bg: #fafaf6;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a48;
  --ink-muted: #7a7a76;
  --rule: #d8d5cc;
  --rule-soft: #ece9e0;
  --shade: #f4f2ec;
  --primary: #1a2e4a;
  --primary-soft: #e8eef5;
  --primary-bg: #f6f9fc;
  --accent: #b8860b;
  --accent-soft: #fdf6e3;
  --vigente: #a8202c;
  --vigente-soft: #f8e8e9;
  --vigente-bg: #fdf6f6;
  --propuesta: #1a4d2e;
  --propuesta-soft: #e3eee5;
  --propuesta-bg: #f4f8f4;
  --shadow-sm: 0 1px 2px rgba(26, 46, 74, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 46, 74, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 46, 74, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(184, 134, 11, 0.025) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(26, 46, 74, 0.025) 0%, transparent 40%);
}

/* ============ TIPOGRAFÍA ============ */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; font-variation-settings: "opsz" 144; }
h1 em { font-style: italic; font-weight: 400; color: var(--primary); }

h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.num, .data {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

/* ============ LOGIN PAGE ============ */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none !important; }
}

.login-hero {
  background:
    linear-gradient(135deg, rgba(26, 46, 74, 0.85) 0%, rgba(26, 46, 74, 0.4) 60%, rgba(168, 32, 44, 0.6) 100%),
    url('../img/acceso_dia.jpg') center/cover;
  color: white;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.login-hero .brand-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.login-hero .brand-bar::before {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  display: inline-block;
}

.login-hero h1 {
  color: white;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.login-hero h1 em {
  color: #fde68a;
  font-style: italic;
  font-weight: 500;
}

.login-hero .hero-text {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  max-width: 460px;
  line-height: 1.45;
}

.login-hero .hero-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.login-form {
  width: 100%;
  max-width: 380px;
}

.login-form .login-eyebrow {
  margin-bottom: 0.75rem;
}

.login-form h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.login-form p.sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 46, 74, 0.08);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--primary);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover { background: #11233a; transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn.lg { font-size: 1.05rem; padding: 1rem 2rem; }
.btn.outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.outline:hover { background: var(--primary); color: white; }
.btn.danger { background: var(--vigente); }
.btn.success { background: var(--propuesta); }
.btn.accent { background: var(--accent); }

.error-box {
  background: var(--vigente-soft);
  border: 1px solid var(--vigente);
  color: #5c1418;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  display: none;
}

.error-box.show { display: block; }

.login-form .creds-hint {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--shade);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}

.login-form .creds-hint strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.4rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ============ DASHBOARD LAYOUT ============ */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

.sidebar {
  background: var(--primary);
  color: white;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.sidebar .brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.4rem;
  font-style: italic;
  color: white;
  letter-spacing: -0.01em;
}

.sidebar .brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
}

.sidebar nav .group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 1.5rem 0 0.5rem 0.85rem;
}

.sidebar .user-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 0.85rem;
}

.sidebar .user-card .user-name {
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.sidebar .user-card .user-role {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.sidebar .user-card a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar .user-card a:hover { color: white; }

.main {
  padding: 3rem 3rem 5rem;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .main { padding: 2rem 1.25rem 4rem; }
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  margin-bottom: 0.4rem;
}

.page-header .lede {
  margin-top: 0.5rem;
}

/* Tab navigation (mobile) */
.tab-nav {
  display: none;
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  z-index: 50;
  overflow-x: auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tab-nav { display: flex; gap: 0.5rem; }
}

.tab-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 4px;
}

.tab-nav a.active {
  background: var(--primary);
  color: white;
}

.section { display: none; }
.section.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ PROYECTO GALERÍA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.gallery-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.15s;
}

.gallery-card:hover { transform: translateY(-2px); }

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
}

.proyecto-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

.stat .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.stat .stat-value {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--ink);
  line-height: 1.05;
}

.stat .stat-detail {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.4rem;
}

/* ============ MAPA DE LOTES ============ */
.lotes-map {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.lotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.lote-cell {
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.4rem;
  cursor: pointer;
  background: var(--paper);
  text-align: center;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.15s;
  position: relative;
}

.lote-cell:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.05);
}

.lote-cell.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 700;
}

.lote-cell.premium {
  border-style: dashed;
  border-color: var(--accent);
}

.lote-cell.apartado {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.lote-cell.apartado:hover {
  background: #fcebbe;
  border-color: var(--accent);
}

.lote-cell.selected.apartado {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.lote-cell .socio-tag {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.55rem;
  font-weight: 800;
  background: var(--accent);
  color: white;
  padding: 1px 4px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  line-height: 1;
}

.lote-cell.selected.apartado .socio-tag {
  background: white;
  color: var(--accent);
}

.lote-cell.selected:not(.apartado) .premium {
  background: var(--accent);
  border-color: var(--accent);
}

.lote-cell .num { font-weight: 700; font-size: 0.85rem; line-height: 1; }
.lote-cell .m2 { font-size: 0.65rem; color: inherit; opacity: 0.75; margin-top: 0.15rem; }
.lote-cell.selected .m2 { opacity: 1; }

/* ============ FORMS Y CARDS GENERALES ============ */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.75rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.callout {
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  border-radius: 4px;
  border-left: 4px solid;
}

.callout.note { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.callout.vigente { background: var(--vigente-soft); border-color: var(--vigente); color: #5c1418; }
.callout.propuesta { background: var(--propuesta-soft); border-color: var(--propuesta); color: #0d2c1b; }
.callout.warn { background: var(--accent-soft); border-color: var(--accent); color: #5c4506; }

.callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ============ COMPARATIVO ============ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (max-width: 800px) {
  .compare { grid-template-columns: 1fr; }
}

.compare-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
}

.compare-card.vigente { border-top: 4px solid var(--vigente); background: var(--vigente-bg); }
.compare-card.propuesta { border-top: 4px solid var(--propuesta); background: var(--propuesta-bg); }

.compare-card .tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.compare-card.vigente .tag { background: var(--vigente); color: white; }
.compare-card.propuesta .tag { background: var(--propuesta); color: white; }

.compare-card h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.compare-card dl > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}

.compare-card dl > div:last-child { border-bottom: none; }
.compare-card dt { font-size: 0.9rem; color: var(--ink-soft); }
.compare-card dd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.compare-card dl > div.highlight {
  background: rgba(0,0,0,0.04);
  margin: 0.4rem -0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
}

.compare-card dl > div.total {
  border-top: 2px solid;
  border-bottom: none;
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.compare-card.vigente dl > div.total { border-top-color: var(--vigente); }
.compare-card.vigente dl > div.total dd { color: var(--vigente); font-weight: 700; font-size: 1.05rem; }
.compare-card.propuesta dl > div.total { border-top-color: var(--propuesta); }
.compare-card.propuesta dl > div.total dd { color: var(--propuesta); font-weight: 700; font-size: 1.05rem; }

.compare-card dl > div.total dt {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============ BIG STAT ============ */
.big-stat {
  background: linear-gradient(135deg, var(--paper) 0%, var(--shade) 100%);
  border: 2px solid var(--propuesta);
  border-radius: 12px;
  padding: 2.25rem;
  text-align: center;
  margin: 2rem 0;
}

.big-stat .label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.big-stat .value {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--propuesta);
  margin-bottom: 0.5rem;
}

.big-stat .detail {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ============ TABLES ============ */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
}

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

table thead th {
  background: var(--rule-soft);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.9rem;
}

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

table .num-cell {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

table tr.subtotal { background: var(--rule-soft); font-weight: 700; }
table tr.total { background: var(--ink); color: var(--paper); }
table tr.total td { color: var(--paper); font-weight: 700; }

/* ============ MATRIZ FIRMAS ============ */
.matriz-table tr.conflict { background: var(--vigente-bg); }
.matriz-table tr.conflict td { color: #5c1418; }

.firmante-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

.firmante-block.warning {
  border-left: 4px solid var(--vigente);
  background: var(--vigente-bg);
}

.firmante-block .firmante-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.firmante-block .firmante-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.firmante-block .firmante-cargo {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
}

.firmante-block .substitution-info {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.firmante-block .sugerencia {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.firmante-block .sugerencia ul {
  margin: 0.4rem 0 0 1.25rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
}

/* ============ FORM-ROW ============ */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============ DOCUMENT PREVIEW ============ */
.doc-preview {
  background: white;
  padding: 3rem 4rem;
  margin: 2rem auto;
  max-width: 800px;
  font-family: 'Times New Roman', serif;
  font-size: 12pt;
  line-height: 1.5;
  color: black;
  box-shadow: var(--shadow-md);
  min-height: 1000px;
}

.doc-preview h1, .doc-preview h2, .doc-preview h3 {
  font-family: 'Times New Roman', serif;
  color: black;
  text-align: center;
}

.doc-preview h1 { font-size: 14pt; font-weight: bold; margin: 0.5rem 0; }
.doc-preview h2 { font-size: 13pt; font-weight: bold; margin: 1rem 0 0.5rem; text-align: left; }
.doc-preview h3 { font-size: 12pt; font-weight: bold; margin: 0.75rem 0 0.4rem; text-align: left; }

.doc-preview p { margin-bottom: 0.5rem; text-align: justify; }
.doc-preview table { font-size: 11pt; }

@media print {
  body { background: white; }
  .sidebar, .tab-nav, .no-print { display: none !important; }
  .main { padding: 0; max-width: 100%; }
  .doc-preview { box-shadow: none; padding: 0; margin: 0; max-width: 100%; }
}

/* ============ PRINT BUTTON BAR ============ */
.toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

/* ============ INPUT GROUP DISABLED ============ */
.field input:disabled, .field select:disabled {
  background: var(--shade);
  color: var(--ink-muted);
  cursor: not-allowed;
}

/* ============ HELPER CLASSES ============ */
.text-vigente { color: var(--vigente); }
.text-propuesta { color: var(--propuesta); }
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }
.bold { font-weight: 700; }
.italic { font-style: italic; }
