/* ==========================================
   MDV · Presentación de revistas
   ========================================== */

@scope (html:has(
  link[rel="canonical"][href*="/revistas/"]
)) {

  /* TÍTULO */

  .view-taxonomy-term > .view-header {
    margin: 0 0 30px;
    padding: 0;
    border: 0;
  }

  .view-header .bs-bg-azulado {
    margin: 0 0 28px;
    padding: 0 0 14px;
    background: transparent !important;
    color: #27382e !important;
    border-bottom: 2px solid #054b81;
  }

  .view-header .bs-bg-azulado > .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .view-header .bs-bg-azulado .layout {
    margin: 0;
  }

  .view-header .bs-bg-azulado .col-12 {
    padding: 0;
  }

  .view-header .bs-bg-azulado .block,
  .view-header .bs-bg-azulado .block-content {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0;
    box-shadow: none;
  }

  .view-header .bs-bg-azulado .field--name-name {
    margin: 0;
    padding: 0;
    color: #27382e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    overflow-wrap: anywhere;
  }

  /* PORTADA Y PRESENTACIÓN */

  .view-header .ds-2col {
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    align-items: start;
    gap: 36px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .view-header .ds-2col::before,
  .view-header .ds-2col::after {
    display: none;
  }

  .view-header .ds-2col > .group-left,
  .view-header .ds-2col > .group-right {
    float: none;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .view-header .ds-2col > .group-left {
    padding: 22px;
    background: #f5f8fa;
    border: 1px solid #dce5eb;
    border-radius: 12px;
    text-align: center;
  }

  .view-header .group-left img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto;
    border: 0;
    border-radius: 3px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(25, 45, 59, 0.14);
  }

  .view-header .ds-2col .block {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  /* IDIOMA */

  .view-header .field--name-field-idioma-publicacion {
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid #dce5eb;
  }

  .view-header .field--name-field-idioma-publicacion h4 {
    margin: 0 0 8px;
    padding: 0;
    color: #627066;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
  }

  .view-header .field--name-field-idioma-publicacion h4 i {
    display: none;
  }

  .view-header .taxonomy-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .view-header .taxonomy-terms li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .view-header .taxonomy-terms a {
    display: inline-block;
    padding: 5px 12px;
    background: #edf3f7;
    color: #054b81;
    border: 1px solid #dce5eb;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
  }

  .view-header .taxonomy-terms a:hover {
    background: #e1edf5;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* DESCRIPCIÓN */

  .view-header .field--name-description {
    color: #27382e;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .view-header .field--name-description > .field__label {
    margin: 0 0 18px;
    padding: 0;
    color: #054b81;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
  }

  .view-header .field--name-description p {
    margin: 0 0 20px;
    text-align: left;
  }

  .view-header .field--name-description p:has(> strong:only-child) {
    margin-top: 26px;
    margin-bottom: 8px;
    color: #054b81;
    font-size: 18px;
    line-height: 1.4;
  }

  .view-header .field--name-description ul,
  .view-header .field--name-description ol {
    margin: 0 0 20px;
    padding-left: 24px;
  }

  .view-header .field--name-description img {
    max-width: 100%;
    height: auto;
  }

  .view-header .field--name-description a {
    color: #054b81;
    text-underline-offset: 3px;
  }

  .view-header a:focus-visible {
    outline: 3px solid #277da8;
    outline-offset: 4px;
  }

  /* SUSCRIPCIÓN */

  .view-taxonomy-term > .feed-icons {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #dce5eb;
    font-size: 13px;
  }

  /* MÓVIL */

  @media (max-width: 760px) {
    .view-header .ds-2col {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .view-header .ds-2col > .group-left {
      padding: 20px;
    }

    .view-header .group-left img {
      max-height: 380px;
    }
  }
}