:root {
  --bg: #f4f1ea;
  --paper: #fffcf7;
  --ink: #1c1915;
  --muted: #6f6a63;
  --line: #e6e0d6;
  --accent: #2f4f4a;
  --accent-2: #c4a574;
  --danger: #8b3a2f;
  --ok: #2d6a4f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 25, 21, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-footer { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: .02em; }
.logo { height: 28px; width: auto; }
.nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.nav-user { color: var(--muted); }
.main { padding: 40px 0 56px; flex: 1; }
.auth-card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 440px;
}
.panel { max-width: none; }
h1 { margin: 0 0 8px; font-size: 28px; font-weight: 650; }
.muted { color: var(--muted); margin: 0 0 20px; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
input:focus { outline: 2px solid #2f4f4a33; border-color: var(--accent); }
.password-wrap { display: flex; gap: 8px; }
.password-wrap input { flex: 1; }
.toggle-pass {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
}
.btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.form-links { margin: 4px 0 0; font-size: 14px; }
.alert { padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; }
.alert.error { background: #f8e8e4; color: var(--danger); }
.alert.success { background: #e7f3ec; color: var(--ok); }
.site-footer p { margin: 0; padding: 18px 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card-link {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; color: inherit; box-shadow: var(--shadow);
}
.card-link:hover { text-decoration: none; border-color: var(--accent); }
.card-link h2 { margin: 0 0 6px; font-size: 18px; }
.btn-ghost {
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 14px; font: inherit;
}
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eee8dc; color: var(--ink); }
.badge.ok { background: #e7f3ec; color: var(--ok); }
.badge.warn { background: #f8e8e4; color: var(--danger); }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery img, .gallery video { width: 100%; height: 120px; object-fit: cover; display: block; }
.gallery figcaption { padding: 6px 8px; font-size: 11px; color: var(--muted); word-break: break-all; }
.ambiente { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 14px; background: #fff; }
.check-list { display: grid; gap: 8px; margin: 10px 0; }
.check-row { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .header-inner { min-height: 56px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .check-row { grid-template-columns: 1fr; }
}
@media print {
  .site-header nav, .site-footer, .btn, .btn-ghost, form { display: none !important; }
  body { background: #fff; }
  .panel, .ambiente { box-shadow: none; }
}
