/* =================================================
   RL CATEGORY BRANDS – Sección 40/60 bajo el hero
   El hero original (H1 + descripción) NO se toca.
================================================= */

.rlcb-section{
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 28px;
  align-items: stretch;
  margin: 22px 0 28px;
}

/* ========= COLUMNA IZQUIERDA: marcas ========= */
.rlcb-section-left{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rlcb-brands-title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #0c1c3d;
  margin: 0 0 14px;
}

.rlcb-brands-title::before{
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00b1d7, #0c1c3d);
}

.rlcb-brands-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  align-content: stretch;
}

/* === Tarjeta de marca === */
.rlcb-brand-card{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8ecf3;
  padding: 12px;
  min-height: 78px;

  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 1px 2px rgba(12,28,61,0.04);
}

/* Sutil acento turquesa en la esquina inferior derecha al hover */
.rlcb-brand-card::after{
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at center, rgba(0,177,215,0.18) 0%, rgba(0,177,215,0) 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.rlcb-brand-card:hover{
  transform: translateY(-3px);
  border-color: #00b1d7;
  box-shadow: 0 12px 24px rgba(12,28,61,0.12);
  text-decoration: none;
}

.rlcb-brand-card:hover::after{
  opacity: 1;
}

.rlcb-brand-card img{
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: saturate(0.92);
  transition: filter .25s ease, transform .25s ease;
}

.rlcb-brand-card:hover img{
  filter: saturate(1.08);
  transform: scale(1.04);
}

/* Fallback texto cuando no hay imagen */
.rlcb-brand-card--text{
  background: linear-gradient(135deg, #ffffff 0%, #f1f5fa 100%);
}

.rlcb-brand-card--text .rlcb-brand-name{
  font-size: 13px;
  font-weight: 800;
  color: #0c1c3d;
  text-align: center;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .4px;
  word-break: break-word;
  padding: 4px;
}

.rlcb-brand-card--text:hover .rlcb-brand-name{
  color: #00b1d7;
}

/* ========= COLUMNA DERECHA: banner imagen ========= */
.rlcb-section-right{
  position: relative;
  min-width: 0;
  display: flex;
}

.rlcb-cover{
  width: 100%;
  aspect-ratio: 7 / 2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(12,28,61,0.14);
  background: #f1f4f9;
  position: relative;
}

.rlcb-cover img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  max-height: none !important;
  transition: transform .6s ease;
}

.rlcb-cover:hover img{
  transform: scale(1.03);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1199px){
  .rlcb-cover{
    aspect-ratio: 7 / 2;
  }

  .rlcb-brand-card img{
    max-height: 44px;
  }
}

@media (max-width: 991px){
  .rlcb-section{
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 18px 0 22px;
  }

  .rlcb-cover{
    aspect-ratio: 7 / 2;
  }

  .rlcb-brands-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 575px){
  .rlcb-section{
    margin: 14px 0 18px;
    gap: 14px;
  }

  .rlcb-cover{
    aspect-ratio: 7 / 2;
    border-radius: 10px;
  }

  .rlcb-brands-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .rlcb-brand-card{
    border-radius: 10px;
    padding: 10px;
    min-height: 64px;
  }

  .rlcb-brand-card img{
    max-height: 36px;
  }

  .rlcb-brand-card--text .rlcb-brand-name{
    font-size: 11px;
  }

  .rlcb-brands-title{
    font-size: 11px;
    letter-spacing: 1.3px;
    margin-bottom: 10px;
  }
}

@media (max-width: 360px){
  .rlcb-brands-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
