/* Correcciones de maquetación. Se carga después de sevenapp.css. */

/* Home: destacados iniciales en móvil */
@media only screen and (max-width: 767px) {
  .home .entry-content > .featured-posts-home {
    height: auto !important;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    float: none !important;
    width: auto !important;
    margin: 0 16px 64px 16px !important;
    padding: 0 !important;
    display: flow-root;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n):first-child {
    margin-top: 40px !important;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .content-item-post {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .title-post,
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .description-post,
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .read-more-post {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none;
    width: auto;
    box-sizing: border-box;
    z-index: 2;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .title-post {
    order: 1;
    align-self: flex-start;
    max-width: calc(100% - 24px);
    margin: 0 0 -28px 0 !important;
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.08;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .image-post {
    order: 2;
    align-self: flex-end;
    width: calc(100% - 20px);
    aspect-ratio: 4 / 5;
    border: 2px solid !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .image-post a {
    display: block;
    height: 100%;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .description-post {
    order: 3;
    align-self: flex-start;
    max-width: calc(100% - 40px);
    margin: -36px 0 0 0 !important;
    font-size: clamp(17px, 4.8vw, 20px);
    line-height: 1.25;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .read-more-post {
    order: 4;
    align-self: flex-end;
    margin: 12px 0 0 0 !important;
  }

  /* Entrada: fundido corto en lugar de los retrasos de escritorio */
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .animate__animated {
    animation-name: bcd-rise !important;
    animation-duration: 0.4s !important;
    animation-delay: 0s !important;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .image-post.animate__animated {
    animation-delay: 0.06s !important;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .description-post.animate__animated {
    animation-delay: 0.12s !important;
  }
  .home .entry-content > .featured-posts-home .item-page:nth-child(n) .read-more-post.animate__animated {
    animation-delay: 0.18s !important;
  }
}

@keyframes bcd-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .entry-content > .featured-posts-home .animate__animated {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Bloques de imágenes: collage con patrón cada 4 fotos y solapes fijos en esquina */
.overlapping-images .overlapping-images-container {
  display: flow-root;
  margin-bottom: 42px;
}
.overlapping-images .overlapping-images-container > li[class*="item-"] {
  float: none !important;
  position: relative !important;
  margin: 0 !important;
  overflow: hidden;
}
.overlapping-images .overlapping-images-container > li[class*="item-"] img {
  display: block;
  float: none;
  width: 100%;
  height: auto;
}

@media only screen and (min-width: 768px) {
  .overlapping-images .overlapping-images-container > li[class*="item-"]:nth-child(4n+1) {
    width: 66%;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"]:nth-child(4n+2) {
    width: 50%;
    margin-left: auto !important;
    margin-top: -56px !important;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"]:nth-child(4n+3) {
    width: 56%;
    margin-left: 12% !important;
    margin-top: -40px !important;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"]:nth-child(4n+4) {
    width: 46%;
    margin-left: auto !important;
    margin-right: 4% !important;
    margin-top: -64px !important;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"]:nth-child(4n+5) {
    margin-top: -48px !important;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"].type-vertical:nth-child(4n+1) {
    width: 46%;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"].type-vertical:nth-child(4n+2) {
    width: 35%;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"].type-vertical:nth-child(4n+3) {
    width: 40%;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"].type-vertical:nth-child(4n+4) {
    width: 32%;
  }
  /* Foto suelta: alineada con el texto a la izquierda y con aire a la derecha. */
  .overlapping-images.count-1 .overlapping-images-container > li[class*="item-"] {
    width: 88%;
  }
  .overlapping-images.count-1 .overlapping-images-container > li[class*="item-"].type-vertical {
    width: 62%;
  }
}

@media only screen and (max-width: 767px) {
  .overlapping-images .overlapping-images-container > li[class*="item-"] {
    width: calc(100% - 24px);
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"]:nth-child(even) {
    margin-left: auto !important;
  }
  .overlapping-images .overlapping-images-container > li[class*="item-"] + li {
    margin-top: -20px !important;
  }
  .overlapping-images.count-1 .overlapping-images-container > li[class*="item-"] {
    width: 100%;
  }
}

/* Vídeos de fondo: sin interacción, así YouTube no muestra sus controles.
   El slider se excluye: su vídeo tiene audio y debe seguir siendo interactivo. */
iframe[src*="youtube.com/embed"][src*="autoplay=1"]:not(.wide-container iframe),
iframe[src*="player.vimeo.com"][src*="autoplay=1"]:not(.wide-container iframe) {
  pointer-events: none;
}

/* Botón de audio del slider en blanco: el PNG ya es blanco, el tema lo invertía. */
.wide-container li .button-video-sound {
  filter: none;
}

@media only screen and (min-width: 768px) {
  /* Título de fondo de Actualidad: sticky con la geometría que calcula bcd-parallax.js */
  .related-posts > .bg-title-whats-on.bcd-sticky,
  .related-posts > .bg-title-whats-on.bcd-sticky.fixed,
  .related-posts > .bg-title-whats-on.bcd-sticky.fixed-bottom {
    position: sticky !important;
    display: flow-root;
    top: var(--bcd-sticky-top) !important;
    bottom: auto !important;
    left: auto !important;
    width: var(--bcd-sticky-w) !important;
    margin: var(--bcd-sticky-mt) 0 var(--bcd-sticky-mb) var(--bcd-sticky-ml) !important;
  }

  /* Home: entrada de los destacados más pausada */
  .home .entry-content > .featured-posts-home > .item-page.animated {
    animation-duration: 1.2s !important;
  }
  .home .entry-content > .featured-posts-home > .item-page .animate__animated {
    animation-duration: 1.4s !important;
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1) !important;
  }
  /* fadeInUp de animate.css sube cada pieza su propia altura; aquí solo 40 px */
  .home .entry-content > .featured-posts-home > .item-page .animate__fadeInUp {
    animation-name: bcd-rise-soft !important;
  }
  .home .entry-content > .featured-posts-home > .item-page .title-post.animate__animated {
    animation-delay: 0.4s !important;
  }
  .home .entry-content > .featured-posts-home > .item-page .image-post.animate__animated {
    animation-delay: 0.75s !important;
  }
  .home .entry-content > .featured-posts-home > .item-page .description-post.animate__animated {
    animation-delay: 1.15s !important;
  }
  .home .entry-content > .featured-posts-home > .item-page .read-more-post.animate__animated {
    animation-delay: 1.6s !important;
  }
}

@keyframes bcd-rise-soft {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Home: en 768-1319 px los destacados impares sumaban 90 % de ancho + 26 % de margen */
@media only screen and (min-width: 768px) and (max-width: 1319px) {
  .home .entry-content > .featured-posts-home > .item-page:nth-child(2n+1) {
    margin-left: 10% !important;
  }
}

/* Listados de agenda y noticias: entrada con subida suave; segunda columna algo después */
html.bcd-js .list-posts-whatson > .item-post:not(.visible-element) {
  opacity: 0;
}
.list-posts-whatson > .item-post.animated.fadeIn {
  animation-name: bcd-rise-card !important;
  animation-duration: 0.9s !important;
  animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1) !important;
  animation-fill-mode: both !important;
}
.list-posts-whatson > .item-post.animated.fadeIn:nth-child(even) {
  animation-delay: 0.12s !important;
}

@keyframes bcd-rise-card {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .list-posts-whatson > .item-post.animated.fadeIn {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Escritorio: la entrada es la llegada de bcd-parallax.js (STACKS); las
   tarjetas se ven desde que asoman por abajo, sin fundido ni subida propios.
   Ocultas hasta que bcd-parallax.js las coloca (.bcd-ready), sin salto al cargar. */
@media only screen and (min-width: 768px) {
  html.bcd-js .list-posts-whatson > .item-post,
  html.bcd-js .list-posts-whatson > .item-post.animated.fadeIn {
    animation: none !important;
  }
  html.bcd-js .list-posts-whatson:not(.bcd-ready) > .item-post {
    opacity: 0 !important;
  }
  html.bcd-js .list-posts-whatson.bcd-ready > .item-post {
    opacity: 1 !important;
    transition: opacity 0.4s ease;
  }
}

/* Menú contextual: cortina que se descubre de arriba abajo (clip-path) y entrada
   escalonada de las opciones. Sin transform en el panel ni en los li: contienen
   imágenes position: fixed. */
.mc-primary-nav .menu-contextual {
  top: 0 !important;
  z-index: 900 !important;
  opacity: 1 !important;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1), background-color 0.6s ease, visibility 0s linear 0.6s !important;
}
.mc-primary-nav .menu-contextual.is-visible {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1), background-color 0.6s ease, visibility 0s !important;
}

/* La cortina atraviesa también la barra: el único fondo es el del header, que
   queda debajo de la cortina, y nunca se vuelve transparente. */
.site-header .main-navigation {
  background-color: transparent !important;
}
.site-header.menu-open {
  background-color: #fff;
}
/* Textos, iconos y líneas cambian mientras el borde cruza la barra. functions.js
   fija la duración y la curva del tramo. */
.site-header.bcd-menu-switch :is(.site-branding, .main-navigation, .right-menu-icons),
.site-header.bcd-menu-switch :is(.site-branding, .main-navigation, .right-menu-icons) * {
  transition: color var(--bcd-switch-dur) var(--bcd-switch-ease),
    background-color var(--bcd-switch-dur) var(--bcd-switch-ease),
    border-color var(--bcd-switch-dur) var(--bcd-switch-ease) !important;
}

/* El texto permanece visible mientras la cortina se recoge. */
.mc-primary-nav .menu-contextual .bg-title-home,
.mc-primary-nav .menu-contextual .bg-title-home.fixed {
  opacity: 1 !important;
  visibility: visible !important;
}
.mc-primary-nav .menu-contextual .bg-title-home h1 {
  translate: none !important;
  transition: none !important;
}

/* Opciones: opacidad en el li y desplazamiento con translate en el enlace */
.mc-primary-nav .menu-contextual .column-menu .menu > li,
.mc-primary-nav .menu-contextual .column-menu .title-menu ul > li {
  opacity: 0;
  transition: opacity 0s linear 0.6s;
}
.mc-primary-nav .menu-contextual .column-menu .menu > li > a,
.mc-primary-nav .menu-contextual .column-menu .title-menu ul > li > a {
  translate: 0 24px;
  transition: opacity 0.25s ease-in-out, translate 0s linear 0.6s !important;
}
.mc-primary-nav .menu-contextual.is-visible .column-menu .menu > li,
.mc-primary-nav .menu-contextual.is-visible .column-menu .title-menu ul > li {
  opacity: 1;
  transition: opacity 0.35s ease var(--bcd-menu-delay, 0.08s);
}
.mc-primary-nav .menu-contextual.is-visible .column-menu .menu > li > a,
.mc-primary-nav .menu-contextual.is-visible .column-menu .title-menu ul > li > a {
  translate: none;
  transition: opacity 0.25s ease-in-out, translate 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--bcd-menu-delay, 0.08s) !important;
}
.mc-primary-nav .menu-contextual .column-menu .menu > li.title-menu > a {
  translate: none;
}
.mc-primary-nav .menu-contextual .column-menu .menu > li:nth-child(1) { --bcd-menu-delay: 0.3s; }
.mc-primary-nav .menu-contextual .column-menu .menu > li:nth-child(2) { --bcd-menu-delay: 0.34s; }
.mc-primary-nav .menu-contextual .column-menu .menu > li:nth-child(3) { --bcd-menu-delay: 0.38s; }
.mc-primary-nav .menu-contextual .column-menu .menu > li:nth-child(4) { --bcd-menu-delay: 0.42s; }
.mc-primary-nav .menu-contextual .column-menu .menu > li:nth-child(5) { --bcd-menu-delay: 0.46s; }
.mc-primary-nav .menu-contextual .column-menu .menu > li:nth-child(6) { --bcd-menu-delay: 0.5s; }
.mc-primary-nav .menu-contextual .column-menu .menu > li:nth-child(7) { --bcd-menu-delay: 0.54s; }
.mc-primary-nav .menu-contextual .column-menu .menu > li.title-menu { --bcd-menu-delay: 0.54s; }
.mc-primary-nav .menu-contextual .column-menu .title-menu ul > li:nth-child(1) { --bcd-menu-delay: 0.58s; }
.mc-primary-nav .menu-contextual .column-menu .title-menu ul > li:nth-child(2) { --bcd-menu-delay: 0.62s; }
.mc-primary-nav .menu-contextual .column-menu .title-menu ul > li:nth-child(3) { --bcd-menu-delay: 0.66s; }
.mc-primary-nav .menu-contextual .column-menu .title-menu ul > li:nth-child(4) { --bcd-menu-delay: 0.7s; }
.mc-primary-nav .menu-contextual .column-menu .title-menu ul > li:nth-child(5) { --bcd-menu-delay: 0.74s; }

/* Imágenes al pasar el ratón: posición final conservada y entrada suave. */
@media only screen and (min-width: 768px) {
  .mc-primary-nav .menu-contextual .column-menu ul > li > .image-menu-item {
    z-index: 1;
    transform: translate(0, -8px) scale(1.01) !important;
    transition: opacity 0.45s ease 0.08s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.53s !important;
  }
  .mc-primary-nav .menu-contextual .column-menu.active-menu ul > li:hover > .image-menu-item {
    z-index: 2;
    transform: none !important;
    transition: opacity 0.45s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-primary-nav .menu-contextual,
  .mc-primary-nav .menu-contextual.is-visible,
  .mc-primary-nav .menu-contextual .column-menu .menu > li,
  .mc-primary-nav .menu-contextual .column-menu .menu > li > a,
  .mc-primary-nav .menu-contextual .column-menu .title-menu ul > li,
  .mc-primary-nav .menu-contextual .column-menu .title-menu ul > li > a,
  .mc-primary-nav .menu-contextual .bg-title-home h1 {
    transition: none !important;
    translate: none !important;
  }
}

/* Clúster A-Z: los iconos salen pegados al nombre, con su mismo tiempo y curva.
   --bcd-icons-width lo calcula functions.js según los iconos de cada fila. */
@media only screen and (min-width: 768px) {
  body.cluster .list-partners.list-az .item-partner .title-partner,
  body.cluster .list-partners.list-az .item-partner:hover .content-item-partner .info-partner .title-partner {
    transition: padding-left 0.45s ease-out !important;
  }
  body.cluster .list-partners.list-az .item-partner:hover .content-item-partner .info-partner .title-partner {
    padding-left: var(--bcd-icons-width, 0px) !important;
  }
  body.cluster .list-partners.list-az .item-partner .content-item-partner .info-partner .read-more-partner,
  body.cluster .list-partners.list-az .item-partner:hover .content-item-partner .info-partner .read-more-partner {
    width: var(--bcd-icons-width, 225px) !important;
    transition: none !important;
  }
  body.cluster .list-partners.list-az .item-partner .content-item-partner .info-partner .read-more-partner .icons-partner {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s ease-out, opacity 0.12s linear 0.33s;
  }
  body.cluster .list-partners.list-az .item-partner:hover .content-item-partner .info-partner .read-more-partner .icons-partner {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.45s ease-out, opacity 0.12s linear;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.cluster .list-partners.list-az .item-partner .title-partner,
  body.cluster .list-partners.list-az .item-partner:hover .content-item-partner .info-partner .title-partner,
  body.cluster .list-partners.list-az .item-partner .content-item-partner .info-partner .read-more-partner .icons-partner,
  body.cluster .list-partners.list-az .item-partner:hover .content-item-partner .info-partner .read-more-partner .icons-partner {
    transition: none !important;
  }
}

/* Home: texto de fondo con sticky (geometría calculada en bcd-parallax.js) */
.home .entry-content.bcd-clip {
  overflow: clip !important;
  display: flow-root;
}
.home .entry-content > .bg-title-home.bcd-sticky,
.home .entry-content > .bg-title-home.bcd-sticky.fixed {
  position: sticky !important;
  clear: both;
  top: auto !important;
  bottom: var(--bcd-home-b) !important;
  left: auto !important;
  width: var(--bcd-home-w) !important;
  height: 0 !important;
  margin-left: var(--bcd-home-ml) !important;
  /* En móvil el tema le pone overflow-x: hidden al quitar .fixed: con alto 0
     recortaba todo el texto y desaparecía de golpe en vez de subir. */
  overflow: visible !important;
}
.home .entry-content > .bg-title-home.bcd-sticky h1 {
  bottom: var(--bcd-home-h1b) !important;
}

/* Pie de una imagen con [caption] convertida en bloque (bcd_content_galleries):
   pegado a la foto y en cuerpo pequeño, como el pie original. */
.overlapping-images:has(+ .bcd-image-caption) .overlapping-images-container {
  margin-bottom: 0;
}
.content-page .main-column .info-main p.bcd-image-caption,
p.bcd-image-caption {
  font-size: 15px;
  line-height: 1.3;
  margin: 8px 0 32px !important;
  padding: 0 !important;
}

/* «Leer más» y el icono sobre la foto: en negro si bcd-contrast.js detecta
   fondo claro en su esquina. Sin las cuadradas. */
@media only screen and (min-width: 768px) {
  .featured-posts-home .item-post.bcd-light-left:not(.type-square) .image-post .read-more-post a {
    color: #000 !important;
  }
  .featured-posts-home .item-post.bcd-light-left:not(.type-square) .image-post .read-more-post .icon-color,
  .featured-posts-home .item-post.bcd-light-right:not(.type-square) .image-post .icon-text-post {
    background-color: #000 !important;
  }
}

/* Tarjetas horizontales de Actualidad y listados: 3:2 cuando la imagen se
   acerca más a 3:2 que a 4:3 (bcd_card_ratio_class en functions.php). */
@media only screen and (min-width: 768px) {
  .related-posts .featured-posts-home .item-post.type-horizontal.ratio-3-2 .image-post,
  .list-posts-whatson.featured-posts-home .item-post.type-horizontal.ratio-3-2 .image-post {
    aspect-ratio: 3 / 2;
  }
}

/* Móvil, páginas de programa y de público: la foto de las tarjetas está oculta
   pero su bloque conservaba la línea inferior, que se sumaba a la de la tarjeta
   (4 px entre tarjetas). */
@media only screen and (max-width: 767px) {
  .page.target .featured-posts-home .item-post .image-post,
  .page.program .featured-posts-home .item-post .image-post {
    border-bottom: 0 !important;
  }
}

/* Móvil: con barra de título encima, su línea inferior ya separa; la superior
   del listado se sumaba (4 px). Sin barra (categorías) se mantiene. */
@media only screen and (max-width: 767px) {
  body:has(.headline-page) .list-posts-whatson.featured-posts-home {
    border-top: 0 !important;
  }
}

/* Agenda y noticias (body .page.category): la barra de título solo en móvil;
   en escritorio queda como antes. */
@media only screen and (min-width: 768px) {
  .page.category .headline-page {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {
  /* Proyectos: el borde de la foto se sumaba al de la tarjeta (4 px). */
  .list-projects .item-project .image-post {
    border: 0 !important;
  }
  /* Proyectos: separación entre tarjetas igual al margen lateral (21 px). */
  .list-projects.featured-posts-home {
    gap: 21px;
  }
  /* Noticias: sin barra de título, el margen de 52 px que la reservaba
     quedaba vacío sobre el título. */
  .single-post .content-page {
    margin-top: 0;
  }
}

/* Móvil: newsletter y mecenas. */
@media only screen and (max-width: 767px) {
  /* La última tarjeta del bloque (newsletter) dejaba 72 px antes del pie. */
  .related-posts .featured-posts-home > .item-post:last-child {
    margin-bottom: 0 !important;
  }
  /* Carruseles con la altura de su contenido (--bcd-sp-h, functions.js). */
  .sponsors-footer #slides-sponsors-slide,
  .sponsors-footer #slides-sponsors-institutional {
    height: var(--bcd-sp-h, 180px) !important;
  }
  .sponsors-footer .list-sponsor-types .item-term .list-sponsors {
    height: var(--bcd-sp-h, 180px);
  }
  /* Dos logos por fila; uno solo, grande y centrado. */
  .sponsors-footer .list-sponsor-types .item-term .list-sponsors .item-sponsor-type {
    width: 50% !important;
    height: 76px !important;
  }
  .sponsors-footer .list-sponsor-types .item-term .list-sponsors .item-sponsor-type:only-child {
    width: 60% !important;
    height: 100% !important;
  }
  /* Logo entero y sin deformar dentro de su celda, con aire alrededor. */
  .sponsors-footer #slides-sponsors-slide .list-sponsor-types .item-term:nth-child(n) .list-sponsors .item-sponsor-type:nth-last-child(n) .image-sponsor,
  .sponsors-footer #slides-sponsors-institutional .list-sponsor-types .item-term:nth-child(n) .list-sponsors .item-sponsor-type:nth-last-child(n) .image-sponsor {
    box-sizing: border-box;
    padding: 14px 12px !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-origin: content-box !important;
    mask-origin: content-box !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
  }
}

/* Móvil: con una sola diapositiva superslides oculta las flechas, pero los
   recuadros blancos que les hacen de fondo (li:before/after) seguían visibles. */
@media only screen and (max-width: 767px) {
  .wide-container li:only-child:before,
  .wide-container li:only-child:after {
    display: none !important;
  }
}

/* Móvil: el borde superior de la imagen del slider se sumaba a la línea de la
   cabecera (4 px). */
@media only screen and (max-width: 767px) {
  .wide-container li img {
    border-top: 0 !important;
  }
}

/* Móvil: las listas del contenido conservaban el cuerpo de escritorio (25 px)
   mientras los párrafos bajan a 18 px. */
@media only screen and (max-width: 767px) {
  .content-page .main-column .info-main .text-row ul li,
  .content-page .main-column .info-main .text-row ol li {
    font-size: 18px;
    line-height: 23px;
    margin-bottom: 10px !important;
  }
  /* Sangría del guion proporcional al cuerpo de móvil (34 px en escritorio). */
  .content-page .main-column .info-main .text-row ul {
    padding-left: 24px;
  }
  .content-page .main-column .info-main .text-row ul li:before {
    margin-left: -24px;
  }
}

/* Texto del slider debajo de la imagen (gallery_images), solo en móvil, en
   caja alineada con la del contenido. */
.bcd-slider-caption {
  display: none;
}
@media only screen and (max-width: 767px) {
  .bcd-slider-caption {
    display: block;
    clear: both;
    margin: 21px 21px 0 21px;
    padding: 18px 22px 20px 22px;
    border: 2px solid;
    box-sizing: border-box;
  }
  /* Caja separada: 21 px hasta la del contenido, como desde la imagen. */
  .bcd-slider-caption + .content-page {
    margin-top: 0 !important;
  }
  .bcd-slider-caption + .content-page .info-main > .text-row:first-child {
    margin-top: 21px !important;
  }
  .bcd-slider-caption .quote-slide {
    font-family: 'Steradian-Regular', sans-serif;
    font-weight: normal;
    font-size: 22px;
    line-height: 26px;
    letter-spacing: -0.3px;
    margin: 0;
    padding: 0;
    text-align: left;
  }
}

/* H2 en el texto de noticias: menos margen superior; sin margen si abre el bloque */
.single-post .content-page .main-column .text-row h2 {
  margin: 1em 0 0.5em 0;
}
.single-post .content-page .main-column .text-row h2:first-child {
  margin-top: 0;
}
