/* obituario.cl - Obituario Chile v0.3.0
   Diseno noir ceremonial: fondo negro + dorado + crema para cards.
   Vanilla CSS. Sin dependencias web.
   Inspirado en el diseno del sitio original: obituario.cl (VPS) */

:root {
  /* Noir - Fondos */
  --noir: #0a0a0a;
  --noir-2: #111111;
  --noir-3: #1a1a1a;
  --noir-soft: #2a2a2a;
  --noir-line: rgba(255, 255, 255, 0.08);
  --noir-line-strong: rgba(255, 255, 255, 0.15);

  /* Crema - Cards */
  --paper: #FFFFFF;
  --canvas: #F5F0E6;          /* crema calido para cards */
  --canvas-2: #EFE7D7;        /* crema profundo */
  --canvas-texture: #F8F4EA;  /* crema mas claro con textura */

  /* Dorado ceremonial */
  --gold: #C9A86A;            /* dorado principal */
  --gold-700: #A8884D;        /* dorado oscuro */
  --gold-soft: #E5D4A6;       /* dorado palido */
  --gold-glow: rgba(201, 168, 106, 0.35);
  --gold-glow-soft: rgba(201, 168, 106, 0.15);

  /* Texto */
  --ink: #0a0a0a;             /* texto oscuro sobre crema */
  --ink-muted: #5C5650;
  --ink-soft: #8A8278;
  --text-on-noir: #FFFFFF;    /* blanco sobre negro */
  --text-on-noir-soft: #B8B0A0;
  --text-on-noir-faint: #7A7368;

  /* Acentos */
  --warn: #F4B942;            /* amarillo alerta */
  --green: #2F5D3A;
  --red: #B91C1C;

  /* Sistema */
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 8px;
  --radius-pill: 100px;
  --shell: 1200px;

  /* Tipografia */
  --font-serif: "Iowan Old Style", "Apple Garamond", "Baskerville", "Hoefler Text", "Garamond", "Times New Roman", "Droid Serif", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-700); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 140ms, color 140ms; }
a:hover { color: var(--gold-700); border-bottom-color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .shell { padding: 0 24px; } }
@media (min-width: 1100px) { .shell { padding: 0 32px; } }

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--gold); color: var(--noir);
  padding: 8px 12px; z-index: 999;
  text-decoration: none; border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   PALOMA / DOVE - Simbolo de la marca
   ============================================================ */
.dove-icon {
  display: inline-block;
  fill: currentColor;
  vertical-align: middle;
}

/* ============================================================
   MARKET STRIP - negro
   ============================================================ */
.market-strip {
  background: var(--noir);
  color: var(--text-on-noir-soft);
  font-size: 0.75rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--noir-line);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.market-strip .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.market-strip a { color: var(--gold); border-bottom: 0; }
.market-strip a:hover { color: var(--gold-soft); }
.market-strip .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* ============================================================
   SITE HEADER - negro, monograma paloma
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--noir);
  border-bottom: 1px solid var(--noir-line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-on-noir);
  border-bottom: 0;
}
.brand:hover { color: var(--text-on-noir); border-bottom: 0; }
.brand-mark {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--noir);
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-serif);
}
.brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-on-noir);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.desktop-nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.desktop-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--text-on-noir-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 0;
  transition: color 140ms;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--gold); border-bottom: 0; }
.desktop-nav a.is-active { color: var(--gold); }
@media (min-width: 768px) { .desktop-nav { display: flex; } }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media (min-width: 768px) { .header-actions { margin-left: 0; } }

.btn-publish {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--noir);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-bottom: 0;
  transition: background 140ms;
}
.btn-publish:hover { background: var(--gold-soft); color: var(--noir); border-bottom: 0; }
@media (min-width: 768px) { .btn-publish { display: inline-flex; } }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--noir-line-strong);
  color: var(--text-on-noir-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 140ms;
}
.icon-button:hover { color: var(--gold); border-color: var(--gold); }
.icon-button svg { width: 16px; height: 16px; }
.icon-button[aria-expanded="true"] { background: var(--gold); color: var(--noir); border-color: var(--gold); }

.theme-toggle { display: none; }
@media (min-width: 768px) { .theme-toggle { display: inline-flex; } }

.mobile-menu-button { display: inline-flex; }
@media (min-width: 768px) { .mobile-menu-button { display: none; } }

/* ============================================================
   HERO NOIR - serif gigante con glow
   ============================================================ */
.hero {
  background: var(--noir);
  color: var(--text-on-noir);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 168, 106, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(201, 168, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.4;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.8rem + 4.5vw, 5.25rem);
  line-height: 1.05;
  margin: 0 0 32px;
  letter-spacing: -0.025em;
  color: var(--text-on-noir);
  font-weight: 600;
  text-shadow: 0 0 40px rgba(201, 168, 106, 0.15);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  text-shadow: 0 0 50px var(--gold-glow);
}

/* Search bar dorado */
.search {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-700) 100%);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 28px;
  box-shadow: 0 8px 24px var(--gold-glow-soft);
}
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--noir);
  padding: 12px 12px 12px 0;
}
.search input::placeholder { color: rgba(10, 10, 10, 0.55); }
.search button {
  width: 44px; height: 44px;
  background: var(--noir);
  color: var(--gold);
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms;
  flex-shrink: 0;
}
.search button:hover { background: var(--noir-3); }
.search button svg { width: 18px; height: 18px; }

/* ============================================================
   SECTION (en zona de cards - fondo crema)
   ============================================================ */
.section-cards {
  background: var(--canvas);
  padding: 56px 0 32px;
  position: relative;
}
.section-cards::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.25;
  margin-bottom: 56px;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 12px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: " - ";
  color: var(--gold);
  margin: 0 6px;
}
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
}
.section-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ============================================================
   OBITUARY GRID - 3x3
   ============================================================ */
.obituary-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .obituary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .obituary-grid { grid-template-columns: repeat(3, 1fr); } }

.obituary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--canvas-texture);
  background-image: url("/assets/img/paper-texture.svg");
  background-repeat: repeat;
  background-size: 200px 200px;
  border: 1px solid rgba(201, 168, 106, 0.15);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 200ms ease;
  border-bottom: 1px solid rgba(201, 168, 106, 0.15);
}
.obituary-card:hover {
  text-decoration: none;
  border-color: var(--gold);
  box-shadow: 0 12px 28px var(--gold-glow-soft);
  transform: translateY(-2px);
}
.obituary-card-mark {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--canvas-texture);
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--gold-glow-soft);
  flex-shrink: 0;
}
.obituary-card-mark svg { width: 32px; height: 32px; }
.obituary-card.is-featured {
  background-color: #FAF7EE;
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 24px var(--gold-glow-soft);
}
.obituary-card.is-featured .obituary-card-mark {
  width: 68px; height: 68px;
  background: var(--gold);
}
.obituary-card.is-featured .obituary-card-mark svg { width: 38px; height: 38px; }
.obituary-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-weight: 600;
}
.obituary-card.is-featured .obituary-card-name {
  color: var(--gold-700);
  font-size: 1.375rem;
  font-weight: 700;
}
.obituary-card-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.obituary-card-aliento {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.obituary-card.is-featured .obituary-card-aliento {
  -webkit-line-clamp: 5;
  font-size: 1rem;
}
.obituary-card-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  border-top: 1px solid rgba(201, 168, 106, 0.2);
  padding-top: 12px;
  width: 100%;
  text-align: center;
  border-bottom: 0;
  transition: color 140ms;
}
.obituary-card:hover .obituary-card-link { color: var(--gold); }
.obituary-card.is-featured .obituary-card-link { color: var(--gold); }

/* ============================================================
   PAGINACION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 0 16px;
  font-family: var(--font-serif);
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: all 140ms;
  border-bottom: 0;
}
.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold-700);
  border-bottom: 0;
}
.pagination .is-current {
  background: var(--ink);
  color: var(--gold);
  border-color: var(--ink);
  font-weight: 600;
}
.pagination .is-ellipsis {
  color: var(--ink-soft);
  pointer-events: none;
}
.pagination .is-arrow {
  border: 1px solid rgba(201, 168, 106, 0.3);
  color: var(--gold-700);
}
.pagination .is-arrow:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ============================================================
   CTA / FOOTER noir
   ============================================================ */
.site-footer {
  background: var(--noir);
  color: var(--text-on-noir-soft);
  padding: 56px 0 24px;
  margin-top: 32px;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.3;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--noir-line);
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-on-noir-soft);
  margin: 12px 0 16px;
}
.footer-contact {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-noir-faint);
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.footer-contact a { color: var(--gold); border-bottom: 0; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-contact .support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.footer-contact .support-link:hover {
  background: var(--gold);
  color: var(--noir);
  border-bottom-color: var(--gold);
}
.footer-nav-grid h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer-nav-grid a {
  display: block;
  padding: 6px 0;
  color: var(--text-on-noir-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 0;
  font-family: var(--font-serif);
}
.footer-nav-grid a:hover { color: var(--gold); border-bottom: 0; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-noir-faint);
  letter-spacing: 0.02em;
}
.footer-bottom a { color: var(--gold); border-bottom: 0; }

/* ============================================================
   DETAIL PAGE - hero noir con glow
   ============================================================ */
.detail-hero {
  background: var(--noir);
  color: var(--text-on-noir);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 168, 106, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 168, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.detail-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.4;
}
.detail-hero-inner { position: relative; z-index: 1; }
.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.detail-eyebrow::before, .detail-eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.detail-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.8rem + 4vw, 5rem);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  color: var(--text-on-noir);
  font-weight: 600;
  text-shadow: 0 0 50px rgba(201, 168, 106, 0.18);
}
.detail-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  color: var(--text-on-noir-soft);
  margin: 0;
  line-height: 1.5;
}
.detail-subtitle .sep { color: var(--gold); margin: 0 10px; }

/* Detail body - fondo crema con grid */
.detail-body {
  background-color: var(--canvas);
  background-image: url("/assets/img/grid-texture.svg");
  background-repeat: repeat;
  background-size: 24px 24px;
  padding: 48px 0 64px;
  position: relative;
}
.detail-body::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background: url("/assets/img/hero-decoration.svg") center / 400px 40px no-repeat;
  pointer-events: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 360px; gap: 40px; } }

.detail-content {
  background: var(--canvas-texture);
  border: 1px solid rgba(201, 168, 106, 0.15);
  border-radius: var(--radius);
  padding: 40px 32px;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
}
.detail-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 500;
}
.detail-content h2:not(:first-child) { margin-top: 32px; }
.detail-content p { margin: 0 0 16px; }
.detail-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 24px;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--gold);
  position: relative;
}
.detail-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 3rem;
  color: var(--gold);
  font-family: var(--font-serif);
  line-height: 1;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(201, 168, 106, 0.2);
  border-bottom: 1px solid rgba(201, 168, 106, 0.2);
}
@media (min-width: 600px) { .detail-facts { grid-template-columns: 1fr 1fr; } }
.detail-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}
.detail-fact-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail-fact-value {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--ink);
}

.share-section {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(201, 168, 106, 0.15);
  border-bottom: 1px solid rgba(201, 168, 106, 0.15);
  margin-top: 32px;
}
.share-section h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.share-btn {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold-700);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  text-decoration: none;
  transition: all 140ms;
  border-bottom: 1.5px solid var(--gold);
}
.share-btn:hover { background: var(--gold); color: var(--noir); border-bottom-color: var(--gold); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn--whatsapp { color: #25D366; border-color: #25D366; border-bottom-color: #25D366; }
.share-btn--whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; border-bottom-color: #25D366; }

.archive-stamp {
  text-align: center;
  padding: 32px 0 0;
}
.archive-stamp h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.archive-stamp-date {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink);
  font-style: italic;
}

/* ============================================================
   PANEL "DEJA UNA OFRENDA" - lateral negro
   ============================================================ */
.ofrenda-panel {
  background: var(--noir);
  color: var(--text-on-noir);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: 96px;
}
.ofrenda-head {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--noir-line);
}
.ofrenda-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: var(--text-on-noir);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.ofrenda-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-on-noir-soft);
  margin: 0;
}
.ofrenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.ofrenda-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--noir-3);
  border: 1.5px solid var(--noir-line-strong);
  border-radius: var(--radius);
  color: var(--text-on-noir-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 140ms;
  border-bottom: 1.5px solid var(--noir-line-strong);
}
.ofrenda-option:hover, .ofrenda-option.is-selected {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--noir-2);
  border-bottom-color: var(--gold);
}
.ofrenda-icon { width: 28px; height: 28px; }
.ofrenda-form { display: flex; flex-direction: column; gap: 10px; }
.ofrenda-field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--noir-3);
  border: 1px solid var(--noir-line-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color 140ms;
}
.ofrenda-field:focus-within { border-color: var(--gold); }
.ofrenda-field-icon {
  width: 16px; height: 16px;
  color: var(--text-on-noir-faint);
  flex-shrink: 0;
  margin-right: 10px;
}
.ofrenda-field input, .ofrenda-field textarea {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-on-noir);
  padding: 12px 0;
  width: 100%;
}
.ofrenda-field textarea {
  resize: vertical;
  min-height: 80px;
  padding: 12px 0;
  font-family: var(--font-sans);
}
.ofrenda-field input::placeholder, .ofrenda-field textarea::placeholder { color: var(--text-on-noir-faint); }
.ofrenda-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--warn);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.ofrenda-hint svg { width: 12px; height: 12px; flex-shrink: 0; }
.ofrenda-submit {
  margin-top: 8px;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--noir);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms;
}
.ofrenda-submit:hover { background: var(--gold-soft); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-on-noir-soft);
  margin: 0 auto;
  max-width: var(--shell);
  padding: 12px 16px 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: var(--noir);
  text-transform: uppercase;
}
.breadcrumb a { color: var(--text-on-noir-soft); text-decoration: none; border-bottom: 0; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-home, .breadcrumb-sep { opacity: 0.55; transition: opacity 200ms ease; }
.breadcrumb:hover .breadcrumb-home, .breadcrumb:hover .breadcrumb-sep { opacity: 1; }
.breadcrumb-home svg { width: 12px; height: 12px; display: inline-block; vertical-align: -2px; }
.breadcrumb [aria-current="page"] { color: var(--gold); }
@media (min-width: 768px) { .breadcrumb { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1100px) { .breadcrumb { padding-left: 32px; padding-right: 32px; } }

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--noir);
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
  z-index: 90;
  box-shadow: 0 4px 12px var(--gold-glow);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); }
.scroll-top svg { width: 18px; height: 18px; }

/* ============================================================
   MENU DRAWER
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.menu-drawer {
  width: 100%;
  max-width: 360px;
  background: var(--noir);
  border-left: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  outline: none;
}
.menu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--noir-line);
}
.menu-nav { flex: 1; padding: 12px 0; }
.menu-section { padding: 12px 0; border-bottom: 1px solid var(--noir-line); }
.menu-section:last-child { border-bottom: 0; }
.menu-section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 20px 8px;
}
.menu-section a {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--text-on-noir);
  text-decoration: none;
  border-bottom: 0;
  transition: background 140ms, color 140ms;
}
.menu-section a:hover { background: var(--noir-2); color: var(--gold); border-bottom: 0; }
.menu-section a.is-active { color: var(--gold); }
.menu-drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--noir-line);
}

/* ============================================================
   FEATURE PAGES (sobre, ayuda, reglas, publicar, contacto)
   ============================================================ */
.page-hero {
  background: var(--noir);
  color: var(--text-on-noir);
  padding: 56px 0 40px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.3;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--text-on-noir);
  font-weight: 500;
  text-shadow: 0 0 40px rgba(201, 168, 106, 0.15);
}
.page-hero p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-on-noir-soft);
  margin: 0 auto;
  max-width: 60ch;
}
.page-body {
  background: var(--canvas);
  padding: 40px 0 64px;
}
.page-content {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
}
.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin: 0 0 16px; }
.page-content strong { color: var(--ink); font-weight: 600; }
.page-content em { font-style: italic; }
.page-content ul, .page-content ol { margin: 0 0 16px; padding-left: 24px; }
.page-content li { margin-bottom: 6px; }

/* ============================================================
   404
   ============================================================ */
.error-404 {
  background: var(--noir);
  color: var(--text-on-noir);
  padding: 100px 0;
  text-align: center;
  min-height: 60vh;
}
.error-404 h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  margin: 0 0 16px;
  color: var(--text-on-noir);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  text-shadow: 0 0 50px var(--gold-glow);
}
.error-404 p { font-size: 1.125rem; color: var(--text-on-noir-soft); margin: 0 0 32px; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .obituary-card:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --gold: #FFD700; --gold-700: #B8860B; }
}
