:root {
  --navy: #0a1220;
  --navy-deep: #050a14;
  --navy-mid: #001b3a;
  --navy-card: rgba(8, 18, 36, 0.92);
  --gold: #c5a059;
  --gold-bright: #d4af37;
  --gold-dark: #b08d57;
  --silver: #e8e6e3;
  --white: #f5f3ee;
  --muted: #b7b3aa;
  --serif-display: "Cinzel", "Times New Roman", serif;
  --serif-body: "Cormorant Garamond", "Georgia", serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --max: 1536px;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--silver);
  background-color: var(--navy-deep);
  background-image: radial-gradient(ellipse at 50% 0%, #152238 0%, var(--navy-deep) 62%);
  background-attachment: scroll;
  font-family: var(--serif-body);
  font-size: 1.2rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  image-rendering: high-quality;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

#contenido {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.48);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 224, 96, 0.22),
    inset 0 -1px 0 rgba(207, 20, 43, 0.18);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -8px -18%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 160% at 4% 50%, rgba(255, 204, 0, 0.98) 0%, rgba(255, 196, 0, 0.22) 46%, transparent 74%),
    radial-gradient(ellipse 52% 180% at 50% 50%, rgba(0, 56, 168, 0.95) 0%, rgba(0, 40, 130, 0.32) 50%, transparent 76%),
    radial-gradient(ellipse 36% 160% at 96% 50%, rgba(207, 20, 43, 0.98) 0%, rgba(180, 16, 36, 0.24) 46%, transparent 74%),
    linear-gradient(
      180deg,
      rgba(255, 204, 0, 0.78) 0%,
      rgba(0, 56, 168, 0.72) 48%,
      rgba(207, 20, 43, 0.74) 100%
    );
  filter: blur(22px) saturate(140%);
  opacity: 0.78;
  transform: translateZ(0);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(8, 14, 28, 0.28) 0%,
      rgba(6, 12, 24, 0.42) 46%,
      rgba(8, 12, 22, 0.5) 100%
    );
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.brand-motto {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-dark);
  background: transparent;
  cursor: pointer;
  padding: 10px 11px;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
}

.site-nav {
  position: relative;
  z-index: 5;
  flex: 1 1 auto;
  pointer-events: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  justify-content: flex-end;
}

.site-nav a {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  position: relative;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.site-main {
  flex: 1;
}

.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
}

.hero-seal {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.5rem;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--serif-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-style: italic;
  color: var(--silver);
  margin: 0 auto 0.6rem;
  max-width: 38rem;
}

.lead em,
.gold {
  color: var(--gold-bright);
  font-style: italic;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.gold-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 1.25rem auto;
}

.gold-rule::before,
.gold-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-rule span {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  flex-shrink: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.btn:hover,
.btn:focus-visible {
  color: var(--navy-deep);
  filter: brightness(1.08);
}

.btn:focus-visible,
.card-link:focus-visible,
.site-nav a:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
}

.btn-ghost:hover {
  color: var(--gold-bright);
  background: rgba(197, 160, 89, 0.08);
}

.section {
  padding: 2.5rem 0 3rem;
}

.section-title {
  font-family: var(--serif-display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--gold-bright);
  margin: 0 0 0.4rem;
}

.section-sub {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.page-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 1.25rem;
}

.page-hero p {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
}

.frame {
  border: 1px solid var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(10, 18, 32, 0.6), 0 0 0 5px var(--gold);
  background: var(--navy-deep);
  margin: 0 auto 2rem;
}

.frame img {
  width: 100%;
  height: auto;
  image-rendering: high-quality;
}

.frame-wide {
  max-width: 1536px;
}

.frame-poster {
  max-width: 1254px;
}

.frame-seal {
  max-width: 520px;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--gold);
}

.frame-poster-home {
  max-width: 520px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--navy-card);
  border: 1px solid var(--gold-dark);
  padding: 1.5rem 1.35rem 1.4rem;
  text-align: center;
}

.card h2,
.card h3 {
  font-family: var(--serif-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
}

.card p,
.card li {
  font-size: 1.12rem;
  color: var(--silver);
  margin: 0;
}

.card ol,
.card ul {
  text-align: left;
  margin: 0;
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 0.45rem;
}

.card .card-fn {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--gold-dark);
  font-size: 1.05rem;
}

.card .card-fn strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.card-link {
  color: inherit;
  display: block;
  height: 100%;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.card-link:hover {
  color: inherit;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold-bright);
}

.quote-block {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

.quote-block p {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  margin: 0;
  color: var(--white);
}

.article-list {
  max-width: 44rem;
  margin: 0 auto;
}

.article-item {
  background: var(--navy-card);
  border: 1px solid var(--gold-dark);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
}

.article-item h3 {
  font-family: var(--serif-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.article-item p {
  margin: 0;
  font-size: 1.18rem;
}

.document-reader {
  background: var(--navy-card);
  border: 1px solid var(--gold-dark);
  padding: 1.5rem 1.35rem;
  max-width: 52rem;
  margin: 0 auto;
}

.document-reader h2,
.document-reader h3,
.document-reader h4 {
  font-family: var(--serif-display);
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.75rem 0 0.75rem;
  text-align: center;
}

.document-reader h2:first-child,
.document-reader h3:first-child,
.document-reader h4:first-child {
  margin-top: 0;
}

.document-reader h3 {
  font-size: 1rem;
}

.document-reader h4 {
  font-size: 0.92rem;
}

.document-reader p {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  color: var(--silver);
  text-align: justify;
  hyphens: auto;
}

.document-reader p.doc-center,
.document-reader p.doc-arrow {
  text-align: center;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  hyphens: none;
}

.document-reader p.doc-center + p.doc-center,
.document-reader p.doc-center + p.doc-arrow,
.document-reader p.doc-arrow + p.doc-center {
  margin-top: -0.35rem;
}

.document-reader p.doc-arrow {
  color: var(--gold-bright);
  font-size: 1.4rem;
  line-height: 1;
  margin: 0.1rem auto;
}

.document-reader h4 {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-channels {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 32rem;
}

.contact-channels li {
  border-bottom: 1px solid rgba(197, 160, 89, 0.28);
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0.35rem;
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.contact-channel:hover,
.contact-channel:focus-visible {
  color: var(--gold-bright);
  background-color: rgba(197, 160, 89, 0.08);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  flex-shrink: 0;
  color: var(--gold-bright);
}

.contact-label {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.cta-band {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--gold-dark);
  margin-top: 1rem;
}

.back-row {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto 0;
  text-align: left;
}

.btn-back {
  min-width: 8.5rem;
}

.card-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card-preview .frame {
  margin: 0;
}

.card-view {
  width: 85.6mm;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.card-view img {
  display: block;
  width: 85.6mm;
  max-width: 100%;
  height: auto;
  aspect-ratio: 85.6 / 53.98;
}

.card-view figcaption {
  padding: 0.5rem 0.65rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--gold);
}

.ficha-firma {
  width: 100%;
  max-width: 320px;
  height: auto;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid var(--gold-dark);
}

.card-preview figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.cta-band h2 {
  font-family: var(--serif-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin: 0 0 1rem;
}

.cta-panel {
  max-width: 44rem;
  padding: 2rem 1.5rem 2.15rem;
  border: 2px solid var(--gold);
  background: rgba(8, 18, 36, 0.72);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.28), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.btn-cta {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  padding: 1.15rem 1.9rem;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.35);
}

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 2.25rem 1.25rem 1.75rem;
  background: var(--navy-deep);
  border-top: 1px solid var(--gold);
}

.footer-home {
  display: inline-block;
}

.footer-home:hover {
  color: inherit;
}

.footer-seal {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.9rem;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin: 0.9rem 0 1rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--silver);
  cursor: pointer;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.footer-motto {
  font-family: var(--serif-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.footer-motto .dios {
  color: var(--gold-bright);
}

.footer-sub {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--gold);
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.footer-name {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.footer-copy a {
  color: var(--muted);
}

.footer-copy a:hover {
  color: var(--gold);
}

.ol-roles {
  list-style: none;
  padding: 0;
}

.ol-roles li {
  padding-left: 0;
}

.ol-roles strong {
  color: var(--gold-bright);
}

.mnr-form {
  max-width: 36rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: left;
  font-family: var(--sans);
}

.mnr-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.mnr-form input,
.mnr-form select,
.mnr-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  background: rgba(8, 18, 36, 0.92);
  border: 1px solid var(--gold-dark);
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.mnr-form input[type="file"] {
  padding: 0.55rem;
}

.mnr-form .check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--silver);
  line-height: 1.4;
}

.mnr-form .check input {
  width: auto;
  margin-top: 0.2rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.flash {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gold-dark);
  text-align: center;
}

.flash-ok {
  border-color: var(--gold);
}

.flash-error {
  border-color: #b45a4a;
}

.form-note {
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

.verify-card,
.ficha-grid {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--navy-card);
  border: 1px solid var(--gold-dark);
  padding: 1.5rem 1.35rem;
  text-align: center;
}

.verify-card h2 {
  font-family: var(--serif-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.4rem 0 0.5rem;
}

.verify-code {
  font-family: var(--sans);
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.ficha-grid {
  text-align: left;
}

.ficha-foto {
  width: 220px;
  height: auto;
  margin: 0.8rem auto;
  border: 1px solid var(--gold-dark);
}

.table-wrap {
  overflow-x: auto;
}

.mnr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.mnr-table th,
.mnr-table td {
  border-bottom: 1px solid rgba(197, 160, 89, 0.28);
  padding: 0.7rem 0.5rem;
  text-align: left;
}

.mnr-table th {
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filter-row .btn {
  margin: 0;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .site-header:has(.site-nav.is-open) {
    overflow: visible;
  }

  .nav-toggle {
    display: flex;
    background: rgba(6, 12, 24, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 150;
    background-color: rgba(6, 12, 24, 0.92);
    background-image:
      linear-gradient(
        180deg,
        rgba(255, 204, 0, 0.16) 0%,
        rgba(0, 56, 168, 0.28) 42%,
        rgba(6, 12, 24, 0.94) 72%,
        rgba(207, 20, 43, 0.18) 100%
      );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-dark);
    padding: 0.5rem 1rem 1rem;
    pointer-events: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    font-size: 0.82rem;
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 0.72rem;
  }

  .hero-seal {
    width: 168px;
    height: 168px;
  }

  .contact-label {
    font-size: 0.92rem;
  }

  .document-reader {
    padding: 1.1rem 1rem;
  }

  .document-reader p:not(.doc-center):not(.doc-arrow) {
    text-align: left;
  }
}

.news-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  overflow: hidden;
}

.news-card-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .news-meta,
.news-card-title,
.news-card p,
.news-card-more {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.news-card-more {
  padding-bottom: 1.25rem;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.news-meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.news-card-title {
  font-family: var(--serif-display);
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  color: var(--white);
}

.news-article-body {
  max-width: 52rem;
}

.newspaper-section {
  padding-top: 0.5rem;
}

.newspaper-wrap {
  max-width: var(--max);
}

.news-newspaper {
  --paper: #f6f2e8;
  --paper-edge: #ebe4d4;
  --ink: #141820;
  --ink-muted: #4a5260;
  --news-red: #b91c1c;
  --news-blue: #0c3d7a;
  --news-gold: #a67c2e;
  color: var(--ink);
  font-family: "Literata", "Georgia", serif;
}

.newspaper-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--news-red) 0%, #7f1d1d 22%, var(--news-blue) 78%, #061528 100%);
  border-radius: 2px;
}

.newspaper-band span:nth-child(2) {
  font-family: var(--serif-display);
  letter-spacing: 0.2em;
  text-align: center;
}

.newspaper-band span:last-child {
  text-align: right;
}

.newspaper-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  background: rgba(8, 18, 36, 0.55);
  border: 1px solid rgba(198, 164, 97, 0.35);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.newspaper-pager-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newspaper-pager a {
  color: var(--gold-bright);
}

.newspaper-sheet {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.15rem, 3.5vw, 2.25rem);
  margin-bottom: 1.75rem;
  border: 1px solid var(--paper-edge);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.newspaper-sheet-front {
  border-top: 5px solid var(--news-red);
}

.newspaper-sheet-next {
  border-top: 5px solid var(--news-blue);
}

.newspaper-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--news-red);
}

.newspaper-headline {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", var(--serif-display), serif;
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.newspaper-deck {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-muted);
}

.newspaper-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 0.65rem 0 1rem;
  margin-bottom: 1rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid rgba(20, 24, 32, 0.2);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.newspaper-media {
  margin: 0 0 1.25rem;
  border-bottom: 3px solid var(--news-gold);
  padding-bottom: 1rem;
}

.newspaper-media .news-hero,
.newspaper-media .news-carousel {
  margin: 0 auto;
  max-width: 100%;
}

.newspaper-photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #ddd;
}

.newspaper-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vw, 300px);
  object-fit: cover;
  object-position: center;
}

.newspaper-media .news-carousel {
  aspect-ratio: auto;
  height: min(42vw, 300px);
  max-height: min(42vw, 300px);
  background: #ccc;
}

.newspaper-media .news-carousel-slide img {
  max-height: min(42vw, 300px);
}

.newspaper-columns {
  width: 100%;
  columns: 16rem 3;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  column-rule: 1px solid rgba(20, 24, 32, 0.15);
  column-fill: balance;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.newspaper-para {
  margin: 0 0 0.85rem;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.58;
  color: var(--ink);
  orphans: 2;
  widows: 2;
  break-inside: auto;
  page-break-inside: auto;
}

.newspaper-para-lead {
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.52;
}

.newspaper-section-title {
  column-span: all;
  break-after: avoid;
  margin: 1.1rem 0 0.55rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--news-red);
  font-family: "Fraunces", var(--serif-display), serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--news-blue);
}

.newspaper-preview-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--news-blue), #1e4a8a);
  border-radius: 2px;
}

.newspaper-preview-actions {
  margin-bottom: 1rem;
}

.news-admin-workspace {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  align-items: start;
}

.news-admin-editor {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  max-height: calc(100vh - var(--header-h) - 1.5rem);
  overflow: auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(198, 164, 97, 0.35);
  background: rgba(8, 18, 36, 0.65);
}

.news-admin-preview-panel {
  min-width: 0;
}

.news-admin-preview-heading {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.news-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
}

.news-admin-cuerpo {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .news-admin-workspace {
    grid-template-columns: 1fr;
  }

  .news-admin-editor {
    position: static;
    max-height: none;
  }
}

.newspaper-para-lead::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  padding-right: 0.02em;
  font-family: "Fraunces", var(--serif-display), serif;
  font-size: 2.85em;
  font-weight: 700;
  line-height: 0.78;
  color: var(--news-red);
}

@supports (initial-letter: 2 1) {
  .newspaper-para-lead::first-letter {
    float: none;
    initial-letter: 2.5 1;
    margin-right: 0.06em;
    font-size: 1em;
    line-height: 1;
  }
}

.newspaper-continued {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(20, 24, 32, 0.2);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.newspaper-continued strong {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.newspaper-page-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  padding-top: 0.75rem;
  border-top: 2px double rgba(20, 24, 32, 0.25);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.newspaper-admin-note {
  margin: 0;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px dashed rgba(198, 164, 97, 0.45);
}

.mnr-live-status {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.25em;
}

.newspaper-masthead-index {
  margin-bottom: 1.25rem;
}

.newspaper-index {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.newspaper-index-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.newspaper-index-item:hover .newspaper-index-headline {
  color: var(--news-red);
}

.newspaper-index-sheet {
  height: 100%;
  margin-bottom: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.newspaper-index-item:hover .newspaper-index-sheet {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 16px 44px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.newspaper-index-photo {
  margin: 0 0 0.85rem;
}

.newspaper-index-headline {
  margin: 0 0 0.65rem;
  font-family: "Fraunces", var(--serif-display), serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.2;
  color: var(--ink);
}

.newspaper-index-deck {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newspaper-index-more {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--news-blue);
}

.news-hero {
  margin: 0;
}

.news-hero img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.news-carousel {
  position: relative;
  margin: 0;
  aspect-ratio: auto;
  max-height: 300px;
  overflow: hidden;
  background: var(--navy-mid);
}

.news-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.news-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.news-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0;
}

.news-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(198, 164, 97, 0.65);
}

.news-carousel-dot.is-active {
  background: var(--gold);
}

.news-prose p {
  margin: 0 0 1.15rem;
  font-size: 1.25rem;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .newspaper-columns {
    columns: 14rem 2;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: clip;
  }

  .wrap {
    width: min(var(--max), calc(100% - 1.1rem));
  }

  .section {
    padding: 1.65rem 0 2.1rem;
  }

  #contenido {
    scroll-margin-top: 88px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .btn-row .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }

  .back-row .btn-back {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 44px;
    align-items: center;
  }

  .news-admin-editor .mnr-form {
    max-width: none;
    margin: 0;
  }

  .news-admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .news-admin-toolbar .btn-sm {
    min-height: 44px;
    width: 100%;
  }

  .newspaper-wrap,
  .news-newspaper {
    max-width: 100%;
    overflow-x: clip;
  }

  .newspaper-band {
    grid-template-columns: 1fr;
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    gap: 0.35rem;
  }

  .newspaper-band span:last-child {
    text-align: center;
  }

  .newspaper-sheet {
    padding: 1rem 0.85rem;
    margin-bottom: 1.15rem;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .newspaper-headline {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  }

  .newspaper-deck {
    font-size: 1rem;
  }

  .newspaper-byline {
    flex-direction: column;
    gap: 0.25rem;
  }

  .newspaper-columns {
    columns: 1;
    column-gap: 0;
    text-align: left;
  }

  .newspaper-section-title {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .newspaper-para {
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .newspaper-para-lead::first-letter {
    font-size: 2.35em;
  }

  @supports (initial-letter: 2 1) {
    .newspaper-para-lead::first-letter {
      initial-letter: 2 1;
    }
  }

  .newspaper-media .news-carousel {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .newspaper-photo img,
  .newspaper-media .news-carousel-slide img {
    width: 100%;
    max-height: none;
    height: 100%;
    object-fit: cover;
  }

  .newspaper-pager {
    font-size: 0.72rem;
    gap: 0.4rem;
  }

  .newspaper-pager a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.2rem 0.45rem;
  }

  .newspaper-page-foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .newspaper-preview-banner {
    font-size: 0.78rem;
    padding: 0.65rem 0.75rem;
  }

  .newspaper-index {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .form-note {
    text-align: left;
    font-size: 0.95rem;
  }

  .flash {
    max-width: none;
    text-align: left;
  }

  .mnr-form input,
  .mnr-form select,
  .mnr-form textarea {
    font-size: 16px;
  }

  .news-admin-cuerpo {
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  .site-footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
}

.news-upload-field {
  border: 1px solid rgba(198, 164, 97, 0.35);
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.news-upload-field legend {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 0.35rem;
}

.news-upload-preview img {
  max-width: 320px;
  border: 1px solid rgba(198, 164, 97, 0.35);
}

body.admin-area .back-row .btn-back {
  font-size: 0.82rem;
}

.admin-section {
  padding-top: 0.5rem;
}

.admin-wrap {
  max-width: var(--max);
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: min(100%, calc(100vh - var(--header-h) - 2rem));
  padding: 1.15rem 1rem 1rem;
  border: 1px solid rgba(198, 164, 97, 0.38);
  background: var(--navy-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.admin-sidebar-brand {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(198, 164, 97, 0.22);
}

.admin-sidebar-eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-sidebar-title {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.admin-sidebar-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-nav-group-label {
  margin: 0 0 0.4rem;
  padding: 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--silver);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-nav-link:hover {
  color: var(--gold-bright);
  border-color: rgba(198, 164, 97, 0.35);
  background: rgba(198, 164, 97, 0.06);
}

.admin-nav-link.is-active {
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
  border-color: var(--gold);
  font-weight: 600;
}

.admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(198, 164, 97, 0.22);
}

.admin-sidebar-foot-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
}

.admin-sidebar-foot-link-muted {
  color: var(--muted);
}

.admin-sidebar-foot-link-muted:hover {
  color: var(--silver);
}

.admin-main {
  min-width: 0;
}

.admin-page-head {
  margin: 0 0 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(198, 164, 97, 0.2);
}

.admin-page-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-page-title {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

.admin-page-lead {
  margin: 0.55rem 0 0;
  max-width: 52ch;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.admin-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(198, 164, 97, 0.32);
  background: rgba(8, 18, 36, 0.65);
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-metric:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(12, 24, 48, 0.85);
  color: inherit;
}

.admin-metric-value {
  font-family: var(--serif-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright);
}

.admin-metric-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.admin-workspaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.admin-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
}

.admin-workspace-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-workspace-title {
  margin: 0.15rem 0 0;
  font-family: var(--serif-display);
  font-size: 1.2rem;
  color: var(--white);
}

.admin-workspace-desc {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.admin-workspace-links {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(198, 164, 97, 0.18);
}

.admin-workspace-links li + li {
  border-top: 1px solid rgba(198, 164, 97, 0.12);
}

.admin-workspace-links a {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0;
  color: var(--silver);
}

.admin-workspace-links a strong {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
}

.admin-workspace-links a span {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
}

.admin-workspace-links a:hover strong {
  color: var(--gold-bright);
}

.admin-workspace-cta {
  margin: auto 0 0;
  padding-top: 0.35rem;
}

.admin-filter-row {
  margin-top: 0;
}

.admin-table-actions {
  white-space: nowrap;
}

.admin-inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.admin-link-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-link-btn:hover {
  color: var(--gold-bright);
}

.admin-main .mnr-form {
  margin: 0;
  max-width: none;
}

.admin-main .btn-row {
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.admin-main .form-note {
  margin-left: 0;
  text-align: left;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 0.85rem;
}

.admin-toolbar-count {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.admin-filters .btn {
  padding: 0.48rem 0.75rem;
  letter-spacing: 0.08em;
}

.admin-status {
  display: inline-block;
  padding: 0.16rem 0.42rem;
  border: 1px solid rgba(198, 164, 97, 0.45);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.admin-status-emitido {
  color: #d7e7c8;
  border-color: rgba(180, 210, 150, 0.5);
}

.admin-status-anulado {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-record {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 0.85rem;
  align-items: start;
}

.admin-record-identity,
.admin-record-panel,
.admin-record-firma,
.admin-record-danger {
  border: 1px solid rgba(198, 164, 97, 0.32);
  background: rgba(8, 18, 36, 0.55);
  padding: 1rem 1.05rem 1.05rem;
}

.admin-record-panel {
  grid-row: span 2;
}

.admin-record-danger {
  grid-column: 1 / -1;
}

.admin-record-identity {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
}

.admin-record-identity.is-plain {
  grid-template-columns: 1fr;
}

.admin-record-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(198, 164, 97, 0.4);
}

.admin-record-name {
  margin: 0 0 0.4rem;
  font-family: var(--serif-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--white);
}

.admin-facts {
  display: grid;
  grid-template-columns: 7.6rem minmax(0, 1fr);
  gap: 0.38rem 0.7rem;
  margin: 0.8rem 0 0;
}

.admin-facts dt {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-facts dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--white);
  overflow-wrap: anywhere;
}

.admin-block-title {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-block-note {
  margin: 0;
  max-width: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
  color: var(--muted);
}

.admin-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(198, 164, 97, 0.18);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.admin-record-links a {
  color: var(--gold);
}

.admin-record .ficha-firma {
  display: block;
  max-width: 240px;
  margin: 0 0 0.75rem;
}

.admin-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.admin-card-stage .card-view {
  width: min(100%, 760px);
  margin: 0.85rem 0 0;
}

.admin-card-stage .card-view img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.admin-models {
  display: grid;
  gap: 0.85rem;
}

.admin-model {
  border: 1px solid rgba(198, 164, 97, 0.32);
  background: rgba(8, 18, 36, 0.55);
  padding: 0.9rem 1rem 1rem;
}

.admin-model img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-debate-form {
  max-width: 42rem;
}

.wrap.narrow {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.debate-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.debate-landing-card {
  padding: 1.15rem 1.2rem;
}

.debate-landing-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.debate-landing-card p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--silver);
}

.debate-hub-actions {
  margin: 0 0 1rem;
  text-align: right;
}

.debate-cards {
  display: grid;
  gap: 1rem;
}

.debate-card {
  padding: 1.1rem 1.2rem;
}

.debate-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--serif-display);
  font-size: 1.25rem;
}

.debate-card h2 a {
  color: var(--white);
}

.debate-card-meta {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.debate-section-title {
  margin: 2rem 0 0.75rem;
  font-family: var(--serif-display);
  font-size: 1.1rem;
  color: var(--gold);
}

.debate-closed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
}

.debate-closed-list li + li {
  margin-top: 0.45rem;
}

.debate-room {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.debate-live-status {
  min-height: 1.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--gold);
}

.debate-live-status.is-error {
  color: #f0a8a8;
}

.debate-block-title {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.debate-poll,
.debate-chat {
  padding: 0;
  overflow: hidden;
}

.debate-thread {
  max-height: min(32rem, 70vh);
  overflow-y: auto;
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.debate-poll-bubble {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(198, 164, 97, 0.45);
  background: rgba(8, 18, 36, 0.72);
  border-radius: 0.35rem;
}

.debate-poll-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.debate-poll-vote-list {
  display: grid;
  gap: 0.45rem;
}

.debate-poll-vote-btn {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(198, 164, 97, 0.35);
  background: rgba(8, 18, 36, 0.55);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.debate-poll-vote-btn:hover,
.debate-poll-vote-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(198, 164, 97, 0.12);
}

.debate-compose {
  border-top: 1px solid rgba(198, 164, 97, 0.25);
  padding: 0.75rem 1rem 1rem;
  background: rgba(4, 10, 22, 0.55);
}

.debate-compose textarea {
  width: 100%;
  min-height: 3.2rem;
  max-height: 8rem;
  resize: vertical;
  margin-bottom: 0.55rem;
}

.debate-compose-bar {
  display: flex;
  justify-content: flex-end;
}

.debate-compose-closed {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(198, 164, 97, 0.2);
}

.debate-poll-question {
  margin: 0 0 0.85rem;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--white);
}

.debate-poll-results {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.debate-poll-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.debate-poll-bar {
  position: relative;
  overflow: hidden;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(198, 164, 97, 0.28);
  background: rgba(8, 18, 36, 0.55);
}

.debate-poll-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pct, 0) * 1%);
  background: rgba(198, 164, 97, 0.22);
}

.debate-poll-bar span {
  position: relative;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--white);
}

.debate-poll-count {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.debate-poll-option.is-mine .debate-poll-bar {
  border-color: var(--gold);
}

.debate-poll-choices {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.debate-poll-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--silver);
  text-transform: none;
  letter-spacing: 0;
}

.debate-messages {
  display: grid;
  gap: 0.75rem;
  padding-right: 0.15rem;
}

.debate-message {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(198, 164, 97, 0.2);
  background: rgba(8, 18, 36, 0.45);
}

.debate-message header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.debate-message header strong {
  color: var(--white);
  font-size: 0.86rem;
}

.debate-msg-badge {
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(198, 164, 97, 0.35);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.debate-message header time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.debate-message p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--silver);
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: 0;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspaces {
    grid-template-columns: 1fr;
  }

  .admin-record,
  .admin-record-identity {
    grid-template-columns: 1fr;
  }

  .admin-record-panel {
    grid-row: auto;
  }

  .admin-record-photo {
    max-width: 160px;
  }

  .debate-landing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-nav-link {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a.card-link:hover {
    box-shadow: none;
  }

  .news-carousel-slide {
    transition: none;
  }
}
