/* ── Header / Nav ── */

.f42-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--f42-nav-height);
  background: var(--f42-surface-elevated);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--f42-border);
}

.f42-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: var(--f42-container);
  margin-inline: auto;
  padding-inline: var(--f42-gutter);
}

.f42-logo img {
  height: 32px;
  width: auto;
}

.f42-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--f42-radius-sm);
  background: transparent;
  color: var(--f42-brand);
  cursor: pointer;
}

.f42-nav-toggle:active {
  transform: scale(0.96);
}

.f42-nav {
  display: none;
  position: fixed;
  inset: var(--f42-nav-height) 0 0;
  background: var(--f42-surface);
  padding: 1.5rem var(--f42-gutter);
  overflow-y: auto;
}

.f42-nav.is-open {
  display: block;
}

.f42-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f42-nav__list a {
  display: block;
  padding: 0.75rem 0;
  color: var(--f42-text);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--f42-border);
}

.f42-nav__list a:hover {
  color: var(--f42-brand);
}

.f42-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.5rem;
  background: var(--f42-bg);
  border: 1px solid var(--f42-border);
  border-radius: var(--f42-radius);
  overflow: hidden;
}

.f42-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--f42-text);
  min-width: 0;
}

.f42-search input::placeholder {
  color: var(--f42-text-tertiary);
}

.f42-search button {
  border: none;
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--f42-duration) var(--f42-ease);
}

.f42-search button:hover {
  background: var(--f42-brand-soft);
}

@media (min-width: 900px) {
  .f42-nav-toggle {
    display: none;
  }

  .f42-nav {
    display: flex !important;
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
  }

  .f42-nav__list {
    display: flex;
    gap: 0.25rem;
  }

  .f42-nav__list a {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--f42-radius-sm);
    font-size: 0.9rem;
    color: var(--f42-text-secondary);
    transition: color var(--f42-duration) var(--f42-ease), background var(--f42-duration) var(--f42-ease);
  }

  .f42-nav__list a:hover {
    color: var(--f42-brand);
    background: rgba(80, 56, 81, 0.06);
  }

  .f42-search {
    margin-top: 0;
    max-width: 220px;
  }
}

/* Ad slot */
.adfixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--f42-surface);
  border-top: 1px solid var(--f42-border);
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .adfixed {
    display: none;
  }
}

/* ── Buttons ── */

.btn,
.f42-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--f42-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--f42-duration) var(--f42-ease), background var(--f42-duration) var(--f42-ease), border-color var(--f42-duration) var(--f42-ease);
}

.btn:active,
.f42-btn:active {
  transform: scale(0.97);
}

.btn-primary,
.btn-default {
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
  border-color: var(--f42-brand);
}

.btn-primary:hover,
.btn-default:hover {
  background: var(--f42-brand-soft);
  border-color: var(--f42-brand-soft);
  color: var(--f42-text-inverse);
}

.btn-copy {
  background: var(--f42-bg);
  color: var(--f42-brand);
  border-color: var(--f42-border-strong);
}

.btn-copy:hover {
  background: var(--f42-brand-muted);
}

.btn-vote {
  background: transparent;
  color: var(--f42-text-secondary);
  border-color: var(--f42-border);
}

/* ── Quote cards (ACF) ── */

.content {
  font-family: var(--f42-font-body);
  margin-top: 2rem;
  padding-bottom: 3rem;
}

.content h1 {
  margin-bottom: 1.5rem;
}

.content .intro {
  font-size: 1.05rem;
  color: var(--f42-text-secondary);
  line-height: 1.65;
}

.content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--f42-nav-height) + 1rem);
}

.content blockquote {
  margin: 0;
}

.content blockquote p {
  font-family: var(--f42-font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--f42-text);
}

.content .blockquote-footer {
  color: var(--f42-text-tertiary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.card,
.ctt-rating-item {
  background: var(--f42-surface);
  border: 1px solid var(--f42-border);
  border-radius: var(--f42-radius-lg);
  box-shadow: var(--f42-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--f42-duration) var(--f42-ease), transform var(--f42-duration) var(--f42-ease);
}

.card:hover,
.ctt-rating-item:hover {
  box-shadow: var(--f42-shadow);
}

.card-body {
  padding: 1.25rem 1.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--f42-border);
  background: var(--f42-bg);
}

.repeater-frases,
[class^="repeater-frases"] {
  margin-bottom: 1rem;
}

.list-group {
  border-radius: var(--f42-radius);
  overflow: hidden;
  border: 1px solid var(--f42-border);
  margin-bottom: 1.5rem;
}

.list-group-item {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--f42-surface);
  border-bottom: 1px solid var(--f42-border);
  color: var(--f42-brand);
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item:hover {
  background: var(--f42-bg);
}

/* Related posts grid */
.tagfinal .card {
  height: 100%;
}

.tagfinal img {
  border-radius: var(--f42-radius);
}

.tagfinal p {
  font-family: var(--f42-font-display);
  font-size: 0.95rem;
  color: var(--f42-brand);
  margin-top: 0.5rem;
}

/* Author bio */
.bio.media {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--f42-surface);
  border: 1px solid var(--f42-border);
  border-radius: var(--f42-radius-lg);
  margin-top: 2rem;
}

.bio img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* Social share */
.social {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--f42-border);
}

.social .btn {
  margin: 0.25rem;
}

/* Card related inline */
.card-related {
  background: var(--f42-bg);
  border: 1px solid var(--f42-border);
  border-radius: var(--f42-radius);
  padding: 1rem;
  margin: 1.5rem 0;
}

.card-related mark {
  background: transparent;
  color: var(--f42-brand);
}

/* ── Footer ── */

.f42-footer {
  background: var(--f42-surface);
  border-top: 1px solid var(--f42-border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.f42-footer__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .f42-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.f42-footer p {
  margin: 0 0 0.75rem;
  color: var(--f42-text-secondary);
  font-size: 0.9rem;
}

.f42-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.f42-footer__links a {
  color: var(--f42-text-secondary);
  font-size: 0.9rem;
}

.f42-footer__links a:hover {
  color: var(--f42-brand);
}

.f42-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

.f42-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--f42-bg);
  color: var(--f42-text-secondary);
  transition: background var(--f42-duration) var(--f42-ease), color var(--f42-duration) var(--f42-ease);
}

.f42-footer__social a:hover {
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
}

/* Back to top */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
  border: none;
  box-shadow: var(--f42-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--f42-duration) var(--f42-ease), visibility var(--f42-duration) var(--f42-ease), transform var(--f42-duration) var(--f42-ease), background var(--f42-duration) var(--f42-ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--f42-accent);
}

/* Pagination */
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  margin: 0.15rem;
  border-radius: var(--f42-radius-sm);
  background: var(--f42-surface);
  border: 1px solid var(--f42-border);
  color: var(--f42-brand);
}

.pagination-wrap .page-numbers.current {
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
  border-color: var(--f42-brand);
}

/* Hub mu-plugin blocks */
.hub-toc,
.hub-cluster-links,
.hub-context-cta {
  background: var(--f42-surface);
  border: 1px solid var(--f42-border);
  border-radius: var(--f42-radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--f42-shadow-sm);
}

.hub-toc-title,
.hub-cluster-links h2 {
  font-family: var(--f42-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--f42-brand);
  margin: 0 0 0.75rem;
}

.hub-cluster-links a,
.hub-context-cta a,
.hub-toc a {
  color: var(--f42-brand);
}

.hub-cluster-links a:hover,
.hub-context-cta a:hover,
.hub-toc a:hover {
  color: var(--f42-accent);
}

/* Admin stats panel */
.f42-admin-stats {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  border-radius: 0 var(--f42-radius-sm) 0 0;
}

.f42-admin-stats p {
  margin: 0 0 0.25rem;
}

@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
}

/* Archive pages */
.f42-archive__header {
  margin-bottom: 1.5rem;
}

.f42-archive__header h1 {
  margin: 0;
}

.f42-pagination {
  margin-top: 2rem;
}

.f42-pagination--simple a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--f42-radius-sm);
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
  font-weight: 500;
}

.f42-pagination--simple a:hover {
  background: var(--f42-brand-soft);
  color: var(--f42-text-inverse);
}

.f42-btn--primary {
  display: inline-flex;
  padding: 0.75rem 1.25rem;
  border-radius: var(--f42-radius);
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
  font-weight: 500;
}

.f42-btn--primary:hover {
  background: var(--f42-accent);
  color: var(--f42-text-inverse);
}

.alm-load-more-btn {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--f42-radius);
  background: var(--f42-brand);
  color: var(--f42-text-inverse);
  font: inherit;
  cursor: pointer;
}

.alm-load-more-btn:hover {
  background: var(--f42-accent);
}

/* WhatsApp canal promo card */
.card.canal {
  padding: 1rem;
  background: var(--f42-accent-soft);
  border-color: rgba(69, 213, 104, 0.25);
}

.canal-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--f42-text-secondary);
}

.canal-head .left img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.verified {
  color: var(--f42-accent);
  font-size: 0.85em;
}

.text-center {
  text-align: center;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-unstyled {
  list-style: none;
  padding: 0;
}

.ad.card {
  padding: 0.75rem;
  background: var(--f42-bg);
}

.card-img-top {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.card-body {
  padding: 1rem 1.25rem;
}

.rounded,
.rounded-circle {
  border-radius: var(--f42-radius);
}

.rounded-circle {
  border-radius: 50%;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}

.mr-3 {
  margin-right: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-0 {
  margin-top: 0;
}

@media (min-width: 900px) {
  .f42-header__inner .f42-theme-toggle {
    order: 3;
  }

  .f42-nav {
    order: 2;
  }
}
