/* estasmuerto.site — estilos principales */
/* Fallback tipográfico con métricas calibradas para evitar Layout Shift (CLS) */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Times New Roman'), local('Georgia'), local('Noto Serif'), local('Droid Serif');
  ascent-override: 96%;
  descent-override: 26%;
  line-gap-override: 0%;
  size-adjust: 104%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Helvetica Neue'), local('Arial'), local('Roboto'), local('Noto Sans');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 102%;
}
:root{
  --bg:#0a0506;
  --bg-2:#120a0b;
  --bg-3:#170c0d;
  --bone:#e9e2da;
  --bone-dim:#93807c;
  --blood:#7a0d12;
  --blood-bright:#b3131a;
  --blood-deep:#4a0509;
  --gold:#8f6a4a;
  --border:rgba(179,19,26,.18);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-padding-top:80px;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--bone);
  font-family:"Inter","Inter Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
::selection{background:var(--blood-bright);color:var(--bone)}
body:before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse 70% 50% at 50% 0%,rgba(122,13,18,.22),transparent 60%);
}
body:after{
  content:"";position:fixed;inset:0;z-index:1;pointer-events:none;
  opacity:.05;mix-blend-mode:overlay;
  background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.5) 0,transparent 1px,transparent 2px),
                   repeating-linear-gradient(90deg,rgba(255,255,255,.5) 0,transparent 1px,transparent 2px);
  background-size:3px 3px;
}
a{color:inherit}
.site-width{width:min(1200px,calc(100% - 48px));margin-inline:auto}

/* Cabecera: fondo a todo el ancho, contenido limitado a 1200px */
header{
  position:sticky;top:0;z-index:20;
  background:linear-gradient(180deg,rgba(10,5,6,.96),rgba(10,5,6,.82));
  backdrop-filter:blur(8px);border-bottom:1px solid var(--border);
}
.header-inner{
  min-height:76px;display:flex;align-items:center;justify-content:space-between;
}
.logo{
  font-family:"Fraunces","Fraunces Fallback",Georgia,serif;font-weight:500;font-style:italic;
  font-size:1.22rem;letter-spacing:.01em;text-decoration:none;
  color:var(--bone);
  display:inline-flex;align-items:center;
  transition:opacity .2s ease;
}
.logo:hover{opacity:.88}
.logo span{color:var(--blood-bright);font-style:normal}
.footer-logo{
  font-size:1.45rem;
  margin-bottom:14px;
  display:inline-block;
}
nav ul{list-style:none;display:flex;gap:clamp(16px,3vw,34px);margin:0;padding:0;font-size:.86rem;color:var(--bone-dim)}
nav a{text-decoration:none;transition:color .2s ease}
nav a:hover{color:var(--blood-bright)}

/* Botón Hamburguesa Móvil */
.nav-toggle {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(22, 11, 13, 0.88);
  border: 1.5px solid rgba(220, 39, 67, 0.65);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--bone);
  transition: all 0.25s ease;
  z-index: 35;
  box-shadow: 0 0 12px rgba(220, 39, 67, 0.25);
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--blood-bright);
  box-shadow: 0 0 16px rgba(220, 39, 67, 0.5);
  background: rgba(36, 16, 18, 0.95);
  outline: none;
}

/* Soporte SVG para las 3 rayas del menú móvil */
.nav-toggle .icon-menu-bars {
  display: block;
  width: 24px;
  height: 24px;
  color: #f5ede4;
  pointer-events: none;
}
.nav-toggle .icon-menu-close {
  display: none;
  width: 24px;
  height: 24px;
  color: var(--blood-bright);
  pointer-events: none;
}
.nav-toggle.open .icon-menu-bars {
  display: none;
}
.nav-toggle.open .icon-menu-close {
  display: block;
}

/* Soporte de barras CSS (spans) */
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  min-height: 2.5px;
  flex-shrink: 0;
  background-color: #f5ede4;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background-color: var(--blood-bright);
}
.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: var(--blood-bright);
}

/* Hero con mayor altura y aire superior/inferior */
.hero{
  position:relative;
  min-height:560px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  padding:54px 24px 60px;
  z-index:2;
}
.hero-br { display: block; }
@media (min-width: 601px) {
  .hero-br { display: none; }
}
.hero:before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(ellipse 65% 55% at 50% 18%,rgba(179,19,26,.24),transparent 60%),
             radial-gradient(ellipse 80% 60% at 50% 100%,rgba(0,0,0,.68),transparent 70%);
}
.pulse-wrap{width:min(360px,70vw);aspect-ratio:360/60;margin-bottom:28px}
.pulse-wrap svg{width:100%;height:auto;aspect-ratio:360/60;display:block}
.pulse-line{
  stroke:var(--blood-bright);stroke-width:1.6;fill:none;
  stroke-dasharray:340;stroke-dashoffset:340;
  filter:drop-shadow(0 0 6px rgba(179,19,26,.55));
  animation:draw 3.2s ease-in-out infinite;
  will-change:stroke-dashoffset;
  transform:translateZ(0);
}
@keyframes draw{0%{stroke-dashoffset:340}45%{stroke-dashoffset:0}100%{stroke-dashoffset:-340}}
.kicker{font-size:.78rem;letter-spacing:.16em;color:var(--blood-bright);margin:0 0 16px}
h1{
  font-family:"Fraunces","Fraunces Fallback",Georgia,serif;font-weight:440;
  font-size:clamp(2.6rem,7.6vw,5.2rem);line-height:1.05;
  letter-spacing:-.01em;margin:0 0 18px;
}
h1 em{font-style:italic;font-weight:400;color:var(--blood-bright);text-shadow:0 0 30px rgba(179,19,26,.35)}
.hero-sub{
  font-family:"Fraunces","Fraunces Fallback",Georgia,serif;font-style:italic;font-weight:400;
  font-size:clamp(1.05rem,2vw,1.3rem);color:var(--bone-dim);
  max-width:44ch;line-height:1.55;margin:0 0 34px;
}
.cta{
  display:inline-flex;align-items:center;gap:12px;font-weight:600;font-size:.95rem;
  color:var(--bone);background:linear-gradient(180deg,var(--blood-bright),var(--blood-deep));
  padding:16px 30px;border-radius:2px;border:1px solid rgba(233,226,218,.15);
  text-decoration:none;letter-spacing:.02em;transition:.2s;
  box-shadow:0 10px 40px rgba(122,13,18,.4);
}
.cta:hover{background:linear-gradient(180deg,#c81820,var(--blood-bright));transform:translateY(-1px);box-shadow:0 16px 46px rgba(179,19,26,.55)}
.cta svg{width:14px;height:14px;transition:transform .2s}
.cta:hover svg{transform:translateX(3px)}
.hero-foot{margin-top:36px;font-size:.78rem;color:rgba(147,128,124,.6);letter-spacing:.03em}

/* Contenido central limitado a 1200px */
.manifesto{max-width:640px;margin:0 auto;padding:48px 24px;text-align:center;border-top:1px solid var(--border);min-height:110px}
.manifesto p{font-family:"Fraunces","Fraunces Fallback",Georgia,serif;font-weight:300;font-size:clamp(1.15rem,2.4vw,1.5rem);line-height:1.6;margin:0}
.manifesto p em{color:var(--blood-bright);font-style:italic}
.diario{padding:4vh 24px 12vh;border-top:1px solid var(--border)}
.diario-head{display:flex;align-items:baseline;justify-content:space-between;max-width:1100px;margin:0 auto 44px;flex-wrap:wrap;gap:14px}
.diario-head h2{font-family:"Fraunces","Fraunces Fallback",Georgia,serif;font-style:italic;font-weight:500;font-size:1.6rem;margin:0}
.diario-head a{font-size:.85rem;color:var(--bone-dim);text-decoration:none}
.articles{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--border)}
article{padding:30px 26px;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
article:last-child{border-right:none}
.art-kicker{font-size:.72rem;letter-spacing:.1em;color:var(--blood-bright);margin-bottom:14px}
article h3{font-family:"Fraunces","Fraunces Fallback",Georgia,serif;font-weight:440;font-size:1.22rem;line-height:1.3;margin:0 0 12px}
.art-meta{font-size:.76rem;color:var(--bone-dim);margin-bottom:14px}
article p.excerpt{font-size:.92rem;line-height:1.6;color:rgba(233,226,218,.7);margin:0}
/* Footer Enriquecido y Bonito */
.site-footer {
  background: linear-gradient(180deg, rgba(14, 7, 9, 0.95) 0%, rgba(6, 2, 3, 1) 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 64px 0 28px;
  margin-top: auto;
}
.site-footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: radial-gradient(circle, var(--blood-bright) 0%, transparent 80%);
  opacity: 0.7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(179, 19, 26, 0.14);
}

.footer-col-brand .footer-quote {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--bone-dim);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 36ch;
}
.footer-col-brand .memento-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blood-bright);
  background: rgba(179, 19, 26, 0.12);
  border: 1px solid rgba(179, 19, 26, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
}
.footer-col h4 {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--bone);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h4:after {
  content: "";
  height: 1px;
  width: 18px;
  background: var(--blood-bright);
  display: inline-block;
  opacity: 0.7;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a,
.footer-links button {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover,
.footer-links button:hover {
  color: var(--blood-bright);
  transform: translateX(3px);
}
.footer-info-text,
.footer-col > p {
  font-size: 0.84rem;
  color: var(--bone-dim);
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Banner Proyecto Hermano (estasvivo.site) */
.footer-sibling-banner {
  margin: 36px 0 28px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(22, 11, 13, 0.92) 0%, rgba(14, 28, 21, 0.72) 100%);
  border: 1px solid rgba(179, 19, 26, 0.32);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.footer-sibling-banner:hover {
  border-color: rgba(36, 184, 122, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(36, 184, 122, 0.08);
}
.footer-sibling-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(36, 184, 122, 0.12), transparent 70%);
  pointer-events: none;
}
.sibling-banner-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.sibling-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.sibling-banner-title {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--bone);
  margin: 0 0 6px;
  line-height: 1.35;
}
.sibling-banner-desc {
  font-size: 0.86rem;
  color: var(--bone-dim);
  margin: 0;
  line-height: 1.5;
  max-width: 62ch;
}
.btn-sibling-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #24b87a 0%, #168a5b 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(36, 184, 122, 0.28);
  transition: all 0.25s ease;
}
.btn-sibling-banner:hover {
  background: linear-gradient(135deg, #2ecc83 0%, #1db372 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36, 184, 122, 0.42);
  color: #ffffff !important;
}
.btn-sibling-banner svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.btn-sibling-banner:hover svg {
  transform: translate(2px, -2px);
}
@media (max-width: 768px) {
  .footer-sibling-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 18px;
    margin: 28px 0 24px;
  }
  .btn-sibling-banner {
    width: 100%;
    min-height: 48px;
  }
}
.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.76rem;
  color: rgba(147, 128, 124, 0.65);
}
.footer-bottom .disclaimer-text {
  max-width: 58ch;
  line-height: 1.5;
}
.footer-bottom .admin-link {
  color: rgba(147, 128, 124, 0.4);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.72rem;
}
.footer-bottom .admin-link:hover {
  color: var(--blood-bright);
}

/* Páginas Legales */
.legal-page {
  padding: 60px 0 90px;
  max-width: 860px;
  margin: 0 auto;
}
.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-header .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--blood-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.legal-header h1 {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 440;
  margin: 0 0 14px;
  line-height: 1.15;
}
.legal-header .legal-meta {
  font-size: 0.82rem;
  color: var(--bone-dim);
}
.legal-body {
  line-height: 1.8;
  font-size: 0.96rem;
  color: rgba(233, 226, 218, 0.88);
}
.legal-body h2 {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--bone);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(179, 19, 26, 0.18);
}
.legal-body h3 {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--bone);
  margin: 24px 0 10px;
}
.legal-body p {
  margin-bottom: 1.3em;
}
.legal-body ul {
  padding-left: 22px;
  margin-bottom: 1.4em;
}
.legal-body li {
  margin-bottom: 8px;
}
.legal-body a {
  color: var(--blood-bright);
  text-decoration: underline;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: rgba(23, 12, 14, 0.5);
  border: 1px solid var(--border);
}
.legal-table th, .legal-table td {
  padding: 12px 16px;
  border: 1px solid rgba(179, 19, 26, 0.18);
  text-align: left;
}
.legal-table th {
  background: rgba(179, 19, 26, 0.15);
  color: var(--bone);
  font-weight: 600;
}

@media(max-width:960px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:36px 20px;}
}
@media(max-width:820px){
  .site-width{width:min(100% - 32px,1200px)}
  
  .nav-toggle {
    display: flex !important;
  }

  header nav,
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(14, 7, 8, 0.98), rgba(9, 5, 6, 0.98));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1.5px solid rgba(220, 39, 67, 0.5);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(179, 19, 26, 0.2);
    padding: 12px 0 18px;
    z-index: 25;
    animation: slideDownNav 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  header nav.open,
  .nav-menu.open {
    display: block !important;
  }

  .nav-menu ul {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
    margin: 0;
  }

  .nav-menu li {
    list-style: none;
    border-bottom: 1px solid rgba(179, 19, 26, 0.12);
  }
  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    padding: 14px 14px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--bone);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .nav-menu a:hover,
  .nav-menu a:active {
    color: #fff;
    background: rgba(179, 19, 26, 0.25);
    padding-left: 18px;
  }

  .hero{min-height:510px;padding:40px 16px 44px}
  .articles{grid-template-columns:1fr}
  article{border-right:none}
}

@media(max-width:600px){
  h1{
    font-size:clamp(2rem, 7.8vw, 2.6rem);
    line-height:1.12;
    min-height:92px;
  }
  .hero-sub{
    min-height:52px;
  }
  .manifesto{
    padding:32px 18px;
    min-height:100px;
  }
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media(max-width:580px){
  .footer-grid{grid-template-columns:1fr;gap:30px;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}
@media(prefers-reduced-motion:reduce){.pulse-line{animation:none;stroke-dashoffset:0}}

/* =======================================================
   SECCIÓN: ÚLTIMAS ESQUELAS DICTADAS & CONTADOR GLOBAL
   ======================================================= */
.ultimas-esquelas-section {
  padding: 76px 0 84px;
  background: linear-gradient(180deg, #09090b 0%, #130a0c 50%, #09090b 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.esquelas-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.esquelas-title-wrap {
  flex: 1;
  min-width: 280px;
}

.section-kicker {
  color: var(--blood-bright);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.esquelas-title-wrap h2 {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 420;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--bone);
}

.esquelas-subtitle {
  color: var(--bone-dim);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

/* Badge Contador Global */
.esquelas-counter-badge {
  background: rgba(23, 12, 14, 0.9);
  border: 1px solid rgba(179, 19, 26, 0.38);
  border-radius: 6px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 14px rgba(179, 19, 26, 0.15);
  backdrop-filter: blur(8px);
}

.counter-pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blood-bright);
  box-shadow: 0 0 12px var(--blood-bright);
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.counter-content {
  display: flex;
  flex-direction: column;
}

.counter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}

.counter-number {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--bone);
  line-height: 1.05;
  margin: 3px 0 2px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 5.5ch;
  transition: all 0.35s ease;
}

.counter-number.increment-pulse {
  color: #ff3b47;
  transform: scale(1.08);
  text-shadow: 0 0 18px rgba(220, 39, 67, 0.8);
}

.counter-sub {
  font-size: 0.75rem;
  color: rgba(233, 226, 218, 0.6);
}

/* Tabla de Esquelas */
.esquelas-table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(14, 8, 9, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.esquelas-table {
  width: 100%;
  min-width: 540px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.esquelas-table th:nth-child(1), .esquelas-table td:nth-child(1) { width: 34%; }
.esquelas-table th:nth-child(2), .esquelas-table td:nth-child(2) { width: 28%; }
.esquelas-table th:nth-child(3), .esquelas-table td:nth-child(3) { width: 22%; }
.esquelas-table th:nth-child(4), .esquelas-table td:nth-child(4) { width: 16%; }

.esquelas-table th {
  padding: 14px 18px;
  background: rgba(24, 12, 14, 0.95);
  color: var(--bone-dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-bottom: 1px solid rgba(179, 19, 26, 0.28);
  white-space: nowrap;
}

.esquelas-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(233, 226, 218, 0.06);
  vertical-align: middle;
  height: 52px;
}

.esquela-row {
  transition: background 0.2s ease;
}

.esquela-row:hover {
  background: rgba(179, 19, 26, 0.09);
}

.esquela-row.newest-row {
  background: rgba(179, 19, 26, 0.04);
}

@keyframes esquelaEntradaAnim {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
    background: rgba(220, 39, 67, 0.45);
    box-shadow: inset 0 0 25px rgba(220, 39, 67, 0.5);
  }
  30% {
    opacity: 1;
    background: rgba(220, 39, 67, 0.22);
    box-shadow: inset 0 0 15px rgba(220, 39, 67, 0.35);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: rgba(179, 19, 26, 0.05);
    box-shadow: none;
  }
}

.esquela-row.new-soul-entry {
  animation: esquelaEntradaAnim 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alma-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--bone);
  white-space: nowrap;
}

.alma-icon {
  color: var(--blood-bright);
  opacity: 0.85;
  display: flex;
  align-items: center;
}

.badge-real-esquela {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(179, 19, 26, 0.25);
  color: #ff5e6a;
  border: 1px solid rgba(179, 19, 26, 0.55);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.tiempo-pill {
  display: inline-block;
  background: rgba(179, 19, 26, 0.14);
  border: 1px solid rgba(179, 19, 26, 0.32);
  color: #ff5e6a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.fecha-text {
  color: var(--bone-dim);
  font-size: 0.86rem;
  white-space: nowrap;
}

/* Difuminado y desvanecimiento progresivo hacia el final de la tabla (filas 8, 9 y 10) */
.esquela-row.row-fade-1 {
  opacity: 0.72;
  filter: blur(0.7px);
  transition: opacity 0.3s ease, filter 0.3s ease, background 0.2s ease;
}

.esquela-row.row-fade-2 {
  opacity: 0.42;
  filter: blur(1.6px);
  transition: opacity 0.3s ease, filter 0.3s ease, background 0.2s ease;
}

.esquela-row.row-fade-3 {
  opacity: 0.16;
  filter: blur(2.8px);
  transition: opacity 0.3s ease, filter 0.3s ease, background 0.2s ease;
}

.esquela-row.row-fade-1 td {
  border-bottom-color: rgba(233, 226, 218, 0.04);
}

.esquela-row.row-fade-2 td {
  border-bottom-color: rgba(233, 226, 218, 0.02);
}

.esquela-row.row-fade-3 td {
  border-bottom-color: transparent;
}

/* Al pasar el cursor por encima, se reenfoca suavemente para permitir interactuar y leer */
.esquela-row.row-fade-1:hover,
.esquela-row.row-fade-2:hover,
.esquela-row.row-fade-3:hover {
  opacity: 1;
  filter: blur(0px);
  background: rgba(179, 19, 26, 0.12);
}

.hace-cuanto-mobile {
  display: block;
  font-size: 0.72rem;
  color: rgba(233, 226, 218, 0.45);
  margin-top: 2px;
}

.col-accion {
  text-align: right;
  white-space: nowrap;
}

.btn-ver-esquela {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: rgba(179, 19, 26, 0.15);
  border: 1px solid rgba(179, 19, 26, 0.45);
  color: var(--bone);
  border-radius: 3px;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-ver-esquela:hover {
  background: var(--blood-bright);
  color: #fff;
  border-color: var(--blood-bright);
  transform: translateX(2px);
  box-shadow: 0 4px 14px rgba(179, 19, 26, 0.45);
}

/* Pie de la Sección */
.esquelas-section-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--bone-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.esquelas-section-footer p {
  margin: 0;
}

.btn-consultar-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bone);
  background: linear-gradient(180deg, var(--blood-bright), var(--blood-deep));
  padding: 9px 18px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  border: 1px solid rgba(233, 226, 218, 0.2);
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(122, 13, 18, 0.35);
}

.btn-consultar-mini:hover {
  background: linear-gradient(180deg, #c81820, var(--blood-bright));
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(179, 19, 26, 0.5);
}

@media(max-width: 820px) {
  .esquelas-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .esquelas-counter-badge {
    width: 100%;
    justify-content: flex-start;
  }
  .esquelas-section-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   SECCIÓN: EFEMÉRIDES DEL UMBRAL (Tal día como hoy partieron)
   ================================================================ */
.efemerides-section {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #09090b 0%, #11080a 50%, #09090b 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.efemerides-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(179, 19, 26, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.efemerides-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.efemerides-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.efemerides-title-wrap {
  flex: 1;
  min-width: 280px;
}

.efemerides-title-wrap h2 {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 420;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--bone);
}

.efemerides-subtitle {
  color: var(--bone-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 58ch;
}

.efemerides-date-highlight {
  color: #ff5e6a;
  font-weight: 600;
}

/* Badge de Calendario Memento */
.efemerides-calendar-badge {
  background: rgba(22, 10, 13, 0.92);
  border: 1px solid rgba(179, 19, 26, 0.4);
  border-radius: 6px;
  padding: 10px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(179, 19, 26, 0.18);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.efemerides-cal-top {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blood-bright);
  font-weight: 700;
  margin-bottom: 2px;
}

.efemerides-cal-day {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
}

.efemerides-cal-month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  font-weight: 600;
}

/* Cuadrícula de 2 Tarjetas de Muertes Célebres */
.efemerides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 30px;
  min-height: 380px;
}

.efemerides-card {
  background: rgba(18, 10, 12, 0.65);
  border: 1px solid rgba(179, 19, 26, 0.28);
  border-radius: 6px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  contain-intrinsic-size: 380px;
}

.efemerides-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood-bright), transparent);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.efemerides-card:hover {
  border-color: rgba(179, 19, 26, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(179, 19, 26, 0.2);
  background: rgba(22, 11, 14, 0.85);
}

.efemerides-card:hover::before {
  opacity: 1;
}

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

.efemerides-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(179, 19, 26, 0.18);
  border: 1px solid rgba(179, 19, 26, 0.4);
  color: #ff5e6a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
}

.efemerides-card-age {
  font-size: 0.82rem;
  color: var(--bone-dim);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.efemerides-card-age .ano-obito {
  color: var(--bone);
  font-weight: 600;
}

.efemerides-card-age .sep-dot {
  color: rgba(233, 226, 218, 0.3);
}

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

.efemerides-card-name {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--bone);
  line-height: 1.2;
  margin: 0 0 4px;
}

.efemerides-card-profession {
  font-size: 0.84rem;
  color: var(--blood-bright);
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.efemerides-causa-box {
  background: rgba(8, 4, 5, 0.7);
  border-left: 3px solid var(--blood-bright);
  border-radius: 0 4px 4px 0;
  padding: 9px 12px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.causa-tag {
  color: #ff5e6a;
  font-weight: 600;
  margin-right: 6px;
}

.causa-desc {
  color: var(--bone);
}

.efemerides-card-desc {
  font-size: 0.89rem;
  line-height: 1.6;
  color: rgba(233, 226, 218, 0.76);
  margin: 0 0 16px;
}

.efemerides-card-quote {
  margin: auto 0 16px;
  padding: 10px 14px;
  background: rgba(179, 19, 26, 0.06);
  border-left: 2px solid rgba(179, 19, 26, 0.45);
  border-radius: 0 3px 3px 0;
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--bone);
}

.quote-mark {
  color: var(--blood-bright);
  font-weight: bold;
  padding: 0 2px;
}

.efemerides-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(233, 226, 218, 0.08);
  font-size: 0.76rem;
  color: var(--bone-dim);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-coord, .footer-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Pie de la Sección */
.efemerides-section-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--bone-dim);
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

.efemerides-footer-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bone-dim);
  font-size: 0.84rem;
}

.efemerides-footer-note svg {
  color: var(--blood-bright);
  flex-shrink: 0;
}

.btn-efemerides-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bone);
  background: rgba(179, 19, 26, 0.16);
  border: 1px solid rgba(179, 19, 26, 0.45);
  padding: 8px 16px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-efemerides-cta:hover {
  background: var(--blood-bright);
  color: #fff;
  border-color: var(--blood-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(179, 19, 26, 0.45);
}

@media (max-width: 768px) {
  .efemerides-grid {
    grid-template-columns: 1fr;
    min-height: 760px;
  }
  .efemerides-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .efemerides-calendar-badge {
    align-self: flex-start;
  }
  .efemerides-section-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= BANNER Y GESTIÓN DE COOKIES ================= */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 540px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(18, 9, 11, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(179, 19, 26, 0.35);
  border-radius: 8px;
  padding: 24px 26px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(122, 13, 18, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood-bright, #b3131a), transparent);
  border-radius: 8px 8px 0 0;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cookie-icon {
  width: 20px;
  height: 20px;
  color: var(--blood-bright, #b3131a);
  flex-shrink: 0;
}

.cookie-title {
  font-family: "Fraunces", "Fraunces Fallback", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--bone, #e9e2da);
  margin: 0;
}

.cookie-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(233, 226, 218, 0.78);
  margin: 0 0 18px;
}

.cookie-text a {
  color: var(--blood-bright, #b3131a);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.cookie-text a:hover {
  opacity: 0.85;
}

/* Acciones principales */
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cookie-btn-primary {
  background: linear-gradient(180deg, var(--blood-bright, #b3131a), #7a0d12);
  color: #fff;
  border: 1px solid rgba(233, 226, 218, 0.2);
  flex: 1;
  min-width: 120px;
  box-shadow: 0 4px 14px rgba(122, 13, 18, 0.35);
}

.cookie-btn-primary:hover {
  background: linear-gradient(180deg, #c81820, #b3131a);
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--bone, #e9e2da);
  border: 1px solid rgba(179, 19, 26, 0.25);
  flex: 1;
  min-width: 120px;
}

.cookie-btn-secondary:hover {
  background: rgba(179, 19, 26, 0.15);
  border-color: var(--blood-bright, #b3131a);
}

.cookie-btn-link {
  background: none;
  border: none;
  color: var(--bone-dim, #93807c);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 6px 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-btn-link:hover {
  color: var(--bone, #e9e2da);
}

/* Panel de configuración interactiva */
.cookie-config-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(179, 19, 26, 0.18);
  animation: fadeIn 0.25s ease;
}

.cookie-config-panel.open {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cookie-option-info {
  flex: 1;
}

.cookie-option-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bone, #e9e2da);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-option-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  background: rgba(179, 19, 26, 0.15);
  border: 1px solid rgba(179, 19, 26, 0.3);
  border-radius: 3px;
  color: var(--blood-bright, #b3131a);
}

.cookie-option-desc {
  font-size: 0.76rem;
  color: var(--bone-dim, #93807c);
  line-height: 1.45;
  margin: 0;
}

/* Interruptores (Switch) */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(179, 19, 26, 0.3);
  border-radius: 22px;
  transition: 0.25s;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--bone, #e9e2da);
  border-radius: 50%;
  transition: 0.25s;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--blood-bright, #b3131a);
  border-color: var(--blood-bright, #b3131a);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background-color: #fff;
}

.cookie-switch input:disabled + .cookie-slider {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 20px 18px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-btn-primary, .cookie-btn-secondary {
    width: 100%;
  }
}

