@charset "utf-8";
/* ROOTS */
:root {
  --color-primario: #059696;
  --color-primario-oscuro: #30302f;
  --color-texto: #4b4b4b;
  --color-gris-claro: #c9c9c7;
  --color-blanco: #ffffff;
  --color-secundario-fondo: #f8f9fa;
  --color-verde-logo: #00aaad;
}

p {
  font-size: 1rem;
  color: #3da092;
}

h2 {
  font-size: 1.5rem;
  color: #4b4c4c;
}

li {
  font-size: 1rem;
  color: #3da092;
}

body {
  padding-top: 70px;
  background-color: f0efef;
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-primario);
}

.navbar.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
  height: 80px;
  transition: all 0.2s ease;
}

.navbar.scrolled .navbar-logo {
  height: 40px;
}

.nav-link {
  font-size: 1.1rem;
  color: var(--color-texto) !important;
  font-weight: 400;
  transition: all 0.2s ease;
}

.nav-link:hover {
  font-weight: 600;
}

.nav-link:active {
  transform: scale(0.95);
}

.blog-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.3s ease,
    border 0.3s ease;
  position: relative;
  cursor: default;
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border 0.4s ease;
  pointer-events: none;
}

.blog-card:hover {
  box-shadow: 0 0 20px rgba(0, 128, 0, 0.15);
}

.blog-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
}

.blog-content {
  padding: 1rem;
  font-size: 0.95rem;
}

/* Overlay */
.blog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 2rem;
  animation: fadeInOverlay 0.4s ease;
}

.blog-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.85);
  }
}

.blog-reader {
  position: relative;
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.4s ease;
}

.blog-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 1.5rem;
  z-index: 10000;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.blog-close-button:hover {
  transform: rotate(180deg);
}

.blog-close-button i {
  font-size: 1.8rem;
  color: #999;
}

.blog-close-button:hover i {
  color: #000;
}

.blog-reader-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.blog-reader h3 {
  margin: 0;
  padding: 1rem;
  font-size: 1.5rem;
  color: #222;
}

.blog-reader-content {
  padding: 0 1rem 1.5rem 1rem;
  font-size: 1rem;
  text-align: justify;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.blog-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 70px;
  background:
    linear-gradient(rgba(19, 35, 44, 0.58), rgba(19, 35, 44, 0.58)),
    url("imagenes/heroalianza.webp") center center / cover no-repeat;
}

.blog-hero-content {
  text-align: center;
  max-width: 900px;
}

.blog-hero-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 170, 173, 0.92);
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 2.6rem;
  line-height: 1.15;
}

.blog-hero p {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 360px;
    padding: 110px 0 50px;
    background-position: center center;
  }

  .blog-hero h1 {
    font-size: 1.9rem;
  }

  .blog-hero p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }
}

.blog-hero-alianza {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 52px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 20, 28, 0.78) 0%,
      rgba(8, 20, 28, 0.58) 34%,
      rgba(8, 20, 28, 0.22) 58%,
      rgba(8, 20, 28, 0.1) 100%
    ),
    url("imagenes/heroalianza.webp") center center / cover no-repeat;
}

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

.blog-hero-box {
  max-width: 620px;
  padding: 1.5rem 1.75rem;
  background: rgba(8, 20, 28, 0.28);
  border-left: 4px solid #00aaad;
  border-radius: 0 10px 10px 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.blog-hero-alianza h1 {
  margin: 0 0 0.8rem;
  font-size: 2.6rem;
  line-height: 1.12;
  color: #ffffff;
}

.blog-hero-alianza p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

#blog {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .blog-hero-alianza {
    min-height: 340px;
    padding: 110px 0 38px;
    background-position: center center;
  }

  .blog-hero-box {
    max-width: 100%;
    padding: 1.1rem 1rem;
    border-radius: 0 8px 8px 0;
  }

  .blog-hero-alianza h1 {
    font-size: 1.9rem;
  }

  .blog-hero-alianza p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  #blog {
    margin-top: 1.25rem;
  }
}

.blog-hero-nota {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 48px;
  background:
    linear-gradient(
      90deg,
      rgba(15, 24, 31, 0.78) 0%,
      rgba(15, 24, 31, 0.48) 34%,
      rgba(15, 24, 31, 0.18) 62%,
      rgba(15, 24, 31, 0.1) 100%
    ),
    url("imagenes/heroalianzablog.webp") center center / cover no-repeat;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-hero-nota__wrap {
  max-width: 760px;
}

.blog-hero-nota__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-hero-nota__label {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: #00aaad;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.blog-hero-nota__place {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.blog-hero-nota__card {
  background: rgba(255, 255, 255, 0.62);
  border-left: 5px solid #059696;
  padding: 1.6rem 1.8rem 1.5rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.blog-hero-nota__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059696;
}

.blog-hero-nota h1 {
  margin: 0 0 0.9rem;
  font-size: 2.55rem;
  line-height: 1.12;
  color: #30302f;
}

.blog-hero-nota__lead {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #30302f;
}

.blog-hero-nota__excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b4b4b;
}

#blog {
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .blog-hero-nota {
    min-height: 460px;
  }

  .blog-hero-nota h1 {
    font-size: 2.15rem;
  }
}

@media (max-width: 768px) {
  .blog-hero-nota {
    min-height: 390px;
    padding: 105px 0 30px;
    background-position: center center;
  }

  .blog-hero-nota__wrap {
    max-width: 100%;
  }

  .blog-hero-nota__meta {
    margin-bottom: 0.85rem;
  }

  .blog-hero-nota__card {
    padding: 1.2rem 1rem 1.15rem;
    border-left-width: 4px;
  }

  .blog-hero-nota h1 {
    font-size: 1.75rem;
    line-height: 1.16;
  }

  .blog-hero-nota__lead,
  .blog-hero-nota__excerpt {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  #blog {
    margin-top: 1.25rem;
  }
}

/* FILTROS BLOG */
.blog-filters {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-filters__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(5, 150, 150, 0.18);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(48, 48, 47, 0.08);
}

.blog-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blog-filters__group--order {
  min-width: 220px;
}

.blog-filters__label {
  display: inline-block;
  color: var(--color-primario-oscuro);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-filters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blog-filter-btn,
.blog-filter-select {
  border: 1px solid rgba(48, 48, 47, 0.18);
  background: #ffffff;
  color: var(--color-texto);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.blog-filter-btn {
  padding: 0.52rem 0.9rem;
  cursor: pointer;
}

.blog-filter-btn:hover,
.blog-filter-btn:focus {
  border-color: rgba(5, 150, 150, 0.55);
  color: var(--color-primario-oscuro);
  box-shadow: 0 6px 18px rgba(5, 150, 150, 0.12);
}

.blog-filter-btn:active {
  transform: scale(0.97);
}

.blog-filter-btn.active {
  background: var(--color-primario);
  border-color: var(--color-primario);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 150, 150, 0.22);
}

.blog-filter-select {
  width: 100%;
  padding: 0.55rem 0.95rem;
  appearance: auto;
  cursor: pointer;
}

.blog-filter-select:hover,
.blog-filter-select:focus {
  border-color: rgba(5, 150, 150, 0.55);
  outline: none;
  box-shadow: 0 6px 18px rgba(5, 150, 150, 0.12);
}

[data-blog-card].is-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .blog-filters {
    margin-top: 1.15rem;
  }

  .blog-filters__panel {
    padding: 1rem;
    border-radius: 8px;
  }

  .blog-filters__group,
  .blog-filters__group--order {
    width: 100%;
  }

  .blog-filter-btn {
    padding: 0.5rem 0.78rem;
    font-size: 0.86rem;
  }
}
