/* ==========================================================================
   CRÓNICAS VELADAS — ESTILO CINEMÁTICO VICTORIANO (SHERLOCK HOLMES)
   ========================================================================== */

:root {
  --bg-deep: #030608;
  --bg-chamber: #070d12;
  --bg-card: #0b1419;
  
  --ink-pure: #ffffff;
  --ink-primary: #f5eedc;
  --ink-secondary: #9cb1bc;
  --ink-muted: #6b828f;
  
  --gold-primary: #c8963e;
  --gold-light: #f7dc89;
  --gold-dark: #6e4813;
  --gold-glow: rgba(200, 150, 62, 0.38);
  
  --red-seal: #a8241b;
  --red-stamp: #c9352b;
  
  --border-gold: rgba(200, 150, 62, 0.4);
  --border-subtle: rgba(245, 238, 220, 0.1);
  
  --font-serif: 'Newsreader', 'Cinzel', Georgia, serif;
  --font-cinzel: 'Cinzel', serif;
  --font-sans: 'Geist', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-typewriter: 'Special Elite', monospace, courier;
  
  --transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   CABECERA VICTORIANA MINIMALISTA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 6, 8, 0.92);
  border-bottom: 2px solid rgba(200, 150, 62, 0.3);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px var(--gold-glow));
  transition: transform var(--transition);
}

.brand:hover .brand-emblem {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-cinzel);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  text-transform: none;
  line-height: 1.35;
  padding-top: 2px;
  overflow: visible;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}



.brand-tagline {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-channels {
  background: rgba(200, 150, 62, 0.14);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cinzel);
}

.btn-header-channels:hover {
  background: var(--gold-primary);
  color: #030608;
  box-shadow: 0 0 20px var(--gold-glow);
}

.desktop-only {
  display: inline-flex !important;
}

.mobile-only {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: rgba(200, 150, 62, 0.08);
  border: 1.5px solid var(--border-gold);
  color: var(--gold-light);
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--gold-primary);
  color: #030608;
}

/* Menú móvil desplegable */
.mobile-nav-panel {
  display: none;
  background: #050a0e;
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95);
  padding: 20px 24px;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-panel.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-cinzel);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-primary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(200, 150, 62, 0.12);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--gold-light);
  padding-left: 6px;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(200, 150, 62, 0.22);
  margin: 6px 0;
}

.mobile-nav-btn {
  display: block;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: var(--font-cinzel);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.mobile-nav-btn.yt {
  background: rgba(255, 0, 0, 0.14);
  border: 1.5px solid #ff3333;
  color: #ff5555;
}

.mobile-nav-btn.yt:hover {
  background: #ff0000;
  color: #ffffff;
}

.mobile-nav-btn.fb {
  background: rgba(24, 119, 242, 0.14);
  border: 1.5px solid #1877f2;
  color: #4592ff;
}

.mobile-nav-btn.fb:hover {
  background: #1877f2;
  color: #ffffff;
}

/* ==========================================================================
   MARCO DORADO DE ÉPOCA (ESTILO GABINETE VICTORIANO)
   ========================================================================== */
.gilded-frame {
  position: relative;
  background: radial-gradient(circle at 50% 15%, #0b151b 0%, #050a0e 100%);
  border: 1.5px solid rgba(200, 150, 62, 0.4);
  border-radius: 10px;
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(200, 150, 62, 0.15),
    inset 0 0 0 1px rgba(247, 220, 137, 0.2);
  transition: all var(--transition);
  padding: 28px 24px;
}

.gilded-frame:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 
    0 24px 55px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(200, 150, 62, 0.3),
    inset 0 0 0 1px rgba(247, 220, 137, 0.35);
}

/* ==========================================================================
   HERO VICTORIANO ÉPICO (EL GABINETE DE SHERLOCK HOLMES)
   ========================================================================== */
.sherlock-hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 40px 0 54px;
  border-bottom: 2px solid rgba(200, 150, 62, 0.35);
  background-color: #04080c;
  background-image: 
    radial-gradient(ellipse at 25% 45%, rgba(200, 150, 62, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(18, 38, 52, 0.6) 0%, transparent 65%),
    linear-gradient(180deg, rgba(3, 6, 8, 0.8) 0%, rgba(5, 10, 14, 0.5) 50%, #030608 100%),
    url('/assets/brand/hero-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.95);
}

/* Partículas flotantes */
.ambient-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #f5cb78;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.35;
  box-shadow: 0 0 8px #f5cb78;
  animation: floatAmbient 8s infinite ease-in-out;
}

@keyframes floatAmbient {
  0% { transform: translateY(0) translateX(0); opacity: 0.1; }
  50% { transform: translateY(-40px) translateX(20px); opacity: 0.6; }
  100% { transform: translateY(-80px) translateX(-10px); opacity: 0; }
}

/* ==========================================================================
   LUPA FORENSE ULTRA-PRO SHERLOCK HOLMES
   ========================================================================== */
.sherlock-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, left, top;
}

.sherlock-lens.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.lens-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 7px solid #d4a34b;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2) 0%, rgba(200, 150, 62, 0.08) 60%, rgba(0, 0, 0, 0.3) 100%);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(212, 163, 75, 0.5),
    inset 0 0 16px rgba(255, 255, 255, 0.4),
    inset 0 0 35px rgba(0, 0, 0, 0.7);
  backdrop-filter: brightness(1.28) contrast(1.2) saturate(1.2);
  -webkit-backdrop-filter: brightness(1.28) contrast(1.2) saturate(1.2);
  overflow: hidden;
}

.lens-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 240, 200, 0.7);
  pointer-events: none;
}

.lens-handle {
  position: absolute;
  bottom: -46px;
  right: -46px;
  width: 65px;
  height: 14px;
  background: linear-gradient(135deg, #442211 0%, #1f0f08 50%, #5a2e16 100%);
  border: 2px solid #d4a34b;
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.lens-handle::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -2px;
  width: 10px;
  height: 18px;
  background: #f7dc89;
  border-radius: 2px;
}

.lens-glare {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.06) 35%, transparent 60%, rgba(200, 150, 62, 0.28) 100%);
  pointer-events: none;
}

.lens-reticle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.35;
}

.lens-reticle::before {
  content: "";
  width: 44px;
  height: 44px;
  border: 1px dashed rgba(247, 220, 137, 0.85);
  border-radius: 50%;
}

.sherlock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 5;
}

.sherlock-copy {
  max-width: 680px;
}

.victorian-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 16, 22, 0.88);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-gold);
  border-radius: 9999px;
  padding: 6px 18px;
  margin-bottom: 24px;
}

.victorian-badge span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-seal);
  box-shadow: 0 0 10px var(--red-seal);
}

.victorian-badge span:last-child {
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.sherlock-title {
  font-family: var(--font-cinzel);
  font-size: clamp(36px, 4.8vw, 66px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--ink-pure);
  text-transform: uppercase;
  margin-bottom: 22px;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(200, 150, 62, 0.3);
}

.sherlock-title em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
  text-transform: none;
  font-size: 0.92em;
  letter-spacing: 0;
  margin-top: 6px;
  text-shadow: 0 0 30px var(--gold-glow);
}

.sherlock-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: #d1dde3;
  margin-bottom: 34px;
  padding-left: 18px;
  border-left: 3px solid var(--gold-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.sherlock-quote strong {
  color: var(--gold-light);
  font-weight: 600;
}

.sherlock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-victorian-gold {
  background: linear-gradient(135deg, #c8963e 0%, #f7dc89 50%, #b8832a 100%);
  color: #030608;
  font-family: var(--font-cinzel);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 9999px;
  border: 1px solid #fff3c9;
  box-shadow: 0 0 28px rgba(200, 150, 62, 0.55), 0 10px 30px rgba(0, 0, 0, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-victorian-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px rgba(247, 220, 137, 0.8), 0 15px 40px rgba(0, 0, 0, 0.9);
}

.btn-victorian-dark {
  background: rgba(5, 10, 14, 0.88);
  backdrop-filter: blur(14px);
  color: var(--ink-primary);
  font-family: var(--font-cinzel);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 9999px;
  border: 1.5px solid var(--border-gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}

.btn-victorian-dark:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(200, 150, 62, 0.3);
}

/* Columna Derecha del Hero: Expediente Principal del Volcán (Auténtico Dossier) */
.hero-dossier-wrapper {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  position: relative;
  padding-top: 16px;
}

.hero-dossier-active {
  /* Idéntico 100% al diseño de carpeta de archivo judicial con lacre */
  width: 100%;
}

/* ==========================================================================
   SECCIÓN: EXPEDIENTES CLASIFICADOS (INTOCABLE - PERFECTO)
   ========================================================================== */
.cases-section {
  padding: 110px 0 120px;
  border-bottom: 2px solid rgba(200, 150, 62, 0.25);
  background: 
    radial-gradient(ellipse at 50% 10%, rgba(200, 150, 62, 0.05) 0%, transparent 60%),
    #050a0d;
}

.section-head-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-title-epic {
  font-family: var(--font-cinzel);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.section-subtitle {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.filter-bar-dossier {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.dossier-filter-btn {
  background: rgba(17, 26, 31, 0.7);
  border: 1px solid rgba(200, 150, 62, 0.25);
  color: var(--ink-secondary);
  font-family: var(--font-cinzel);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.dossier-filter-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.dossier-filter-btn.active {
  background: var(--gold-primary);
  color: #030608;
  border-color: var(--gold-primary);
  box-shadow: 0 0 18px var(--gold-glow);
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.dossier-card {
  background: #0c1419;
  border: 1px solid rgba(200, 150, 62, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  transition: all var(--transition);
  padding: 24px;
  margin-top: 14px;
}

.dossier-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 20px;
  width: 110px;
  height: 10px;
  background: #15222a;
  border: 1px solid rgba(200, 150, 62, 0.35);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.dossier-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 30px var(--gold-glow);
}

.wax-seal-img {
  position: absolute;
  top: -16px;
  right: -8px;
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9));
  z-index: 10;
  transition: transform var(--transition);
  pointer-events: none;
}

.dossier-card:hover .wax-seal-img {
  transform: rotate(8deg) scale(1.08);
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rubber-stamp {
  border: 2px solid var(--red-stamp);
  color: var(--red-stamp);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border-radius: 3px;
  transform: rotate(-3deg);
  text-transform: uppercase;
}

.dossier-exp-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-right: 50px;
}

.dossier-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(245, 238, 220, 0.12);
  margin-bottom: 18px;
  background: #04080a;
  cursor: pointer;
}

.dossier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1);
  transition: transform 0.6s ease;
}

.dossier-card:hover .dossier-media img {
  transform: scale(1.08);
}

.dossier-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.dossier-play-btn span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.92);
  color: #030608;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px var(--gold-glow);
  transition: transform var(--transition);
}

.dossier-card:hover .dossier-play-btn span {
  transform: scale(1.15);
  background: var(--gold-light);
}

.dossier-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dossier-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.dossier-meta-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.dossier-summary {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.dossier-waveform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 238, 220, 0.08);
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.waveform-bars span {
  width: 2px;
  background: var(--gold-primary);
  opacity: 0.6;
  border-radius: 1px;
}

.waveform-bars span:nth-child(1) { height: 6px; }
.waveform-bars span:nth-child(2) { height: 14px; }
.waveform-bars span:nth-child(3) { height: 9px; }
.waveform-bars span:nth-child(4) { height: 18px; }
.waveform-bars span:nth-child(5) { height: 11px; }
.waveform-bars span:nth-child(6) { height: 16px; }
.waveform-bars span:nth-child(7) { height: 7px; }

.dossier-watch-btn {
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
}

.dossier-watch-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   SECCIÓN: CANALES OFICIALES (TABLÓN FORENSE DE INVESTIGACIÓN)
   ========================================================================== */
.ecosystem-section {
  padding: 85px 0 95px;
  border-bottom: 2px solid rgba(200, 150, 62, 0.25);
  background: 
    radial-gradient(circle at 50% -20%, rgba(30, 66, 80, 0.22), transparent 45%),
    linear-gradient(#04080b, #020405);
  position: relative;
}

.forensic-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.forensic-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #060b0e;
  border: 1px solid rgba(154, 188, 198, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.32s ease;
  cursor: pointer;
  isolation: isolate;
}

.forensic-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.forensic-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.005);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.forensic-card:hover .forensic-card-media img {
  transform: scale(1.045);
}

.forensic-card-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.3s ease;
}

/* Cantoneras de visor forense */
.forensic-card .corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(218, 189, 137, 0.65);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.forensic-card .c1 { top: 7px; left: 7px; border-width: 2px 0 0 2px; }
.forensic-card .c2 { top: 7px; right: 7px; border-width: 2px 2px 0 0; }
.forensic-card .c3 { bottom: 7px; left: 7px; border-width: 0 0 2px 2px; }
.forensic-card .c4 { bottom: 7px; right: 7px; border-width: 0 2px 2px 0; }

.forensic-card:hover .corner {
  border-color: #f7dc89;
}

/* Brillo reflectante dinámico en hover */
.forensic-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.forensic-card:hover .forensic-card-shine {
  opacity: 1;
}

/* Hover específico por plataforma con auras temáticas */
.forensic-card.fb:hover {
  transform: translateY(-8px);
  border-color: rgba(24, 119, 242, 0.65);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(24, 119, 242, 0.38);
}

.forensic-card.yt:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 30, 30, 0.65);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 0, 0, 0.38);
}

.forensic-card.tt:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 244, 238, 0.65);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(37, 244, 238, 0.38);
}

.forensic-card.ig:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 48, 108, 0.65);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(225, 48, 108, 0.38);
}

/* Utilidad accesible para lectores de pantalla y SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   SECCIÓN: EL MÉTODO DE INVESTIGACIÓN (FUSIÓN TABLÓN FORENSE & MARCO ORO)
   ========================================================================== */
.method-section {
  padding: 105px 0 115px;
  border-bottom: 2px solid rgba(200, 150, 62, 0.25);
  background: 
    radial-gradient(circle at 50% 25%, rgba(18, 32, 40, 0.28), transparent 60%),
    linear-gradient(#030608, #050a0e 50%, #030608);
  position: relative;
  overflow: hidden;
}

.method-board-wrapper {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

/* Hilo rojo de investigación conectando las tarjetas */
.evidence-thread-svg {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.method-fusion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

/* Tarjeta enmarcada estilo Victoriano Gilded con fondo de pergamino */
.method-fusion-card {
  position: relative;
  border-radius: 12px;
  border: 2px solid rgba(200, 150, 62, 0.55);
  background: 
    radial-gradient(ellipse at 50% 30%, #f5ebd2 0%, #e2ce9e 65%, #c8aa6a 100%);
  color: #1e1307;
  padding: 34px 26px 26px;
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.85),
    inset 0 0 40px rgba(120, 80, 20, 0.28),
    0 0 20px rgba(200, 150, 62, 0.12);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.32s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  overflow: visible;
}

.method-fusion-card:hover {
  transform: translateY(-8px);
  border-color: rgba(247, 220, 137, 0.85);
  box-shadow: 
    0 28px 65px rgba(0, 0, 0, 0.95),
    inset 0 0 45px rgba(120, 80, 20, 0.22),
    0 0 35px rgba(200, 150, 62, 0.35);
}

/* Chincheta roja 3D en la parte superior central */
.method-pushpin {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}

.method-fusion-card:hover .method-pushpin {
  transform: translateX(-50%) scale(1.08);
}

/* Cantoneras de oro victoriano */
.method-fusion-card .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #8c6020;
  border-style: solid;
  z-index: 5;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.method-fusion-card:hover .corner {
  border-color: #f7dc89;
}

.method-fusion-card .c1 { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.method-fusion-card .c2 { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.method-fusion-card .c3 { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.method-fusion-card .c4 { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

/* Evidencia fotográfica fijada */
.method-evidence-photo {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
}

.method-evidence-photo img {
  border: 4px solid #fff;
  border-bottom: 14px solid #fff;
  border-radius: 2px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Posiciones de fotos por tarjeta */
.card-rigor .photo-left {
  top: 14px;
  right: 18px;
  transform: rotate(5deg);
  width: 92px;
}

.card-evidencia .photo-right {
  top: 16px;
  right: 18px;
  transform: rotate(3deg);
  width: 82px;
}

.card-atmosfera .photo-right {
  top: 14px;
  right: 18px;
  transform: rotate(-4deg);
  width: 90px;
}

.method-fusion-card:hover .method-evidence-photo {
  transform: scale(1.04) rotate(0deg);
}

/* Sello rojo 'DOCUMENTOS REALES' */
.method-stamp-box {
  position: absolute;
  bottom: 22px;
  right: 14px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.88;
  transform: rotate(-10deg);
  filter: drop-shadow(0 2px 4px rgba(168, 36, 27, 0.3));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.method-stamp-box img {
  width: 110px;
  height: auto;
  display: block;
}

.method-fusion-card:hover .method-stamp-box {
  opacity: 1;
  transform: rotate(-6deg) scale(1.05);
}

/* Tira de película 35mm */
.method-film-strip-box {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.85;
  transform: rotate(4deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.method-film-strip-box img {
  width: 62px;
  height: auto;
  display: block;
}

/* Contenido de la tarjeta */
.method-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.method-badge-wrap {
  margin-bottom: 14px;
}

.method-step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #4a2e0a;
  background: rgba(130, 85, 25, 0.12);
  border: 1px solid #8e6221;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.method-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a0f05;
  margin-bottom: 12px;
  max-width: 72%;
}

.method-desc {
  font-size: 13.5px;
  color: #382414;
  line-height: 1.62;
  margin-bottom: 24px;
  flex: 1;
  max-width: 75%;
}

.method-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(110, 72, 19, 0.3);
}

/* Nota manuscrita tipo pluma estilográfica */
.method-handwritten {
  font-family: 'Caveat', cursive, 'Newsreader', serif;
  font-size: 18px;
  font-weight: 700;
  color: #633f16;
  font-style: italic;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.method-ghost-spacer {
  flex: 1;
}

/* Botón 'CONOCER MÁS →' estilo Victoriano Noir & Oro */
.method-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: #140d06;
  border: 1px solid #8c6020;
  color: #f7dc89;
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.method-cta-btn:hover {
  background: #c8963e;
  color: #05090c;
  border-color: #f7dc89;
  box-shadow: 0 0 16px rgba(200, 150, 62, 0.55);
}

.method-cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   TRANSPARENCIA & PUBLISHER (MARCO DE CUADRO DE ORO)
   ========================================================================== */
.publisher-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: #04080c;
}

.publisher-box-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.publisher-box-wrap h3 {
  font-family: var(--font-cinzel);
  font-size: 28px;
  color: var(--gold-light);
  margin-top: 8px;
}

.publisher-info p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.publisher-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.publisher-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-light);
  text-decoration: underline;
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.site-footer {
  padding: 60px 0 36px;
  border-top: 2px solid rgba(200, 150, 62, 0.25);
  color: var(--ink-secondary);
  font-size: 13px;
  background: #030608;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-cinzel);
  font-size: 11px;
  color: var(--gold-primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==========================================================================
   MODAL DE VIDEO
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.modal-content-wrapper {
  width: 100%;
  max-width: 880px;
  background: #070e12;
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--gold-glow);
  position: relative;
  animation: modalEnter 0.25s ease-out;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: #030608;
}

.modal-header h4 {
  font-family: var(--font-cinzel);
  font-size: 17px;
  color: var(--gold-light);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--ink-primary);
}

.modal-video-frame-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-video-frame-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030608;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   RESPONSIVIDAD & ADAPTACIÓN MÓVIL TOTAL (CELULAR)
   ========================================================================== */
@media (max-width: 1080px) {
  .sherlock-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .dossier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .forensic-social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .evidence-thread-svg {
    display: none;
  }
  
  .method-fusion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .method-fusion-card.card-atmosfera {
    grid-column: span 2;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Control estricto de viewport horizontal */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Cabecera Móvil Limpia y Alineada */
  .site-header {
    height: 64px;
    background: rgba(3, 6, 8, 0.96);
  }
  
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  
  .main-nav {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-emblem {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: visible;
    line-height: 1.35;
    padding-top: 3px;
  }


  .brand-tagline {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
  }

  /* Desactivar lupa en pantallas táctiles */
  .sherlock-lens {
    display: none !important;
  }

  /* Hero Section Móvil */
  .sherlock-hero-section {
    padding: 30px 0 44px;
    min-height: auto;
    background-position: center top;
  }

  .sherlock-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .victorian-badge {
    padding: 4px 12px;
    margin-bottom: 14px;
  }

  .victorian-badge span:last-child {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .sherlock-title {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.15;
    margin-bottom: 16px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .sherlock-quote {
    font-size: 14px;
    line-height: 1.6;
    padding-left: 12px;
    margin-bottom: 20px;
  }

  .sherlock-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .btn-victorian-gold,
  .btn-victorian-dark {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 18px;
    font-size: 12px;
    box-sizing: border-box;
  }

  /* Columna Derecha Hero: Dossier del Volcán en Móvil */
  .hero-dossier-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  .hero-dossier-active {
    width: 100%;
    box-sizing: border-box;
  }

  /* Ajuste de Dossier en Móvil (Para que nada se corte ni desborde) */
  .dossier-card {
    padding: 18px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .dossier-card::before {
    top: -8px;
    left: 14px;
    width: 90px;
    height: 10px;
  }

  .wax-seal-img {
    width: 52px;
    height: 52px;
    top: -14px;
    right: -4px;
  }

  .dossier-header {
    margin-bottom: 12px;
  }

  .rubber-stamp {
    font-size: 9.5px;
    padding: 2px 6px;
    letter-spacing: 0.12em;
  }

  .dossier-exp-id {
    font-size: 11px;
    margin-right: 36px;
  }

  .dossier-media {
    margin-bottom: 14px;
  }

  .dossier-title {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .dossier-meta-date {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .dossier-summary {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .dossier-waveform-row {
    padding-top: 10px;
    gap: 8px;
  }

  .waveform-bars {
    height: 14px;
  }

  .dossier-watch-btn {
    padding: 8px 14px;
    font-size: 11px;
  }

  /* Sección de Expedientes */
  .cases-section {
    padding: 55px 0 65px;
  }

  .section-title-epic {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 8px;
  }

  .section-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
    line-height: 1.55;
  }

  .filter-bar-dossier {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 30px;
  }

  .dossier-filter-btn {
    font-size: 10px;
    padding: 7px 12px;
    flex: 1 1 45%;
    text-align: center;
  }

  .dossier-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  /* Redes Sociales: Canales Oficiales en Móvil */
  .forensic-social-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 420px;
    margin: 0 auto;
  }

  .forensic-card {
    border-radius: 10px;
  }

  /* El Método en Móvil */
  .method-section {
    padding: 60px 0;
  }

  .evidence-thread-svg {
    display: none;
  }

  .method-fusion-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 420px;
    margin: 0 auto;
  }

  .method-fusion-card {
    padding: 28px 18px 20px;
    min-height: auto;
  }

  .method-title {
    font-size: 20px;
    max-width: 68%;
  }

  .method-desc {
    font-size: 13px;
    max-width: 70%;
    margin-bottom: 20px;
  }

  .method-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .method-cta-btn {
    width: 100%;
    justify-content: center;
  }

  /* Publisher */
  .publisher-section {
    padding: 40px 0 60px;
  }

  .publisher-box-wrap {
    padding: 22px 16px;
    border-radius: 10px;
  }

  .publisher-box-wrap h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .publisher-info p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .publisher-links {
    flex-direction: column;
    gap: 8px;
  }

  /* Footer */
  .site-footer {
    padding: 50px 0 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .footer-brand-col .brand {
    justify-content: center;
  }

  .footer-brand-col p {
    margin: 0 auto;
    max-width: 280px;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 11px;
    line-height: 1.6;
  }
}
