/* Cabecera de la home (Aurens): imagen a todo el ancho y textos sobre ella. */

/* Móvil (<768px): imagen arriba y textos debajo. Escritorio en el media query del final. */
:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 2rem;
}

:is(.custom-home-page, .custom-nivel-1-page) .content-layout__header .node-title {
  margin-bottom: 1rem;
}

/* Quitamos el fondo azul a ancho completo de la cabecera genérica. */
:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1)::before {
  display: none;
}

/* Móvil: imagen en flujo normal, a todo el ancho del móvil, con 230px de alto como máximo. */
:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .content-layout__header-media {
  position: relative;
  width: 100%;
  max-height: 230px;
  height: 230px;
  z-index: 0;
  overflow: hidden;
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .content-layout__header-media .media {
  height: 100%;
  margin: 0;
  min-height: 0;
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .node-lead p {
  color: #3C3C3B;
  font-family: Inter;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: var(--line-height-34, 34px); /* 154.545% */
}

/* Móvil: los textos van debajo de la imagen, sin tarjeta ni superposición. */
:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .col--header-left {
  color: #333;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 2rem;
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .node-title {
  color: var(--Blue, #0075DF);
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: var(--line-height-40, 40px);
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .node-link {
  margin-top: 2rem;
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .node-link .btn {
  width: 100%;
  margin-right: 0;
}


:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .icons-row {
  margin-top: 24px;
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .taxonomy-card {
  background-color: #FFF;
  text-align: center;
  color: #3C3C3B;
  border-radius: 8px;
  display: flex;
  width: 109.609px;
  padding: 16px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Móvil: fondo de las tarjetas de datos. En escritorio se mantiene blanco (ver media query). */
:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .taxonomy-card {
  background: var(--White-Blue, #F9FAFB);
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .taxonomy-card .taxnomy-card-image {
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .taxonomy-card .taxonomy-card-title {
  color: var(--Grey-text, #3C3C3B);
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}

:is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .taxonomy-card .taxonomy-card-description {
  color: var(--Grey-text, #3C3C3B);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

/* Tablet y escritorio (>=768px): imagen a todo el ancho detrás de la tarjeta de textos. */
@media (min-width: 768px) {
  :is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) {
    min-height: 28rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  :is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .content-layout__header-media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    max-height: none;
    height: auto;
    transform: translateX(-50%);
  }

  :is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .col--header-left {
    color: #333;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    padding: 16px 24px;
  }

  :is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .node-lead {
    margin-top: 2rem;
  }

  :is(.custom-home-page .content-layout__header--front, .custom-nivel-1-page .content-layout__header--nivel-1) .taxonomy-card {
    background: #FFF;
  }
}
