/* =========================
   Variables base (papel / tinta)
========================= */

:root {
  --paper: #fdfcf8;
  --ink: #1a1a1a;
  --ink-soft: #4b4b4b;
  --border: #dedbd2;
  --link: #2f2f2f;
  --link-hover: #000;
  --ui: #f3f2ee;
}

/* =========================
   Reset & base
========================= */

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  max-width: 820px;
  padding: 2.2rem 1.2rem;
  margin-inline: auto;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;

  color: var(--ink);
  line-height: 1.75;
}

/* =========================
   Typography
========================= */

h1, h2, h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1rem;
  margin-top: 1.8rem;
}

/* =========================
   Meta / small text
========================= */

header p,
.legal, .source {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* =========================
   Links (discretos)
========================= */

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 0.08em;
}

/* =========================
   Sections & boxes
========================= */

section {
  margin-top: 2.5rem;
}

.box {
  background: var(--ui);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  margin-top: 2.5rem;
}

/* =========================
   Download
========================= */

.download {
  font-weight: 600;
  font-size: 0.95rem;
}

/* =========================
   Article (texto largo)
========================= */

article {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  margin-top: 1.8rem;
}

article p {
  margin: 1.1rem 0;
  text-align: justify;
  hyphens: auto;
}

/* =========================
   Tabs (PDF / Video)
========================= */

.tabs {
  display: flex;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tabs button {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.2rem 8px;
  border-radius: 3px;
  background: #DDD;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.tabs button:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tab-content iframe {
  border: 1px solid var(--border);
  margin-top: 1rem;
}

/* =========================
   Ads (invisibles visualmente)
========================= */

.box:has(> iframe) {
  background: var(--paper);
}

/* =========================
   Footer
========================= */

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

/* =========================
   Responsive
========================= */

@media (max-width: 600px) {
  body {
    padding: 1.6rem 1rem;
  }

  article {
    font-size: 1rem;
  }
}
/* =========================
   Header (no sticky, académico)
========================= */

.site-header {
  display: flex;
  margin-bottom: 0rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.site-title a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-title a:hover {
  text-decoration: underline;
}

.site-nav a {
  margin-left: 1.2rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
}

/* =========================
   Responsive header
========================= */

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}

/* Breadcrumb */
nav[aria-label="breadcrumb"] {
  font-size: 0.85rem;
  margin: 1rem 0;
}

nav[aria-label="breadcrumb"] ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

nav[aria-label="breadcrumb"] li {
  display: flex;
  align-items: center;
}

nav[aria-label="breadcrumb"] li + li::before {
  content: "›"; /* Separador */
  margin: 0 0.4rem;
  color: #888;
}

nav[aria-label="breadcrumb"] a {
  text-decoration: none;
  color: #1a4ed8; /* discreto pero visible */
  transition: color 0.2s;
}

nav[aria-label="breadcrumb"] a:hover {
  color: #0d2a99;
}

nav[aria-label="breadcrumb"] span {
  color: #555; /* último elemento (activo) */
}

.author-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0px !important;
  
}
.author-info{
  align-self: start;
}
.author-info h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.2;
}

.author-meta {
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.95rem;
}
.author-image {
  margin:0px;
}
.author-image img {
  max-width: 120px;
  height: auto;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 600px) {
  .author-header {
    flex-direction: column-reverse;
    text-align: center;
  }

  .author-image img {
    max-width: 120px;
  }
}
.bio {
  margin-top: 0px;
}
.bio h2 {
  margin-top: 0px;
}

.btn-pdf {
  display: inline-block;
  padding: 12px 20px;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-pdf:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-pdf:active {
  transform: translateY(0);
}

/* =========================
   Buscador
    /* Header */
    .site-header {
      justify-content: space-between;
      align-items: center;
      padding: 1rem 0;
      border-bottom: 1px solid #ddd;
      background: #fff;
    }
    .site-title a {
      font-weight: 700;
      font-size: 1.5rem;
      color: #111;
    }
    .site-nav a { margin-left: 1rem; font-weight: 500; font-size: 0.95rem; color: #333; }

    /* Buscador */
    .search-box {
      margin: 2rem 0;
    }
    .search-box input[type="text"] {
      width: 100%;
      padding: 0.7rem 1rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    .search-results {
      margin-top: 1rem;
      border-top: 1px solid #eee;
    }
    .search-results ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .search-results li {
      padding: 0.8rem 0;
      border-bottom: 1px solid #eee;
    }
    .search-results li a {
      font-weight: 600;
      color: #1a4ed8;
    }
    .search-results li a:hover {
      text-decoration: underline;
    }
    .search-results li .meta {
      font-size: 0.85rem;
      color: #555;
    }

  span[itemprop="name"]:not([aria-current="page"]){
  /* estilos aquí */
  text-decoration: underline;
}
/* indice buscador */

.indice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.indice-paginacion button {
  background: none;
  border: 1px solid #ccc;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.indice-paginacion button.active {
  font-weight: bold;
  border-color: #000;
}

.obra-lista li {
  margin-bottom: 0.4rem;
}

.obra-lista .autor {
  color: #666;
  font-size: 0.9em;
  margin-left: 0.4rem;
}
