/* Unión Musical Redován — overrides y tokens de marca
   STYLE-001 v1.0 — Georgia + system-ui, paleta navy/crema/rojo/dorado.
   Esta versión añade un sistema editorial (filetes dorados, eyebrows en
   versalitas, capitulares, fleurons, placeholders editoriales) sin
   romper los tokens ni añadir tipografías externas. */
:root {
  /* Paleta "Frac & Corbata" — derivada del escudo + uniforme de concierto
     (traje negro + corbata carmín). */
  --color-primary: #1A1614;          /* Frac — negro cálido, estructura */
  --color-primary-soft: #2A2420;     /* Hombrera — superficies oscuras secundarias */
  --color-primary-deep: #0E0B0A;     /* Sombra profunda (footer) */
  --color-secondary: #F4EDDC;        /* Marfil — pechera / lienzo */
  --color-secondary-warm: #ECE3CD;   /* Marfil tostado para bloques alternos */
  --color-accent-red: #A41E2A;       /* Carmín — corbata, texto del escudo */
  --color-accent-red-deep: #7A1620;  /* Carmín profundo (hover, énfasis tipográfico) */
  --color-accent-gold: #B58740;      /* Oro de la lira y la corona */
  --color-laurel: #2E5B3E;           /* Verde laurel — solo ornamental, muy puntual */
  --color-ink: #2A201A;              /* Cuerpo de texto — marrón muy oscuro, no negro puro */
  --color-rule: rgb(181 135 64 / 35%);
  --color-rule-strong: rgb(181 135 64 / 65%);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-secondary);
  color: var(--color-ink);
  line-height: 1.6;
  /* Textura sutil de papel — tonos cálidos (oro + carmín muy diluidos) */
  background-image:
    radial-gradient(circle at 20% 10%, rgb(181 135 64 / 5%) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgb(164 30 42 / 3%) 0%, transparent 45%);
  background-attachment: fixed;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

p { text-wrap: pretty; }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-white { background-color: #fff; }
.text-primary { color: var(--color-primary); }
.text-accent-red { color: var(--color-accent-red); }
.text-accent-gold { color: var(--color-accent-gold); }
.text-ink { color: var(--color-ink); }

/* ------------------------------------------------------------------
   Botones
------------------------------------------------------------------ */
.btn-primary,
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;            /* esquinas casi rectas, más institucional */
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background-color: var(--color-primary-soft); }

.btn-accent {
  background-color: var(--color-accent-red);
  color: #fff;
}
.btn-accent:hover { background-color: var(--color-accent-red-deep); }

/* Botón fantasma (secundario sobre cualquier fondo claro) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  transition: background-color 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover { background-color: var(--color-primary); color: #fff; }

/* Botón sobre fondo navy */
.btn-on-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(181 135 64 / 55%);
}
.btn-on-dark:hover { background: var(--color-accent-gold); border-color: var(--color-accent-gold); color: var(--color-primary); }

/* ------------------------------------------------------------------
   Cards (siguen la guía: blanco + hairline dorado + sombra suave)
------------------------------------------------------------------ */
.card {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
  border: 1px solid rgb(181 135 64 / 25%);
}

.card--editorial {
  position: relative;
  padding-top: 2rem;
}
.card--editorial::before {
  content: "";
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 3px;
  background: var(--color-accent-gold);
}

/* ------------------------------------------------------------------
   Navegación
------------------------------------------------------------------ */
.nav-link {
  display: inline-block;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.5rem 0;
  position: relative;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-accent-gold);
  transition: width 0.2s, left 0.2s;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}
.nav-link.active { opacity: 1; }

/* Header institucional — acabado "Negro tela" (lana de frac)
   Trama cruzada a ±45° sobre base cálida. */
.umr-topbar {
  background-color: #08060A;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 35%)        0 1px, transparent 1px 3px);
  color: #D9C79A;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.umr-topbar a { color: #D9C79A; }
.umr-topbar a:hover { color: var(--color-accent-gold); }

.umr-header {
  background-color: #0F0B09;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 40%)      0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 40%, rgb(0 0 0 / 45%) 100%);
  color: #F4EDDC;
  border-bottom: 1px solid rgb(181 135 64 / 30%);
  position: relative;
}
.umr-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(181 135 64 / 60%) 20%, rgb(181 135 64 / 60%) 80%, transparent);
  pointer-events: none;
}

/* Superficies oscuras semanticas para secciones interiores */
.surface-frac {
  background-color: #0F0B09;
  color: #F4EDDC;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 40%)      0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 40%, rgb(0 0 0 / 45%) 100%);
}
.surface-frac--soft {
  background-color: #14100E;
  color: #F4EDDC;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 3.5%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 35%)        0 1px, transparent 1px 3px);
}
.surface-frac--deep {
  background-color: #07050A;
  color: #F4EDDC;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 2.2%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 40%)        0 1px, transparent 1px 3px);
}
.umr-nameplate {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.umr-nameplate small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  opacity: 0.9;
  margin-top: 0.35rem;
}

/* Mobile nav */
#menu-toggle {
  background: transparent;
  border: 1px solid rgb(181 135 64 / 55%);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(181 135 64 / 25%);
  margin-top: 1rem;
}
#mobile-menu.is-open { display: flex; }
@media (min-width: 768px) {
  #menu-toggle { display: none; }
  #mobile-menu { display: none !important; }
}

/* ------------------------------------------------------------------
   Sistema editorial (helpers nuevos)
------------------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent-gold);
}

.eyebrow--red { color: var(--color-accent-red); }
.eyebrow--ink { color: var(--color-primary); opacity: 0.7; }

/* Numeración romana para secciones (I., II., III.) */
.roman-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent-gold);
}

/* Capitular */
.dropcap > p:first-of-type::first-letter,
.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 0.85;
  float: left;
  padding: 0.4rem 0.55rem 0 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Filete simple */
.editorial-rule {
  border: 0;
  border-top: 1px solid var(--color-rule-strong);
  width: 100%;
  margin: 2rem 0;
}
.editorial-rule--thin { border-top-color: var(--color-rule); }
.editorial-rule--double {
  border-top: 1px solid var(--color-rule-strong);
  border-bottom: 1px solid var(--color-rule-strong);
  height: 4px;
}

/* Filete con fleuron centrado (§) */
.fleuron-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--color-accent-gold);
}
.fleuron-divider::before,
.fleuron-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-rule-strong);
}
.fleuron-divider span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1;
}

/* Eyebrow con líneas a los lados (eyebrow en escudo) */
.eyebrow-bracketed {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-accent-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow-bracketed::before,
.eyebrow-bracketed::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Texto en versalitas con tracking (institucional) */
.smallcaps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* Cifra grande tipo "anuario" */
.figure-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Placeholder editorial para imagen (sin SVG hecho a mano) */
.photo-slot {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      rgb(42 32 26 / 6%) 0,
      rgb(42 32 26 / 6%) 1px,
      transparent 1px,
      transparent 10px
    ),
    #efe6cf;
  border: 1px solid var(--color-rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgb(181 135 64 / 35%);
  pointer-events: none;
}
.photo-slot span {
  position: relative;
  background: rgb(244 237 220 / 94%);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--color-rule-strong);
}

/* Sello / plaque institucional */
.plaque {
  border: 1px solid var(--color-accent-gold);
  padding: 1.5rem 2rem;
  background: rgb(196 154 69 / 6%);
  text-align: center;
  position: relative;
}
.plaque::before,
.plaque::after {
  content: "❦";
  position: absolute;
  font-family: var(--font-serif);
  color: var(--color-accent-gold);
  font-size: 1rem;
  top: -0.65rem;
  background: var(--color-secondary);
  padding: 0 0.5rem;
}
.plaque::before { left: 1.25rem; }
.plaque::after { right: 1.25rem; }

/* Lista numerada con romanos a la izquierda */
.editorial-list { list-style: none; padding: 0; margin: 0; }
.editorial-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-rule);
  align-items: baseline;
}
.editorial-list li:last-child { border-bottom: 0; }
.editorial-list .roman-num {
  font-size: 1.05rem;
  text-align: right;
}

/* Tabla editorial */
.editorial-table { width: 100%; border-collapse: collapse; }
.editorial-table th,
.editorial-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
  font-size: 0.95rem;
}
.editorial-table thead th {
  border-bottom: 2px solid var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}

/* ------------------------------------------------------------------
   RRSS
------------------------------------------------------------------ */
.rrss-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 2px;
  background: transparent;
  color: rgb(217 199 154 / 85%);
  border: 1px solid rgb(181 135 64 / 35%);
  transition: background 0.15s, color 0.15s;
}
.rrss-link:hover { background: var(--color-accent-gold); color: var(--color-primary); border-color: var(--color-accent-gold); }
.rrss-link svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ------------------------------------------------------------------
   Helpers de páginas interiores
------------------------------------------------------------------ */
.page-banner {
  position: relative;
  border-top: 1px solid rgb(181 135 64 / 30%);
  border-bottom: 1px solid rgb(181 135 64 / 30%);
  background-color: var(--color-secondary-warm);
  background-image:
    radial-gradient(circle at 30% 50%, rgb(181 135 64 / 6%) 0%, transparent 50%);
}
.page-banner .ribbon-red {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent-red);
}

/* Filete con marca centrada para arranques de capítulo */
.chapter-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-gold);
  margin: 1.5rem 0 0.5rem;
}
.chapter-mark::before,
.chapter-mark::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: var(--color-rule-strong);
}

/* ------------------------------------------------------------------
   Form admin
------------------------------------------------------------------ */
.admin-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}
.admin-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d6cfb7;
  background: #fff;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-ink);
}
.admin-input:focus {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 1px;
  border-color: var(--color-accent-gold);
}

/* ==================================================================
   THEME DARK — el documento completo sobre "negro tela"
   Activa con class="theme-dark" en <body>. Texto marfil, detalles oro,
   un único acento carmín por pantalla (CTA).
   ================================================================== */
body.theme-dark {
  background-color: #0F0B09;
  color: #F4EDDC;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 40%)        0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 50%, rgb(0 0 0 / 35%) 100%);
}

/* Titulares en marfil (anulan el color por defecto h1-h3) */
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark .font-serif { color: #F4EDDC; }

/* Reasignaciones de utilidades — cubre text-ink, text-ink/80, text-ink/85, etc.
   gracias al matcher por subcadena. */
body.theme-dark [class*="text-ink"]    { color: #F4EDDC; }
body.theme-dark [class*="text-primary"]{ color: #F4EDDC; }

/* bg-secondary (Tailwind utility, normalmente marfil) -> transparente sobre dark */
body.theme-dark .bg-secondary { background-color: transparent; }
body.theme-dark .bg-white     { background-color: #14100E; }

/* Bordes dorados al 35 % desaturados por opacidad sobre fondo oscuro
   Subimos la presencia del filete dorado en oscuro para que no se pierda. */
body.theme-dark .editorial-rule           { border-top-color: rgb(181 135 64 / 55%); }
body.theme-dark .editorial-rule--thin     { border-top-color: rgb(181 135 64 / 35%); }
body.theme-dark .editorial-rule--double   { border-top-color: rgb(181 135 64 / 55%); border-bottom-color: rgb(181 135 64 / 55%); }
body.theme-dark .fleuron-divider::before,
body.theme-dark .fleuron-divider::after   { background: rgb(181 135 64 / 55%); }
body.theme-dark .chapter-mark::before,
body.theme-dark .chapter-mark::after      { background: rgb(181 135 64 / 55%); }

/* Capitular en marfil */
body.theme-dark .dropcap > p:first-of-type::first-letter,
body.theme-dark .dropcap::first-letter { color: #F4EDDC; }

/* Cifras grandes en marfil */
body.theme-dark .figure-display { color: #F4EDDC; }

/* Eyebrows: dorado fundamental (ya está). eyebrow--ink en marfil. */
body.theme-dark .eyebrow--ink { color: #F4EDDC; opacity: 0.7; }

/* Listado y tabla editoriales */
body.theme-dark .editorial-list li { color: #F4EDDC; border-bottom-color: rgb(181 135 64 / 25%); }
body.theme-dark .editorial-table th,
body.theme-dark .editorial-table td { color: #F4EDDC; border-bottom-color: rgb(181 135 64 / 25%); }
body.theme-dark .editorial-table thead th {
  border-bottom-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

/* Cards: superficie ligeramente más clara con filete dorado en cabeza */
body.theme-dark .card,
body.theme-dark .feature-card {
  background: #14100E;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 35%)       0 1px, transparent 1px 3px);
  border-color: rgb(181 135 64 / 40%);
  color: #F4EDDC;
  box-shadow: 0 4px 18px rgb(0 0 0 / 35%);
}
body.theme-dark .feature-card .photo-slot {
  border-bottom-color: rgb(181 135 64 / 35%);
}
/* El sello dorado superior del filete card--editorial se mantiene */

/* Plaque sobre dark */
body.theme-dark .plaque {
  background: rgb(181 135 64 / 8%);
  color: #F4EDDC;
}
body.theme-dark .plaque::before,
body.theme-dark .plaque::after {
  background: #0F0B09;
}

/* Botones */
body.theme-dark .btn-primary {
  background-color: transparent;
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}
body.theme-dark .btn-primary:hover {
  background-color: var(--color-accent-gold);
  color: #0F0B09;
}
body.theme-dark .btn-ghost {
  border-color: rgb(181 135 64 / 60%);
  color: #F4EDDC;
}
body.theme-dark .btn-ghost:hover {
  background: var(--color-accent-gold);
  color: #0F0B09;
  border-color: var(--color-accent-gold);
}
/* btn-accent (rojo) y btn-on-dark (gold-ghost) se mantienen como están. */

/* Form */
body.theme-dark .admin-label { color: var(--color-accent-gold); }
body.theme-dark .admin-input {
  background-color: #0F0B09;
  border-color: rgb(181 135 64 / 45%);
  color: #F4EDDC;
}
body.theme-dark .admin-input::placeholder { color: rgb(244 237 220 / 40%); }
body.theme-dark .admin-input:focus {
  outline-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
}

/* Page banner — versión nocturna, ribbon rojo intacto */
body.theme-dark .page-banner {
  background-color: #14100E;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 35%)       0 1px, transparent 1px 3px),
    radial-gradient(circle at 30% 50%, rgb(181 135 64 / 8%) 0%, transparent 50%);
  border-top: 1px solid rgb(181 135 64 / 40%);
  border-bottom: 1px solid rgb(181 135 64 / 40%);
}

/* Bordes y separadores Tailwind arbitrarios que en HTML están con tono claro */
body.theme-dark .border-\[rgb\(181_135_64\/0\.35\)\]    { border-color: rgb(181 135 64 / 40%) !important; }
body.theme-dark .border-\[rgb\(181_135_64\/0\.4\)\]     { border-color: rgb(181 135 64 / 45%) !important; }

/* ===== Componentes específicos =================================== */

/* Calendario */
body.theme-dark .cal-toolbar {
  border-top-color: rgb(181 135 64 / 55%);
  border-bottom-color: rgb(181 135 64 / 55%);
}
body.theme-dark .cal-month-title { color: #F4EDDC; }
body.theme-dark .cal-nav-btn {
  border-color: rgb(181 135 64 / 60%);
  color: #F4EDDC;
}
body.theme-dark .cal-nav-btn:hover {
  background: var(--color-accent-gold);
  color: #0F0B09;
  border-color: var(--color-accent-gold);
}
body.theme-dark .filter-btn { background: transparent; }

body.theme-dark .cal-grid-wrap {
  background: #14100E;
  border-color: rgb(181 135 64 / 55%);
}
body.theme-dark .cal-grid { background: rgb(181 135 64 / 30%); }
body.theme-dark .cal-day {
  background: #14100E;
  color: #F4EDDC;
}
body.theme-dark .cal-day--muted {
  background: #100C0A;
  opacity: 0.5;
}
body.theme-dark .cal-day-num { color: #F4EDDC; }

body.theme-dark .cal-list {
  background: #14100E;
  border-color: rgb(181 135 64 / 55%);
}
body.theme-dark .cal-list-item {
  background: #14100E;
  color: #F4EDDC;
  border-bottom-color: rgb(181 135 64 / 25%);
}
body.theme-dark .cal-list-item:hover { background: #1A1614; }
body.theme-dark .cal-list-item .font-semibold { color: #F4EDDC; }
body.theme-dark .cal-list-item .text-sm { color: #F4EDDC; opacity: 0.7; }
body.theme-dark .cal-empty {
  background: #100C0A;
  color: #F4EDDC;
  border-color: rgb(181 135 64 / 45%);
}

/* Modal panel oscuro */
body.theme-dark .modal-panel {
  background-color: #14100E;
  background-image:
    repeating-linear-gradient( 45deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 35%)       0 1px, transparent 1px 3px);
  border-color: rgb(181 135 64 / 55%);
  color: #F4EDDC;
}
body.theme-dark .modal-close { color: #F4EDDC; }
body.theme-dark .modal-close:hover { color: var(--color-accent-gold); }

/* Precios */
body.theme-dark .precio-card { color: #F4EDDC; }
body.theme-dark .precio-card .font-serif,
body.theme-dark .precio-amount { color: #F4EDDC; }
body.theme-dark .precio-amount .text-sm { color: #F4EDDC; opacity: 0.7; }
body.theme-dark .precio-filter-btn {
  border-color: rgb(181 135 64 / 60%);
  color: #F4EDDC;
}
body.theme-dark .precio-filter-btn:hover { background: rgb(181 135 64 / 14%); }
body.theme-dark .precio-filter-btn.active {
  background: var(--color-accent-gold);
  color: #0F0B09;
  border-color: var(--color-accent-gold);
}
body.theme-dark .precio-ahorro {
  background: rgb(181 135 64 / 18%);
  color: var(--color-accent-gold);
  border-color: rgb(181 135 64 / 60%);
}
body.theme-dark .precio-plazas { border-top-color: rgb(181 135 64 / 25%); }
body.theme-dark .precio-plazas--ok { color: #6FA88A; }
body.theme-dark .precio-plazas--ok::before { color: #6FA88A; }
body.theme-dark .precio-empty { color: #F4EDDC; opacity: 0.7; }

/* Multimedia */
body.theme-dark .galeria-thumb {
  border-color: rgb(181 135 64 / 50%);
  background: #14100E;
}
body.theme-dark .video-card {
  background: #14100E;
  border-color: rgb(181 135 64 / 45%);
  color: #F4EDDC;
}
body.theme-dark .video-card img { border-bottom-color: rgb(181 135 64 / 30%); }
body.theme-dark .video-card-body strong { color: #F4EDDC; }
body.theme-dark .video-card-body .text-sm { color: #F4EDDC; opacity: 0.75; }

/* Contacto */
body.theme-dark .contacto-dato { border-bottom-color: rgb(181 135 64 / 25%); }
body.theme-dark .contacto-dato span,
body.theme-dark .contacto-dato span a { color: #F4EDDC; }
body.theme-dark .contacto-dato span a { text-decoration-color: rgb(181 135 64 / 50%); }
body.theme-dark .contacto-dato span a:hover { color: var(--color-accent-gold); }
body.theme-dark .mapa-wrap {
  background: #14100E;
  border-color: rgb(181 135 64 / 50%);
}
body.theme-dark .form-success {
  background: rgb(46 91 62 / 22%);
  color: #6FA88A;
  border-color: #4F9F6E;
  border-left-color: #4F9F6E;
}

/* Borde inferior de los page-banner stat-block (sustituyendo arbitrary
   tailwind classes con custom selectors). Se mantienen como están — el
   selector arbitrary ya está cubierto arriba. */
body.theme-dark .stat-block + .stat-block { border-color: rgb(181 135 64 / 40%); }

/* ==================================================================
   Hero photo — foto destacada panorámica de la home
   Se rellena dinámicamente desde app.js leyendo /api/config.
   Si no hay foto destacada, se muestra el placeholder editorial.
   ================================================================== */
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 1px solid rgb(181 135 64 / 45%);
  background: #14100E;
  overflow: hidden;
  margin: 0;
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(
      45deg,
      rgb(42 32 26 / 6%) 0,
      rgb(42 32 26 / 6%) 1px,
      transparent 1px,
      transparent 10px
    ),
    #efe6cf;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgb(181 135 64 / 35%);
  pointer-events: none;
}
.hero-photo-placeholder span {
  position: relative;
  background: rgb(244 237 220 / 94%);
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-rule-strong);
}

/* ==================================================================
   Admin · botón "Destacar en home" en tarjeta de foto
   Solo extiende la galería admin con una estrella; no toca el layout.
   ================================================================== */
.foto-destacada-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 2px;
  border: 1px solid rgb(181 135 64 / 55%);
  background: transparent;
  color: var(--color-accent-gold);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-size: 1rem;
  line-height: 1;
}
.foto-destacada-btn:hover {
  background: rgb(181 135 64 / 15%);
}
.foto-destacada-btn.is-active {
  background: var(--color-accent-gold);
  color: #0F0B09;
  border-color: var(--color-accent-gold);
}
.foto-destacada-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-gold);
  border: 1px solid var(--color-accent-gold);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}
.foto-card.is-destacada {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: -2px;
}

/* Páginas legales */
.prose-legal p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.prose-legal p:last-child { margin-bottom: 0; }

/* Banner de suspensión / mantenimiento */
.banner-suspension {
  background-color: #fbbf24;
  color: #000;
  padding: 12px 16px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid #f59e0b;
  width: 100%;
  box-sizing: border-box;
}
