/* TAMANOS MENU */
@media (min-width: 960px) and (max-width: 1219px) {
  header.tm-header .uk-navbar-left {
    flex-wrap: nowrap !important;
  }

  /* Logo: se fija a 140px para que nunca se encoja */
  header.tm-header .uk-logo {
    flex-shrink: 0 !important;
    flex-basis: 140px !important;
  }
  header.tm-header .uk-logo img {
    width: 140px !important;
    height: 45px !important;
    flex-shrink: 0 !important;
  }
  header.tm-header .uk-navbar-nav {
    gap: 0 !important;
  }
  header.tm-header .uk-navbar-nav > li {
    flex-shrink: 0 !important;
  }
  header.tm-header .uk-navbar-nav > li > a {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  header.tm-header .uk-navbar-nav > li .uk-navbar-parent-icon svg {
    width: 8px !important;
    height: 8px !important;
  }
  header.tm-header .uk-navbar-toggle.uk-search-icon {
    flex-shrink: 0 !important;
    flex-basis: 26px !important;
    font-size: 11px !important;
  }
  header.tm-header .uk-navbar-toggle.uk-search-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
  header.tm-header .uk-navbar-dropdown {
    padding: 2px 8px 16px 8px !important;
    font-size: 12px !important;
  }
  header.tm-header .uk-navbar-dropdown-nav > li > a {
    font-size: 12px !important;
    padding: 3px 0 !important;
  }
}

/* bordes redondeados */
.uk-tile-muted, .uk-tile-primary, .uk-tile-secondary, .uk-tile-default{
    border-radius: 20px;
}

/* toolbar */
.tm-toolbar .uk-container{
    max-width: 1520px;
}

/* boton flecha*/
.uk-button-text {
  --rj-sz: 1em;
  --rj-gap: 0.5rem;
  display: inline-block;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  text-transform: uppercase;

  padding-right: calc(var(--rj-sz) + var(--rj-gap));
  padding-left: 0;

  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0% 100%;
  background-size: 0% 1px;

  transition:
    padding-right 0.7s cubic-bezier(0.52, 0, 0, 1),
    padding-left  0.7s cubic-bezier(0.52, 0, 0, 1),
    background-size 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.uk-button-text::before,
.uk-button-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--rj-sz);
  height: var(--rj-sz);
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cline x1='5' y1='19' x2='19' y2='5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpolyline points='8 5 19 5 19 16' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cline x1='5' y1='19' x2='19' y2='5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpolyline points='8 5 19 5 19 16' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  transition:
    transform 0.7s cubic-bezier(0.52, 0, 0, 1),
    opacity   0.7s cubic-bezier(0.52, 0, 0, 1);
}
.uk-button-text::after {
  right: 0;
  transform: translateY(-50%);
}
.uk-button-text::before {
  left: 0;
  opacity: 0;
  transform: translate(-120%, calc(-50% + 0.65rem));
}
.uk-button-text.efecto-azul,
.uk-button-text.efecto-azul:hover {
  color: #1C4D8D;
}
@media (hover: hover) and (pointer: fine) {
  .uk-button-text:hover {
    text-decoration: none !important;
    padding-right: 0;
    padding-left: calc(var(--rj-sz) + var(--rj-gap));
    background-size: 100% 1px;
  }

  .uk-button-text:hover::after {
    transform: translate(120%, calc(-50% - 0.6rem));
    opacity: 0;
  }

  .uk-button-text:hover::before {
    transform: translateY(-50%);
    opacity: 1;
  }
}

/* boton solo linea */
.uk-button-line {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  text-transform: uppercase;
  padding-bottom: 0.25em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0% 100%;
  background-size: 0% 1px;
  transition: background-size 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
@media (hover: hover) and (pointer: fine) {
  .uk-button-line:hover {
    text-decoration: none !important;
    background-size: 100% 1px;
  }
}

/* animacion texto */
.rj-reveal {
  overflow: visible !important;
}
.rj-reveal .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.rj-reveal .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}
.rj-reveal.is-visible .word {
  transform: translateY(0);
  opacity: 1;
}

/* ENLACES WEB */
body .el-link:not(.uk-button),
body a.uk-link-text,
.tm-toolbar .uk-subnav a,
.builder a:not(:has(img)):not(.uk-button):not(.uk-icon),
.tm-page .el-content a,
.tm-page .uk-article a,
.tm-page .uk-text a,
.tm-page .uk-panel > a:not(:has(img)):not(.uk-button) {
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0% 100%;
  background-size: 0% 1px;
  padding-bottom: 0.1em;
  transition: background-size 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
@media (hover: hover) and (pointer: fine) {
  body .el-link:not(.uk-button):hover,
  body a.uk-link-text:hover,
  .tm-toolbar .uk-subnav a:hover,
  .builder a:not(:has(img)):not(.uk-button):not(.uk-icon):hover,
  .tm-page .el-content a:hover,
  .tm-page .uk-article a:hover,
  .tm-page .uk-text a:hover,
  .tm-page .uk-panel > a:not(:has(img)):not(.uk-button):hover {
    text-decoration: none !important;
    background-size: 100% 1px;
  }
}
/* SELECTOR DE IDIOMA */
div.mod-languages li {
    margin: 0px; 
}
/*
div.mod-languages .uk-subnav>* {
    padding-left: 10px;  
} */
div.mod-languages a {
    padding: 1px;  
}

.tm-toolbar .uk-subnav > * > :first-child{
    font-size: 12px;
}


/* DROPBAR */
.uk-navbar-dropdown-dropbar {
  padding-bottom: 30px !important;
}
/* Borde animado izquierda derecha */
.uk-dropbar {
  background-image: linear-gradient(#C2002F, #C2002F) !important;
  background-repeat: no-repeat !important;
  background-position: left bottom !important;
  background-size: 0% 6px !important;
  transition: background-size 0.6s cubic-bezier(0.85, 0, 0.15, 1) !important;
}
.uk-dropbar.dropbar-active {
  background-size: 100% 6px !important;
}
/* Animacion rj-reveal en los links del submenu */
.uk-navbar-dropdown-nav li a .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.uk-navbar-dropdown-nav li a .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.uk-navbar-dropdown-nav li a.rj-visible .word {
  transform: translateY(0px) !important;
  opacity: 1 !important;
}

/* TABLA ACTIVIDADES */
.tabla-actividades .el-item .uk-grid {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 0 !important;
}
.tabla-actividades .el-item .uk-grid > div:first-child {
  display: contents;
}
.tabla-actividades .el-item .el-title,
.tabla-actividades .el-item .el-meta {
  margin: 0 !important;
}
.tabla-actividades .el-item .el-title {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabla-actividades .el-item .el-meta {
  order: 2;
  flex: 0 0 150px;
  text-align: left;
  white-space: nowrap;
}
.tabla-actividades .el-item .uk-grid > div:last-child {
  order: 3;
  flex: 0 0 170px;
  font-size: 13px;
  white-space: nowrap;
}
.tabla-cabecera {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}
.tabla-cabecera .tc-titulo {
  flex: 1 1 auto;
  min-width: 0;
}
.tabla-cabecera .tc-inicio {
  flex: 0 0 190px;
  text-align: left;
}
.tabla-cabecera .tc-duracion {
  flex: 0 0 130px;
}
@media (max-width: 640px) {
  .tabla-actividades .el-item .uk-grid {
    flex-wrap: wrap;
    row-gap: 3px;
  }
  .tabla-actividades .el-item .el-title,
  .tabla-actividades .el-item .el-meta,
  .tabla-actividades .el-item .uk-grid > div:last-child {
    flex: 1 1 100%;
    text-align: left;
    white-space: normal;
  }
  .tabla-actividades .el-item .el-title::before,
  .tabla-actividades .el-item .el-meta::before,
  .tabla-actividades .el-item .el-content::before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    margin-top: 10px;
    color: #000;
  }
  .tabla-actividades .el-item [data-label=""]::before { content: none; }
  .tabla-actividades .uk-margin-remove-first-child .uk-first-column {
    padding-left: 0px;
  }
}

/* TABLA PROGRAMAS */
.tabla-programas .el-item .uk-grid {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 0 !important;
}
.tabla-programas .el-item .uk-grid > div:first-child {
  display: contents;
}
.tabla-programas .el-item .el-title,
.tabla-programas .el-item .el-meta {
  margin: 0 !important;
}
.tabla-programas .el-item .el-title {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabla-programas .el-item .el-meta {
  order: 2;
  flex: 0 0 150px;
  text-align: left;
  white-space: nowrap;
}
.tabla-programas .el-item .uk-grid > div:last-child {
  order: 3;
  flex: 0 0 170px;
  font-size: 13px;
  white-space: nowrap;
}
.tabla-cabecera-prog {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.15);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}
.tabla-cabecera-prog .tc-titulo {
  flex: 1 1 auto;
  min-width: 0;
}
.tabla-cabecera-prog .tc-fecha {
  flex: 0 0 180px;
  text-align: left;
}
.tabla-cabecera-prog .tc-estado {
  flex: 0 0 145px;
}
@media (max-width: 640px) {
  /* Filtros: uno por línea, a todo el ancho y alineados con el buscador */
  .tabla-programas .fs-filter-grid-left-cell {
    margin-left: 0 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  .tabla-programas .fs-filter-grid-left-cell-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  .tabla-programas .fs-filter-grid-left-cell-content > div {
    padding-left: 0 !important;
    width: 100% !important;
  }
  .tabla-programas .fs-filter-grid-left-cell-content .uk-tab {
    margin-left: 0 !important;
  }
  .tabla-programas .fs-filter-grid-left-cell-content .uk-tab::before {
    display: none;
  }
  .tabla-programas .fs-filter-grid-left-cell-content .uk-tab > li {
    position: relative;
    width: 100%;
    padding-left: 0 !important;
  }
  .tabla-programas .fs-filter-grid-left-cell-content .uk-tab > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0,0,0,.15);
  }
  .tabla-programas .fs-filter-grid-left-cell-content .uk-tab > li.uk-active > a {
    border-bottom-color: #C2002F;
  }
  .tabla-programas .fs-filter-grid-left-cell-content .uk-drop {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  /* Quitar la línea divisoria del grid entre filtros y buscador */
  .tabla-programas .fs-filter-grid > .fs-filter-grid-right-cell::before {
    display: none;
  }

  /* Filas: apiladas, Título / Entidad / Estado */
  .tabla-programas .el-item .uk-grid {
    flex-wrap: wrap;
    row-gap: 3px;
  }
  .tabla-programas .el-item .uk-grid > div:last-child {
    padding-left: 0 !important;
    font-size: 16px;
  }
  .tabla-programas .el-item .el-title,
  .tabla-programas .el-item .el-meta,
  .tabla-programas .el-item .uk-grid > div:last-child {
    flex: 1 1 100%;
    text-align: left;
    white-space: normal;
  }
  .tabla-programas .el-item .el-title {
    font-size: 18px;
    line-height: 1.3;
  }
  .tabla-programas .el-item .el-meta,
  .tabla-programas .el-item .el-content {
    font-size: 16px;
  }
  .tabla-programas .el-item .el-title::before,
  .tabla-programas .el-item .el-meta::before,
  .tabla-programas .el-item .el-content::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: .6;
    margin-top: 12px;
    margin-bottom: 4px;
  }
  .tabla-programas .el-item .el-title::before {
    margin-top: 0;
  }
  .tabla-programas .el-item [data-label=""]::before { content: none; }
}

/* OFFCANVAS */

#tm-dialog-mobile .uk-nav > li.uk-parent > a {
  justify-content: space-between;
  align-items: center;
}
#tm-dialog-mobile .tm-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 36px;
  margin-right: -14px;
  color: inherit;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), color .1s ease-in-out;
}
#tm-dialog-mobile .tm-nav-toggle:hover,
#tm-dialog-mobile .tm-nav-toggle:focus-visible {
  color: #c2002f; 
  outline: none;
}
#tm-dialog-mobile li.uk-parent.tm-open > a > .tm-nav-toggle {
  transform: rotate(180deg);
}
#tm-dialog-mobile .tm-nav-sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1);
}
#tm-dialog-mobile .tm-nav-sub-wrap > .uk-nav-sub {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}
#tm-dialog-mobile li.uk-parent.tm-open > .tm-nav-sub-wrap {
  grid-template-rows: 1fr;
}
#tm-dialog-mobile li.uk-parent.tm-open > .tm-nav-sub-wrap > .uk-nav-sub {
  opacity: 1;
  transform: none;
  transition-delay: .08s;
}
#tm-dialog-mobile .uk-nav > li.uk-parent {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
#tm-dialog-mobile .uk-nav > li.uk-parent:last-child {
  border-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  #tm-dialog-mobile .tm-nav-toggle,
  #tm-dialog-mobile .tm-nav-sub-wrap,
  #tm-dialog-mobile .tm-nav-sub-wrap > .uk-nav-sub {
    transition: none;
  }
}