/*
Theme Name: ICHDT Theme
Theme URI: https://ichdt.cl
Author: Ingeniería Digital (Gabriel Vilchez)
Author URI: https://ingenieriadigital.cl
Description: Tema personalizado para el Instituto Chileno de Derecho Tributario (ICHDT) basado en Tailwind CSS y HTML5 semántico.
Version: 1.0.0
Text Domain: ichdt-theme
*/

/* ─── Google Fonts Icon settings ─── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ─── Animations & Scroll Reveal ─── */
.section-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal .section-reveal:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
}

.js-reveal .section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ─── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #044D8C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─── UI Decorators ─── */
.title-bar {
  display: block;
  width: 72px;
  height: 3px;
  background: #1BCBF2;
  border-radius: 99px;
  margin-top: 14px;
}

.card-shadow {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.12);
}

/* ─── Hero carousel (Home) ─── */
.carousel-wrap {
  position: relative;
  width: 100%;
  height: 720px;
  overflow: hidden;
}

@media (max-width: 639px) {
  .carousel-wrap {
    height: 520px;
  }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
}

.carousel-slide img.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 10s linear;
}

.carousel-slide.active img.bg-photo {
  transform: scale(1);
}

.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #1BCBF2;
  width: 30px;
  border-radius: 6px;
}

/* ─── Badges (noticias & publicaciones) ─── */
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  line-height: 1;
}

.cat-noticias {
  background: #1BCBF2;
  color: #fff;
}

.cat-eventos {
  background: #044D8C;
  color: #fff;
}

.cat-jurisprudencia {
  background: #044D8C;
  color: #fff;
}

/* ─── Back to top ─── */
#btn-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#btn-top.visible {
  opacity: 1;
  visibility: visible;
}

.counter-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ─── Mobile menu ─── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

#mobile-menu.open {
  max-height: 400px;
}

/* ─── Page Hero & Article Hero (Single Views & Pages) ─── */
.page-hero,
.article-hero {
  background: #044D8C;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.article-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(27, 203, 242, 0.07);
  top: -180px;
  right: -60px;
  pointer-events: none;
}

.page-hero::after,
.article-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -120px;
  left: 4%;
  pointer-events: none;
}

/* ─── Article Body Styles ─── */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #44474E;
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body strong {
  color: #1A1C1E;
}

.article-body a {
  color: #044D8C;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: #1BCBF2;
}

.article-body blockquote {
  border-left: 4px solid #1BCBF2;
  padding: 16px 22px;
  margin: 1.8em 0;
  background: #F0F9FD;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #2C3E6E;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body blockquote p {
  margin-bottom: 0.5em;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body blockquote cite,
.article-body blockquote strong {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.85em;
  font-weight: 700;
  color: #044D8C;
}

/* IFRAMES Posts*/
.article-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

/* ─── Tablas dentro del Contenido de Artículos ─── */
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8em 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E1E2E8;
  box-shadow: 0 4px 20px -4px rgba(4, 77, 140, 0.06);
  font-size: 0.9375rem;
}

.article-body th {
  background-color: #044D8C;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  text-align: left;
  border: none;
}

.article-body td {
  padding: 13px 18px;
  color: #44474E;
  border-bottom: 1px solid #EEF0F5;
  transition: background-color 0.15s ease;
}

.article-body tr:nth-child(even) td {
  background-color: #F8FAFC;
}

.article-body tr:hover td {
  background-color: #F0F7FF;
}

.article-body tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ─── Paginación WordPress (Noticias & Publicaciones) ─── */
.pagination-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E1E2E8;
  color: #44474E;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.pagination-links .page-numbers:hover:not(.current):not(.dots) {
  border-color: #044D8C;
  color: #044D8C;
}

.pagination-links .page-numbers.current {
  background: #044D8C;
  color: #ffffff;
  border-color: #044D8C;
  cursor: default;
}

.pagination-links .page-numbers.dots {
  border: none;
  background: transparent;
  width: auto;
  min-width: 24px;
  color: rgba(68, 71, 78, 0.4);
  cursor: default;
}

/* ─── Gallery Carousel (Single Noticia) ─── */
.carousel-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.carousel-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 32px -6px rgba(4, 77, 140, 0.12);
  border: 1px solid #E1E2E8;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 480px;
  background: #0a1a2e;
  overflow: hidden;
}

@media (max-width: 768px) {
  .carousel-stage {
    height: 340px;
  }
}

@media (max-width: 480px) {
  .carousel-stage {
    height: 260px;
  }
}

.carousel-stage .carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.carousel-stage .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.carousel-stage .carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: auto;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  color: #044D8C;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.car-btn:hover {
  background: #1BCBF2;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.car-btn.prev {
  left: 12px;
}

.car-btn.next {
  right: 12px;
}

@media (max-width: 640px) {
  .car-btn {
    width: 36px;
    height: 36px;
  }

  .car-btn.prev {
    left: 8px;
  }

  .car-btn.next {
    right: 8px;
  }
}

.car-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(4, 77, 140, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 11px;
  border-radius: 99px;
  backdrop-filter: blur(6px);
}

.carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #1BCBF2 transparent;
  background: #fff;
  border-top: 1px solid #E1E2E8;
}

.carousel-thumbs::-webkit-scrollbar {
  height: 3px;
}

.carousel-thumbs::-webkit-scrollbar-thumb {
  background: #1BCBF2;
  border-radius: 99px;
}

.car-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
}

@media (max-width: 480px) {
  .car-thumb {
    width: 60px;
    height: 44px;
  }
}

.car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.car-thumb.active {
  border-color: #1BCBF2;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(27, 203, 242, 0.2);
}

.car-thumb:hover:not(.active) {
  opacity: 0.8;
  border-color: #044D8C;
}

.car-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 6px;
  background: #fff;
  border-top: 1px solid #E1E2E8;
}

@media (max-width: 640px) {
  .car-dots {
    display: flex;
    flex-wrap: wrap;
  }
}

.car-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #DCE8F5;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
}

.car-dot.active {
  background: #044D8C;
  transform: scale(1.4);
}

/* ─── Download Button ─── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F7F9FC;
  border: 1.5px solid #E1E2E8;
  border-radius: 12px;
  padding: 14px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-download:hover {
  border-color: #1BCBF2;
  box-shadow: 0 4px 16px -4px rgba(27, 203, 242, 0.25);
}

.related-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.10);
}

/* ─── Contenido legal (Política de privacidad / Términos) ─── */
.legal-body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #44474E;
}

.legal-body h2 {
  font-family: 'Libre Caslon Text', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #044D8C;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-bottom: 8px;
  border-bottom: 2px solid #E1E2E8;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 1.1em;
}

.legal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.2em;
}

.legal-body ul li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.5em;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1BCBF2;
}

.legal-body strong {
  color: #1A1C1E;
}

.legal-body a {
  color: #044D8C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: #1BCBF2;
}

.toc-link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #44474E;
  padding: 6px 0 6px 12px;
  border-left: 2px solid #E1E2E8;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-link:hover,
.toc-link.active {
  color: #044D8C;
  border-left-color: #1BCBF2;
}

/* ─── Form groups & inputs (Hazte Socio) ─── */
.form-group {
  background: #fff;
  border: 1px solid #E1E2E8;
  border-radius: 16px;
  padding: 24px 28px;
}

.form-group-title {
  font-family: 'Libre Caslon Text', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #044D8C;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-title .material-symbols-outlined {
  color: #1BCBF2;
  font-size: 20px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #44474E;
  margin-bottom: 6px;
}

.field-input,
.field-input[type="text"],
.field-input[type="email"],
.field-input[type="tel"],
.field-input[type="number"],
.field-input[type="date"],
select.field-input {
  width: 100%;
  background: #F7F9FC;
  border: 1.5px solid #E1E2E8;
  border-radius: 99px !important;
  padding: 10px 18px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: #1A1C1E;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus,
select.field-input:focus {
  border-color: #1BCBF2 !important;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 203, 242, 0.12);
}

.field-input.error {
  border-color: #f87171 !important;
}

.field-input::placeholder {
  color: #44474E;
  opacity: 0.4;
}

textarea.field-input {
  resize: vertical;
  min-height: 100px;
  border-radius: 20px !important;
  padding: 12px 18px;
}

select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2344474E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.field-error {
  display: none;
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
}

.field-error.show {
  display: block;
}

.cuota-badge {
  background: linear-gradient(135deg, #044D8C 0%, #0a6abf 100%);
  border-radius: 16px;
  padding: 20px 24px;
  color: #fff;
}

/* ─── Contact Form 7 Polish ─── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100% !important;
  background-color: #ffffff !important;
  border: 1px solid #E1E2E8 !important;
  border-radius: 0.75rem !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 0.875rem !important;
  color: #1A1C1E !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none !important;
  border-color: #1BCBF2 !important;
  box-shadow: 0 0 0 3px rgba(27, 203, 242, 0.2) !important;
}

.wpcf7 input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  margin-top: 0.25rem !important;
  border-radius: 0.25rem !important;
  border: 1px solid #E1E2E8 !important;
  accent-color: #1BCBF2 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.wpcf7 .wpcf7-acceptance label,
.wpcf7 .wpcf7-list-item-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  font-size: 0.875rem !important;
  line-height: 1.625 !important;
  font-weight: 300 !important;
  color: #44474E !important;
  font-family: 'Open Sans', sans-serif !important;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(68, 71, 78, 0.4) !important;
}

.wpcf7 textarea {
  resize: none !important;
}

.wpcf7 input[type="submit"] {
  width: 100% !important;
  background-color: #1BCBF2 !important;
  color: #ffffff !important;
  padding: 1rem 1.5rem !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  border: none !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.025em !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.9 !important;
  box-shadow: 0 10px 15px -3px rgba(27, 203, 242, 0.3) !important;
}

.wpcf7-response-output {
  margin: 1.5rem 0 0 0 !important;
  padding: 1rem 1.25rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.wpcf7-mail-sent-ok {
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.wpcf7-not-valid-tip {
  font-size: 0.75rem !important;
  color: #ef4444 !important;
  margin-top: 0.25rem !important;
}

.wpcf7 .ajax-loader {
  margin-left: 10px !important;
}

/* ─── Card Persona / Directorio ───────────────────────────── */
.person-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(4, 77, 140, 0.14);
}

.card-photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #EEF4FB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.card-photo .photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #DCE8F5 0%, #EEF4FB 100%);
}

.icon-social {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(4, 77, 140, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #044D8C;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.icon-social:hover {
  background: #1BCBF2;
  color: #fff;
}

/* ─── Alfabeto filtro ────────────────────────────────────── */
.alpha-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #44474E;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #E1E2E8;
  background: white;
}

.alpha-btn[data-letter="todos"] {
  min-width: 62px;
  padding: 0 14px;
}

.alpha-btn:hover,
.alpha-btn.active {
  background: #044D8C;
  color: white;
  border-color: #044D8C;
}

/* ─── Avatar genérico (ícono, mismo ratio) ───────────────── */
.avatar-generic {
  width: 100%;
  height: 140px;
  background: linear-gradient(160deg, #DCE8F5 0%, #EEF4FB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Avatar pequeño (socios activos) ───────────────────── */
.avatar-sm {
  width: 100%;
  height: 100px;
  background: linear-gradient(160deg, #DCE8F5 0%, #EEF4FB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   PUBLICACIONES STYLES (MATCH PUBLICACIONES.HTML)
   ══════════════════════════════════════════════════════════════ */

/* ─── Badges de Categoría ─── */
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  line-height: 1;
}

.cat-jurisprudencia,
.cat-jurisprudencia-judicial {
  background: #044D8C;
  color: #ffffff;
}

.cat-articulos,
.cat-articulo {
  background: #1BCBF2;
  color: #ffffff;
}

.cat-estudios,
.cat-estudio {
  background: #5DADE2;
  color: #ffffff;
}

/* ─── Filtros Hero ─── */
.filter-btn {
  padding: 8px 22px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.filter-btn.active {
  background: #1BCBF2;
  border-color: #1BCBF2;
  color: #ffffff;
}

/* ─── Card Publicación (Horizontal) ─── */
.pub-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

@media (max-width: 640px) {
  .pub-card {
    grid-template-columns: 1fr;
  }
}

.pub-card .pub-img {
  height: 100%;
  min-height: 160px;
  overflow: hidden;
  background: #EEF4FB;
  position: relative;
}

@media (max-width: 640px) {
  .pub-card .pub-img {
    height: 180px;
  }
}

.pub-card .pub-img img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.pub-card:hover .pub-img img {
  transform: scale(1.04);
}

/* ─── Card Destacada ─── */
.pub-featured {
  grid-template-columns: 280px 1fr;
}

@media (max-width: 768px) {
  .pub-featured {
    grid-template-columns: 1fr;
  }
}

.pub-featured .pub-img {
  min-height: 220px;
}

/* ─── Paginador Estilizado ─── */
.pagination-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-links .page-numbers {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid #E1E2E8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #44474E;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.pagination-links .page-numbers:hover {
  border-color: #044D8C;
  color: #044D8C;
}

.pagination-links .page-numbers.current {
  background: #044D8C;
  border-color: #044D8C;
  color: #ffffff;
}

.pagination-links .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ─── Próximamente badge / tarjeta comités ──────────────── */
.coming-soon-card {
  border: 2px dashed #E1E2E8;
  background: #FAFBFC;
}