/* Fuentes auto-alojadas (idénticas a Google Fonts, servidas desde aquapez.com) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   AquaPez — estilos base (HTML/CSS/JS puros, sin frameworks)
   Mobile-first. Paleta y reglas según contrato del proyecto.
   ============================================================ */

:root {
  --bg: #F0F7F7;
  --surface: #FFFFFF;
  --text: #102E35;
  --text-soft: #4E6E75;
  --accent: #0B6B76;
  --accent-dark: #084F58;
  --dark: #0A2228;
  --border: #D3E5E5;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(16, 46, 53, 0.08);
  --shadow-hover: 0 6px 24px rgba(16, 46, 53, 0.14);
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
}

/* ---------- Reset y base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
}

p { margin: 0 0 1em; }

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

/* Foco visible accesible */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(43, 29, 20, 0.05);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 64px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--accent-dark); }
.brand .brand-accent { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.search-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.search-link:hover { background: var(--bg); color: var(--accent-dark); }

#nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}
#nav-toggle:hover { background: var(--bg); }
#nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
#nav-toggle .bar::before,
#nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}
#nav-toggle .bar::before { top: -7px; }
#nav-toggle .bar::after { top: 7px; }

#main-nav {
  display: none;
  flex-basis: 100%;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
#main-nav.open { display: block; }
#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
#main-nav a {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
#main-nav a:hover { background: var(--bg); color: var(--accent-dark); }
#main-nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 600;
  background: var(--bg);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 1.25rem 0 0;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--text-soft); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: #FAF6EF;
  margin-top: 0;
}
.hero .container {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  align-items: center;
}
.hero h1 {
  color: #FFFFFF;
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}
.hero .tagline {
  color: #E9DCC8;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  max-width: 34rem;
}
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
}
.hero-cta:hover { background: var(--accent-dark); color: #FFFFFF; }
.hero-media img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

/* ---------- Secciones ---------- */
.section { padding: 2.5rem 0; }
.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
}
.section-lead {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  max-width: 46rem;
}

/* ---------- Tarjetas ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-link:hover { color: inherit; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}
.card-title { font-size: 1.15rem; margin: 0; color: var(--text); }
.card-excerpt { font-size: 0.93rem; color: var(--text-soft); margin: 0; flex: 1; }
.card-meta { font-size: 0.82rem; color: var(--text-soft); }

/* Tarjetas de categoría (home) */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.category-card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.category-card h3 a { color: var(--text); text-decoration: none; }
.category-card h3 a:hover { color: var(--accent-dark); }
.category-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 0.9rem; }
.category-card .more-link { font-weight: 600; text-decoration: none; }

/* ---------- Contenido de artículo ---------- */
.article-content { max-width: 46rem; }
.article-content h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.article-content h3 { font-size: 1.3rem; margin: 1.75rem 0 0.6rem; }
.article-content p { margin-bottom: 1.1em; }
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.25em;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
  font-style: italic;
}
.article-content blockquote p { margin: 0; }
.article-hero img { border-radius: var(--radius); margin: 1.25rem 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #E9DCC8;
  margin-top: 3rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.site-footer h2, .site-footer h3 {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.site-footer .footer-brand { font-family: var(--font-title); font-size: 1.3rem; color: #FFFFFF; }
.site-footer p { font-size: 0.92rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer a { color: #E9DCC8; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
#open-cookie-settings {
  background: transparent;
  border: 1px solid #6B5B4C;
  color: #E9DCC8;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 0.5rem;
}
#open-cookie-settings:hover { border-color: var(--accent); color: #FFFFFF; }
.footer-legal {
  border-top: 1px solid #3d2c20;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #a8927d;
}

/* ---------- Formularios ---------- */
form { max-width: 34rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(11, 107, 118, 0.25); }
textarea { min-height: 140px; resize: vertical; }
button.btn, .btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
}
button.btn:hover, .btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.form-error { color: #a33a1f; font-size: 0.88rem; margin-top: 0.3rem; }
.form-success {
  background: #eef6ea;
  border: 1px solid #b8d9ae;
  color: #2f5b26;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.form-note { font-size: 0.85rem; color: var(--text-soft); margin-top: 0.75rem; }

/* Newsletter */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.newsletter h2 { font-size: 1.5rem; }
.newsletter p { color: var(--text-soft); }
.newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }

/* ---------- Buscador ---------- */
.search-page { max-width: 44rem; }
#search-results { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.search-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.search-result h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.search-result h3 a { color: var(--text); text-decoration: none; }
.search-result h3 a:hover { color: var(--accent-dark); }
.search-result .card-category { margin-bottom: 0.25rem; display: inline-block; }
.search-result p { color: var(--text-soft); font-size: 0.93rem; margin: 0; }
.search-status { color: var(--text-soft); font-style: italic; }

/* ---------- Placeholders de anuncios (INACTIVOS) ----------
   NUNCA simulan anuncios ni ocupan espacio. Solo visibles en vista previa. */
.ad-slot { display: none; }
body.ads-preview .ad-slot {
  display: block;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 1.5rem auto;
  max-width: 728px;
  font-size: 0.85rem;
}
body.ads-preview .ad-slot::before {
  content: "Espacio publicitario (vista previa) — slot: " attr(data-ad-slot);
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--accent-dark);
}

/* ---------- Banner y modal de cookies ---------- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--dark);
  color: #E9DCC8;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
#cookie-banner[hidden] { display: none; }
#cookie-banner .container {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0;
}
#cookie-banner p { margin: 0; font-size: 0.92rem; }
#cookie-banner a { color: #FFFFFF; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-buttons button {
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.cookie-accept { background: var(--accent); color: #FFFFFF; border: none; }
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-reject { background: transparent; color: #E9DCC8; border: 1px solid #6B5B4C; }
.cookie-reject:hover { border-color: #FFFFFF; color: #FFFFFF; }
.cookie-config { background: transparent; color: #E9DCC8; border: 1px solid #6B5B4C; }
.cookie-config:hover { border-color: #FFFFFF; color: #FFFFFF; }

#cookie-modal { border: none; border-radius: var(--radius); padding: 0; max-width: 34rem; width: calc(100% - 2.5rem); }
#cookie-modal::backdrop { background: rgba(31, 21, 14, 0.6); }
.cookie-modal-inner { padding: 1.75rem; }
.cookie-modal-inner h2 { font-size: 1.4rem; }
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.cookie-category .cookie-desc { font-size: 0.88rem; color: var(--text-soft); margin: 0.15rem 0 0; }
.cookie-category strong { display: block; }

/* ---------- Página de error ---------- */
.error-page { text-align: center; padding: 4rem 0; }
.error-page h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.error-page .error-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero .container { grid-template-columns: 1fr 1fr; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero h1 { font-size: 2.8rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input { flex: 1; }
  #cookie-banner .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  #nav-toggle { display: none; }
  .site-header .container { flex-wrap: nowrap; min-height: 72px; padding-top: 0; padding-bottom: 0; }
  #main-nav { display: block; flex-basis: auto; border-top: none; background: transparent; }
  #main-nav ul {
    flex-direction: row;
    gap: 0.25rem;
    padding: 0;
    align-items: center;
  }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 3.2rem; }
}

/* Logo oficial AquaPez */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { flex: 0 0 auto; display: block; }
.logo-word { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; color: #2A1B12; line-height: 1; white-space: nowrap; }
.logo-word em { font-style: normal; color: #B07C3F; }
@media (max-width: 480px) {
  .logo-word { font-size: 1.2rem; }
  .logo-mark { width: 32px; height: 32px; }
}

/* Tabla de créditos de imágenes */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.credits-table th, .credits-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #e5ddd2; vertical-align: middle; }
.credits-table thead th { background: #2A1B12; color: #F6EFE4; font-weight: 600; }
.credits-table tbody tr:nth-child(even) { background: #faf6ef; }
.credits-table img { border-radius: 6px; display: block; }
.credits-table a { color: #8a5a24; }

/* Índice del artículo */
.toc { background: #faf6ef; border: 1px solid #e5ddd2; border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc-title { font-weight: 700; color: #2A1B12; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin: 0.3rem 0; }
.toc a { color: #8a5a24; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Compartir */
.share { border-top: 1px solid #e5ddd2; margin-top: 2rem; padding-top: 1.25rem; }
.share-title { font-weight: 700; color: #2A1B12; margin: 0 0 0.75rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.share-btn { display: inline-block; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid #d8cbb8; background: #fff; color: #2A1B12; font-size: 0.92rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.share-btn:hover { background: #2A1B12; color: #F6EFE4; border-color: #2A1B12; text-decoration: none; }
