/* estásvivo.site — Estilos Principales (Blanco y Verde Vital) */
:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f0fdf4;
  --card-bg: #ffffff;
  --bone: #0f172a;        /* Texto principal nítido */
  --bone-dim: #475569;    /* Texto secundario slate */
  --blood: #047857;       /* Esmeralda profundo */
  --blood-bright: #059669;/* Verde esmeralda vivo */
  --primary: #059669;
  --primary-bright: #10b981;
  --primary-light: #d1fae5;
  --accent: #34d399;
  --lime: #84cc16;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --border: rgba(16, 185, 129, 0.22);
  --border-subtle: rgba(16, 185, 129, 0.12);
  --shadow-sm: 0 2px 8px rgba(16, 185, 129, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(16, 185, 129, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(5, 150, 105, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--primary-light); color: var(--blood); }

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 55% at 50% 0%, rgba(16, 185, 129, 0.1), transparent 65%);
}

body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: repeating-linear-gradient(0deg, #059669 0, transparent 1px, transparent 2px),
                    repeating-linear-gradient(90deg, #059669 0, transparent 1px, transparent 2px);
  background-size: 4px 4px;
}

a { color: inherit; }
.site-width { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ================= Cabecera ================= */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(16, 185, 129, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover { opacity: 0.9; transform: scale(1.01); }
.logo span { color: var(--primary-bright); font-style: normal; }

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: inline-block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--bone-dim);
  font-weight: 500;
}

nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-bright);
}

/* Botón de Menú Móvil (Hamburguesa) */
.menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 10px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 5px;
  z-index: 25;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.menu-toggle:hover, .menu-toggle:focus-visible {
  border-color: var(--primary);
  background: var(--bg-2);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--bone);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
}

/* Transformación de la hamburguesa a 'X' cuando el menú está abierto */
.menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 80px;
  z-index: 2;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 50% 20%, rgba(16, 185, 129, 0.16), transparent 65%),
              radial-gradient(ellipse 80% 50% at 50% 100%, rgba(240, 253, 244, 0.8), transparent 75%);
}

/* ================= Animación del Horizonte de Vitalidad (Cabecera) ================= */
.vital-horizon-wrap {
  width: min(380px, 85vw);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vital-horizon-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.sun-flare {
  animation: flarePulse 3.5s ease-in-out infinite alternate;
  transform-origin: 190px 25px;
}

@keyframes flarePulse {
  0% { transform: scale(0.85); opacity: 0.65; }
  100% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.5)); }
}

.vital-path-glow {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: vitalFlow 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}

@keyframes vitalFlow {
  0% { stroke-dashoffset: 210; stroke-width: 2.2; }
  100% { stroke-dashoffset: 0; stroke-width: 3.2; }
}

.vital-path-ethereal {
  animation: etherealBreathe 4s ease-in-out infinite alternate;
}

@keyframes etherealBreathe {
  0% { opacity: 0.3; transform: scaleY(0.9); transform-origin: 190px 25px; }
  100% { opacity: 0.85; transform: scaleY(1.15); transform-origin: 190px 25px; }
}

.sun-rays-spin {
  transform-origin: 190px 25px;
  animation: rotateSun 22s linear infinite;
}

@keyframes rotateSun {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sun-nucleus {
  animation: nucleusGlow 2.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.85));
}

@keyframes nucleusGlow {
  0% { transform: scale(0.9); transform-origin: 190px 25px; }
  100% { transform: scale(1.2); transform-origin: 190px 25px; }
}

.star-sparkle {
  animation: sparkleTwinkle 3s ease-in-out infinite alternate;
}

.star-1 { animation-delay: 0.2s; }
.star-2 { animation-delay: 1.2s; }
.star-dot-1 { animation-delay: 0.6s; }
.star-dot-2 { animation-delay: 1.8s; }

@keyframes sparkleTwinkle {
  0% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.95)); }
  100% { opacity: 0.25; transform: scale(0.75); }
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7.4vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--bone);
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary-bright);
  text-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.hero-sub {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--bone-dim);
  max-width: 48ch;
  line-height: 1.6;
  margin: 0 0 36px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary) 100%);
  padding: 17px 34px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.cta:hover {
  background: linear-gradient(135deg, #34d399 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.45);
}

.cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.cta:hover svg {
  transform: translateX(4px);
}

.hero-foot {
  margin-top: 36px;
  font-size: 0.82rem;
  color: var(--bone-dim);
  letter-spacing: 0.02em;
}

/* ================= Manifiesto ================= */
.manifesto {
  max-width: 680px;
  margin: 0 auto;
  padding: 9vh 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.manifesto p {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.65;
  margin: 0;
  color: var(--bone);
}

.manifesto p em {
  color: var(--primary);
  font-style: italic;
  font-weight: 400;
}

/* ================= Sección: Diario / Crónicas del Porvenir ================= */
.diario {
  padding: 6vh 24px 12vh;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.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", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--bone);
  margin: 0;
}

.diario-head a {
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.diario-head a:hover {
  color: var(--primary-bright);
}

.articles {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

article {
  background: var(--card-bg);
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

article:hover {
  transform: translateY(-3px);
  border-color: var(--primary-bright);
  box-shadow: var(--shadow-md);
}

.art-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

article h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.24rem;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--bone);
}

.art-meta {
  font-size: 0.78rem;
  color: var(--bone-dim);
  margin-bottom: 14px;
}

article p.excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--bone-dim);
  margin: 0;
}

/* ================= Footer ================= */
.site-footer {
  background: #064e3b;
  color: #ecfdf5;
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
  padding: 68px 0 32px;
  margin-top: auto;
}

.site-footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: radial-gradient(circle, #34d399 0%, transparent 80%);
  opacity: 0.8;
}

.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(255, 255, 255, 0.12);
}

.footer-col-brand .logo {
  color: #ffffff;
}

.footer-col-brand .logo span {
  color: #34d399;
}

.footer-col-brand .footer-quote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #a7f3d0;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 38ch;
}

.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: #ecfdf5;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.footer-col h4 {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #a7f3d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.btn-cookie-settings {
  background: none;
  border: none;
  color: #a7f3d0;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
  transition: color 0.2s ease;
}

.btn-cookie-settings:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  font-size: 0.82rem;
  color: #6ee7b7;
  flex-wrap: wrap;
}

.disclaimer-text {
  max-width: 65ch;
  line-height: 1.55;
}

/* Banner Proyecto Hermano en el Footer */
.sister-project-banner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 36px 0 28px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(4, 47, 36, 0.75) 0%, rgba(6, 78, 59, 0.55) 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sister-project-banner:hover {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.sister-project-banner .sister-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.sister-project-banner .sister-content {
  flex: 1 1 auto;
  min-width: 0;
}

.sister-project-banner .sister-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.sister-project-banner .sister-title {
  font-family: "Fraunces", serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sister-project-banner .sister-desc {
  font-size: 0.86rem;
  color: #a7f3d0;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sister-project-banner .sister-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sister-project-banner .sister-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  color: #ffffff;
}

/* Optimización móvil y tablet (<= 820px) */
@media (max-width: 820px) {
  .sister-project-banner {
    margin: 28px 0 20px;
    padding: 18px 16px;
    border-radius: 12px;
  }

  .sister-project-banner .sister-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .sister-project-banner .sister-content {
    width: 100%;
    text-align: left;
  }

  .sister-project-banner .sister-badge {
    margin-bottom: 6px;
  }

  .sister-project-banner .sister-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .sister-project-banner .sister-desc {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .sister-project-banner .sister-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-size: 0.92rem;
    white-space: normal;
    text-align: center;
  }
}

/* ================= Páginas Legales ================= */
.legal-page {
  padding: 50px 0 80px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
}

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 10px;
  color: var(--bone);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.legal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.legal-body h2 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--bone);
  margin: 32px 0 12px;
}

.legal-body h3 {
  font-family: "Fraunces", 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(--primary); text-decoration: underline; }

.legal-table-wrap { overflow-x: auto; margin: 24px 0; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.legal-table th, .legal-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.legal-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* =======================================================
   SECCIÓN: ÚLTIMAS PROFECÍAS & CONTADOR GLOBAL EN VIVO
   ======================================================= */
.ultimas-esquelas-section {
  padding: 80px 0 88px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 50%, #ffffff 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: 36px;
  flex-wrap: wrap;
}

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

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

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

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

/* Badge Contador Global */
.esquelas-counter-badge {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.counter-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 14px var(--primary-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.8); }
}

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

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

.counter-number {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.05;
  margin: 3px 0 2px;
  letter-spacing: 0.02em;
  transition: all 0.35s ease;
}

.counter-number.increment-pulse {
  color: var(--lime);
  transform: scale(1.08);
  text-shadow: 0 0 16px rgba(132, 204, 22, 0.6);
}

.counter-sub {
  font-size: 0.76rem;
  color: var(--bone-dim);
}

/* Tabla de Futuros */
.esquelas-table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.esquelas-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.esquelas-table th {
  padding: 16px 20px;
  background: #f0fdf4;
  color: var(--primary-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.esquelas-table td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
  vertical-align: middle;
}

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

.esquela-row:hover {
  background: rgba(16, 185, 129, 0.06);
}

.esquela-row.newest-row {
  background: rgba(16, 185, 129, 0.03);
}

@keyframes esquelaEntradaAnim {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
    background: rgba(52, 211, 153, 0.35);
  }
  30% {
    opacity: 1;
    background: rgba(52, 211, 153, 0.18);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: rgba(16, 185, 129, 0.03);
  }
}

.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: 12px;
  font-weight: 600;
  color: var(--bone);
  white-space: nowrap;
}

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

.badge-real-esquela {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-bright);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.tiempo-pill {
  display: inline-block;
  background: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.esquela-row.row-fade-1 { opacity: 0.78; }
.esquela-row.row-fade-2 { opacity: 0.55; }
.esquela-row.row-fade-3 { opacity: 0.32; }

.esquela-row.row-fade-1:hover,
.esquela-row.row-fade-2:hover,
.esquela-row.row-fade-3:hover {
  opacity: 1;
  background: rgba(16, 185, 129, 0.08);
}

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

.btn-ver-esquela {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--primary-dark);
  border-radius: 6px;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-ver-esquela:hover {
  background: var(--primary-bright);
  color: #ffffff;
  border-color: var(--primary-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.esquelas-section-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--bone-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.btn-consultar-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary) 100%);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-consultar-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ================================================================
   SECCIÓN: EFEMÉRIDES DEL PORVENIR (Hitos y profecías del mañana)
   ================================================================ */
.efemerides-section {
  padding: 76px 0 84px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.efemerides-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 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: 38px;
  flex-wrap: wrap;
}

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

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

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

.efemerides-date-highlight {
  color: var(--primary);
  font-weight: 700;
}

/* Badge de Calendario del Porvenir */
.efemerides-calendar-badge {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 96px;
}

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

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

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

/* Cuadrícula de Tarjetas de Efemérides */
.efemerides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.efemerides-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.efemerides-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--primary-bright), var(--accent));
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.efemerides-card:hover {
  border-color: var(--primary-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.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: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 999px;
}

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

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

.efemerides-card-age .sep-dot {
  color: rgba(71, 85, 105, 0.4);
}

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

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

.efemerides-card-profession {
  font-size: 0.88rem;
  color: var(--primary);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.efemerides-causa-box {
  background: #f0fdf4;
  border-left: 3px solid var(--primary-bright);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.causa-tag {
  color: var(--primary-dark);
  font-weight: 700;
  margin-right: 6px;
}

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

.efemerides-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 16px;
}

.efemerides-card-quote {
  margin: auto 0 16px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid var(--primary-bright);
  border-radius: 0 6px 6px 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--bone);
}

.quote-mark {
  color: var(--primary-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(16, 185, 129, 0.12);
  font-size: 0.78rem;
  color: var(--bone-dim);
  flex-wrap: wrap;
  gap: 8px;
}

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

.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: 10px;
}

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

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

.btn-efemerides-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  transition: all 0.2s ease;
}

.btn-efemerides-cta:hover {
  background: var(--primary-bright);
  color: #ffffff;
  border-color: var(--primary-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* ================= Responsive ================= */
@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)}
  
  /* Botón hamburguesa visible */
  .menu-toggle {
    display: flex;
  }

  /* Contenedor del menú desplegable */
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(6, 78, 59, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s;
    z-index: 100;
  }

  /* Estado abierto del menú */
  header.nav-open nav,
  nav.is-open {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    margin: 0;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bone);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  nav ul li a:hover,
  nav ul li a:active {
    color: var(--primary);
    padding-left: 14px;
  }

  .hero{min-height:520px;padding:48px 16px 56px}
  .articles{grid-template-columns:1fr}
  .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;
  }
  .efemerides-grid {
    grid-template-columns: 1fr;
  }
  .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;
  }
}
@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){
  .vital-path-glow, .sun-flare, .sun-rays-spin, .sun-nucleus, .star-sparkle, .vital-path-ethereal {
    animation: none;
    stroke-dashoffset: 0;
  }
}
