:root {
  /* ==============================
     IDENTIDAD BOGOTÁ VIVE
  ============================== */

  --bv-primary: #8B1E2D;
  --bv-primary-dark: #681521;
  --bv-primary-light: #B83242;

  --bv-dark: #1F1F1F;
  --bv-dark-soft: #2B2B2B;

  --bv-gray: #6A6A6A;
  --bv-gray-light: #E6E6E6;
  --bv-gray-bg: #F2F2F2;

  --bv-white: #FFFFFF;
  --bv-body-bg: #FFFFFF;
  --bv-surface: #FFFFFF;
  --bv-surface-alt: #F8F6F4;

  --bv-border: #E3E0DC;
  --bv-shadow: rgba(31, 31, 31, 0.12);

  /* ==============================
     TIPOGRAFÍAS
  ============================== */

  --bv-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --bv-font-body: "Montserrat", Arial, Helvetica, sans-serif;

  /* ==============================
     BOOTSTRAP OVERRIDES
     Estas variables afectan clases nativas como
     .text-primary, .bg-primary, .btn-primary, etc.
  ============================== */

  --bs-primary: var(--bv-primary);
  --bs-secondary: var(--bv-gray);
  --bs-dark: var(--bv-dark);
  --bs-light: var(--bv-gray-bg);

  --bs-body-font-family: var(--bv-font-body);
  --bs-body-color: var(--bv-dark);
  --bs-body-bg: var(--bv-body-bg);

  --bs-link-color: var(--bv-primary);
  --bs-link-hover-color: var(--bv-primary-dark);

  --bs-border-color: var(--bv-border);
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;

  --bs-heading-color: var(--bv-dark);
}



body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main,
.main-content,
.layout-main-wrapper,
.region-content {
  padding-left: 0;
  padding-right: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--bv-font-heading);
  color: var(--bv-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1,
.h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.08;
}

h2,
.h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

h3,
.h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

p {
  color: var(--bv-dark);
  line-height: 1.65;
}

.text-muted {
  color: var(--bv-gray) !important;
}



a {
  color: var(--bv-primary);
  text-decoration: none;
  transition: color 180ms ease-in-out;
}

a:hover,
a:focus {
  color: var(--bv-primary-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid rgba(139, 30, 45, 0.35);
  outline-offset: 3px;
  border-radius: 0.25rem;
}



.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  transition: all 180ms ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bv-primary);
  --bs-btn-border-color: var(--bv-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bv-primary-dark);
  --bs-btn-hover-border-color: var(--bv-primary-dark);

  --bs-btn-focus-shadow-rgb: 139, 30, 45;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bv-primary-dark);
  --bs-btn-active-border-color: var(--bv-primary-dark);

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bv-primary-light);
  --bs-btn-disabled-border-color: var(--bv-primary-light);
}

.btn-outline-primary {
  --bs-btn-color: var(--bv-primary);
  --bs-btn-border-color: var(--bv-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bv-primary);
  --bs-btn-hover-border-color: var(--bv-primary);

  --bs-btn-focus-shadow-rgb: 139, 30, 45;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bv-primary-dark);
  --bs-btn-active-border-color: var(--bv-primary-dark);
}



.navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--bv-border);
  box-shadow: 0 2px 12px rgba(31, 31, 31, 0.04);
}

.navbar-brand img {
  max-height: 64px;
}

.navbar-nav .nav-link {
  color: var(--bv-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding-inline: 0.85rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--bv-primary);
}

.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
  color: var(--bv-primary);
  font-weight: 600;
}

.navbar-nav .nav-link.active {
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  background-color: var(--bv-primary);
}



.bv-hero {
  position: relative;
  min-height: 520px;
  color: #fff;
  background-color: var(--bv-dark);
  overflow: hidden;
}

.bv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.44) 48%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
}

.bv-hero img,
.bv-hero .bv-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bv-hero .container {
  position: relative;
  z-index: 2;
}

.bv-hero h1 {
  color: #fff;
  max-width: 700px;
}

.bv-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}


.card {
  border-color: var(--bv-border);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.07);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31, 31, 31, 0.13);
}

.card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-title {
  font-family: var(--bv-font-heading);
  color: var(--bv-dark);
  font-weight: 700;
  line-height: 1.25;
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--bv-primary);
}

.card-text {
  color: var(--bv-gray);
  font-size: 0.95rem;
}



.badge {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge.bg-primary {
  background-color: var(--bv-primary) !important;
  color: #fff;
}

.bv-badge-category {
  background-color: var(--bv-primary);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
}


.bv-section {
  padding-block: 4rem;
}

.bv-section-alt {
  background-color: var(--bv-surface-alt);
}

.bv-section-title {
  font-family: var(--bv-font-heading);
  color: var(--bv-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.bv-section-title::before {
  content: "✦";
  color: var(--bv-primary);
  margin-right: 0.5rem;
  font-size: 0.8em;
}


/* ==============================
   FOOTER - BOGOTÁ VIVE
   Compatible con Bootstrap 5 + Drupal
============================== */

footer {
  margin-top: 4rem;
  background-color: var(--bv-dark, #1F1F1F);
  color: #F2F2F2;
}

footer .container-fluid {
  background-color: var(--bv-dark, #1F1F1F);
}

.region-footer {
  background:
    linear-gradient(
      135deg,
      var(--bv-dark, #1F1F1F) 0%,
      #151515 100%
    );
  color: #F2F2F2;
  padding: 2.5rem 1rem;
}

.blog-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 !important;
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-footer .field__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding-top: 1.5rem;
  font-family: var(--bv-font-body, "Montserrat", Arial, sans-serif);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.blog-footer .field__item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.blog-footer .field__item p:first-child {
  font-weight: 500;
}

.blog-footer a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease-in-out;
}

.blog-footer a:hover,
.blog-footer a:focus {
  color: var(--bv-primary-light, #B83242);
  text-decoration: underline;
}

.blog-footer a:focus-visible {
  outline: 3px solid rgba(184, 30, 45, 0.4);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.bv-newsletter {
  background: linear-gradient(
    90deg,
    var(--bv-primary-dark),
    var(--bv-primary)
  );
  color: #fff;
}

.bv-newsletter h2 {
  color: #fff;
}

.bv-newsletter p {
  color: rgba(255, 255, 255, 0.88);
}

.bv-newsletter .form-control {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.bv-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.bv-newsletter .form-control:focus {
  border-color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.18);
}



.bg-bv-primary {
  background-color: var(--bv-primary) !important;
}

.bg-bv-dark {
  background-color: var(--bv-dark) !important;
}

.bg-bv-soft {
  background-color: var(--bv-surface-alt) !important;
}

.text-bv-primary {
  color: var(--bv-primary) !important;
}

.text-bv-dark {
  color: var(--bv-dark) !important;
}

.text-bv-muted {
  color: var(--bv-gray) !important;
}

.border-bv {
  border-color: var(--bv-border) !important;
}

.shadow-bv {
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.12) !important;
}

.rounded-bv {
  border-radius: 1rem !important;
}







/**********************/



.bv-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 40%, rgba(0, 0, 0, 0.08) 100%),
    url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bv-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 620px;
}

.bv-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.bv-hero__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

.bv-btn-hero {
  background-color: #b3292f;
  color: #ffffff;
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(179, 41, 47, 0.25);
}

.bv-btn-hero:hover,
.bv-btn-hero:focus {
  background-color: #8b1e2d;
  color: #ffffff;
  transform: translateY(-2px);
}

.min-vh-50 {
  min-height: 520px;
}

@media (max-width: 991.98px) {
  .bv-hero {
    min-height: 460px;
    background-position: center;
  }

  .bv-hero__content {
    padding: 60px 0;
  }

  .bv-hero__title {
    font-size: 3rem;
  }

  .bv-hero__text {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .bv-hero {
    min-height: 420px;
  }

  .bv-hero__title {
    font-size: 2.35rem;
  }

  .bv-hero__text {
    font-size: 1rem;
  }

  .bv-btn-hero {
    width: 100%;
    text-align: center;
  }
}




/**************/


/* Header Bogotá Vive */
.bv-header {
  background: #ffffff;
}

.bv-navbar {
  background: #ffffff;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bv-navbar > .container {
  max-width: 1200px;
}

/* Branding / logo */
.bv-navbar-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bv-navbar-branding img {
  max-height: 64px;
  width: auto;
}

/* Si el branding trae texto del sitio */
.bv-navbar-branding a {
  text-decoration: none;
}

/* Menú */
.bv-navbar-collapse {
  flex-grow: 1;
}

.bv-navbar-main {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Drupal puede imprimir ul.menu, ul.navbar-nav o nav > ul */
.bv-navbar-main ul,
.bv-navbar-additional ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bv-navbar-main li,
.bv-navbar-additional li {
  list-style: none;
}

.bv-navbar-main a,
.bv-navbar-additional a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f1f1f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bv-navbar-main a:hover,
.bv-navbar-main a:focus,
.bv-navbar-additional a:hover,
.bv-navbar-additional a:focus {
  color: #8b1e2d;
}

/* Enlace activo */
.bv-navbar-main a.is-active,
.bv-navbar-main .active > a,
.bv-navbar-main .nav-link.active {
  color: #8b1e2d;
}

.bv-navbar-main a.is-active::after,
.bv-navbar-main .active > a::after,
.bv-navbar-main .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  background: #8b1e2d;
  border-radius: 10px;
}

/* Botón responsive */
.bv-navbar-toggler {
  border: 0;
  padding: 0.35rem 0.5rem;
}

.bv-navbar-toggler:focus {
  box-shadow: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  .bv-navbar {
    padding: 0.6rem 0;
  }

  .bv-navbar > .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .bv-navbar-branding img {
    max-height: 52px;
  }

  .bv-navbar-collapse {
    margin-top: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .bv-navbar-main,
  .bv-navbar-additional {
    width: 100%;
    justify-content: flex-start;
  }

  .bv-navbar-main ul,
  .bv-navbar-additional ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .bv-navbar-main li,
  .bv-navbar-additional li {
    width: 100%;
  }

  .bv-navbar-main a,
  .bv-navbar-additional a {
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .bv-navbar-main a.is-active::after,
  .bv-navbar-main .active > a::after,
  .bv-navbar-main .nav-link.active::after {
    display: none;
  }
}




.bv-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}






/*********CATEGORIAS***************/












.bv-categorias {
  position: relative;
  z-index: 5;
  margin-top: -55px;
  padding-bottom: 3rem;
  background: transparent;
}

.bv-categorias .container {
  max-width: 1200px;
}

/* Tarjeta */
.bv-categoria-card {
  display: block;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e7e1dc;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  text-decoration: none !important;
  color: #1f1f1f;
  box-shadow: 0 12px 28px rgba(31, 31, 31, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.bv-categoria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(31, 31, 31, 0.16);
  color: #8b1e2d;
}

/* Imagen */
.bv-categoria-img {
  width: 100%;
  height: 125px;
  overflow: hidden;
  background: #f2f2f2;
}

.bv-categoria-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bv-categoria-card:hover .bv-categoria-img img {
  transform: scale(1.06);
}

/* Icono circular */
.bv-categoria-icon {
  width: 48px;
  height: 48px;
  margin: -24px auto 0.65rem;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #e7e1dc;
  border-radius: 50%;
  color: #1f1f1f;
  font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.bv-categoria-card:hover .bv-categoria-icon {
  color: #8b1e2d;
  border-color: rgba(139, 30, 45, 0.28);
}

/* Título */
.bv-categoria-card h3,
.bv-categorias h3 {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0.8rem 1.2rem !important;
  margin: 0 !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.08rem !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  color: #1f1f1f !important;
  text-align: center !important;
  text-decoration: none !important;
}

.bv-categoria-card:hover h3 {
  color: #8b1e2d !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  .bv-categorias {
    margin-top: 2rem;
  }

  .bv-categoria-img {
    height: 145px;
  }
}

@media (max-width: 575.98px) {
  .bv-categorias {
    padding-bottom: 2rem;
  }

  .bv-categoria-img {
    height: 125px;
  }

  .bv-categoria-card h3,
  .bv-categorias h3 {
    font-size: 1rem !important;
  }
}













/* Tarjetas de artículos tipo mockup */











.bv-article-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #e7e1dc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(31, 31, 31, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bv-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(31, 31, 31, 0.14);
}

.bv-article-img {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.bv-article-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bv-article-card:hover .bv-article-img img {
  transform: scale(1.06);
}

.bv-article-tag {
position: absolute;
    left: 0.80rem;
    bottom: 0.30rem;
    display: inline-flex;
    align-items: center;
    background: #8b1e2d;
    color: #ffffff;
    border-radius: 999px;
    padding: 3px 15px;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bv-article-tag a {
	color: #ffffff;
	 padding:2px;
}

.bv-article-body {
  padding: 1.1rem 1.15rem 1rem;
}

.bv-article-body h3 {
  margin: 0 0 0.55rem;
  padding: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.18;
  font-weight: 800;
  color: #1f1f1f;
}

.bv-article-body h3 a {
  color: #1f1f1f;
  text-decoration: none;
}

.bv-article-body h3 a:hover {
  color: #8b1e2d;
}

.bv-article-summary {
  color: #6a6a6a;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}








/***********************/


.bv-article-summary p {
  margin-bottom: 0;
}

.bv-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #6a6a6a;
  font-size: 0.78rem;
}

.bv-article-meta i {
  color: #6a6a6a;
}




/**********************/









/**************************/

.view-taxonomy-term .view-header .field--name-field-imagen {
  width: 100vw;
  max-width: 100vw;
  height: 330px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
}

/* Contenedores internos del campo de Drupal */
.view-taxonomy-term .view-header .field--name-field-imagen .field__item,
.view-taxonomy-term .view-header .field--name-field-imagen picture {
  width: 100%;
  height: 100%;
  display: block;
}

/* Imagen como cover, tomando referencia desde abajo */
.view-taxonomy-term .view-header .field--name-field-imagen img {
  width: 100%;
  height: 124% !important;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}



@media (max-width: 768px) {
  .view-taxonomy-term .view-header .field--name-field-imagen {
    height: 190px;
  }
}