/**
 * @file
 * Styles for the Colección detail page.
 * Uses only --ra- CSS variables from the theme.
 *
 * TABLE OF CONTENTS:
 * =================
 * 1. BASE LAYOUT & STRUCTURE
 * 2. HERO BANNER SECTION
 * 3. SIDEBAR COMPONENTS
 *    - Keywords Section
 *    - Files Section
 *    - News Archive Section
 * 4. MAIN CONTENT AREA
 * 5. ACCORDION SECTIONS
 * 6. PARAGRAPH COMPONENTS
 * 7. GROUPS & CARDS
 * 8. EXTERNAL RESOURCES
 * 9. UTILITIES & HELPERS
 * 10. RESPONSIVE DESIGN
 */

/* ====================================
   1. BASE LAYOUT & STRUCTURE
   ==================================== */

/* Base Button Class - Consistent styling for all buttons */
.coleccion-btn,
.coleccion-detail .btn-primary,
.coleccion-detail .button--primary,
.coleccion-detail .cta-button {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-color-cobalt, #0943b5);
  border: 2px solid var(--ra-color-cobalt, #0943b5);
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--ra-shadow-sm, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
  cursor: pointer;
  text-align: center;
}

.coleccion-btn:hover,
.coleccion-btn:focus,
.coleccion-detail .btn-primary:hover,
.coleccion-detail .btn-primary:focus,
.coleccion-detail .button--primary:hover,
.coleccion-detail .button--primary:focus,
.coleccion-detail .cta-button:hover,
.coleccion-detail .cta-button:focus {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
  box-shadow: var(--ra-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  transform: translateY(-2px);
}

.coleccion-btn:focus-visible,
.coleccion-detail .btn-primary:focus-visible,
.coleccion-detail .button--primary:focus-visible,
.coleccion-detail .cta-button:focus-visible {
  outline: 3px solid var(--ra-color-havelock-blue, #4672c8);
  outline-offset: 2px;
}

/* Two-column Content Layout */
.coleccion-content {
  padding: 3rem 1rem;
}

.coleccion-content__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}

/* Override grid for constructor section to allow full width layouts */
.coleccion-constructor-section .coleccion-content__container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Left Sidebar Structure */
.coleccion-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Main Content Structure */
.coleccion-main {
  min-width: 0;
}

/* ==========================
   SECTION LAYOUTS
   ========================== */
.ra-seccion {
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
}

.ra-seccion.layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

.layout__region {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

/* Prevent content overflow in paragraphs */
.layout__region .paragraph {
  max-width: 100%;
  overflow: hidden;
}

/* Video embeds - ensure they stay within bounds */
.layout__region .ra-media-video,
.layout__region .ra-media-video__embed {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.layout__region .ra-media-video__embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.layout__region .ra-media-video__embed iframe,
.layout__region .ra-media-video__embed video,
.layout__region .ra-media-video__embed > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* Images - ensure they stay within bounds */
.layout__region img {
  max-width: 100%;
  height: auto;
}

/* Iframes and embeds */
.layout__region iframe,
.layout__region embed,
.layout__region object {
  max-width: 100%;
}

/* Drupal oEmbed/Media content */
.layout__region .media-oembed-content,
.layout__region .field--type-oembed-video,
.layout__region .field--name-field-media-oembed-video {
  max-width: 100%;
  width: 100%;
}

.layout__region .media-oembed-content iframe {
  max-width: 100% !important;
}

/* =============================================
   DRUPAL CORE LAYOUTS (layout_*)
   ============================================= */

/* --- 1 Column (layout_onecol) --- */
.ra-seccion.layout-onecol {
  flex-direction: column;
}
.ra-seccion.layout-onecol .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
}

/* --- 2 Columns (layout_twocol, layout_twocol_section) --- */
.ra-seccion.layout-twocol,
.ra-seccion.layout-twocol-section {
  flex-direction: row;
}
.ra-seccion.layout-twocol .layout__region,
.ra-seccion.layout-twocol-section .layout__region {
  flex: 0 0 50%;
  max-width: 50%;
}

/* --- 2 Column Bricks (layout_twocol_bricks) --- */
.ra-seccion.layout-twocol-bricks {
  flex-direction: row;
}
.ra-seccion.layout-twocol-bricks .layout__region {
  flex: 0 0 50%;
  max-width: 50%;
}

/* --- 3 Columns (layout_threecol_section) --- */
.ra-seccion.layout-threecol-section {
  flex-direction: row;
}
.ra-seccion.layout-threecol-section .layout__region {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

/* --- 3 Columns 25/50/25 (layout_threecol_25_50_25) --- */
.ra-seccion.layout-threecol-25-50-25 {
  flex-direction: row;
}
.ra-seccion.layout-threecol-25-50-25 .layout__region:nth-child(1),
.ra-seccion.layout-threecol-25-50-25 .layout__region--first,
.ra-seccion.layout-threecol-25-50-25 .layout__region--left {
  flex: 0 0 25%;
  max-width: 25%;
}
.ra-seccion.layout-threecol-25-50-25 .layout__region:nth-child(2),
.ra-seccion.layout-threecol-25-50-25 .layout__region--second,
.ra-seccion.layout-threecol-25-50-25 .layout__region--middle {
  flex: 0 0 50%;
  max-width: 50%;
}
.ra-seccion.layout-threecol-25-50-25 .layout__region:nth-child(3),
.ra-seccion.layout-threecol-25-50-25 .layout__region--third,
.ra-seccion.layout-threecol-25-50-25 .layout__region--right {
  flex: 0 0 25%;
  max-width: 25%;
}

/* --- 3 Columns 33/34/33 (layout_threecol_33_34_33) --- */
.ra-seccion.layout-threecol-33-34-33 {
  flex-direction: row;
}
.ra-seccion.layout-threecol-33-34-33 .layout__region:nth-child(1),
.ra-seccion.layout-threecol-33-34-33 .layout__region--first {
  flex: 0 0 33%;
  max-width: 33%;
}
.ra-seccion.layout-threecol-33-34-33 .layout__region:nth-child(2),
.ra-seccion.layout-threecol-33-34-33 .layout__region--second {
  flex: 0 0 34%;
  max-width: 34%;
}
.ra-seccion.layout-threecol-33-34-33 .layout__region:nth-child(3),
.ra-seccion.layout-threecol-33-34-33 .layout__region--third {
  flex: 0 0 33%;
  max-width: 33%;
}

/* --- 4 Columns (layout_fourcol_section) --- */
.ra-seccion.layout-fourcol-section {
  flex-direction: row;
}
.ra-seccion.layout-fourcol-section .layout__region {
  flex: 0 0 25%;
  max-width: 25%;
}

/* =============================================
   BARRIO THEME LAYOUTS (barrio_*)
   ============================================= */

/* --- Card Basic (barrio_cardbasic) --- */
.ra-seccion.barrio-cardbasic {
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
  margin-left: 0;
  margin-right: 0;
}
.ra-seccion.barrio-cardbasic .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* --- Card Header Footer (barrio_cardheaderfooter) --- */
.ra-seccion.barrio-cardheaderfooter {
  flex-direction: column;
  overflow: visible;
  margin-left: 0;
  margin-right: 0;
}
.ra-seccion.barrio-cardheaderfooter .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 1rem 1.5rem;
  overflow: visible;
}

/* --- Card Horizontal (barrio_cardhorizontal) --- */
.ra-seccion.barrio-cardhorizontal {
  flex-direction: row;
  overflow: visible;
  margin-left: 0;
  margin-right: 0;
}
.ra-seccion.barrio-cardhorizontal .layout__region {
  flex: 1 1 50%;
  max-width: 50%;
  padding: 1.5rem;
  overflow: visible;
}

/* --- Card Image Overlay (barrio_cardimageoverlay) --- */
.ra-seccion.barrio-cardimageoverlay {
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
  min-height: 300px;
}

/* First region - background/image area */
.ra-seccion.barrio-cardimageoverlay .layout__region:first-child {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  z-index: 1;
  overflow: hidden;
}

.ra-seccion.barrio-cardimageoverlay .layout__region:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ra-seccion.barrio-cardimageoverlay
  .layout__region:first-child
  .ra-image-caption {
  margin: 0;
  height: 100%;
}

.ra-seccion.barrio-cardimageoverlay
  .layout__region:first-child
  .ra-image-caption__image {
  height: 100%;
  object-fit: cover;
}

/* Last region - overlay content */
.ra-seccion.barrio-cardimageoverlay .layout__region:last-child {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    transparent 100%
  );
  color: var(--ra-color-white, #ffffff);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* When there's only one region */
.ra-seccion.barrio-cardimageoverlay .layout__region:only-child {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 300px;
  padding: 1.5rem;
  z-index: 1;
}

/* Text styling in overlay */
.ra-seccion.barrio-cardimageoverlay .layout__region:last-child,
.ra-seccion.barrio-cardimageoverlay .layout__region:last-child * {
  color: var(--ra-color-white, #ffffff);
}

.ra-seccion.barrio-cardimageoverlay .layout__region:last-child a {
  color: var(--ra-color-tropical-blue, #b5c7e9);
}

.ra-seccion.barrio-cardimageoverlay .layout__region:last-child a:hover {
  color: var(--ra-color-white, #ffffff);
}

/* Caption styling */
.ra-seccion.barrio-cardimageoverlay .ra-image-caption__caption {
  background: transparent;
  color: var(--ra-color-white, #ffffff);
  padding: 0.5rem 0;
  font-style: normal;
}

/* --- Card Three Block Stacked (barrio_card3stack) --- */
.ra-seccion.barrio-card3stack {
  flex-direction: column;
  overflow: visible;
  margin-left: 0;
  margin-right: 0;
}
.ra-seccion.barrio-card3stack .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 1rem 1.5rem;
  overflow: visible;
}

/* --- Card Top Image (barrio_cardtopimage) --- */
.ra-seccion.barrio-cardtopimage {
  flex-direction: column;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
}
.ra-seccion.barrio-cardtopimage .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 1.5rem;
  overflow: visible;
}
.ra-seccion.barrio-cardtopimage .layout__region:first-child {
  padding: 0;
  overflow: hidden;
}
.ra-seccion.barrio-cardtopimage .layout__region:first-child img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}
.ra-seccion.barrio-cardtopimage .layout__region:first-child .ra-image-caption {
  margin: 0;
}
.ra-seccion.barrio-cardtopimage
  .layout__region:first-child
  .ra-image-caption__caption {
  padding: 0.75rem 1.5rem;
}

/* --- 2 Columns 3 and 9 (barrio_col2-3-9) - 25%/75% --- */
.ra-seccion.barrio-col2-3-9 {
  flex-direction: row;
}
.ra-seccion.barrio-col2-3-9 .layout__region:nth-child(1),
.ra-seccion.barrio-col2-3-9 .layout__region--first {
  flex: 0 0 25%;
  max-width: 25%;
}
.ra-seccion.barrio-col2-3-9 .layout__region:nth-child(2),
.ra-seccion.barrio-col2-3-9 .layout__region--second {
  flex: 0 0 75%;
  max-width: 75%;
}

/* --- 2 Columns 9 and 3 (barrio_col2-9-3) - 75%/25% --- */
.ra-seccion.barrio-col2-9-3 {
  flex-direction: row;
}
.ra-seccion.barrio-col2-9-3 .layout__region:nth-child(1),
.ra-seccion.barrio-col2-9-3 .layout__region--first {
  flex: 0 0 75%;
  max-width: 75%;
}
.ra-seccion.barrio-col2-9-3 .layout__region:nth-child(2),
.ra-seccion.barrio-col2-9-3 .layout__region--second {
  flex: 0 0 25%;
  max-width: 25%;
}

/* --- 2 Columns Equal (barrio_col2-equal) --- */
.ra-seccion.barrio-col2-equal {
  flex-direction: row;
}
.ra-seccion.barrio-col2-equal .layout__region {
  flex: 0 0 50%;
  max-width: 50%;
}

/* --- 3 Columns Equal (barrio_col3-equal) --- */
.ra-seccion.barrio-col3-equal {
  flex-direction: row;
}
.ra-seccion.barrio-col3-equal .layout__region {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

/* --- 4 Columns Equal (barrio_col4-equal) --- */
.ra-seccion.barrio-col4-equal {
  flex-direction: row;
}
.ra-seccion.barrio-col4-equal .layout__region {
  flex: 0 0 25%;
  max-width: 25%;
}

/* --- Media (barrio_media) --- */
.ra-seccion.barrio-media {
  flex-direction: column;
}
.ra-seccion.barrio-media .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
}

/* =============================================
   DISPLAY SUITE LAYOUTS (ds_*)
   ============================================= */

/* --- 1 Column (ds_1col) --- */
.ra-seccion.ds-1col {
  flex-direction: column;
}
.ra-seccion.ds-1col .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
}

/* --- 1 Column + Wrapper (ds_1col_wrapper) --- */
.ra-seccion.ds-1col-wrapper {
  flex-direction: column;
}
.ra-seccion.ds-1col-wrapper .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
}

/* --- Reset Layout (ds_reset) --- */
.ra-seccion.ds-reset {
  flex-direction: column;
}
.ra-seccion.ds-reset .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
}

/* --- 2 Columns (ds_2col) --- */
.ra-seccion.ds-2col {
  flex-direction: row;
}
.ra-seccion.ds-2col .layout__region {
  flex: 0 0 50%;
  max-width: 50%;
}

/* --- 2 Columns Stacked (ds_2col_stacked) --- */
.ra-seccion.ds-2col-stacked {
  flex-direction: row;
  flex-wrap: wrap;
}
.ra-seccion.ds-2col-stacked .layout__region--header,
.ra-seccion.ds-2col-stacked .layout__region--footer {
  flex: 0 0 100%;
  max-width: 100%;
}
.ra-seccion.ds-2col-stacked .layout__region--left,
.ra-seccion.ds-2col-stacked .layout__region--right,
.ra-seccion.ds-2col-stacked
  .layout__region:not(.layout__region--header):not(.layout__region--footer) {
  flex: 0 0 50%;
  max-width: 50%;
}

/* --- Fluid 2 Columns (ds_2col_fluid) --- */
.ra-seccion.ds-2col-fluid {
  flex-direction: row;
}
.ra-seccion.ds-2col-fluid .layout__region {
  flex: 1 1 50%;
}

/* --- Fluid 2 Columns Stacked (ds_2col_stacked_fluid) --- */
.ra-seccion.ds-2col-stacked-fluid {
  flex-direction: row;
  flex-wrap: wrap;
}
.ra-seccion.ds-2col-stacked-fluid .layout__region--header,
.ra-seccion.ds-2col-stacked-fluid .layout__region--footer {
  flex: 0 0 100%;
  max-width: 100%;
}
.ra-seccion.ds-2col-stacked-fluid
  .layout__region:not(.layout__region--header):not(.layout__region--footer) {
  flex: 1 1 50%;
}

/* --- 3 Columns 25/50/25 (ds_3col) --- */
.ra-seccion.ds-3col {
  flex-direction: row;
}
.ra-seccion.ds-3col .layout__region:nth-child(1),
.ra-seccion.ds-3col .layout__region--left {
  flex: 0 0 25%;
  max-width: 25%;
}
.ra-seccion.ds-3col .layout__region:nth-child(2),
.ra-seccion.ds-3col .layout__region--middle {
  flex: 0 0 50%;
  max-width: 50%;
}
.ra-seccion.ds-3col .layout__region:nth-child(3),
.ra-seccion.ds-3col .layout__region--right {
  flex: 0 0 25%;
  max-width: 25%;
}

/* --- 3 Columns Equal Width (ds_3col_equal_width) --- */
.ra-seccion.ds-3col-equal-width {
  flex-direction: row;
}
.ra-seccion.ds-3col-equal-width .layout__region {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

/* --- 3 Columns Stacked 25/50/25 (ds_3col_stacked) --- */
.ra-seccion.ds-3col-stacked {
  flex-direction: row;
  flex-wrap: wrap;
}
.ra-seccion.ds-3col-stacked .layout__region--header,
.ra-seccion.ds-3col-stacked .layout__region--footer {
  flex: 0 0 100%;
  max-width: 100%;
}
.ra-seccion.ds-3col-stacked .layout__region:nth-child(2),
.ra-seccion.ds-3col-stacked .layout__region--left {
  flex: 0 0 25%;
  max-width: 25%;
}
.ra-seccion.ds-3col-stacked .layout__region:nth-child(3),
.ra-seccion.ds-3col-stacked .layout__region--middle {
  flex: 0 0 50%;
  max-width: 50%;
}
.ra-seccion.ds-3col-stacked .layout__region:nth-child(4),
.ra-seccion.ds-3col-stacked .layout__region--right {
  flex: 0 0 25%;
  max-width: 25%;
}

/* --- 3 Columns Stacked Equal Width (ds_3col_stacked_equal_width) --- */
.ra-seccion.ds-3col-stacked-equal-width {
  flex-direction: row;
  flex-wrap: wrap;
}
.ra-seccion.ds-3col-stacked-equal-width .layout__region--header,
.ra-seccion.ds-3col-stacked-equal-width .layout__region--footer {
  flex: 0 0 100%;
  max-width: 100%;
}
.ra-seccion.ds-3col-stacked-equal-width
  .layout__region:not(.layout__region--header):not(.layout__region--footer) {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

/* --- Fluid 3 Columns Stacked 25/50/25 (ds_3col_stacked_fluid) --- */
.ra-seccion.ds-3col-stacked-fluid {
  flex-direction: row;
  flex-wrap: wrap;
}
.ra-seccion.ds-3col-stacked-fluid .layout__region--header,
.ra-seccion.ds-3col-stacked-fluid .layout__region--footer {
  flex: 0 0 100%;
  max-width: 100%;
}
.ra-seccion.ds-3col-stacked-fluid .layout__region:nth-child(2),
.ra-seccion.ds-3col-stacked-fluid .layout__region--left {
  flex: 0 0 25%;
  max-width: 25%;
}
.ra-seccion.ds-3col-stacked-fluid .layout__region:nth-child(3),
.ra-seccion.ds-3col-stacked-fluid .layout__region--middle {
  flex: 0 0 50%;
  max-width: 50%;
}
.ra-seccion.ds-3col-stacked-fluid .layout__region:nth-child(4),
.ra-seccion.ds-3col-stacked-fluid .layout__region--right {
  flex: 0 0 25%;
  max-width: 25%;
}

/* --- 4 Columns Equal (ds_4col) --- */
.ra-seccion.ds-4col {
  flex-direction: row;
}
.ra-seccion.ds-4col .layout__region {
  flex: 0 0 25%;
  max-width: 25%;
}

/* =============================================
   LEGACY/FALLBACK LAYOUTS
   ============================================= */

/* Legacy selectors for backwards compatibility */
.ra-seccion.layout-one-column .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
}

.ra-seccion.layout-two-column .layout__region,
.ra-seccion.layout-two-columns .layout__region {
  flex: 0 0 50%;
  max-width: 50%;
}

.ra-seccion.layout-three-column .layout__region,
.ra-seccion.layout-three-columns .layout__region {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.ra-seccion.layout-four-column .layout__region,
.ra-seccion.layout-four-columns .layout__region {
  flex: 0 0 25%;
  max-width: 25%;
}

/* =============================================
   RESPONSIVE LAYOUTS
   ============================================= */
@media (max-width: 992px) {
  /* 4 columns -> 2 columns */
  .ra-seccion.layout-fourcol-section .layout__region,
  .ra-seccion.barrio-col4-equal .layout__region,
  .ra-seccion.ds-4col .layout__region {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* 3 columns -> 1 column on medium screens */
  .ra-seccion.layout-threecol-section .layout__region,
  .ra-seccion.barrio-col3-equal .layout__region,
  .ra-seccion.ds-3col-equal-width .layout__region,
  .ra-seccion.layout-threecol-25-50-25 .layout__region,
  .ra-seccion.layout-threecol-33-34-33 .layout__region,
  .ra-seccion.ds-3col .layout__region {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* All multi-column layouts become single column on mobile */
  .ra-seccion.layout .layout__region {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Card horizontal becomes vertical */
  .ra-seccion.barrio-cardhorizontal {
    flex-direction: column;
  }
  .ra-seccion.barrio-cardhorizontal .layout__region {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ====================================
   2. HERO BANNER SECTION
   ==================================== */

.coleccion-hero {
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  padding: 3rem 1rem;
}

.coleccion-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.coleccion-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coleccion-hero__back {
  margin-bottom: 0.5rem;
}

.coleccion-hero__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ra-color-cobalt, #0943b5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.coleccion-hero__back-link:hover {
  color: var(--ra-color-havelock-blue, #5a9fd4);
  text-decoration: underline;
}

.coleccion-hero__back-link:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

.coleccion-hero__back-arrow {
  font-size: 1.2rem;
}

.coleccion-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin: 0;
  line-height: 1.2;
}

.coleccion-hero__summary {
  font-size: 1.1rem;
  color: var(--ra-text-secondary, #6c757d);
  margin: 0;
  line-height: 1.5;
}

.coleccion-hero__sugerencia {
  font-size: 1.1rem;
  color: var(--ra-text-primary, #333333);
  margin: 0.5rem 0;
  line-height: 1.5;
}

.coleccion-hero__sugerencia strong {
  color: var(--ra-color-cobalt, #0943b5);
  font-weight: 700;
  margin-right: 0.25rem;
}

.coleccion-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ra-text-secondary, #6c757d);
  z-index: 2;
  position: relative;
}

.coleccion-hero__date {
  display: block;
  gap: 0.5rem;
  color: var(--ra-text-secondary, #6c757d);
  margin: 0;
}

.coleccion-hero__date strong {
  color: var(--ra-color-cobalt, #0943b5);
  font-weight: 700;
  margin-right: 0.25rem;
}

.coleccion-hero__share {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.coleccion-hero__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.25rem 0.35rem;
  border-radius: 0;
  background-color: transparent;
  color: var(--ra-color-cobalt, #0943b5);
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
  font-size: 1.2rem;
}

.coleccion-hero__share-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

.coleccion-hero__share-link:hover {
  color: var(--ra-color-havelock-blue, #5a9fd4);
  transform: translateY(-3px);
}

.coleccion-hero__share-link:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

/* Hero media container - centers the image in the grid column */
.coleccion-hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.coleccion-hero__figure {
  margin: 0;
  padding: 0;
  display: inline-block; /* Shrink-wrap to content size */
}

/* Hero image - selector matches img.coleccion-hero__image */
img.coleccion-hero__image {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--ra-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
  display: block;
  margin: 0 auto;
}

/* ====================================
   3. SIDEBAR COMPONENTS
   ==================================== */

/* --------------------
   3.1 KEYWORDS SECTION
   -------------------- */

.coleccion-keywords__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin: 0 0 1rem;
}

.coleccion-keywords__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.coleccion-keywords__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coleccion-keywords__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--ra-color-solitude, #e5ecf8);
  color: var(--ra-color-matterhorn, #4c4c4c);
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.coleccion-keywords__chip:hover {
  background-color: var(--ra-color-tropical-blue, #b5c7e9);
  color: var(--ra-color-matterhorn, #4c4c4c);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.coleccion-keywords__chip:focus {
  outline: 2px solid var(--ra-color-focus, var(--ra-color-cobalt, #0943b5));
  outline-offset: 2px;
}

.coleccion-keywords__chip-label {
  flex: 1;
}

.coleccion-keywords__chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  background: transparent;
  border: none;
  color: currentColor;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 50%;
}

.coleccion-keywords__chip-remove:hover {
  transform: scale(1.2);
  background-color: rgba(255, 255, 255, 0.2);
}

.coleccion-keywords__chip-remove:focus {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.coleccion-keywords__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0.4rem 0.8rem;
  background-color: var(--color-chip-more-bg, var(--ra-color-cobalt, #0943b5));
  color: var(--color-chip-more-text, var(--ra-color-white, #ffffff));
  border: none;
  border-radius: var(--ra-border-radius-pill, 16px);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.coleccion-keywords__more:hover {
  background-color: var(
    --color-chip-more-hover-bg,
    var(--ra-color-havelock-blue, #5a9fd4)
  );
  transform: scale(1.05);
}

.coleccion-keywords__more:focus {
  outline: 2px solid var(--ra-color-focus, var(--ra-color-cobalt, #0943b5));
  outline-offset: 2px;
}

/* Keywords overflow modal */
.coleccion-keywords__overflow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background-color: var(--ra-color-white, #ffffff);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.coleccion-keywords__overflow[hidden] {
  display: none;
}

.coleccion-keywords__overflow::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.coleccion-keywords__overflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--ra-border-light, #dee2e6);
}

.coleccion-keywords__overflow-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ra-color-matterhorn, #4c4c4c);
}

.coleccion-keywords__overflow-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ra-color-matterhorn, #4c4c4c);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.coleccion-keywords__overflow-close:hover {
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  color: var(--ra-color-cobalt, #0943b5);
}

.coleccion-keywords__overflow-close:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

.coleccion-keywords__overflow-search {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--ra-border-light, #dee2e6);
}

.coleccion-keywords__overflow-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.coleccion-keywords__overflow-input:focus {
  outline: none;
  border-color: var(--ra-color-cobalt, #0943b5);
  box-shadow: 0 0 0 3px rgba(9, 67, 181, 0.1);
}

.coleccion-keywords__overflow-list {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Keywords empty state */
.coleccion-keywords--empty {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  border-radius: 8px;
}

.coleccion-keywords__empty-text {
  margin: 0 0 1rem;
  color: var(--ra-text-secondary, #6c757d);
  font-size: 1.1rem;
}

.coleccion-keywords__empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(9, 67, 181, 0.3);
}

.coleccion-keywords__empty-cta:hover {
  background-color: var(--ra-color-havelock-blue, #5a9fd4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 67, 181, 0.4);
}

.coleccion-keywords__empty-cta:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

/* --------------------
   3.2 FILES SECTION
   -------------------- */

.coleccion-files {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  border-radius: 8px;
}

.coleccion-files__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin: 0 0 1rem;
}

.coleccion-files__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coleccion-files__item {
  margin: 0;
}

.coleccion-files__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--ra-color-white, #ffffff);
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 4px;
  color: var(--ra-color-cobalt, #0943b5);
  text-decoration: none;
  transition: all 0.2s;
}

.coleccion-files__link:hover {
  background-color: var(--ra-color-solitude, #e8f1f5);
  border-color: var(--ra-color-cobalt, #0943b5);
  transform: translateX(4px);
}

.coleccion-files__link:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

/* File Upload Sidebar Component */
.coleccion-files-sidebar {
  margin-bottom: 2rem;
}

.coleccion-files-sidebar__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin: 0 0 1rem;
}

.coleccion-files-sidebar__upload {
  margin-bottom: 1rem;
}

.coleccion-files-sidebar__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--ra-color-solitude, #e8f1f5);
  color: var(--ra-color-cobalt, #0943b5);
  border: 2px dashed var(--ra-color-cobalt, #0943b5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.coleccion-files-sidebar__label:hover {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-style: solid;
}

.coleccion-files-sidebar__label:focus-within {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

.coleccion-files-sidebar__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coleccion-files-sidebar__help {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--ra-text-secondary, #6c757d);
  text-align: center;
}

.coleccion-files-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.coleccion-files-sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--ra-color-white, #ffffff);
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 6px;
  transition: all 0.2s;
}

.coleccion-files-sidebar__item:hover {
  border-color: var(--ra-color-cobalt, #0943b5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.coleccion-files-sidebar__item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ra-color-solitude, #e8f1f5);
  color: var(--ra-color-cobalt, #0943b5);
  border-radius: 4px;
  font-size: 1rem;
}

.coleccion-files-sidebar__item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.coleccion-files-sidebar__item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ra-color-matterhorn, #4c4c4c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coleccion-files-sidebar__item-size {
  font-size: 0.75rem;
  color: var(--ra-text-secondary, #6c757d);
}

.coleccion-files-sidebar__item-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ra-text-secondary, #6c757d);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.coleccion-files-sidebar__item-remove:hover {
  background-color: #fee;
  color: #d32f2f;
}

.coleccion-files-sidebar__item-remove:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 1px;
}

/* --------------------
   3.3 NEWS ARCHIVE SECTION
   -------------------- */

.coleccion-news {
  margin-bottom: 2rem;
  padding-bottom: 0.875rem;
}

/* Título de la sección "Archivo de noticias" */
.coleccion-news__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ra-color-cobalt, #0943b5);
  margin: 0 0 1rem;
}

.coleccion-news__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.coleccion-news__list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.coleccion-news__item {
  display: block;
  background-color: var(--ra-color-white, #ffffff);
  border: 2px solid var(--ra-color-tropical-blue, #b5c7e9);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  margin-bottom: 0.875rem;
  height: 160px;
  width: 100%;
}

.coleccion-news__item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  border-color: var(--ra-color-cobalt, #0943b5);
}

.coleccion-news__link {
  display: flex;
  flex-direction: row-reverse;
  color: inherit;
  text-decoration: none;
  height: 160px;
  width: 100%;
}

.coleccion-news__link:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

.coleccion-news__image-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  overflow: hidden;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  border-radius: 0 12px 12px 0;
}

.coleccion-news__image {
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  object-fit: cover;
  transition: transform 0.3s;
}

.coleccion-news__link:hover .coleccion-news__image {
  transform: scale(1.05);
}

.coleccion-news__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ra-text-secondary, #6c757d);
  font-size: 2rem;
}

.coleccion-news__content {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.coleccion-news__tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: var(--ra-color-silver, #b9b9b9);
  color: var(--ra-color-black, #000000);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  align-self: flex-start;
}

/* Título individual de cada noticia */
.coleccion-news__item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coleccion-news__excerpt {
  display: none;
}

.coleccion-news__date {
  display: none;
}

.coleccion-news--empty {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  border-radius: 8px;
}

.coleccion-news__empty-text {
  margin: 0;
  color: var(--ra-text-secondary, #6c757d);
  font-size: 0.9rem;
}

/* ====================================
   4. MAIN CONTENT AREA
   ==================================== */

.coleccion-body {
  margin-bottom: 2rem;
}

.coleccion-body__content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ra-text-primary, #212529);
  margin-bottom: 2rem;
}

.coleccion-constructor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* YouTube Video Component */
.coleccion-video {
  padding: 2rem 0;
  width: 60vw;
  height: auto;
  margin: 0 auto;
}

.coleccion-video__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ra-border-light, #dee2e6);
}

.coleccion-video__container {
  background-color: var(--ra-color-white, #ffffff);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coleccion-video__embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background-color: var(--ra-color-black, #000000);
}

.coleccion-video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.coleccion-video__fallback {
  padding: 1rem;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  text-align: center;
  border-top: 1px solid var(--ra-border-light, #dee2e6);
}

.coleccion-video__fallback-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ra-color-cobalt, #0943b5);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.coleccion-video__fallback-link:hover {
  color: var(--ra-color-havelock-blue, #5a9fd4);
  text-decoration: underline;
}

.coleccion-video__fallback-link:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

/* Empty States for Main Content */
.coleccion-main--empty {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  border-radius: 12px;
}

.coleccion-main__empty-illustration {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ra-color-solitude, #e8f1f5);
  border-radius: 50%;
  color: var(--ra-color-cobalt, #0943b5);
  font-size: 2rem;
}

.coleccion-main__empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin: 0 0 1rem;
}

.coleccion-main__empty-text {
  font-size: 1rem;
  color: var(--ra-text-secondary, #6c757d);
  margin: 0 0 2rem;
}

.coleccion-main__empty-cta {
  padding: 0.75rem 2rem;
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.coleccion-main__empty-cta:hover {
  background-color: var(--ra-color-havelock-blue, #5a9fd4);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.coleccion-main__empty-cta:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

/* ====================================
   5. ACCORDION SECTIONS
   ==================================== */

.coleccion-accordion {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coleccion-accordion__section {
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--ra-color-white, #ffffff);
}

.coleccion-accordion__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.coleccion-accordion__header:hover {
  background-color: var(--ra-color-ghost-white, #f8f9fa);
}

.coleccion-accordion__header:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: -2px;
}

.coleccion-accordion__section[open] .coleccion-accordion__header {
  background-color: var(--ra-color-solitude, #e8f1f5);
  border-bottom: 1px solid var(--ra-border-light, #dee2e6);
}

.coleccion-accordion__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coleccion-accordion__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coleccion-accordion__title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ra-color-matterhorn, #4c4c4c);
  margin: 0;
}

.coleccion-accordion__toggle {
  flex-shrink: 0;
  color: var(--ra-color-cobalt, #0943b5);
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.coleccion-accordion__section[open] .coleccion-accordion__toggle {
  transform: rotate(180deg);
}

.coleccion-accordion__content {
  padding: 1.5rem;
  color: var(--ra-text-primary, #212529);
  line-height: 1.6;
  font-size: 0.95rem;
}

.coleccion-accordion__content > *:first-child {
  margin-top: 0;
}

.coleccion-accordion__content > *:last-child {
  margin-bottom: 0;
}

.coleccion-accordion__content ul,
.coleccion-accordion__content ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.coleccion-accordion__content li {
  margin: 0.25rem 0;
}

/* ====================================
   6. PARAGRAPH COMPONENTS
   ==================================== */

.ra-icon-text {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--ra-color-white, #ffffff);
  border-left: 4px solid var(--ra-color-cobalt, #0943b5);
  border-radius: 4px;
  box-shadow: var(--ra-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
}

.ra-icon-text__icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--ra-color-cobalt, #0943b5);
}

.ra-icon-text__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ra-color-cobalt, #0943b5);
  margin: 0 0 0.5rem;
}

.ra-icon-text__text {
  color: var(--ra-text-primary, #212529);
  line-height: 1.5;
}

.ra-text {
  padding: 1rem;
  line-height: 1.6;
  color: var(--ra-text-primary, #212529);
}

.ra-image-caption {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ra-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
}

.ra-image-caption__image {
  width: 100%;
  height: auto;
  display: block;
}

.ra-image-caption__caption {
  padding: 1rem;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  font-size: 0.9rem;
  color: var(--ra-text-secondary, #6c757d);
  font-style: italic;
}

.ra-media-video {
  margin: 1.5rem 0;
}

.ra-media-video__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--ra-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
}

.ra-media-video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ra-media-video__caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--ra-text-secondary, #6c757d);
}

.ra-cta {
  margin: 1.5rem 0;
}

.ra-cta__button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s;
}

.ra-cta__button:hover {
  background-color: var(--ra-color-havelock-blue, #5a9fd4);
  transform: translateY(-1px);
  box-shadow: var(--ra-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  color: var(--ra-color-white, #ffffff);
}

.ra-cta__button:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

/* Standard Accordion Component */
.ra-accordion {
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 8px;
  overflow: hidden;
}

.ra-accordion__item {
  border-bottom: 1px solid var(--ra-border-light, #dee2e6);
}

.ra-accordion__item:last-child {
  border-bottom: none;
}

.ra-accordion__button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: var(--ra-color-white, #ffffff);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ra-accordion__button:hover {
  background-color: var(--ra-color-ghost-white, #f8f9fa);
}

.ra-accordion__button:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: -2px;
  z-index: 1;
}

.ra-accordion__button[aria-expanded="true"] {
  background-color: var(--ra-color-solitude, #e8f1f5);
}

.ra-accordion__button i:first-child {
  color: var(--ra-color-cobalt, #0943b5);
  font-size: 1.2rem;
}

.ra-accordion__title {
  flex: 1;
  font-weight: 600;
  color: var(--ra-color-cobalt, #0943b5);
}

.ra-accordion__chevron {
  color: var(--ra-color-cobalt, #0943b5);
  transition: transform 0.2s;
}

.ra-accordion__button[aria-expanded="true"] .ra-accordion__chevron {
  transform: rotate(180deg);
}

.ra-accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.ra-accordion__panel:not([hidden]) {
  max-height: 1000px;
}

.ra-accordion__content {
  padding: 1rem 1.5rem;
  color: var(--ra-text-primary, #212529);
  line-height: 1.6;
}

/* Tabs Component */
.ra-tabs {
  margin: 1.5rem 0;
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 8px;
  overflow: hidden;
}

.ra-tabs__list {
  display: flex;
  background-color: var(--ra-color-ghost-white, #f8f9fa);
  border-bottom: 1px solid var(--ra-border-light, #dee2e6);
}

.ra-tabs__tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--ra-border-light, #dee2e6);
  cursor: pointer;
  font-weight: 500;
  color: var(--ra-text-secondary, #6c757d);
  transition: all 0.2s;
}

.ra-tabs__tab:last-child {
  border-right: none;
}

.ra-tabs__tab:hover {
  background-color: var(--ra-color-white, #ffffff);
}

.ra-tabs__tab:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: -2px;
  z-index: 1;
}

.ra-tabs__tab[aria-selected="true"] {
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-color-cobalt, #0943b5);
  border-bottom: 3px solid var(--ra-color-cobalt, #0943b5);
  font-weight: 600;
}

.ra-tabs__panel {
  padding: 1.5rem;
  color: var(--ra-text-primary, #212529);
  line-height: 1.6;
}

/* Gallery Component */
.ra-gallery {
  margin: 1.5rem 0;
}

.ra-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.ra-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}

.ra-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ra-gallery__item:hover .ra-gallery__image {
  transform: scale(1.05);
}

/* Gallery Lightbox */
.ra-gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ra-gallery-lightbox[hidden] {
  display: none;
}

.ra-gallery-lightbox__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ra-gallery-lightbox__content {
  position: relative;
  z-index: 2001;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ra-gallery-lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.ra-gallery-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.ra-gallery-lightbox__close:hover {
  transform: scale(1.2);
}

.ra-gallery-lightbox__close:focus {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 50%;
}

/* ====================================
   7. GROUPS & CARDS
   ==================================== */

/* Grupos sections */
.coleccion-grupos-recursos,
.coleccion-grupos-colecciones {
  padding: 3rem 1rem;
  background-color: #fafafa;
}

.coleccion-grupo {
  margin-bottom: 3rem;
}

.coleccion-grupo:last-child {
  margin-bottom: 0;
}

.coleccion-grupo__container {
  max-width: 1200px;
  margin: 0 auto;
}

.coleccion-grupo__header {
  margin-bottom: 2rem;
  text-align: center;
}

/* Align colecciones header arrows to the right */
.coleccion-grupo__header {
  position: relative;
}

.coleccion-grupo__header .contenidos-recursos__nav {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 12;
}

.coleccion-grupo__title {
  color: var(--ra-color-cobalt);
  font-size: 2.625rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.2;
}

.coleccion-grupo__description {
  font-size: 1.1rem;
  color: var(--ra-text-secondary, #6c757d);
  margin: 0;
  text-align: center;
}

/* Cards */
.coleccion-card {
  background-color: var(--ra-color-white, #ffffff);
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.coleccion-card:hover {
  box-shadow: var(--ra-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
  transform: translateY(-4px);
}

.coleccion-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.coleccion-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coleccion-card__content {
  padding: 1.5rem;
}

.coleccion-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.coleccion-card__title a {
  color: var(--ra-color-matterhorn, #4c4c4c);
  text-decoration: none;
  transition: color 0.2s;
}

.coleccion-card__title a:hover {
  color: var(--ra-color-cobalt, #0943b5);
}

.coleccion-card__title a:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

.coleccion-card__text {
  font-size: 0.9rem;
  color: var(--ra-text-secondary, #6c757d);
  margin: 0;
  line-height: 1.5;
}

/* Unknown Paragraph Warning */
.paragraph--unknown {
  padding: 1rem 1.5rem;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.paragraph--unknown__icon {
  flex-shrink: 0;
  color: #ffc107;
  font-size: 1.5rem;
}

.paragraph--unknown__content {
  flex: 1;
  font-size: 0.9rem;
  color: #856404;
}

.paragraph--unknown__content code {
  padding: 0.2rem 0.4rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.85em;
}

/* Card List Component */
.ra-card-list {
  margin: 1.5rem 0;
}

.ra-card-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.ra-card-list__card {
  background-color: var(--ra-color-white, #ffffff);
  border: 1px solid var(--ra-border-light, #dee2e6);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.ra-card-list__card:hover {
  box-shadow: var(--ra-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
  transform: translateY(-4px);
}

.ra-card-list__image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.ra-card-list__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ra-card-list__content {
  padding: 1rem;
}

.ra-card-list__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.ra-card-list__title a {
  color: var(--ra-color-matterhorn, #4c4c4c);
  text-decoration: none;
  transition: color 0.2s;
}

.ra-card-list__title a:hover {
  color: var(--ra-color-cobalt, #0943b5);
}

.ra-card-list__title a:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

.ra-card-list__text {
  font-size: 0.9rem;
  color: var(--ra-text-secondary, #6c757d);
  margin: 0;
  line-height: 1.5;
}

/* ====================================
   8. EXTERNAL RESOURCES & RELATED
   ==================================== */

/* External Resources */
.coleccion-externos {
  padding: 3rem 1rem;
}

.coleccion-externo {
  margin-bottom: 2rem;
}

.coleccion-externo__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.5rem;
  background-color: var(--ra-bg-tertiary);
  border: 1px solid var(--ra-bg-tertiary);
  border-radius: 12px;
}

.coleccion-externo__text {
  grid-column: 1;
}

.coleccion-externo__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ra-color-cobalt, #0943b5);
  margin: 0 0 0.75rem;
}

.coleccion-externo__description {
  color: var(--ra-text-secondary, #6c757d);
  margin: 0;
  line-height: 1.5;
}

.coleccion-externo__image {
  grid-column: 2;
  width: 280px;
}

.coleccion-externo__image img {
  width: 100%;
  height: auto;
}

.coleccion-externo__cta {
  grid-column: 3;
  text-align: right;
}

.coleccion-externo__button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border: 2px solid var(--ra-color-cobalt, #0943b5);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s;
}

.coleccion-externo__button:hover {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
  transform: translateY(-2px);
  box-shadow: var(--ra-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.coleccion-externo__button:focus {
  outline: 2px solid var(--ra-color-cobalt, #0943b5);
  outline-offset: 2px;
}

/* Parent collection demo icon */
.coleccion-parent {
  margin: 2rem 0;
}

/* Parent collection title (same style as grupo title) */
.coleccion-parent__title {
  color: var(--ra-color-cobalt);
  font-size: 2.625rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.2;
}

.coleccion-parent__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Fallback Link */
.coleccion-fallback {
  padding: 2rem 1rem;
  text-align: center;
}

.coleccion-fallback__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Fallback title */
.coleccion-fallback__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ra-color-cobalt, #0943b5);
  margin: 0 0 1rem;
  text-align: center;
}

/* Generic centering helper */
.center {
  text-align: center;
}

.coleccion-fallback__button {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-color-cobalt, #0943b5);
  border: 2px solid var(--ra-color-cobalt, #0943b5);
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--ra-shadow-sm, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
}

.coleccion-fallback__button:hover,
.coleccion-fallback__button:focus {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
  box-shadow: var(--ra-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  transform: translateY(-2px);
}

.coleccion-fallback__button:focus-visible {
  outline: 3px solid var(--ra-color-havelock-blue, #4672c8);
  outline-offset: 2px;
}

/* Related Section */
.coleccion-related {
  padding: 3rem 1rem;
  background-color: var(--ra-color-white, #ffffff);
}

.coleccion-related__container {
  max-width: 1200px;
  margin: 0 auto;
}

.coleccion-related__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ra-color-cobalt, #0943b5);
  margin: 0 0 2rem;
  text-align: center;
}

/* Related collections grid */
.coleccion-related__grid,
.coleccion-related__grid .view-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 2rem;
}

/* Ensure cards inside related block adopt large variant */
/* We target both .coleccion-card (if used directly) and .views-row (if output by Views) */
.coleccion-related .coleccion-card,
.coleccion-related .views-row {
  background: var(--ra-color-white, #ffffff);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--ra-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.coleccion-related .coleccion-card:hover,
.coleccion-related .views-row:hover {
  box-shadow: var(--ra-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
  transform: translateY(-4px);
}

/* Style fields inside the view row to mimic card structure */
.coleccion-related .views-row .views-field-created,
.coleccion-related .views-row .views-field-field-fecha {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  background-color: var(--ra-color-solitude, #e8eff7);
  color: var(--ra-color-cobalt, #0943b5);
  margin-bottom: 0.875rem;
  align-self: flex-start;
}

.coleccion-related .views-row .views-field-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--ra-color-matterhorn, #4c4c4c);
}

.coleccion-related .views-row .views-field-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.coleccion-related .views-row .views-field-title a:hover {
  color: var(--ra-color-cobalt, #0943b5);
}

/* Keep original selectors for reference or if structure changes */
.coleccion-related .coleccion-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--ra-color-solitude, #e8eff7);
}
.coleccion-related .coleccion-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.coleccion-related .coleccion-card__image a:hover img {
  transform: scale(1.05);
}
.coleccion-related .coleccion-card__content {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.coleccion-related .coleccion-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  order: -1;
}
.coleccion-related .coleccion-card__chip {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.coleccion-related .coleccion-card__chip--tipo {
  background-color: var(--ra-color-solitude, #e8eff7);
  color: var(--ra-color-cobalt, #0943b5);
}
.coleccion-related .coleccion-card__chip--rol {
  background-color: var(--ra-color-gold, #ffab00);
  color: var(--ra-color-matterhorn, #4c4c4c);
}
.coleccion-related .coleccion-card__chip--publico {
  background-color: var(--ra-color-solitude, #e8eff7);
  color: var(--ra-color-cobalt, #0943b5);
}
.coleccion-related .coleccion-card__date {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  background-color: var(--ra-color-solitude, #e8eff7);
  color: var(--ra-color-cobalt, #0943b5);
}
.coleccion-related .coleccion-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--ra-color-matterhorn, #4c4c4c);
}
.coleccion-related .coleccion-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.coleccion-related .coleccion-card__title a:hover {
  color: var(--ra-color-cobalt, #0943b5);
}
.coleccion-related .coleccion-card__description {
  font-size: 0.9375rem;
  color: var(--ra-color-matterhorn, #4c4c4c);
  line-height: 1.6;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0.5rem 0;
}
.coleccion-related .coleccion-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ra-color-cobalt, #0943b5);
  text-decoration: underline;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: auto;
  transition: all 0.3s ease;
}
.coleccion-related .coleccion-card__link:hover {
  color: var(--ra-color-blue-dark, #004884);
  gap: 0.625rem;
}
.coleccion-related .coleccion-card__link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.coleccion-related .coleccion-card__link:hover svg {
  transform: translateX(3px);
}
.coleccion-related__empty {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ra-text-secondary, #6c757d);
}

.coleccion-related__cta {
  text-align: center;
  margin-top: 2rem;
}

.coleccion-related__button {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-color-cobalt, #0943b5);
  border: 2px solid var(--ra-color-cobalt, #0943b5);
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--ra-shadow-sm, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
}

.coleccion-related__button:hover,
.coleccion-related__button:focus {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
  box-shadow: var(--ra-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  transform: translateY(-2px);
}

.coleccion-related__button:focus-visible {
  outline: 3px solid var(--ra-color-havelock-blue, #4672c8);
  outline-offset: 2px;
}

/* ====================================
   9. UTILITIES & HELPERS
   ==================================== */

/* Utility class for visually hidden content */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Wrapper para todos los grupos de recursos */
.contenidos-recursos-wrapper {
  margin-bottom: 3rem;
}

/* ====================================
   10. RESPONSIVE DESIGN
   ==================================== */

/* Carousel base rules for Grupos de recursos */
.coleccion-detail .contenidos-recursos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Hide all cards by default; show only those marked as visible */
.coleccion-detail .contenidos-recursos__grid > .recurso-card {
  display: none;
}

.coleccion-detail .contenidos-recursos__grid > .recurso-card.is-visible {
  display: flex;
}

/* Grid and visibility for Grupos de colecciones */
.coleccion-detail .coleccion-grupo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.coleccion-detail .coleccion-grupo__grid > .coleccion-card {
  display: none;
}

.coleccion-detail .coleccion-grupo__grid > .coleccion-card.is-visible {
  display: block;
}

/* Generic pager container for colecciones (match recursos styles) */
.coleccion-detail .navega-pager,
.coleccion-detail .recursos-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* Generic hover/focus styles for prev/next (apply outside .contenidos-recursos too) */
.coleccion-detail .recursos-pager__prev:hover,
.coleccion-detail .recursos-pager__prev:focus,
.coleccion-detail .recursos-pager__next:hover,
.coleccion-detail .recursos-pager__next:focus,
.coleccion-detail .navega-pager__prev:hover,
.coleccion-detail .navega-pager__prev:focus,
.coleccion-detail .navega-pager__next:hover,
.coleccion-detail .navega-pager__next:focus {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
}

/* Generic disabled override */
.coleccion-detail .recursos-pager__prev:disabled,
.coleccion-detail .recursos-pager__next:disabled,
.coleccion-detail .navega-pager__prev:disabled,
.coleccion-detail .navega-pager__next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--ra-color-gray-light, #e5e7eb);
  color: var(--ra-color-gray, #6b7280);
  border-color: var(--ra-color-gray-light, #e5e7eb);
}

/* Generic numbers container */
.coleccion-detail .recursos-pager__numbers,
.coleccion-detail .navega-pager__numbers {
  display: flex;
  gap: 0.25rem;
}

/* Generic number buttons */
.coleccion-detail .recursos-pager__number,
.coleccion-detail .navega-pager__number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-text-primary, #4c4c4c);
  border: 1px solid var(--ra-border-light, #b9b9b9);
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.coleccion-detail .recursos-pager__number:hover,
.coleccion-detail .recursos-pager__number:focus,
.coleccion-detail .navega-pager__number:hover,
.coleccion-detail .navega-pager__number:focus {
  background-color: var(--ra-color-solitude, #e5ecf8);
  border-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-cobalt, #0943b5);
}

.coleccion-detail .recursos-pager__number--active,
.coleccion-detail .navega-pager__number--active {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
  font-weight: 700;
}

/* Generic prev/next buttons base style */
.coleccion-detail .navega-pager__prev,
.coleccion-detail .navega-pager__next,
.coleccion-detail .recursos-pager__prev,
.coleccion-detail .recursos-pager__next {
  padding: 0.5rem 1rem;
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-color-cobalt, #0943b5);
  border: 1px solid var(--ra-border-light, #b9b9b9);
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Disabled state */
.coleccion-detail .navega-pager__prev:disabled,
.coleccion-detail .navega-pager__next:disabled,
.coleccion-detail .recursos-pager__prev:disabled,
.coleccion-detail .recursos-pager__next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--ra-color-gray-light, #e5e7eb);
  color: var(--ra-color-gray, #6b7280);
}

/* Pager (global styles, align with recursos-landing) */

.coleccion-detail .contenidos-recursos .navega-pager,
.coleccion-detail .contenidos-recursos .recursos-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.coleccion-detail .contenidos-recursos .navega-pager__prev,
.coleccion-detail .contenidos-recursos .navega-pager__next,
.coleccion-detail .contenidos-recursos .recursos-pager__prev,
.coleccion-detail .contenidos-recursos .recursos-pager__next {
  padding: 0.5rem 1rem;
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-color-cobalt, #0943b5);
  border: 1px solid var(--ra-border-light, #b9b9b9);
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.coleccion-detail .contenidos-recursos .navega-pager__prev:hover,
.coleccion-detail .contenidos-recursos .navega-pager__prev:focus,
.coleccion-detail .contenidos-recursos .navega-pager__next:hover,
.coleccion-detail .contenidos-recursos .navega-pager__next:focus,
.coleccion-detail .contenidos-recursos .recursos-pager__prev:hover,
.coleccion-detail .contenidos-recursos .recursos-pager__prev:focus,
.coleccion-detail .contenidos-recursos .recursos-pager__next:hover,
.coleccion-detail .contenidos-recursos .recursos-pager__next:focus {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
}

.coleccion-detail .contenidos-recursos .navega-pager__prev:disabled,
.coleccion-detail .contenidos-recursos .navega-pager__next:disabled,
.coleccion-detail .contenidos-recursos .recursos-pager__prev:disabled,
.coleccion-detail .contenidos-recursos .recursos-pager__next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--ra-color-gray-light, #e5e7eb);
  color: var(--ra-color-gray, #6b7280);
}

.coleccion-detail .contenidos-recursos .navega-pager__prev:disabled:hover,
.coleccion-detail .contenidos-recursos .navega-pager__next:disabled:hover {
  background-color: var(--ra-color-gray-light, #e5e7eb);
  color: var(--ra-color-gray, #6b7280);
  border-color: var(--ra-color-gray-light, #e5e7eb);
}

.coleccion-detail .contenidos-recursos .navega-pager__numbers,
.coleccion-detail .contenidos-recursos .recursos-pager__numbers {
  display: flex;
  gap: 0.25rem;
}

.coleccion-detail .contenidos-recursos .navega-pager__number,
.coleccion-detail .contenidos-recursos .recursos-pager__number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  background-color: var(--ra-color-white, #ffffff);
  color: var(--ra-text-primary, #4c4c4c);
  border: 1px solid var(--ra-border-light, #b9b9b9);
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.coleccion-detail .contenidos-recursos .navega-pager__number:hover,
.coleccion-detail .contenidos-recursos .navega-pager__number:focus,
.coleccion-detail .contenidos-recursos .recursos-pager__number:hover,
.coleccion-detail .contenidos-recursos .recursos-pager__number:focus {
  background-color: var(--ra-color-solitude, #e5ecf8);
  border-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-cobalt, #0943b5);
}

.coleccion-detail .contenidos-recursos .navega-pager__number--active,
.coleccion-detail .contenidos-recursos .recursos-pager__number--active {
  background-color: var(--ra-color-cobalt, #0943b5);
  color: var(--ra-color-white, #ffffff);
  border-color: var(--ra-color-cobalt, #0943b5);
  font-weight: 700;
}

/* Tablet breakpoint (992px and below) */
@media (max-width: 992px) {
  /* Hero adjustments */
  .coleccion-hero__container {
    grid-template-columns: 1fr;
  }

  /* Hide cards beyond the first 3 by default - target direct children for specificity */
  /* Hide elements beyond 3, force override with higher specificity */
  .coleccion-detail
    .contenidos-recursos__grid
    > .recurso-card:nth-child(n + 4) {
    display: none !important;
  }

  /* Content layout changes */
  .coleccion-content__container {
    grid-template-columns: 1fr;
  }

  /* Show active page cards (scoped to grid direct children) */
  .coleccion-detail
    .contenidos-recursos[data-active-page="1"]
    .contenidos-recursos__grid
    > .recurso-card:nth-child(-n + 3) {
    display: flex !important;
  }

  /* External resources adjustments */
  .coleccion-externo__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .coleccion-externo__text,
  .coleccion-externo__image,
  .coleccion-externo__cta {
    grid-column: 1;
  }
}

/* Mobile breakpoint (768px and below) */
@media (max-width: 768px) {
  /* Hero typography adjustments */
  .coleccion-hero__title {
    font-size: 2rem;
  }

  /* Group typography adjustments */
  .coleccion-grupo__title {
    font-size: 1.5rem;
  }

  /* Tab layout adjustments */
  .ra-tabs__list {
    flex-wrap: wrap;
  }

  .contenidos-recursos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .ra-tabs__tab {
    flex: 1 1 100%;
  }

  /* Carousel specific styles for grupos de recursos - imported from recursos-grid.css */
  .contenidos-recursos {
    padding: 4rem 1.5rem;
    margin: 0;
    background-color: #fafafa;
  }

  .contenidos-recursos__container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .contenidos-recursos__header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
    position: relative;
  }

  .contenidos-recursos__header-text {
    flex: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }

  .contenidos-recursos__title {
    font-size: 2.625rem;
    font-weight: 700;
    color: var(--ra-color-cobalt, #0943b5);
    margin: 0 0 1rem 0;
    text-align: center;
    line-height: 1.2;
  }

  .contenidos-recursos__subtitle {
    font-size: 1rem;
    color: var(--ra-color-matterhorn, #4c4c4c);
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
  }

  .contenidos-recursos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .contenidos-recursos .recurso-card {
    background-color: var(--ra-color-white, #ffffff);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--ra-shadow-sm, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .contenidos-recursos .recurso-card:hover,
  .contenidos-recursos .recurso-card:focus-within {
    box-shadow: var(--ra-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    transform: translateY(-4px);
  }

  /* Hide cards beyond the first 3 by default (scoped to coleccion detail) */
  .coleccion-detail
    .contenidos-recursos__grid
    > .recurso-card:nth-child(n + 4) {
    display: none !important;
  }

  /* Add visible class for smoother transitions */
  .coleccion-detail .contenidos-recursos__grid > .recurso-card.is-visible {
    display: flex !important;
  }

  /* Show active page cards (for each page) - force display via important */
  .coleccion-detail
    .contenidos-recursos[data-active-page="1"]
    .contenidos-recursos__grid
    > .recurso-card:nth-child(-n + 3) {
    display: flex !important;
  }

  /* Pager: apply recursos-pager styles to navega-pager inside coleccion-detail */
  .coleccion-detail .navega-pager,
  .coleccion-detail .recursos-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }

  .coleccion-detail .navega-pager__prev,
  .coleccion-detail .navega-pager__next,
  .coleccion-detail .recursos-pager__prev,
  .coleccion-detail .recursos-pager__next {
    padding: 0.5rem 1rem;
    background-color: var(--ra-color-white, #ffffff);
    color: var(--ra-color-cobalt, #0943b5);
    border: 1px solid var(--ra-border-light, #b9b9b9);
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .coleccion-detail .navega-pager__prev:hover,
  .coleccion-detail .navega-pager__prev:focus,
  .coleccion-detail .navega-pager__next:hover,
  .coleccion-detail .navega-pager__next:focus,
  .coleccion-detail .recursos-pager__prev:hover,
  .coleccion-detail .recursos-pager__prev:focus,
  .coleccion-detail .recursos-pager__next:hover,
  .coleccion-detail .recursos-pager__next:focus {
    background-color: var(--ra-color-cobalt, #0943b5);
    color: var(--ra-color-white, #ffffff);
    border-color: var(--ra-color-cobalt, #0943b5);
  }

  .coleccion-detail .navega-pager__numbers,
  .coleccion-detail .recursos-pager__numbers {
    display: flex;
    gap: 0.25rem;
  }

  .coleccion-detail .navega-pager__number,
  .coleccion-detail .recursos-pager__number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    background-color: var(--ra-color-white, #ffffff);
    color: var(--ra-text-primary, #4c4c4c);
    border: 1px solid var(--ra-border-light, #b9b9b9);
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .coleccion-detail .navega-pager__number:hover,
  .coleccion-detail .navega-pager__number:focus,
  .coleccion-detail .recursos-pager__number:hover,
  .coleccion-detail .recursos-pager__number:focus {
    background-color: var(--ra-color-solitude, #e5ecf8);
    border-color: var(--ra-color-cobalt, #0943b5);
    color: var(--ra-color-cobalt, #0943b5);
  }

  .coleccion-detail .navega-pager__number--active,
  .coleccion-detail .recursos-pager__number--active {
    background-color: var(--ra-color-cobalt, #0943b5);
    color: var(--ra-color-white, #ffffff);
    border-color: var(--ra-color-cobalt, #0943b5);
    font-weight: 700;
  }

  /* Small mobile breakpoint (576px and below) */
  @media (max-width: 576px) {
    /* News layout changes for very small screens */
    .coleccion-news__link {
      flex-direction: column-reverse;
    }

    .coleccion-news__image-wrapper {
      width: 100%;
      height: 180px;
      border-radius: 0 0 12px 12px;
    }

    .coleccion-news__content {
      padding: 1rem;
    }
  }
}

/* ==================== */
/* Box/Card Section (Renamed from Materials) */
/* ==================== */
.coleccion-box-section {
  padding: 3rem 0;
  background-color: transparent;
}

.coleccion-box-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.coleccion-box-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ra-color-cobalt, #0033a0);
  margin-bottom: 2rem;
  text-align: center;
}

.coleccion-box-section__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Client-side pagination visibility */
.coleccion-box-section.contenidos-recursos
  .coleccion-box-section__grid
  > .coleccion-box-card {
  display: none;
}

.coleccion-box-section.contenidos-recursos
  .coleccion-box-section__grid
  > .coleccion-box-card.is-visible {
  display: flex;
}

.coleccion-box-card {
  display: flex;
  flex-direction: column;
  background-color: var(--ra-color-white, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: solid 0.1rem var(--ra-color-tropical-blue);
}

@media (min-width: 768px) {
  .coleccion-box-card {
    flex-direction: row;
    align-items: stretch;
  }
}

.coleccion-box-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.coleccion-box-card__image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .coleccion-box-card__image {
    width: 35%;
    height: auto;
    min-height: 300px;
  }
}

.coleccion-box-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coleccion-box-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.coleccion-box-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ra-color-cobalt, #0033a0);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.coleccion-box-card__description {
  font-size: 1rem;
  color: var(--ra-color-matterhorn, #4a4a4a);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.coleccion-box-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.coleccion-box-card__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: transparent;
  color: var(--ra-color-cobalt, #0033a0);
  border: 1px solid var(--ra-color-cobalt, #0033a0);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.recurso-material-card__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: transparent;
  color: var(--ra-color-cobalt, #0033a0);
  border: 1px solid var(--ra-color-cobalt, #0033a0);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.recurso-material-card__download:hover {
  background-color: rgba(0, 51, 160, 0.05);
  color: var(--ra-color-cobalt, #0033a0);
  text-decoration: none;
}

.coleccion-box-card__download:hover {
  background-color: rgba(0, 51, 160, 0.05);
  color: var(--ra-color-cobalt, #0033a0);
  text-decoration: none;
}

.coleccion-box-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background-color: var(--ra-color-cobalt, #0033a0);
  color: var(--ra-color-white, #ffffff);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.coleccion-box-card__link:hover {
  background-color: #002678;
  color: var(--ra-color-white, #ffffff);
  text-decoration: none;
}

.arrow-icon {
  font-size: 1rem;
  line-height: 1;
}

.coleccion-box-card__grupo {
  margin-top: auto;
  background-color: var(--ra-color-solitude, #f0f4f8);
  border-radius: 8px;
  overflow: hidden;
}

.coleccion-box-card__grupo summary {
  cursor: pointer;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: background-color 0.2s;
}

.coleccion-box-card__grupo summary::-webkit-details-marker {
  display: none;
}

.coleccion-box-card__grupo summary:hover {
  background-color: #e1e8ed;
}

.coleccion-box-card__grupo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--ra-color-white, #ffffff);
  border-radius: 50%;
  color: var(--ra-color-cobalt, #0033a0);
  border: 1px solid #d1d9e0;
}

.coleccion-box-card__grupo-title {
  flex: 1;
  font-weight: 600;
  color: var(--ra-color-cobalt, #0033a0);
  font-size: 0.95rem;
}

.coleccion-box-card__grupo-arrow {
  color: var(--ra-color-cobalt, #0033a0);
  transition: transform 0.3s ease;
}

.coleccion-box-card__grupo[open] .coleccion-box-card__grupo-arrow {
  transform: rotate(180deg);
}

.coleccion-box-card__grupo-content {
  padding: 0 1rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--ra-color-matterhorn, #4a4a4a);
  line-height: 1.6;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0;
}

.coleccion-box-section__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.coleccion-box-section__page-link {
  padding: 0.625rem 1.25rem;
  background-color: var(--ra-color-cobalt, #0033a0);
  color: var(--ra-color-white, #ffffff);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.coleccion-box-section__page-link:hover {
  background-color: #002678;
  color: var(--ra-color-white, #ffffff);
  text-decoration: none;
}

.coleccion-box-section__page-info {
  font-weight: 500;
  color: var(--ra-color-matterhorn, #4a4a4a);
}

/* ==================== */
/* Centered Box/Card Specific Styles */
/* ==================== */
.coleccion-box-section--centered .coleccion-box-section__grid {
  align-items: center;
}

.coleccion-box-section--centered .coleccion-box-card {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.coleccion-box-section--centered .coleccion-box-card__content {
  align-items: center;
}

.coleccion-box-section--centered .coleccion-box-card__actions {
  justify-content: center;
  width: 100%;
}

/* --- Card Image Overlay (barrio_cardimageoverlay) --- */
.ra-seccion.barrio-cardimageoverlay {
  flex-direction: column;
}

.ra-seccion.barrio-cardimageoverlay .layout__region {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
