/* ═══════════════════════════════════════════
   INTRANET CVP — CAJA DE LA VIVIENDA POPULAR
   Estilos consolidados
   ═══════════════════════════════════════════ */

@font-face {
  font-family: 'Museo Sans Condensed';
  src: url('../fonts/MuseoSansCondensed-300.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Museo Sans Condensed';
  src: url('../fonts/MuseoSansCondensed-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Museo Sans Condensed';
  src: url('../fonts/MuseoSansCondensed-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Museo Sans Condensed';
  src: url('../fonts/MuseoSansCondensed-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C90B00;
  --red-dark:   #AA1023;
  --red-deeper: #AA1023;
  --amber:      #F7B325;
  --amber-bg:   #FFF8E1;
  --orange:     #E3351F;

  --bg:         #F2F3F6;
  --surface:    #FFFFFF;
  --subtle:     #F7F8FA;

  --txt:        #111827;
  --txt-2:      #4B5563;
  --txt-3:      #9CA3AF;
  --border:     #E5E7EB;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --sh-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 4px 14px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.04);
  --t: .18s ease;

  --font: 'Museo Sans Condensed', Arial, sans-serif;
  --font-serif: 'Museo Sans Condensed', Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.5;
}

/* ── GOV.CO BAR ── */
.govco-bar {
  background: #3366CC;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
}
.govco-bar a {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  letter-spacing: .6px;
}

/* ── HEADER ── */
.hdr {
  background: var(--red);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(201,11,0,.4);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-bogota-img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.25);
  margin: 0 14px;
  flex-shrink: 0;
}
.logo-intranet {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}
.logo-intranet-word {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.logo-intranet-sub {
  font-size: 8.5px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .4px;
}

/* ── NAV ── */
.hdr-nav {
  display: flex;
  flex: 1;
  justify-content: center;
}
.nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav > li {
  list-style: none;
}
.nav > a,
.nav-item > a {
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.nav > a:hover,
.nav-item > a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav > a.active,
.nav-item.active > a,
.nav-item.current > a    { background: rgba(255,255,255,.18); color: #fff; }
.nav-sep {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  display: flex;
  align-items: center;
}
.nav-chevron { font-size: 10px; margin-left: 2px; opacity: .9; vertical-align: middle; }

/* ── DROPDOWNS ── */
.nav-item { position: relative; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--red-dark);
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  min-width: 230px;
  padding: 5px 0;
  z-index: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  list-style: none;
}
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-size: 12.5px;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.dropdown a:hover { background: rgba(255,255,255,.11); color: #fff; }

/* ── HDR RIGHT ── */
.hdr-right { display: flex; align-items: center; gap: 8px; }
.hdr-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  overflow: hidden;
  transition: background var(--t), border-color var(--t);
}
.hdr-search:focus-within {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
}
.hdr-search__input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  padding: 6px 0 6px 14px;
  width: 0;
  opacity: 0;
  transition: width .3s ease, opacity .3s ease;
}
.hdr-search:focus-within .hdr-search__input,
.hdr-search.is-open .hdr-search__input {
  width: 180px;
  opacity: 1;
}
.hdr-search.is-open {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
}
.hdr-search__input::placeholder { color: rgba(255,255,255,.5); }
.hdr-search__btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.hdr-search__btn i { font-size: 15px; color: rgba(255,255,255,.7); }
.hdr-search__btn:hover i { color: #fff; }

.avatar {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
}

/* ── SUBBAR ── */
.subbar,
.subbar-wrap,
.mod-custom .subbar-wrap {
  background: var(--red-dark);
  height: 33px;
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
}
.sb-item {
  text-decoration: none;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 0 13px;
  height: 33px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.sb-item:first-child { border-left: 1px solid rgba(255,255,255,.1); }
.sb-item:hover { background: rgba(255,255,255,.2); color: #fff; }
.sb-item i { font-size: 13px; }

/* ── SPOTLIGHT ── */
.spotlight {
  background: linear-gradient(90deg,#FFF8E1,#FFFDE7);
  border-bottom: 1px solid #E8D5A0;
  padding: 0 1.75rem;
  height: 37px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-tag {
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sp-text { font-size: 12.5px; color: #5C3A00; flex: 1; }
.sp-link {
  font-size: 12.5px;
  color: var(--amber);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── CAROUSEL ── */
.carousel {
  position: relative;
  overflow: hidden;
  background: var(--border);
  line-height: 0;
  user-select: none;
  width: 100%;
}
.c-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  width: 100%;
}
.c-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
}
.c-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.c-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,.42);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: background var(--t), transform var(--t);
  backdrop-filter: blur(6px);
  z-index: 10;
  line-height: 1;
}
.c-btn:hover { background: rgba(170,16,35,.85); transform: translateY(-50%) scale(1.06); }
#cPrev { left: 14px; }
#cNext { right: 14px; }
.c-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.dot.on { background: #fff; transform: scale(1.3); }

/* ── LAYOUT ── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 1.25rem;
}

.sec-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── LINKS DEFAULT ── */
a.feat, a.nc, a.nc-feat, a.vid-card, a.ql-item {
  text-decoration: none;
  color: inherit;
}

/* ── TAGS ── */
.nc-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.t-red   { color: var(--red);  background: #FEF1F3; }
.t-blue  { color: #1D6FA8;    background: #EBF4FD; }
.t-amber { color: #7A4000;    background: #FEF6E7; }
.t-green { color: #2D7A3A;    background: #ECFAF0; }

.bg-red   { background: #FEF1F3; }
.bg-blue  { background: #EBF4FD; }
.bg-amber { background: #FEF6E7; }
.bg-green { background: #ECFAF0; }

.nc-meta {
  font-size: 11px;
  color: var(--txt-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nc-read {
  font-size: 11.5px;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── FEATURED CARD (paz y salvo) ── */
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: box-shadow var(--t), transform var(--t);
}
.feat:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.feat img   { width: 100%; display: block; }

/* ── PQRSD CAMPAIGN ── */
.pqrsd-campaign {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--sh-sm);
}
.pqrsd-intro {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-bottom: 1px solid var(--border);
}
.pi-icon {
  width: 44px;
  height: 44px;
  background: #FEF1F3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
}
.pi-body { flex: 1; }
.pi-body h2 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 4px;
  line-height: 1.3;
}
.pi-body p { font-size: 12px; color: var(--txt-2); line-height: 1.5; }
.pi-badge {
  background: #FEF1F3;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: .5px;
  flex-shrink: 0;
}

/* ── NEWS ── */
.news-wrap { margin-bottom: 1.25rem; }

.nc-feat {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: .875rem;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t), transform var(--t);
}
.nc-feat:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ncf-thumb {
  position: relative;
  overflow: hidden;
  min-height: 175px;
}
.ncf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform .4s ease;
}
.nc-feat:hover .ncf-thumb img { transform: scale(1.04); }
.ncf-body {
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.ncf-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.4;
  margin-bottom: 7px;
}
.ncf-excerpt {
  font-size: 12px;
  color: var(--txt-2);
  line-height: 1.6;
  flex: 1;
}
.ncf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .875rem;
}
.nc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.nc:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.nc-thumb {
  height: 130px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.nc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.nc:hover .nc-thumb img { transform: scale(1.05); }
.nc-body { padding: .875rem 1rem; display: flex; flex-direction: column; flex: 1; }
.nc-body h3 {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--txt);
  line-height: 1.45;
  margin-bottom: auto;
  padding-bottom: 10px;
}
.nc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ── VIDEO ── */
.vid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: box-shadow var(--t);
}
.vid-card:hover { box-shadow: var(--sh-md); }
.vid-thumb {
  background: linear-gradient(135deg,#0f0c29,#24243e,#302b63);
  background-size: cover;
  background-position: center;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* La portada la inyecta template.js a partir del enlace de YouTube.
   Si no carga (sin salida a internet) se queda el degradado y la altura
   compacta de arriba: el 16/9 solo se aplica cuando hay imagen, para no
   dejar un bloque alto y vacio. */
.vid-thumb.has-cover {
  height: auto;
  aspect-ratio: 16 / 9;
  animation: vidCoverIn .35s ease both;
}
/* Velo para que el boton de play y la etiqueta sigan legibles sobre la foto. */
.vid-thumb.has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,.62) 100%);
  transition: background var(--t);
}
.vid-card:hover .vid-thumb.has-cover::before {
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,.55) 100%);
}
@keyframes vidCoverIn {
  from { opacity: .35; }
  to   { opacity: 1; }
}
.play {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  transition: transform var(--t);
}
.vid-card:hover .play { transform: scale(1.08); }
.vid-badge {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}
.vid-info { padding: .875rem 1rem; }
.vid-info h3 { font-size: 13.5px; font-weight: 500; margin-bottom: 3px; }
.vid-info p  { font-size: 11.5px; color: var(--txt-2); }

/* ── SIDEBAR ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin-bottom: 1.25rem;
}
.card-head {
  background: var(--red);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-head span { font-size: 12.5px; font-weight: 600; color: #fff; }
.card-head i    { font-size: 15px;   color: rgba(255,255,255,.85); }

.ql-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .6rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.ql-item:last-child { border-bottom: none; }
.ql-item:hover { background: var(--subtle); }
.ql-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ic-red    { background: #FEF1F3; color: var(--red); }
.ic-blue   { background: #EBF4FD; color: #1D6FA8; }
.ic-green  { background: #ECFAF0; color: #2D7A3A; }
.ic-amber  { background: #FEF6E7; color: #7A4000; }
.ic-purple { background: #F0EFFE; color: #5B4FCF; }
.ic-teal   { background: #E4F6F1; color: #0D6E56; }
.ic-orange { background: #FEF0E7; color: #C04A00; }
.ql-text { flex: 1; }
.ql-name { font-size: 12.5px; font-weight: 500; color: var(--txt); }
.ql-sub  { font-size: 11px;   color: var(--txt-3); }

.pqrsd-body { padding: .875rem 1rem; }
.pq-alert {
  background: #FEF1F3;
  border-radius: var(--r-md);
  padding: .75rem;
  margin-bottom: .875rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pq-alert i { color: var(--red); font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.pq-alert p { font-size: 11.5px; color: #7A1020; line-height: 1.5; }
.pq-tip { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 7px; }
.tip-n {
  width: 20px;
  height: 20px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pq-tip p { font-size: 11.5px; color: var(--txt-2); line-height: 1.4; }

.contact-body { padding: .875rem 1rem; }
.ct-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 9px; }
.ct-row:last-child { margin-bottom: 0; }
.ct-row i    { color: var(--txt-3); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.ct-label    { font-size: 10.5px; color: var(--txt-3); }
.ct-val      { font-size: 12.5px; font-weight: 500; color: var(--txt); }

.sb-notice {
  padding: .875rem 1rem;
  background: #F7F8FA;
  border-top: 1px solid var(--border);
}
.sb-notice p { font-size: 11.5px; color: var(--txt-3); line-height: 1.5; text-align: center; }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.75rem;
}
.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
}
.breadcrumb a { font-size: 12px; color: var(--txt-3); text-decoration: none; transition: color var(--t); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { font-size: 12px; color: var(--txt-3); }
.breadcrumb .current { font-size: 12px; color: var(--txt-2); font-weight: 500; }

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 3rem;
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 1.5rem;
  align-items: start;
}
.article-main { min-width: 0; }

.article-hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: var(--sh-md);
  aspect-ratio: 16/7;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 50%);
}
.article-hero-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.article-hdr { margin-bottom: 1.5rem; }
.article-hdr h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.35;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.meta-author { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 600; color: var(--txt); }
.author-role { font-size: 11px; color: var(--txt-3); }
.meta-sep { width: 1px; height: 28px; background: var(--border); }
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--txt-3);
}
.meta-item i { font-size: 14px; }

.article-body { font-size: 15px; line-height: 1.75; color: var(--txt-2); }
.article-body .lead {
  font-size: 17px;
  color: var(--txt);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--txt);
  margin: 2rem 0 .875rem;
  font-family: var(--font-serif);
}
.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt);
  margin: 1.5rem 0 .75rem;
}
.article-body strong { color: var(--txt); font-weight: 600; }
.article-body ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ul li { margin-bottom: .5rem; }

.article-body blockquote {
  border-left: 4px solid var(--red);
  background: #FEF1F3;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5rem 0;
}
.article-body blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--red-dark);
  margin: 0;
  line-height: 1.65;
}
.article-body blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--txt-3);
  margin-top: 8px;
}

.highlight-box {
  background: #FFF8E1;
  border: 1px solid #E8D5A0;
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.highlight-box i { color: var(--amber); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.highlight-box p { font-size: 13.5px; color: #5C3A00; line-height: 1.55; margin: 0; }

.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.article-tags span { font-size: 12px; font-weight: 600; color: var(--txt-3); }
.tag-pill {
  background: var(--subtle);
  border: 1px solid var(--border);
  color: var(--txt-2);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.tag-pill:hover { background: #FEF1F3; color: var(--red); border-color: #F9D0D5; }

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.share-label { font-size: 13px; font-weight: 600; color: var(--txt-2); margin-right: 4px; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--txt-3);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.share-btn:hover { background: #FEF1F3; color: var(--red); border-color: #F9D0D5; }
.copy-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--txt-2);
  font-family: var(--font);
  transition: background var(--t);
}
.copy-link:hover { background: var(--border); }

.author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  box-shadow: var(--sh-sm);
}
.author-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.author-card .role { font-size: 12px; color: var(--red); font-weight: 500; margin-bottom: 6px; }
.author-card p { font-size: 12.5px; color: var(--txt-2); line-height: 1.5; }

.related { margin-top: 2.5rem; }
.related-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.rel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.rel-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.rel-thumb { height: 110px; overflow: hidden; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rel-card:hover .rel-thumb img { transform: scale(1.05); }
.rel-body { padding: .875rem 1rem; }
.rel-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.rel-body h3 { font-size: 12.5px; font-weight: 500; line-height: 1.45; margin-bottom: 6px; }
.rel-meta { font-size: 11px; color: var(--txt-3); display: flex; align-items: center; gap: 4px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-2);
  text-decoration: none;
  margin-bottom: 1.5rem;
  padding: 6px 0;
  transition: color var(--t);
}
.back-btn:hover { color: var(--red); }
.back-btn i { font-size: 16px; }

/* ── FOOTER ── */
footer {
  background: var(--red-dark);
  padding: 1.125rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .25rem;
}
.ft-brand { display: flex; align-items: center; gap: 9px; }
.ft-logo {
  height: 36px;
  width: auto;
}
.ft-txt  { font-size: 12px; color: #fff; }
.ft-soc  { display: flex; gap: 5px; }
.soc {
  width: 29px;
  height: 29px;
  background: rgba(255,255,255,.07);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.soc:hover { background: rgba(255,255,255,.25); color: #fff; }
.ft-copy { font-size: 11px; color: #fff; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hamburger { display: block; }

  .hdr {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-deeper);
    flex-direction: column;
    padding: 8px 0;
    z-index: 1000;
  }
  .nav.is-open { display: flex; }

  .nav-item { width: 100%; }
  .nav-item > a {
    padding: 10px 20px;
    border-radius: 0;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(0,0,0,.15);
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0;
    display: none;
  }
  .dropdown.is-open { display: block; }
  .dropdown a { padding: 8px 32px; font-size: 13px; }

  .hdr-right { display: none; }

  .wrap {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .wrap aside { display: none; }

  .ft-soc { display: none; }
}

/* ═══════════════════════════════════════════
   BLOG VIEW — Category Blog Override
   Target: clean cards with badge, divider, "Leer nota"
   ═══════════════════════════════════════════ */

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  background: #f7f8fa;
  min-height: 60vh;
}

.blog-header {
  margin-bottom: 28px;
}

.blog-title {
  font-family: 'Museo Sans Condensed', Arial, sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--red);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0;
}

/* ── Grid ──────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.blog-grid--lead {
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

.blog-grid--intro {
  grid-template-columns: repeat(3, 1fr);
}

/* Lead card: horizontal layout */
.blog-grid--lead .blog-card {
  flex-direction: row;
  max-width: 100%;
}

.blog-grid--lead .blog-card__img {
  width: 420px;
  min-height: 260px;
  flex-shrink: 0;
}

.blog-grid--lead .blog-card__body {
  padding: 28px 32px;
  justify-content: center;
}

.blog-grid--lead .blog-card__title {
  font-size: 22px;
}

.blog-grid--lead .blog-card__text {
  font-size: 15px;
}

/* ── Blog Card ────────────────────────────── */

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .25s;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.06);
  transform: translateY(-3px);
}

.blog-card--unpublished {
  opacity: .5;
}

/* ── Image ─────────────────────────────────── */

.blog-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e9eaec;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C90B00 0%, #AA1023 100%);
}

.blog-card__img--placeholder i {
  font-size: 48px;
  color: rgba(255,255,255,.35);
}

/* ── Body ──────────────────────────────────── */

.blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
}

.blog-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card__title {
  font-family: 'Museo Sans Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.blog-card:hover .blog-card__title {
  color: var(--red);
}

.blog-card__text {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

/* ── Footer: divider + meta + link ─────────── */

.blog-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #9ca3af;
}

.blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card__date i,
.blog-card__hits i {
  font-size: 13px;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-card:hover .blog-card__link {
  text-decoration: underline;
}

/* ── Pagination ───────────────────────────── */

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 0 8px;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}

.blog-pagination__counter {
  font-size: 14px;
  color: #6b7280;
}

.blog-pagination .pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  text-decoration: none;
  transition: all .15s;
}

.blog-pagination .page-link:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.blog-pagination .active .page-link {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.blog-pagination .disabled .page-link {
  color: #d1d5db;
  pointer-events: none;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 1024px) {
  .blog-grid--intro {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-container { padding: 20px 16px; }
  .blog-grid--intro { grid-template-columns: 1fr; gap: 16px; }
  .blog-grid--lead .blog-card { flex-direction: column; }
  .blog-grid--lead .blog-card__img { width: 100%; height: 200px; }
  .blog-grid--lead .blog-card__body { padding: 20px 22px; }
  .blog-grid--lead .blog-card__title { font-size: 18px; }
  .blog-card__title { font-size: 15px; }
  .blog-card__footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── VIDEO MODAL ──────────────────────────── */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal[hidden] { display: none; }

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.video-modal__player {
  width: 100%;
  height: 100%;
}

.video-modal__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.video-modal__close:hover {
  background: rgba(0, 0, 0, .9);
}

/* ═══════════════════════════════════════════
   MENU FUERA DEL HEADER (sidebar / contenido)
   Los estilos de .nav estan pensados para la barra roja del header
   (texto blanco, submenus en position:absolute). Si se publica un
   mod_menu en otra posicion hereda esos estilos y queda ilegible,
   flotando sobre el contenido. Aqui se reencuadra como lista vertical.
   ═══════════════════════════════════════════ */

aside .nav,
main .nav,
footer .nav {
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: var(--sh-sm);
}

/* El footer tiene fondo rojo oscuro: alli el menu va en blanco, sin caja. */
footer .nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
}

aside .nav .nav-item,
main .nav .nav-item,
footer .nav .nav-item {
  position: static;
  width: 100%;
}

aside .nav .nav-item > a,
main .nav .nav-item > a,
footer .nav .nav-item > a {
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  justify-content: space-between;
  white-space: normal;
}

aside .nav .nav-item > a:hover,
main .nav .nav-item > a:hover,
footer .nav .nav-item > a:hover {
  background: var(--subtle);
  color: var(--red);
}

aside .nav .nav-item.active > a,
aside .nav .nav-item.current > a,
main .nav .nav-item.active > a,
main .nav .nav-item.current > a,
footer .nav .nav-item.active > a,
footer .nav .nav-item.current > a {
  background: #FEE2E2;
  color: var(--red);
  font-weight: 600;
}

/* Submenus: en flujo normal, indentados, sin capa flotante. */
aside .nav .dropdown,
main .nav .dropdown,
footer .nav .dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  padding: 0 0 4px 12px;
  margin-left: 8px;
  border-left: 2px solid var(--border);
}

aside .nav .dropdown a,
main .nav .dropdown a,
footer .nav .dropdown a {
  color: var(--txt-2);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  white-space: normal;
}

aside .nav .dropdown a:hover,
main .nav .dropdown a:hover,
footer .nav .dropdown a:hover {
  background: var(--subtle);
  color: var(--red);
}

aside .nav .nav-chevron,
main .nav .nav-chevron,
footer .nav .nav-chevron {
  display: none;
}

footer .nav .nav-item > a,
footer .nav .dropdown a {
  color: #fff;
}
footer .nav .nav-item > a:hover,
footer .nav .dropdown a:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}
footer .nav .nav-item.active > a,
footer .nav .nav-item.current > a {
  background: rgba(255,255,255,.2);
  color: #fff;
}
footer .nav .dropdown {
  border-left-color: rgba(255,255,255,.25);
}

/* ═══════════════════════════════════════════
   BUSCADOR (com_finder)
   ═══════════════════════════════════════════ */

.finder {
  width: 100%;
  min-width: 0;
  /* El header es sticky (58px): deja aire para que el hero no quede tapado
     cuando la pagina salta hasta aqui tras una busqueda. */
  scroll-margin-top: 74px;
}

/* ── Hero ── */
.finder-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 62%, #7E0C1A 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 30px 32px 54px;
  color: #fff;
}
.finder-hero__deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 200px at 88% -20%, rgba(247,179,37,.30), transparent 70%),
    radial-gradient(380px 180px at 8% 120%, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.finder-hero__deco::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 22px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.finder-hero__inner {
  position: relative;
  z-index: 1;
}
.finder-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.16);
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.finder-hero__title {
  font-family: 'Museo Sans Condensed', Arial, sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.finder-hero__lead {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
  max-width: 62ch;
}
.finder-hero__lead strong {
  color: #fff;
  background: rgba(255,255,255,.14);
  padding: 1px 7px;
  border-radius: 5px;
}

/* ── Panel del formulario (flota sobre el hero) ── */
.finder-panel {
  position: relative;
  z-index: 2;
  margin: -32px 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-md);
}

.finder-searchbar__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.finder-searchbar__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 5px 5px 5px 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.finder-searchbar__field:focus-within {
  background: var(--surface);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 11, 0, .1);
}
.finder-searchbar__icon {
  font-size: 19px;
  color: var(--txt-3);
  flex-shrink: 0;
  transition: color .18s ease;
}
.finder-searchbar__field:focus-within .finder-searchbar__icon { color: var(--red); }

.finder-searchbar__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--txt);
  padding: 11px 2px;
}
.finder-searchbar__input::placeholder { color: var(--txt-3); }

.finder-searchbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  box-shadow: 0 3px 10px rgba(201,11,0,.28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.finder-searchbar__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,11,0,.34);
}
.finder-searchbar__btn:active { transform: translateY(0); }
.finder-searchbar__btn i { font-size: 16px; }

/* ── Búsqueda avanzada ── */
.finder-advanced {
  margin-top: 14px;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.finder-advanced__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-2);
  user-select: none;
  transition: background .14s ease, color .14s ease;
}
.finder-advanced__toggle::-webkit-details-marker,
.finder-advanced__toggle::marker { display: none; content: ''; }
.finder-advanced__toggle:hover { background: #EDEFF3; color: var(--red); }
.finder-advanced__toggle > i:first-child { font-size: 17px; color: var(--red); }
.finder-advanced__chevron {
  margin-left: auto;
  font-size: 15px;
  transition: transform .2s ease;
}
.finder-advanced[open] .finder-advanced__toggle {
  background: #EDEFF3;
  border-bottom: 1px solid var(--border);
}
.finder-advanced[open] .finder-advanced__chevron { transform: rotate(180deg); }

.finder-advanced__body {
  padding: 18px 16px;
  background: var(--surface);
}

.finder-tips {
  background: var(--amber-bg);
  border: 1px solid #FDE68A;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 13px 15px;
  margin-bottom: 18px;
}
.finder-tips__intro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 9px;
}
.finder-tips__intro i { font-size: 15px; flex-shrink: 0; }
.finder-tips__list {
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #78350F;
}
.finder-tips__list li { padding-left: 14px; position: relative; }
.finder-tips__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.finder-tips__list strong { color: #7C2D12; }

/* Filtros (markup de HTMLHelper 'filter.select') */
.finder-filters .filter-branch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.finder-filters .control-group { min-width: 0; }
.finder-filters .control-label label,
.finder-filters .control-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 6px;
}
.finder-filters select,
.finder-filters input[type="text"],
.finder-filters .advancedSelect {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: var(--txt);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.finder-filters select:hover { border-color: #CBD2DA; }
.finder-filters select:focus,
.finder-filters input[type="text"]:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 11, 0, .1);
}

.finder-advanced__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.finder-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.finder-btn:hover { transform: translateY(-1px); }
.finder-btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(201,11,0,.22);
}
.finder-btn--primary:hover { background: var(--red-dark); }
.finder-btn--ghost {
  background: transparent;
  color: var(--txt-2);
  border-color: var(--border);
}
.finder-btn--ghost:hover { color: var(--red); border-color: var(--red); background: #FEF2F2; }

/* ── Barra de conteo y orden ── */
.finder-resultsbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.finder-resultsbar__count {
  font-size: 13px;
  color: var(--txt-2);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.finder-resultsbar__count strong {
  color: var(--red);
  font-family: 'Museo Sans Condensed', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.finder-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.finder-sort__label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.finder-sort__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}
.finder-sort__item {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--txt-2);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.finder-sort__item:hover { color: var(--red); border-color: var(--red); background: #FEF2F2; }
.finder-sort__item.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 2px 6px rgba(201,11,0,.24);
}

/* ── Sugerencia ── */
.finder-suggested {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--amber-bg);
  border: 1px solid #FDE68A;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 15px;
  margin: 0 16px 16px;
  font-size: 13px;
  color: #92400E;
}
.finder-suggested i { font-size: 16px; }
.finder-suggested__link {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

/* ── Lista de resultados ── */
.finder-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 16px;
}

@keyframes finderIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.finder-item {
  position: relative;
  display: flex;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 17px 19px 17px 22px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  animation: finderIn .34s ease both;
  animation-delay: calc(var(--i, 1) * 35ms);
}
.finder-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--amber));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .22s ease;
}
.finder-item:hover {
  box-shadow: var(--sh-md);
  border-color: #D9DDE3;
  transform: translateY(-2px);
}
.finder-item:hover::before { transform: scaleY(1); }

.finder-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.finder-item__icon i { font-size: 21px; color: var(--red); }
.finder-item:hover .finder-item__icon { background: var(--red); transform: scale(1.05); }
.finder-item:hover .finder-item__icon i { color: #fff; }

.finder-item__thumb {
  flex-shrink: 0;
  width: 124px;
  height: 90px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--subtle);
}
.finder-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.finder-item:hover .finder-item__thumb img { transform: scale(1.05); }

.finder-item__body {
  flex: 1;
  min-width: 0;
}

.finder-item__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.finder-item__type {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--red);
  background: #FEE2E2;
  padding: 3px 9px;
  border-radius: 4px;
}
.finder-item__counter {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt-3);
  font-variant-numeric: tabular-nums;
}

.finder-item__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 5px;
}
.finder-item__link {
  color: var(--txt);
  text-decoration: none;
  transition: color .14s ease;
}
.finder-item__link:hover { color: var(--red); }

.finder-item__url {
  display: flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-size: 11.5px;
  color: #0F766E;
  margin-bottom: 8px;
  min-width: 0;
}
.finder-item__url i { font-size: 12px; flex-shrink: 0; opacity: .7; }
.finder-item__url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-item__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--txt-2);
  margin-bottom: 12px;
}

.finder-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--txt-3);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.finder-item__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.finder-item__date i { font-size: 13px; }

.finder-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--txt-2);
  background: var(--subtle);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}
.finder-chip--category { background: #FEF2F2; border-color: #FECACA; color: var(--red); }
.finder-chip--author   { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }

.finder-item__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}
.finder-item__more i { transition: transform .18s ease; }
.finder-item:hover .finder-item__more i { transform: translateX(4px); }

/* Resaltado que inyecta el script 'highlight' de Joomla */
.finder-list mark,
.finder-list .highlight {
  background: linear-gradient(180deg, transparent 55%, #FDE68A 55%);
  color: inherit;
  padding: 0 1px;
  font-weight: 700;
}

/* ── Sin resultados ── */
.finder-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px 28px;
  margin: 0 16px;
  text-align: center;
  box-shadow: var(--sh-sm);
}
.finder-empty__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FEE2E2, var(--subtle));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.finder-empty__icon i { font-size: 34px; color: var(--red); opacity: .55; }
.finder-empty__title {
  font-family: 'Museo Sans Condensed', Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--txt);
  margin-bottom: 8px;
}
.finder-empty__text {
  font-size: 13.5px;
  color: var(--txt-2);
  margin-bottom: 20px;
}
.finder-empty__hints {
  list-style: none;
  display: grid;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  text-align: left;
  margin: 0 auto 24px;
  font-size: 13px;
  color: var(--txt-2);
}
.finder-empty__hints li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.finder-empty__hints i { color: #10B981; font-size: 15px; flex-shrink: 0; }

.finder-empty__suggest {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 22px;
}
.finder-empty__suggest-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 11px;
}
.finder-empty__suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.finder-suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--txt-2);
  background: var(--subtle);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.finder-suggest-chip i { font-size: 13px; opacity: .6; }
.finder-suggest-chip:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
}
.finder-suggest-chip:hover i { opacity: 1; }

.finder-empty__cta { margin-top: 4px; }

/* ── Paginación ── */
.finder-navigation {
  margin-top: 24px;
  padding: 0 16px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .finder-hero {
    padding: 24px 20px 48px;
    border-radius: var(--r-md) var(--r-md) 0 0;
  }
  .finder-hero__title { font-size: 25px; }
  .finder-hero__lead { font-size: 13px; }

  .finder-panel { margin: -28px 8px 20px; padding: 14px; }

  .finder-searchbar__field { flex-wrap: wrap; padding: 10px; gap: 10px; }
  .finder-searchbar__icon { display: none; }
  .finder-searchbar__input { width: 100%; flex-basis: 100%; padding: 4px 2px; }
  .finder-searchbar__btn { width: 100%; justify-content: center; }

  .finder-list,
  .finder-empty,
  .finder-suggested,
  .finder-navigation { padding-left: 8px; padding-right: 8px; }
  .finder-empty { margin: 0 8px; padding: 32px 18px; }
  .finder-resultsbar { padding: 0 8px 12px; align-items: flex-start; flex-direction: column; }

  .finder-item { flex-direction: column; gap: 12px; padding: 15px 16px 15px 19px; }
  .finder-item__thumb { width: 100%; height: 170px; }
  .finder-item__more { margin-left: 0; }
  .finder-item__title { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .finder-item { animation: none; }
  .finder-item,
  .finder-item::before,
  .finder-item__icon,
  .finder-item__thumb img,
  .finder-btn,
  .finder-suggest-chip { transition: none; }
}

/* Accordion style 01 */
.accordion .accordion-item {
  color: inherit;
  border: none;
  padding: 0px !important;
}
.accordion .accordion-item .accordion-header {
  background-color: transparent;
  border: none;
  padding: 5px 10px;
  margin-bottom: 0;
}
.accordion .accordion-body {
  padding: 5px 10px !important;
  border-top: 1px solid var(--border);
}
.accordion .accordion-item .accordion-header .accordion-title {
  cursor: pointer;
  padding-right: 25px;
}
.accordion .accordion-item .accordion-header a {
  text-decoration: none !important;
}
.accordion .accordion-item .accordion-header .accordion-title i {
  position: absolute;
  top: 50%;
  right: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.accordion .accordion-item .accordion-collapse {
  border: 0;
  display: none;
}

.accordion .accordion-item .accordion-collapse.show {
  display: block;
}

.accordion-style-01 .accordion-item {
  margin-bottom: 20px;
  overflow: inherit;
  padding: 20px 35px;
  -webkit-border-radius: 4px !important;
  border-radius: 4px !important;
  -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-box-shadow: 0px 0px 20px 0px rgba(111, 111, 111, 0.15);
  box-shadow: 0px 0px 20px 0px rgba(111, 111, 111, 0.15);
}
.accordion-style-01 .accordion-item:last-child {
  margin-bottom: 0;
}
.accordion-style-01 .accordion-item .collapse {
  overflow: hidden;
}
.accordion-style-01 .accordion-item .accordion-body {
  padding: 12px 45px 10px 0px;
}
.accordion-style-01 .accordion-item .accordion-body img {
  max-width: 100%;
}
.accordion-style-01 .accordion-item .accordion-header .accordion-title > i {
  position: static;
  -webkit-transform: none;
  transform: none;
}

/* Tab style 02 */
.tab-style-02 {
  padding: 5px;
  background: white;
  border-radius: var(--r-lg);
}
.tab-style-02 .nav-tabs {
  border-bottom: none;
  flex-direction: row;
}
.tab-style-02 .nav-tabs > li.nav-item {
  margin: 0 34px;
}
.tab-style-02 .tab-pane img {
  max-width: 100%;
}
.tab-style-02 .nav-tabs > li.nav-item > a.nav-link {
  border: none;
  padding: 0;
  color: var(--medium-gray);
  border-bottom: 2px solid transparent;
  -webkit-transition: all 0.3s linear;
  transition: all 0.3s linear;
}
.tab-style-02 .nav-tabs > li.nav-item > a.nav-link i {
  -webkit-transition: all 0.3s linear;
  transition: all 0.3s linear;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  will-change: transform;
}
.tab-style-02 .nav-tabs > li.nav-item > a.nav-link:hover {
  color: var(--dark-gray);
  border-bottom: 2px solid;
}
.tab-style-02 .nav-tabs > li.nav-item > a.nav-link:hover i {
  color: var(--base-color);
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.tab-style-02 .nav-tabs > li.nav-item > a.nav-link.active {
  color: var(--dark-gray);
  border-bottom: 2px solid;
  background: transparent;
}
.tab-style-02 .nav-tabs > li.nav-item > a.nav-link.active i {
  color: var(--base-color);
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}


@media (max-width: 991px) {
  .tab-style-02 .nav-tabs > li.nav-item {
    margin: 0 10px;
  }
}
