/* =========================================================
   Ricopesca B2B - Cabecera premium de categorias
   Primer bloque de rediseño: category.tpl
========================================================= */

.rcp-category-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 30px;
  align-items: center;
  margin: 0 0 34px;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 131, 177, 0.12) 0%, rgba(0, 131, 177, 0) 34%),
    linear-gradient(135deg, #f4fbfe 0%, #ffffff 62%, #f8fbfd 100%);
  border: 1px solid rgba(31, 27, 75, 0.08);
  box-shadow: 0 22px 56px rgba(31, 27, 75, 0.08);
  overflow: hidden;
}

.rcp-category-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #0083b1 0%, #201b4b 100%);
}

.rcp-category-hero__content,
.rcp-category-hero__media {
  position: relative;
  z-index: 2;
}

.rcp-category-hero__kicker {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0083b1;
}

.rcp-category-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #201b4b;
  text-transform: none;
}

.rcp-category-hero__description {
  max-width: 680px;
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 500;
  color: rgba(31, 27, 75, 0.72);
}

.rcp-category-hero__description p:last-child {
  margin-bottom: 0;
}

.rcp-category-hero__media {
  display: flex;
  justify-content: center;
}

.rcp-category-hero__media picture,
.rcp-category-hero__media img,
.rcp-category-hero__fallback {
  display: block;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
}

.rcp-category-hero__media img {
  height: auto;
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 18px 38px rgba(31, 27, 75, 0.13);
}

.rcp-category-hero__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d5d8f 0%, #201b4b 100%);
  box-shadow: 0 18px 38px rgba(31, 27, 75, 0.13);
}

.rcp-category-hero__fallback span {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.rcp-category-subcategories {
  margin: 0 0 28px;
}

/* Ajuste visual del breadcrumb existente */
#wrapper .breadcrumb,
.breadcrumb {
  font-size: 13px;
  color: rgba(31, 27, 75, 0.58);
}

/* Tablet */
@media (max-width: 991px) {
  .rcp-category-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px;
  }

  .rcp-category-hero__media {
    justify-content: flex-start;
  }

  .rcp-category-hero__media picture,
  .rcp-category-hero__media img,
  .rcp-category-hero__fallback {
    max-width: 220px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .rcp-category-hero {
    margin-bottom: 26px;
    padding: 24px 20px;
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  .rcp-category-hero::before {
    width: 100%;
    height: 5px;
  }

  .rcp-category-hero__kicker {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .rcp-category-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .rcp-category-hero__description {
    font-size: 15px;
    line-height: 1.5;
  }

  .rcp-category-hero__media picture,
  .rcp-category-hero__media img,
  .rcp-category-hero__fallback {
    max-width: 160px;
    border-radius: 22px;
  }

  .rcp-category-hero__fallback span {
    font-size: 48px;
  }
}
