@font-face {
  font-family: Inter;
  src: url("./Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, Arial, sans-serif;
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #f2ece3;
  --soft: #f5ebe1;
  --ink: #2d2d2d;
  --muted: #4f4a44;
  --border: #e6ddd0;
  --control: #cfc4b4;
  --copper: #c8956c;
  --accent-text: #82552f;
  --success: #24483e;
  --danger: #5e3d24;
  --focus: #c8956c;
}
body.night {
  color-scheme: dark;
  --bg: #1a1a1a;
  --surface: #222222;
  --soft: #2a221c;
  --ink: #f0f0f0;
  --muted: #c4c4c4;
  --border: #2e2e2e;
  --control: #4a4a4a;
  --accent-text: #d9ad86;
  --success: #a3d1b7;
  --danger: #f0d5bd;
  --focus: #c8956c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 19px;
  background: var(--copper);
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--control);
}
.danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
button:hover,
.button:hover {
  filter: brightness(0.95);
}
:focus-visible {
  outline:2px solid var(--focus);
  outline-offset:2px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  padding: 32px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: auto;
}
.brand {
  display: block;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 20px 16px;
  text-decoration: none;
}
.brand img {
  width: 100%;
  height: auto;
  display: block;
}
.brand span {
  display: block;
  color: #c8956c;
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 12px;
}
.overline {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--accent-text);
  margin: 0 0 12px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a,
.sidebar-end > a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 16px;
  text-decoration: none;
  min-height: 46px;
  font-weight: 600;
  font-size: 14px;
}
.sidebar a[aria-current="page"] {
  background: var(--soft);
  color: var(--accent-text);
}
.sidebar nav span {
  font-size: 12px;
  color: var(--muted);
}
.sidebar-end {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.shell {
  margin-left: 242px;
}
.topbar {
  min-height: 74px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 44px;
  gap: 12px;
}
.breadcrumb {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-block;
}
.demo-note {
  max-width: 1080px;
  margin: 26px 44px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--copper);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}
.demo-note strong {
  color: var(--ink);
}
main {
  max-width: 1170px;
  margin: auto;
  padding: 44px 44px 64px;
  min-height: 65vh;
}
h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 700;
  margin: 0 0 18px;
}
h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  font-weight: 600;
  margin: 0 0 12px;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.35px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 14px;
}
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
}
.page-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
}
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.panel {
  padding: 26px;
  margin-bottom: 20px;
}
.quiet-panel {
  background: var(--soft);
}
.meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.meta time {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card:first-child {
  grid-column: 1/-1;
}
.card-body {
  padding: 25px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.card.featured {
  border-top: 3px solid var(--copper);
  grid-column: 1 / -1;
}
.featured-label {
  font-weight: 700;
}
@media (min-width: 900px) {
  .card.featured:has(.photo) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .card.featured .photo {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 320px;
  }
  .card.featured .photo-caption {
    grid-column: 1;
    grid-row: 2;
  }
  .card.featured .card-body {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .card.featured .card-body h2 {
    font-size: 28px;
  }
}
.photo {
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}
.photo-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 25px;
}
.video-poster {
  background: var(--soft);
  padding: 28px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.play {
  font-size: 25px;
  color: var(--accent-text);
}
.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-bottom: 25px;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 15px;
}
label,
legend {
  font-size: 13px;
  font-weight: 600;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--control);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 12px;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}
legend {
  font-size: 18px;
  margin-bottom: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 400;
}
.check input {
  width: 21px;
  height: 21px;
  flex: none;
  accent-color: var(--accent-text);
}
.check span {
  display: block;
}
.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.savebar {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.notice {
  padding: 15px;
  border-radius: 16px;
  background: var(--soft);
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.error {
  color: var(--danger);
  border-left: 3px solid var(--danger);
  padding: 12px;
  margin-bottom: 16px;
}
.success {
  color: var(--success);
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed var(--control);
  border-radius: 24px;
  grid-column: 1/-1;
}
.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.admin-item:last-child {
  border: 0;
}
.admin-item h3 {
  font-size: 16px;
}
.admin-item .small {
  margin-bottom: 8px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.chips button {
  background: transparent;
  color: var(--ink);
  border-color: var(--control);
}
.chips button[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--accent-text);
  color: var(--accent-text);
}
details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  padding: 9px 0;
}
details p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}
.history {
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
}
.history li {
  margin-bottom: 10px;
}
.mobile-nav,
.mobile-brand,
.mobile-theme {
  display: none;
}
footer {
  border-top: 1px solid var(--border);
  padding: 24px 44px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
dialog {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--control);
  border-radius: 24px;
  padding: 28px;
  width: min(620px, calc(100% - 28px));
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #0009;
}
dialog h2 {
  padding-right: 12px;
}
dialog video {
  width: 100%;
  max-height: 320px;
  background: #1a1a1a;
}
#status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 20px;
  border-radius: 16px;
  max-width: calc(100% - 30px);
  font-size: 13px;
}
#status:empty {
  display: none;
}
.state-controls {
  margin-top: 30px;
}
.state-controls .row button {
  font-size: 12px;
}
.pending {
  color: var(--accent-text);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
main > header,
main > .split,
main > .panel {
  animation: enter 0.22s ease-out;
}
@media (max-width: 1150px) {
  .split {
    grid-template-columns: 1fr;
  }
  .aside-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  main {
    padding-inline: 30px;
  }
  .sidebar {
    width: 220px;
  }
  .shell {
    margin-left: 220px;
  }
  .demo-note {
    margin-inline: 30px;
  }
}
@media (max-width: 860px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    padding: 15px 22px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand,
  .mobile-theme {
    display: inline-flex;
  }
  .mobile-brand {
    font-size: 20px;
    letter-spacing: 3px;
    text-decoration: none;
  }
  .mobile-theme {
    font-size: 12px;
    min-height: 44px;
    padding: 8px 12px;
  }
  /* Pestañas del área arriba del contenido; abajo va la barra común de Shalom. */
  .mobile-nav {
    position: sticky;
    top: 8px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: 0 16px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px;
    z-index: 30;
  }
  .mobile-nav a {
    min-height: 48px;
    padding: 12px 3px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
  }
  .mobile-nav a[aria-current="page"] {
    color: var(--accent-text);
    background: var(--soft);
    font-weight: 700;
  }
  footer {
    padding-bottom: 24px;
  }
  #status {
    bottom: 85px;
  }
  .demo-note {
    margin-inline: 20px;
  }
  main {
    padding: 32px 22px 42px;
  }
}
@media (max-width: 540px) {
  .page-heading {
    display: block;
  }
  .page-heading .row {
    margin-top: 20px;
  }
  .cards,
  .aside-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .panel,
  .card-body {
    padding: 21px;
  }
  .photo {
    height: 190px;
  }
  .admin-item {
    flex-direction: column;
  }
  .topbar {
    gap: 8px;
    padding-inline: 16px;
  }
  .badge {
    font-size: 12px;
  }
  .mobile-brand {
    font-size: 16px;
  }
  main {
    padding-inline: 16px;
  }
  .demo-note {
    margin-inline: 16px;
  }
  .savebar button {
    width: 100%;
  }
  h1 {
    letter-spacing: -1.3px;
  }
  footer {
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Tokens contrastados con la guía de octubre de 2026. */
:root {
  --bg: #faf7f2;
  --surface: #f2ece3;
  --soft: #f5ebe1;
  --ink: #2d2d2d;
  --muted: #4f4a44;
  --border: #e6ddd0;
  --accent-text: #82552f;
  --focus: #c8956c;
}
body.night {
  --bg: #1a1a1a;
  --surface: #222222;
  --soft: #2a221c;
  --ink: #f0f0f0;
  --muted: #c4c4c4;
  --border: #4a4a4a;
  --accent-text: #d9ad86;
  --focus: #c8956c;
}
body {
  font-size: 16px;
}
h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
}
h2 {
  font-weight: 700;
}
h3 {
  font-weight: 700;
}
.panel,
.card {
  border-radius: 24px;
}
.panel,
.card-body {
  padding: 32px;
}
.overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}
.small,
.help,
.card p {
  font-size: 14px;
}
.cards {
  gap: 24px;
}
.meta {
  font-size: 13px;
}
.panel.quiet-panel {
  background: var(--bg);
}
.demo-note {
  font-size: 14px;
}
.brand {
  padding: 24px 16px;
}
.brand span {
  font-size: 12px;
}
.error,
.success {
  font-size: 14px;
}
@media (max-width: 540px) {
  .panel,
  .card-body {
    padding: 24px;
  }
  .overline {
    font-size: 12px;
  }
  .meta {
    font-size: 12px;
  }
  .demo-note {
    font-size: 13px;
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
  font-size: 14px;
}
.pagination button {
  background: transparent;
  border-color: var(--control);
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.list-actions {
  margin-bottom: 24px;
  align-items: end;
  justify-content: space-between;
}
.list-actions .field {
  margin: 0;
  min-width: 160px;
}
.pagination span {
  color: var(--muted);
}
@media (max-width: 540px) {
  .pagination {
    align-items: start;
    flex-direction: column;
  }
  .pagination .row {
    width: 100%;
  }
  .pagination button {
    flex: 1;
  }
  .list-actions {
    align-items: stretch;
  }
  .list-actions > .field {
    flex: 1;
  }
}
#main:focus {
  outline: none;
}
.cards {
  grid-template-columns: 1fr;
}
.mobile-brand img {
  width: 126px;
  height: auto;
}
.mobile-brand .logo-white {
  display: none;
}
.night .mobile-brand .logo-white {
  display: block;
}
.night .mobile-brand .logo-black {
  display: none;
}
.sidebar nav a {
  font-weight: 600;
}
.pagination {
  scroll-margin-top: 20px;
}
.email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.email-grid .panel {
  margin: 0;
}
.email-frame {
  width: 100%;
  height: 520px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #faf7f2;
}
.email-frame:focus-visible {
  outline:2px solid var(--focus);
}
dialog:has(.email-frame) {
  width: min(760px, calc(100% - 28px));
}
@media (max-width: 700px) {
  .email-grid {
    grid-template-columns: 1fr;
  }
  .email-frame {
    height: 420px;
  }
}

/* Variantes originales por fondo en la navegación. */
.brand {
  background: transparent;
}
.brand .logo-white {
  display: none;
}
.brand .logo-black {
  display: block;
}
.brand span {
  color: #82552f;
}
.night .brand {
  background: #1a1a1a;
}
.night .brand .logo-white {
  display: block;
}
.night .brand .logo-black {
  display: none;
}
.night .brand span {
  color: #c8956c;
}

/* Filtros avanzados detrás de un botón «Filtros» (manual 2026, pág. 14). */
details.filtros { display: inline-block; }
details.filtros > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }
details.filtros > summary::-webkit-details-marker { display: none; }
details.filtros[open] > summary::after { content: " ✓"; }
details.filtros[open] { display: block; width: 100%; }
