{% scope_css %}
/* ==========================================================================
   SECCIÓN COMUNIDAD CIMA (VIAJES QUE CONECTAN)
   ========================================================================== */
.cima-community-section {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  padding: 80px 24px 100px; 
  font-family: "Montserrat", sans-serif;
}
.cima-community-section,
.cima-intro-section {
    display: block;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    /* La altura debe ser explícita o contenida por elementos estáticos, nunca solo absolutos */
}

/* ================== VECTORES DE FONDO ================== */
.cima-community-bg {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Vector superior */
.cima-community-bg--top {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1510px;
  max-width: 100%; 
  height: 712px;
  background-image: url('https://8585816.fs1.hubspotusercontent-na1.net/hubfs/8585816/Cordillera%20LATAM%202025%20(PG%20web)/SVG/vector_huila.svg');
  background-size: cover; 
  background-position: center top;
  opacity: 1; 
}


.cima-community-bg--bottom {
  right: -50px;
  bottom: -20px;
  width: 1092px;
  max-width: 70vw; 
  height: 500px;
  background-image: url('https://8585816.fs1.hubspotusercontent-na1.net/hubfs/8585816/Cordillera%20LATAM%202025%20(PG%20web)/nevado-cocuy.png');
  background-size: contain; 
  background-position: right bottom;
  opacity: 1;
}

/* ================== CONTENEDORES Y TEXTOS ================== */
.cima-community-container {
  position: relative;
  z-index: 2;
  max-width: 1280px; 
  margin: 0 auto;
}

.cima-community-header {
  position: relative;
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.cima-community-title {
  margin: 0 auto 20px;
  color: #132b3f;
  font-size: clamp(48px, 8vw, 124px); 
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.cima-community-description-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.cima-community-description {
  width: 100%;
  max-width: 540px;
  margin: 0;
  color: #132b3f;
  font-size: clamp(16px, 2vw, 24px); /
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance; 
}

/* ================== GRID DE TARJETAS ================== */
.cima-community-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; 
  margin: 0 auto 60px;
  width: 100%;
}

.cima-community-card {
  position: relative;
  width: 100%;
  aspect-ratio: 409 / 450; 
  max-height: 450px; 
  border-radius: 18px;
  overflow: hidden;
  background: #d9d9d9;
  transition: transform 0.3s ease;
}

.cima-community-card:hover {
  transform: translateY(-5px); 
}

.cima-community-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cima-community-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px;
  z-index: 2;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(19, 43, 63, 0) 0%,
    rgba(19, 43, 63, 0.4) 40%,
    rgba(19, 43, 63, 0.85) 100%
  );
  
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cima-community-card-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px; 
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.cima-community-card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px; 
  font-weight: 500;
  line-height: 1.3;
}

/* ================== CIERRE  ================== */
.cima-community-closing {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cima-community-closing-title {
  margin: 0 0 4px;
  color: #005c69;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.cima-community-closing-subtitle {
  margin: 0;
  color: #005c69;
  font-size: clamp(24px, 3.2vw, 40px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ==================================================================
   RESPONSIVE 
  ==================================================================== */


@media (max-width: 991px) {
  .cima-community-section {
    padding: 60px 20px 80px;
  }

  .cima-community-cards {
    
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  
  .cima-community-card:nth-child(3) {
    grid-column: span 2;
    aspect-ratio: 16 / 9; 
  }
}


@media (max-width: 767px) {
  .cima-community-section {
    padding: 50px 16px 60px;
  }

  .cima-community-header {
    margin-bottom: 40px;
  }

  .cima-community-cards {
    grid-template-columns: 1fr;
    max-width: 400px; 
  }

  .cima-community-card,
  .cima-community-card:nth-child(3) {
    grid-column: span 1;
    aspect-ratio: 409 / 450; 
  }

  .cima-community-bg--bottom {
    right: -20px;
    max-width: 80vw;
  }
}
{% end_scope_css %}