    :root {
      --hermitage-bg: #FDF9F0;
      --hermitage-sidebar: #1E2F25;
      --hermitage-surface: #FFFFFF;
      --hermitage-surface-hover: #F8F4EA;
      --hermitage-border: #DCCFAB;
      --hermitage-primary: #2F5E3A;
      --hermitage-primary-light: #4A7C59;
      --hermitage-gold: #C9A03D;
      --hermitage-gold-light: #E2C28B;
      --hermitage-text: #2C2A24;
      --hermitage-text-secondary: #5C5A4C;
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { width: 100%; height: 100%; background-color: var(--hermitage-bg); font-family: var(--font-sans); color: var(--hermitage-text); scroll-behavior: smooth; }

    .app-wrapper { display: flex; width: 100%; min-height: 100vh; }
    
    .sidebar-hermitage {
      width: 25%;
      background-color: var(--hermitage-sidebar);
      border-right: 1px solid rgba(201,160,61,0.3);
      display: flex;
      flex-direction: column;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      padding: 2rem 1.5rem;
    }
    
    .main-hermitage {
      width: 75%;
      background-color: var(--hermitage-bg);
      padding: 2rem 10% 3rem 10%;
    }
    
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: #E6DDC8; }
    ::-webkit-scrollbar-thumb { background: var(--hermitage-gold); border-radius: 10px; }
    
    .logo-hermitage {
      font-size: 1.6rem;
      font-weight: 700;
      background: linear-gradient(135deg, #E2C28B, #C9A03D, #2F5E3A);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      margin-bottom: 2rem;
    }
    
    .toc-container { flex: 1; }
    .toc-title {
      color: var(--hermitage-gold-light);
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 1.2rem;
      font-weight: 600;
    }
    .toc-list { list-style: none; padding-left: 0; }
    .toc-list li { margin-bottom: 0.5rem; }
    .toc-h2 { margin-left: 0; font-weight: 600; }
    .toc-h2 a {
      color: #DCD4B8;
      text-decoration: none;
      font-size: 0.85rem;
      display: block;
      padding: 6px 0;
      transition: 0.2s;
      border-left: 2px solid transparent;
      padding-left: 10px;
    }
    .toc-h2 a:hover { color: var(--hermitage-gold-light); border-left-color: var(--hermitage-gold); }
    .toc-h3 { margin-left: 1.2rem; }
    .toc-h3 a {
      color: #B8AE8A;
      text-decoration: none;
      font-size: 0.75rem;
      display: block;
      padding: 4px 0;
      transition: 0.2s;
      border-left: 2px solid transparent;
      padding-left: 10px;
    }
    .toc-h3 a:hover { color: var(--hermitage-gold-light); border-left-color: var(--hermitage-gold); }
    .toc-active { color: var(--hermitage-gold) !important; border-left-color: var(--hermitage-gold) !important; }
    
    .section-title-hermitage {
      font-size: 2.2rem;
      font-weight: 700;
      background: linear-gradient(125deg, #2F5E3A, #C9A03D);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      margin-bottom: 1rem;
    }
    .section-sub {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--hermitage-gold);
      margin-bottom: 0.5rem;
    }
    .card-hermitage, .biografia-card-hermitage {
      background: var(--hermitage-surface);
      border: 1px solid var(--hermitage-border);
      border-radius: 24px;
      padding: 1.5rem;
      transition: 0.2s;
    }
    .card-hermitage:hover, .biografia-card-hermitage:hover {
      border-color: var(--hermitage-gold);
      transform: translateY(-3px);
    }
    .critical-note {
      background: #F8F4EA;
      border-left: 4px solid var(--hermitage-gold);
      padding: 1rem 1.5rem;
      margin: 1.5rem 0;
      font-style: italic;
      border-radius: 8px;
    }
    h2 { scroll-margin-top: 80px; font-weight: 700; margin-top: 3rem; margin-bottom: 1rem; color: #2F5E3A; }
    h3 { scroll-margin-top: 80px; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.8rem; color: #C9A03D; }
    hr { background-color: var(--hermitage-border); opacity: 0.4; }
    .btnSubir {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: #1e5c3b;
      color: white;
      border: none;
      border-radius: 60px;
      padding: 0.6rem 1.2rem;
      font-weight: bold;
      z-index: 1000;
      transition: 0.2s;
    }
    .btnSubir:hover { background: #0f3a24; transform: translateY(-3px);}
    @media (max-width: 768px) {
      .app-wrapper { flex-direction: column; }
      .sidebar-hermitage { width: 100%; height: auto; position: relative; padding: 1rem; }
      .main-hermitage { width: 100%; padding: 1.5rem; }
    }
	
	/* Optimización de interlineado para párrafos */
.main-hermitage p {
  line-height: 1.75; /* Mejora la legibilidad vs el 1.5 estándar */
  margin-bottom: 1.25rem; /* Espaciado consistente entre párrafos */
}

/* Para textos más largos en cards o biografías */
.card-hermitage p,
.biografia-card-hermitage p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Para notas críticas o citas */
.critical-note p {
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

/* Ajuste responsivo para móviles */
@media (max-width: 768px) {
  .main-hermitage p {
    line-height: 1.65; /* Ligeramente más cerrado en móvil */
    margin-bottom: 1rem;
  }
}

/* Estilos adicionales para la imagen */
    .imagen-campesinos {
        display: flex;
        justify-content: center;
        margin: 2rem 0 2.5rem 0;
    }
    
    .imagen-campesinos img {
        width: 60%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .imagen-campesinos img:hover {
        transform: scale(1.01);
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    }
    
    /* Responsive para móviles */
    @media (max-width: 768px) {
        .imagen-campesinos img {
            width: 90%;
        }
    }