/* =============================
   ESTILOS BASE - WIKI FILOSÓFICA
   ============================= */

   :root {
    --background: #f9f6f1;
    --text: #2b2b2b;
    --accent: #a67c52;         /* marrón cuero viejo */
    --highlight: #c92028;      /* azul profundo */
    --link: #5e81ac;           /* azul filosófico */
    --link-hover: #3b9bd3;
    --font-main: 'Georgia', serif;
    --font-alt: 'Palatino Linotype', serif;
    --max-width: 900px;
  }
  
  body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
  }
  
  /* =============================
     ENCABEZADO
     ============================= */
  .site-header {
    background-color: var(--highlight);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 5px solid var(--accent);
  }
  
  .site-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-family: var(--font-alt);
  }
  
  .site-header .author {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.8;
  }
  
  .site-header nav a {
    color: #ccc;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
    font-size: 0.9rem;
  }
  
  .site-header nav a:hover {
    text-decoration: underline;
    color: #5e81ac;
  }
  
  /* =============================
     CONTENIDO DEL ARTÍCULO
     ============================= */
  main.article-content {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .article-content h2,
  .article-content h3 {
    color: var(--highlight);
    font-family: var(--font-alt);
  }
  
  .article-content p {
    text-align: justify;
  }
  
  .resources ul {
    list-style-type: square;
    margin-left: 1.5rem;
  }
  
  .resources a {
    color: var(--link);
    text-decoration: none;
  }
  
  .resources a:hover {
    color: var(--link-hover);
    text-decoration: underline;
  }
  
  /* =============================
     SECCIÓN DE APORTES DE LECTORES
     ============================= */
  .reader-contributions {
    background-color: #ece8e0;
    padding: 1rem;
    margin-top: 2rem;
    border-left: 5px solid var(--accent);
  }
  
  /* =============================
     PIE DE PÁGINA
     ============================= */
  .site-footer {
    text-align: center;
    font-size: 0.8rem;
    padding: 1rem;
    background-color: #293241;
    color: white;
    margin-top: 3rem;
    border-top: 3px solid var(--accent);
  }
  
  /* =============================
     BOTÓN VOLVER AL INICIO
     ============================= */
  .back-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    margin-top: 1rem;
  }
  
  .back-button:hover {
    background-color: white;
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .back-button:active {
    transform: translateY(0);
  }

  /* =============================
     ENLACES GENERALES
     ============================= */
  a {
    color: var(--link);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
    color: var(--link-hover);
  }
  /* =============================
     Nueva funcionalidad
     ============================= */
     .wiki-button {
      display: inline-block;
      background-color: #293241;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      margin-top: 0.5rem;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }
    
    .wiki-button:hover {
      background-color: var(--highlight);
      color: #fff;
    }
    .wiki-nav {
      margin-top: 1rem;
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      font-size: 0.9rem;
    }
    
    .wiki-nav a {
      background-color: var(--highlight);
      color: white;
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      text-decoration: none;
      transition: background-color 0.3s;
    }
    
    .wiki-nav a:hover {
      background-color: var(--accent);
    }
    
    .wiki-nav a.disabled {
      background-color: #aaa;
      pointer-events: none;
      opacity: 0.6;
    }
  /* =============================
    Logo
     ============================= */
    .logo-box {
      position: absolute;
      top: 1rem;
      right: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .logo-img {
      height: 130px;
      width: auto;
    }
    
    .logo-text {
      font-family: var(--font-alt);
      font-size: 1rem;
      color: white;
      font-weight: bold;
      position: absolute;
      top: 9rem;
      right: 1.5rem;
      display: flex-end;
      align-items: center;
      gap: 0.5rem;
    }
  /* =============================
    Imagen centrada
     ============================= */
    .centered-image {
      text-align: center;
      margin: 2rem 0;
    }
    
    .centered-image img {
      max-width: 100%;
      height: 400px;
      border: 2px solid var(--accent);
      border-radius: 8px;
    }

    .comments-section {
      margin-top: 3rem;
      padding: 1.5rem;
      background-color: #f9f9f3;
      border-left: 4px solid var(--accent);
    }
    
    .comments-section h2 {
      margin-top: 0;
    }
    
    #comment-form textarea {
      width: 100%;
      font-size: 1rem;
      padding: 0.5rem;
      margin-top: 0.5rem;
      margin-bottom: 1rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      resize: vertical;
    }
    
    #comment-form button {
      background-color: var(--accent);
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      cursor: pointer;
      font-weight: bold;
    }
    
    #comment-list {
      list-style-type: disc;
      padding-left: 1.2rem;
      margin-top: 1rem;
    }

  /*============================
  Bibliografia
  =============================*/
  .bibliografia {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #f3f3ed;
    border-left: 4px solid var(--accent);
  }
  
  .bibliografia h2 {
    margin-top: 0;
  }
  
  .bibliografia ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    line-height: 1.6;
  }
  
  /*===========================
    Imagen perfil
    ==========================*/
  .perfiles-contenedor {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      gap: 20px;
      margin-top: 20px;
    }
  
  .perfil {
    text-align: center;
    max-width: 220px;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .perfil:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .perfil img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--accent);
  }
  
  .perfil p {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .perfil .rol {
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
  }