/**
 * estasmuerto.site — Estilos Exclusivos para Fichas de Lugares de la Muerte
 * Namespace: .lugar-ficha- y .lf-
 * Estética oscura, elegante y cinematográfica.
 * Totalmente aislado: 0 colisión con el resto de la web.
 */

:root {
  --lf-bg: #09090b;
  --lf-card: #120c0e;
  --lf-card-elevated: #1a1014;
  --lf-blood: #b3131a;
  --lf-blood-bright: #ff334b;
  --lf-blood-glow: rgba(179, 19, 26, 0.35);
  --lf-bone: #e9e2da;
  --lf-bone-dim: rgba(233, 226, 218, 0.72);
  --lf-bone-muted: #887d7b;
  --lf-border: rgba(179, 19, 26, 0.22);
  --lf-border-subtle: rgba(233, 226, 218, 0.08);
}

/* ==============================================================================
   1. BREADCRUMBS
   ============================================================================== */
.lf-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--lf-bone-muted);
  margin: 28px 0 20px;
  padding: 0;
  list-style: none;
}

.lf-breadcrumbs a {
  color: var(--lf-bone-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lf-breadcrumbs a:hover {
  color: var(--lf-blood-bright);
}

.lf-breadcrumbs .lf-sep {
  color: var(--lf-blood);
  opacity: 0.6;
}

.lf-breadcrumbs .lf-current {
  color: var(--lf-bone);
  font-weight: 500;
}

/* ==============================================================================
   2. HERO PRINCIPAL DE LA FICHA
   ============================================================================== */
.lf-hero {
  margin-bottom: 32px;
}

.lf-hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lf-blood-bright);
  font-weight: 700;
  background: rgba(179, 19, 26, 0.15);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(179, 19, 26, 0.35);
}

.lf-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #a3e635;
  background: rgba(163, 230, 53, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(163, 230, 53, 0.25);
  font-weight: 600;
}

.lf-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  color: var(--lf-bone);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.lf-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--lf-bone-dim);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lf-border-subtle);
}

.lf-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lf-meta-item strong {
  color: var(--lf-bone);
}

/* Imagen de Cabecera (Hero Banner) */
.lf-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0 36px;
  background: #0f0a0c;
  border: 1px solid var(--lf-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.lf-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.85) 0%, rgba(9, 9, 11, 0.2) 50%, rgba(9, 9, 11, 0.3) 100%);
  pointer-events: none;
}

.lf-hero-caption {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 0.72rem;
  color: rgba(233, 226, 218, 0.7);
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   3. CUADRÍCULA DE DATOS CLAVE (SPECS)
   ============================================================================== */
.lf-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.lf-spec-card {
  background: var(--lf-card);
  border: 1px solid var(--lf-border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lf-spec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 19, 26, 0.45);
}

.lf-spec-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lf-bone-muted);
  margin-bottom: 6px;
}

.lf-spec-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lf-bone);
  font-family: "Fraunces", Georgia, serif;
}

/* ==============================================================================
   4. CUERPO NARRATIVO Y CONTENIDO
   ============================================================================== */
.lf-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 960px) {
  .lf-content-grid {
    grid-template-columns: 2.1fr 1fr;
    gap: 48px;
  }
}

.lf-article {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--lf-bone-dim);
}

.lf-lead {
  font-size: 1.22rem;
  line-height: 1.68;
  color: var(--lf-bone);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--lf-blood);
}

.lf-section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-style: italic;
  color: var(--lf-bone);
  margin: 40px 0 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lf-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--lf-border), transparent);
}

.lf-quote-callout {
  background: rgba(179, 19, 26, 0.08);
  border: 1px solid rgba(179, 19, 26, 0.3);
  border-left: 4px solid var(--lf-blood-bright);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 6px;
  font-style: italic;
  font-family: "Fraunces", Georgia, serif;
  color: var(--lf-bone);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Personajes Ilustres */
.lf-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.lf-pill {
  background: rgba(233, 226, 218, 0.05);
  border: 1px solid rgba(233, 226, 218, 0.15);
  color: var(--lf-bone);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lf-pill:hover {
  background: rgba(179, 19, 26, 0.2);
  border-color: var(--lf-blood);
  color: #fff;
}

.lf-pill-cross {
  color: var(--lf-blood-bright);
  font-weight: 700;
}

/* Leyendas y Misterios Box */
.lf-mystery-box {
  background: #11090d;
  border: 1px solid rgba(179, 19, 26, 0.35);
  border-radius: 10px;
  padding: 26px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.lf-mystery-box::before {
  content: "✦";
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 5rem;
  color: rgba(179, 19, 26, 0.06);
  pointer-events: none;
}

.lf-mystery-title {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--lf-blood-bright);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==============================================================================
   5. GALERÍA DE IMÁGENES
   ============================================================================== */
.lf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.lf-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--lf-border-subtle);
  background: #140d10;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lf-gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--lf-blood-bright);
  box-shadow: 0 8px 24px rgba(179, 19, 26, 0.25);
}

.lf-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lf-gallery-caption-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.95), transparent);
  padding: 20px 10px 8px;
  font-size: 0.72rem;
  color: var(--lf-bone);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.lf-gallery-item:hover .lf-gallery-caption-overlay {
  opacity: 1;
}

/* ==============================================================================
   6. SIDEBAR: INFORMACIÓN DE VISITA & CONTACTO
   ============================================================================== */
.lf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lf-visit-card {
  background: var(--lf-card);
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 24px;
}

.lf-visit-header {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--lf-bone);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lf-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lf-visit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lf-visit-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lf-visit-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--lf-blood-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.lf-visit-content strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lf-bone-muted);
  margin-bottom: 2px;
}

.lf-visit-content span {
  color: var(--lf-bone);
}

.lf-visit-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lf-btn-official {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--lf-border);
  color: var(--lf-bone);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lf-btn-official:hover {
  background: rgba(179, 19, 26, 0.15);
  border-color: var(--lf-blood);
  color: #fff;
}

/* ==============================================================================
   7. MAPA DE UBICACIÓN
   ============================================================================== */
.lf-map-section {
  margin: 48px 0;
}

.lf-map-container {
  width: 100%;
  height: 380px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lf-border);
  background: #0f0a0c;
  margin-top: 16px;
}

.lf-address-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--lf-card);
  border: 1px solid var(--lf-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 14px 20px;
  font-size: 0.86rem;
  color: var(--lf-bone-dim);
}

.lf-directions-links {
  display: flex;
  gap: 12px;
}

.lf-directions-link {
  color: var(--lf-blood-bright);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.lf-directions-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ==============================================================================
   8. FUENTES DOCUMENTALES
   ============================================================================== */
.lf-sources-section {
  margin: 40px 0;
  padding: 24px;
  background: rgba(233, 226, 218, 0.02);
  border: 1px solid var(--lf-border-subtle);
  border-radius: 8px;
}

.lf-sources-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lf-sources-item {
  font-size: 0.85rem;
  color: var(--lf-bone-dim);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lf-sources-item a {
  color: var(--lf-bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.lf-sources-item a:hover {
  color: var(--lf-blood-bright);
}

/* ==============================================================================
   9. LUGARES RELACIONADOS
   ============================================================================== */
.lf-related-section {
  margin: 64px 0 32px;
  padding-top: 36px;
  border-top: 1px solid var(--lf-border);
}

.lf-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.lf-related-card {
  background: var(--lf-card);
  border: 1px solid var(--lf-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lf-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--lf-blood-bright);
  box-shadow: 0 12px 28px rgba(179, 19, 26, 0.25);
}

.lf-related-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #150d10;
  display: block;
}

.lf-related-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lf-related-cat {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lf-blood-bright);
  font-weight: 700;
  margin-bottom: 6px;
}

.lf-related-title {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--lf-bone);
  margin: 0 0 8px;
  line-height: 1.25;
}

.lf-related-loc {
  font-size: 0.78rem;
  color: var(--lf-bone-muted);
  margin-top: auto;
}

/* ==============================================================================
   10. LIGHTBOX MODAL
   ============================================================================== */
.lf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lf-lightbox.active {
  display: flex;
}

.lf-lightbox-img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lf-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--lf-bone);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s ease;
}

.lf-lightbox-close:hover {
  color: var(--lf-blood-bright);
}

.lf-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 9, 11, 0.85);
  padding: 8px 18px;
  border-radius: 6px;
  color: var(--lf-bone);
  font-size: 0.85rem;
  max-width: 80vw;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   11. PREVIEW BANNER PARA DRAFTS/REVISIÓN
   ============================================================================== */
.lf-preview-banner {
  background: #78350f;
  color: #fef3c7;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 2px solid #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
