/* ── Blog Index Hero ── */
.bindex-hero {
  padding: 130px 5% 80px;
  background: var(--bk);
  position: relative;
  overflow: hidden;
}

.bindex-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bindex-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 60% 50%, rgba(123,191,62,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.bindex-hero-inner {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.bindex-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 1.2rem;
}

.bindex-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--g);
}

.bindex-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 1.1rem;
}

.bindex-hero h1 em {
  font-style: normal;
  color: var(--g);
}

.bindex-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  max-width: 520px;
}

/* ── Blog Grid ── */
.bindex-body {
  padding: 72px 5% 96px;
  background: var(--bg2);
}

.bindex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Blog Card ── */
.bcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
  position: relative;
}

.bcard::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g), var(--o));
  transition: width .4s ease;
  border-radius: 12px 12px 0 0;
}

.bcard:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,.09);
  transform: translateY(-4px);
}

.bcard:hover::before {
  width: 100%;
}

.bcard-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.bcard-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bk) 0%, #1a2a12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.bcard-thumb-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(123,191,62,.18) 0%, transparent 65%);
}

.bcard-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}

.bcard-tag {
  display: inline-block;
  background: var(--g3);
  color: var(--g2);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 20px;
  width: fit-content;
}

.bcard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bk);
  line-height: 1.35;
  text-decoration: none;
  display: block;
}

.bcard-title:hover {
  color: var(--g2);
}

.bcard-excerpt {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.bcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  margin-top: .4rem;
}

.bcard-date {
  font-size: .76rem;
  color: var(--muted);
}

.bcard-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--g2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.bcard-link:hover {
  gap: 8px;
}

/* ── Coming Soon card ── */
.bcard-soon {
  border-style: dashed;
  border-color: var(--border);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
  padding: 2rem;
  gap: .6rem;
}

.bcard-soon::before { display: none; }
.bcard-soon:hover { transform: none; box-shadow: none; }

.bcard-soon-ico {
  font-size: 2rem;
  opacity: .3;
}

.bcard-soon p {
  font-size: .82rem;
  color: var(--muted);
}

/* ── Nested nav dropdown (test) ── */

/* Permitir scroll si el menú crece */
.tn-drop-menu {
  overflow-y: auto !important;
  max-height: 82vh !important;
}

.drop-subgroup-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  margin: 0 .35rem;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.drop-subgroup-header:hover { background: var(--bg2); }
.drop-subgroup-header .drop-item-ico {
  width: 32px; height: 32px;
  border-radius: 8px; flex-shrink: 0;
}
.drop-subgroup-header .drop-item-ico::before { font-size: 1.05rem; margin: 0 !important; }
.drop-subgroup-name { font-weight: 600; font-size: .85rem; color: var(--bk); line-height: 1.3; }
.drop-subgroup-sub  { font-size: .74rem; color: var(--muted); margin-top: .05rem; }
.drop-subgroup-text { flex: 1; }
.drop-subgroup-arrow {
  font-size: .62rem; color: var(--muted);
  transition: transform .2s;
  display: inline-block;
}
.drop-subgroup.open .drop-subgroup-arrow { transform: rotate(90deg); }

/* Sub-items expand inline */
.drop-subgroup-items {
  display: none;
  border-left: 2px solid var(--border);
  margin: .1rem .85rem .3rem 2.4rem;
}
.drop-subgroup.open .drop-subgroup-items { display: block; }

.drop-subitem {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.drop-subitem:hover { background: var(--bg2); }
.drop-subitem .drop-item-ico {
  width: 32px; height: 32px;
  border-radius: 8px; flex-shrink: 0;
}
.drop-subitem .drop-item-ico::before { font-size: 1.05rem; margin: 0 !important; }
.drop-subitem-name { font-size: .85rem; font-weight: 600; color: var(--bk); line-height: 1.3; }
.drop-subitem-sub  { font-size: .75rem; color: var(--muted); margin-top: .05rem; }

.drop-subcat-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
  padding: 10px 16px 4px;
}
.drop-subcat-label:not(:first-child) {
  border-top: 1px solid var(--border);
  margin-top: .3rem;
  padding-top: .75rem;
}

/* ── Filtros ── */
.bfilter {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 5%;
  position: sticky;
  top: 60px;
  z-index: 100;
}
.bfilter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
/* Search */
.bfilter-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .45rem 1rem;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  transition: border-color .2s;
}
.bfilter-search:focus-within {
  border-color: var(--g2);
}
.bfilter-search svg { flex-shrink: 0; color: var(--muted); }
.bfilter-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--f);
  font-size: .88rem;
  color: var(--txt);
  width: 100%;
}
.bfilter-search input::placeholder { color: var(--muted); }
/* Dropdown trigger buttons */
.bfilter-dd-wrap { position: relative; }
.bfilter-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .45rem 1rem;
  font-family: var(--f);
  font-size: .88rem;
  font-weight: 600;
  color: var(--txt);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
  user-select: none;
}
.bfilter-dd-btn:hover, .bfilter-dd-btn.open { border-color: var(--g2); color: var(--g2); }
.bfilter-dd-btn .dd-arrow {
  font-size: .65rem;
  transition: transform .2s;
  margin-left: .1rem;
}
.bfilter-dd-btn.open .dd-arrow { transform: rotate(180deg); }
.bfilter-dd-badge {
  background: var(--g2);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: .1rem .45rem;
  min-width: 18px;
  text-align: center;
}
/* Dropdown panel */
.bfilter-dd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
.bfilter-dd-panel.open { display: block; }
.bfilter-dd-list {
  max-height: 260px;
  overflow-y: auto;
  padding: .5rem 0;
}
.bfilter-dd-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.1rem;
  font-size: .86rem;
  color: var(--txt);
  cursor: pointer;
  transition: background .15s;
}
.bfilter-dd-item:hover { background: var(--bg2); }
.bfilter-dd-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--g2);
  cursor: pointer;
  flex-shrink: 0;
}
.bfilter-dd-item label { cursor: pointer; line-height: 1.3; flex: 1; }
.bfilter-dd-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--border);
  gap: .6rem;
}
.bfilter-dd-reset {
  background: none;
  border: none;
  font-family: var(--f);
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 4px;
  transition: color .2s;
}
.bfilter-dd-reset:hover { color: var(--bk); }
.bfilter-dd-apply {
  background: var(--g2);
  border: none;
  color: #fff;
  font-family: var(--f);
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .2s;
}
.bfilter-dd-apply:hover { opacity: .85; }
.bfilter-dd-year { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .55rem 1rem .2rem; }
/* Results count */
.bfilter-count {
  margin-left: auto;
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
}
.bfilter-count strong { color: var(--txt); }

/* ── Mostrar más ── */
.bindex-more {
  text-align: center;
  padding: 2.4rem 0 .4rem;
}
.bindex-more-btn {
  background: none;
  border: 1.5px solid var(--g2);
  color: var(--g2);
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--f);
  padding: .65rem 2rem;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.bindex-more-btn:hover { background: var(--g2); color: #fff; }
.bindex-more-btn:disabled { opacity: .35; pointer-events: none; }

/* ── Sin resultados ── */
.bindex-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: .92rem;
  display: none;
}
