/* ==========================================================================
   REVISTA ÍCONE - PÁGINAS INTERNAS (ARTIGO & CATEGORIA)
   ========================================================================== */

/* --------------------------------------------------------------------------
   BARRA DE PROGRESSO DE LEITURA (ARTIGO)
   -------------------------------------------------------------------------- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 100%);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   TEMAS DE LEITURA ACESSÍVEL (ARTIGO)
   -------------------------------------------------------------------------- */
body[data-reading-theme="dark"] {
  background: #141412 !important;
  color: #e5e2da !important;
}

body[data-reading-theme="dark"] .site-header {
  background: #191816;
  border-bottom-color: #333;
}

body[data-reading-theme="dark"] .site-header.is-sticky {
  background: rgba(25, 24, 22, 0.94);
}

body[data-reading-theme="dark"] .primary-nav button,
body[data-reading-theme="dark"] .primary-nav a,
body[data-reading-theme="dark"] .menu-btn,
body[data-reading-theme="dark"] .brand small {
  color: #e5e2da;
}

body[data-reading-theme="dark"] .menu-btn {
  border-color: #555;
}

body[data-reading-theme="dark"] .menu-btn-lines span {
  background: #e5e2da;
}

body[data-reading-theme="dark"] .article-deck {
  color: #b0aca2;
}

body[data-reading-theme="dark"] .article-body {
  color: #dedad0;
}

body[data-reading-theme="dark"] .author-box {
  background: #1e1d1a;
  border: 1px solid #333;
  color: #ccc;
}

body[data-reading-theme="dark"] .reading-toolbar {
  background: #1e1d1a;
  border-color: #383733;
}

body[data-reading-theme="dark"] .reading-tool-btn {
  background: #2a2925;
  color: #ddd;
  border-color: #444;
}

/* Tema Sépia */
body[data-reading-theme="sepia"] {
  background: #f4ecd8 !important;
  color: #342e25 !important;
}

body[data-reading-theme="sepia"] .site-header {
  background: #ebe0c8;
}

body[data-reading-theme="sepia"] .author-box {
  background: #eae0c7;
}

body[data-reading-theme="sepia"] .reading-toolbar {
  background: #ebe0c8;
}

/* --------------------------------------------------------------------------
   FERRAMENTAS DE LEITURA (TOOLBAR: A- / A+ & TEMAS)
   -------------------------------------------------------------------------- */
.reading-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 30px;
  width: fit-content;
  margin: 28px auto 0;
  box-shadow: var(--shadow-sm);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-right: 4px;
}

.reading-tool-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reading-tool-btn:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.reading-tool-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.reading-tool-btn--theme {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
}

.theme-btn--light {
  background: #f6f2e8;
}

.theme-btn--sepia {
  background: #f4ecd8;
}

.theme-btn--dark {
  background: #141412;
  color: #fff;
}

/* --------------------------------------------------------------------------
   HEADER COMPACTO (PÁGINAS INTERNAS)
   -------------------------------------------------------------------------- */
.page-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.compact-header {
  height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.back-home {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-home:hover {
  color: var(--orange);
}

.compact-brand {
  font: 800 42px/0.85 var(--serif);
  letter-spacing: -0.05em;
}

.compact-brand span {
  color: var(--orange);
}

.page-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.page-actions a {
  padding: 9px 16px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 2px;
}

.page-actions a:first-child {
  background: var(--gold);
  border-color: var(--gold);
}

.page-actions a:first-child:hover {
  background: var(--gold-hover);
}

.page-nav {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-nav a.active, .page-nav a:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   PÁGINA DE CATEGORIA (HERO, DESTAQUE, FITROS & ARQUIVO)
   -------------------------------------------------------------------------- */
.category-hero {
  padding: 70px 0 45px;
}

.category-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.category-label::before {
  content: '';
  width: 38px;
  height: 8px;
  background: var(--gold);
}

.category-hero h1 {
  font: 800 clamp(54px, 8.5vw, 110px)/0.85 var(--serif);
  letter-spacing: -0.06em;
  margin: 20px 0;
}

.category-hero > p {
  max-width: 680px;
  font: italic 21px/1.45 var(--serif);
  color: var(--muted);
}

.category-feature {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.category-feature img {
  height: 540px;
  transition: transform 0.5s var(--ease-smooth);
}

.category-feature:hover img {
  transform: scale(1.02);
}

.category-feature > div {
  padding: 50px;
  align-self: end;
}

.category-feature .eyebrow, .listing-card .eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.category-feature h2 {
  font: 800 44px/1.05 var(--serif);
  margin: 12px 0 16px;
  color: #fff;
}

.category-feature p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 22px;
}

.category-feature .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.category-feature .read-more:hover {
  color: #fff;
}

.category-strip {
  padding: 0 0 55px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--ink);
}

.mini-story {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.25s var(--ease-smooth);
}

.mini-story:hover {
  transform: translateY(-3px);
}

.mini-story img {
  flex: 0 0 85px;
  width: 85px;
  height: 85px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--ease-smooth), filter 0.3s ease;
}

.mini-story:hover img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.mini-story > div {
  flex: 1;
  min-width: 0;
}

.mini-story span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 4px;
}

.mini-story h3 {
  font: 700 17px/1.25 var(--serif);
  margin: 0;
}

.mini-story h3 a:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   ABAS DE FILTRAGEM DINÂMICA (RUBRICAS)
   -------------------------------------------------------------------------- */
.archive {
  padding: 75px 0;
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.archive-head h2 {
  font: 800 40px/1 var(--serif);
  margin: 0;
}

/* Navegação de Abas/Pills de Rubricas */
.rubrica-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 12px;
}

.rubrica-tab {
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rubrica-tab:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translateY(-1px);
}

.rubrica-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Lista de Artigos e Animação de Filtro */
.listing-card {
  display: grid;
  grid-template-columns: 310px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.listing-card.is-hidden {
  display: none;
}

.listing-card:hover {
  transform: translateX(4px);
}

.listing-card img {
  height: 190px;
  border-radius: 2px;
}

.listing-card h3 {
  font: 700 28px/1.12 var(--serif);
  margin: 8px 0;
}

.listing-card h3 a:hover {
  color: var(--orange);
}

.listing-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.listing-card time {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  align-self: start;
}

/* Botão Carregar Mais com Spinner */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.load-more-btn {
  border: 2px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.load-more-btn.is-loading span {
  opacity: 0.5;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.6s linear infinite;
}

.load-more-btn.is-loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   PÁGINA DO ARTIGO (LEITURA IMERSIVA)
   -------------------------------------------------------------------------- */
.article-head {
  max-width: 1020px;
  margin: 0 auto;
  padding: 70px 24px 40px;
  text-align: center;
}

.article-head .eyebrow {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.article-head h1 {
  font: 800 clamp(42px, 6.5vw, 84px)/0.96 var(--serif);
  letter-spacing: -0.045em;
  margin: 18px 0;
}

.article-deck {
  max-width: 760px;
  margin: 0 auto;
  font: italic 22px/1.45 var(--serif);
  color: var(--muted);
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.article-hero-image {
  width: min(calc(100% - 48px), 1400px);
  height: min(70vw, 720px);
  margin: auto;
  border-radius: 3px;
  cursor: zoom-in;
  transition: opacity 0.25s ease;
}

.article-hero-image:hover {
  opacity: 0.96;
}

.article-layout {
  width: min(calc(100% - 48px), 940px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px minmax(0, 720px);
  gap: 45px;
}

/* Coluna de Partilha com SVGs Oficiais */
.share-column {
  position: relative;
}

.share-sticky {
  position: sticky;
  top: 90px;
}

.share-sticky > span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  display: block;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
  position: relative;
}

.share-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn--wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.share-btn--x:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.share-btn--fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.share-btn--li:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}

.share-btn--copy:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* Tooltip de Feedback ao Copiar Link */
.share-tooltip {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.share-tooltip.show {
  opacity: 1;
}

/* Corpo do Artigo */
.article-body {
  font: 19px/1.8 Georgia, serif;
  font-size: var(--article-body-font-size, 19px);
  transition: font-size 0.2s ease;
}

.article-body .lead::first-letter {
  float: left;
  font: 800 78px/0.8 var(--serif);
  padding: 8px 10px 0 0;
  color: var(--orange);
}

.article-body h2 {
  font: 800 36px/1.1 var(--serif);
  margin: 50px 0 18px;
}

.article-body blockquote {
  font: italic 28px/1.35 var(--serif);
  border-left: 6px solid var(--gold);
  background: rgba(240, 184, 0, 0.08);
  margin: 45px 0;
  padding: 18px 24px;
  border-radius: 0 4px 4px 0;
  position: relative;
}

.article-body blockquote::before {
  content: '“';
  font-size: 60px;
  line-height: 0;
  color: var(--orange);
  position: absolute;
  left: 8px;
  top: 24px;
}

.article-body figure {
  margin: 45px -60px;
  cursor: zoom-in;
}

.article-body figure img {
  height: 480px;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.article-body figure:hover img {
  transform: scale(1.01);
}

.article-body figcaption {
  font: 12px/1.5 var(--sans);
  color: var(--muted);
  margin-top: 10px;
}

.author-box {
  background: var(--paper-card, #ede6d8);
  border: 1px solid var(--line, #e2e8f0);
  border-left: 4px solid var(--gold, #f0b800);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-family: var(--sans);
}

.author-box img,
.author-box .author-box-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--paper, #fff);
}

.author-box-info {
  flex: 1;
}

.author-box h3 {
  font-family: var(--serif) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 4px !important;
  color: var(--ink);
}

.author-box p {
  margin: 0 !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--muted);
}

/* Seção de Histórias Relacionadas */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line, #e2e8f0);
  font-family: var(--sans);
}

.related-section h3 {
  font-family: var(--serif) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  color: var(--ink);
  margin: 0 0 20px 0 !important;
}

.related-section .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.related-section .story-card {
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}

.related-section .story-card .card-image {
  overflow: hidden;
  border-radius: 4px;
  display: block;
}

.related-section .story-card .card-image img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-smooth);
}

.related-section .story-card:hover .card-image img {
  transform: scale(1.05);
}

.related-section .story-card span {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold, #d97706);
  margin: 10px 0 4px;
}

.related-section .story-card h4 {
  font-family: var(--serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  margin: 4px 0 0 0 !important;
}

.related-section .story-card h4 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-section .story-card h4 a:hover {
  color: var(--orange, #f24b2f);
}

/* Botão Voltar às Histórias */
.article-back-nav {
  margin: 48px 0 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #e2e8f0);
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: var(--paper-card, #ede6d8);
  color: var(--ink, #111);
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 30px;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.back-link-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.back-link-btn svg {
  transition: transform 0.25s ease;
}

.back-link-btn:hover svg {
  transform: translateX(-3px);
}

/* Artigos Relacionados */
.related {
  background: var(--ink);
  color: #fff;
  padding: 75px 0;
}

.related h2 {
  font: 800 40px var(--serif);
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.related article {
  transition: transform 0.2s ease;
}

.related article:hover {
  transform: translateY(-4px);
}

.related img {
  height: 230px;
  border-radius: 2px;
}

.related span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 14px;
}

.related h3 {
  font: 700 22px/1.15 var(--serif);
  margin: 8px 0 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL PARA FOTOGRAFIAS
   -------------------------------------------------------------------------- */
.lightbox-modal {
  border: 0;
  padding: 0;
  background: transparent;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  display: grid;
  place-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 88vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: var(--shadow-float);
}

.lightbox-caption {
  color: #ddd;
  font-size: 13px;
  font-family: var(--sans);
  text-align: center;
  margin-top: 14px;
  max-width: 600px;
}

.lightbox-close {
  position: absolute;
  right: -20px;
  top: -45px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  background: var(--orange);
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE DAS PÁGINAS INTERNAS
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .compact-header {
    grid-template-columns: 1fr auto;
  }
  .back-home {
    display: none;
  }
  .compact-brand {
    justify-self: start;
  }
  .page-actions {
    grid-column: 2;
  }
  .page-actions a:first-child {
    display: none;
  }
  .page-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 16px;
  }

  .category-hero {
    padding-top: 50px;
  }
  .category-feature {
    display: block;
  }
  .category-feature img {
    height: 380px;
  }
  .category-feature > div {
    padding: 30px;
  }
  .category-feature h2 {
    font-size: 34px;
  }

  .category-strip {
    display: flex;
    overflow-x: auto;
  }
  .mini-story {
    min-width: 78vw;
  }

  .listing-card {
    grid-template-columns: 130px 1fr;
    gap: 18px;
  }
  .listing-card img {
    height: 110px;
  }
  .listing-card h3 {
    font-size: 22px;
  }
  .listing-card p, .listing-card time {
    display: none;
  }

  .article-head {
    padding-top: 50px;
  }
  .article-deck {
    font-size: 18px;
  }
  .article-hero-image {
    width: 100%;
    height: 60vw;
    min-height: 300px;
  }
  .article-layout {
    width: min(calc(100% - 30px), 720px);
    display: block;
    margin: 0 auto;
  }

  .share-sticky {
    position: static;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
  }
  .share-buttons {
    flex-direction: row;
    margin: 0;
  }

  .article-body figure {
    margin: 35px 0;
  }
  .article-body figure img {
    height: 60vw;
  }

  .related-grid {
    display: flex;
    overflow-x: auto;
  }
  .related article {
    min-width: 78vw;
  }
}

/* --------------------------------------------------------------------------
   PÁGINAS INSTITUCIONAIS (SOBRE, CONTACTO, TERMOS, PRIVACIDADE)
   -------------------------------------------------------------------------- */
.pagina-institucional {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.institucional-hero {
  max-width: 860px;
  margin: 0 auto 50px;
  text-align: center;
}

.institucional-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent, #d9531e);
  margin-bottom: 12px;
}

.institucional-title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark, #111);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.institucional-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted, #666);
  margin: 0 0 20px;
}

.institucional-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.institucional-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper-card, #fff);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 40px 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.institucional-editorial-content {
  font-size: 17px;
  line-height: 1.8;
  color: #2b2b2b;
}

.institucional-editorial-content p.lead {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--dark, #111);
  border-left: 3px solid var(--accent, #d9531e);
  padding-left: 18px;
  margin-bottom: 28px;
}

.institucional-editorial-content h2 {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark, #111);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.institucional-editorial-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.institucional-editorial-content ul {
  padding-left: 20px;
  margin: 16px 0 24px;
}

.institucional-editorial-content li {
  margin-bottom: 10px;
}

.institucional-editorial-content blockquote {
  background: rgba(0,0,0,0.03);
  border-left: 4px solid var(--dark, #111);
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  font-size: 18px;
}

/* Layout Específico de Contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

.contacto-info-card {
  background: var(--paper-card, #fff);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.contacto-info-block {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contacto-info-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contacto-info-block h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark, #111);
  margin: 0 0 10px;
}

.contacto-subtext {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
}

.contacto-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-lista li {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.contacto-lista li strong {
  display: block;
  color: #333;
}

.contacto-lista li a {
  color: var(--accent, #d9531e);
  text-decoration: none;
  font-weight: 600;
}

.contacto-lista li a:hover {
  text-decoration: underline;
}

.contacto-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.contacto-socials a {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

.contacto-socials a:hover {
  background: var(--dark, #111);
  color: #fff;
  border-color: var(--dark, #111);
}

/* Card do Formulário de Contacto */
.contacto-card {
  background: var(--paper-card, #fff);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 22px rgba(0,0,0,0.04);
}

.contacto-card h2 {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark, #111);
  margin: 0 0 8px;
}

.contacto-form-intro {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contacto-form .form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contacto-form .form-group {
  margin-bottom: 18px;
}

.contacto-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444;
  margin-bottom: 6px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fdfdfd;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--accent, #d9531e);
  box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.15);
  background: #fff;
}

.btn-contacto-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark, #111);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-contacto-submit:hover {
  background: var(--accent, #d9531e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 83, 30, 0.3);
}

.contacto-alert {
  margin-bottom: 20px;
}

.alert-box {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.alert-box.alert-success {
  background: #e6f9f0;
  color: #0d8a55;
  border: 1px solid #b7eed4;
}

.alert-box.alert-error {
  background: #fef0f0;
  color: #d32f2f;
  border: 1px solid #fed2d2;
}

@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .contacto-card {
    padding: 24px;
  }
  .contacto-form .form-row-duo {
    grid-template-columns: 1fr;
  }
  .institucional-container {
    padding: 24px;
  }
}
