body {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;

}



/* Características generales monitores Gravita */


.adif-infotren-vista {
    font-family: "AdVista24_BrandFont_Medium", sans-serif;
    font-weight: 500;
    box-sizing: border-box;
}

.adif-infotren-vista .monospace {
    /* Campos con números monoespaciados */
    font-feature-settings: "tnum" 1;
}

.adif-infotren-vista-collapse {
    height: 0 !important;
}


/* Configuración de tamaño de los elementos y fuentes */


/* ORGANIZACIÓN GENERAL DEL MONITOR: CABECERA, TABLA Y ALERTAS */

.adif-infotren-vista-departures .header,
.adif-infotren-vista-alphabetical .header,
.adif-infotren-vista-arrivals .header {
    height: var(--header-height);
    font-size: var(--header-height);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    background-color: var(--AdVista24-header-background-color);
    color: var(--AdVista24-header-text-color);
}



.adif-infotren-vista-departures .table,
.adif-infotren-vista-arrivals .table,
.adif-infotren-vista-alphabetical .table {
    /* Respecto a .adif-infotren-vista-departures */
    height: var(--table-height);
    font-size: var(--table-height);
    width: 100%;
}

.adif-infotren-vista-departures .alerts,
.adif-infotren-vista-arrivals .alerts {
    /* Respecto a .adif-infotren-vista-departures */
    height: var(--alerts-height);
    font-size: var(--alerts-height);
    width: 100%;
    display: flex;
}

.adif-infotren-vista-departures .alerts .alert,
.adif-infotren-vista-arrivals .alerts  .alert {
    height: 100%;
    font-size: 100%;
    width: 100%;
    display: flex;
}


.adif-infotren-vista-departures .alerts .alert,
.adif-infotren-vista-arrivals .alerts .alert {
    background-color: var(--AdVista24-alert-background-color);
    color: var(--AdVista24-alert-text-color);
}



.adif-infotren-vista-departures .alerts .alert .alert-picto,
.adif-infotren-vista-arrivals .alerts .alert .alert-picto {
    display: flex;
    justify-content: center;
    align-items: center;
}




.adif-infotren-vista-departures .alert .alert-header,
.adif-infotren-vista-arrivals .alert  .alert-header {
    height: 50%;
    font-size: 45%;
    width: 100%;
    display: flex;
    font-family: 'AdVista24_BrandFont_Bold';
    align-items: center; 
    white-space: nowrap;
}

.adif-infotren-vista-departures .alert .alert-header .alert-line-img ,
.adif-infotren-vista-arrivals .alert .alert-header .alert-line-img {
    height: 90%;
    margin-right: 0.3em;
    vertical-align: middle;
}



/* ORGANIZACIÓN DE CABECERA: LOGO, TÍTULO, RELOJ Y HEADER-LEGEND */


.adif-infotren-vista-departures .header .header-logo,
.adif-infotren-vista-arrivals .header .header-logo,
.adif-infotren-vista-alphabetical .header .header-logo { 
    /* Respecto a .header */
    width: var(--header-logo-width);
    height: 100%;
    font-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.adif-infotren-vista-alphabetical .header .header-logo .clock {
    font-size: 40%;
    height: 40%;
    text-align: center;
}

.adif-infotren-vista-alphabetical .header .header-logo div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.adif-infotren-vista-alphabetical .header .header-logo img {
    max-height: 80%;
}

.adif-infotren-vista-departures .header .title,
.adif-infotren-vista-arrivals .header .title,
.adif-infotren-vista-alphabetical .header .title {
    /* Respecto a .header */
    width: var(--header-title-width);
    height: 100%;
    font-size: 66%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow: hidden;
}

.adif-infotren-vista-alphabetical .header .network-logo { 
    height: 100%;
    font-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adif-infotren-vista-alphabetical .header .network-logo img { 
    max-height: 80%;
}


.adif-infotren-vista-departures .header .clock,
.adif-infotren-vista-arrivals .header .clock,
.adif-infotren-vista-alphabetical .header .first-second-train {
    /* Respecto a .header */
    height: 66%;
    font-size: 66%;
    display: flex;
    justify-content: flex-end;
}

.adif-infotren-vista-alphabetical .header .first-second-train {
    width: 50%;
}



/* Organización de .header .logo */
.adif-infotren-vista-departures .header .header-logo img,
.adif-infotren-vista-arrivals .header .header-logo img,
.adif-infotren-vista-alphabetical .header .header-logo div img  {
    /* Respecto a .header */
    width: 80%;
}


/* Organización de .header .title */
.adif-infotren-vista-departures .header .title .title-text,
.adif-infotren-vista-arrivals .header .title .title-text {
    /* Respecto a .title */
    font-family: 'AdVista24_BrandFont_Bold', sans-serif;
    height: 90%;
    font-size: 100%;
    text-align: left;
    font-weight: bold;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;

}


.adif-infotren-vista-alphabetical .header .title .title-text {
    /* Respecto a .title */
    font-family: 'AdVista24_BrandFont_Medium', sans-serif;
    height: 90%;
    font-size: 65%;
    text-align: left;
    font-weight: bold;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;

}

.adif-infotren-vista-departures .header .title .title-text span,
.adif-infotren-vista-arrivals .header .title .title-text span,
.adif-infotren-vista-alphabetical .header .title .title-text span {
    /* Respecto a .title */

    font-family: 'AdVista24_BrandFont_Light', sans-serif;
    vertical-align: baseline;

}

.adif-infotren-vista-departures .header .title .title-text span b,
.adif-infotren-vista-arrivals .header .title .title-text span b,
.adif-infotren-vista-alphabetical .header .title .title-text span b {
    /* Respecto a .title */

    font-family: 'AdVista24_BrandFont_Medium', sans-serif;
    vertical-align: baseline;

}

.adif-infotren-vista-alphabetical .alphabetical-legend-picto {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.adif-infotren-vista-alphabetical .alphabetical-legend-picto .picto {
    max-height: 90%;
    max-width: 100%;
    height: auto;
    width: auto;

}

.header .title .title-text div {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    height: 90%;
    align-items: center;

}



.header .title .title-text div.hidden {
    display: none;
}

.adif-infotren-vista-departures .header .title .title-text-margin,
.adif-infotren-vista-arrivals .header .title .title-text-margin,
.adif-infotren-vista-alphabetical .header .title .title-text-margin {
    display: flex;
    flex-wrap: wrap;
    height: 10%;
    width: 100%;
}


/* Organización de .header .clock */
.clock small {
  /* Respecto a .clock (minutero) */
    font-size: 60%;
}

.adif-infotren-vista-departures .header .header-legend,
.adif-infotren-vista-alphabetical .header .header-legend,
.adif-infotren-vista-arrivals .header .header-legend {
    /* Respecto a .adif-infotren-vista-departures */
    width: var(--header-legend-width);
    display: flex;
    height: 100%;
    flex-wrap: wrap;

}



.header .header-legend .legend-margin {
    width: var(--header-legend-space-width);
    height: 34%;
}

.header .header-legend .legend-bar-space {
    width: var(--header-legend-bar-space-width);
    height: 34%;
}

.header .header-legend .legend-space-between-trains {
    width: var(--header-legend-space-between-trains);
    height: 34%;
}

.header .header-legend .no-legend-margin-sup {
    height: 15%;
}

.header .header-legend .no-legend-margin-inf {
    height: 19%;
}

.header .header-legend .access-header {
    width: var(--header-access-width);
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    font-size: 34%;
    height: 34%;
    overflow: hidden;
}

.header .header-legend .platform-header {
    width: var(--header-platform-width);
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    font-size: 34%;
    height: 34%;
    overflow: hidden;
}

.header .header-legend .time-header {
    width: var(--header-time-width);
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    font-size: 34%;
    height: 34%;
    overflow: hidden;
}

.header .header-legend .line-header {
    width: var(--header-line-width);
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    font-size: 34%;
    height: 34%;
    overflow: hidden;
}

.header .header-legend .access-header .access-tag,
.header .header-legend .platform-header .platform-tag,
.header .header-legend .time-header .time-tag,
.header .header-legend .line-header .line-tag {
    display: flex;
    width: 95%;
    height: 100%;
    font-size: 80%;
    overflow: hidden;
    font-weight: bold;
    justify-content: center;
    align-items: center;
}

.header .header-legend .first-second-train .first-second-train-tag {
    display: flex;
    width: 95%;
    height: 100%;
    font-size: 80%;
    overflow: hidden;
    font-weight: bold;
    justify-content: center;
    align-items: center;
}



.header .header-legend .access-header p.hidden,
.header .header-legend .platform-header p.hidden,
.header .header-legend .time-header p.hidden,
.header .header-legend .line-header p.hidden,
.header .header-legend .first-second-train p.hidden {
    display: none;
}

.header .header-legend .access-header .header-margin,
.header .header-legend .platform-header .header-margin,
.header .header-legend .time-header .header-margin,
.header .header-legend .line-header .header-margin,
.header .header-legend .first-second-train .header-margin {
    height: 100%;
}





/* ORGANIZACIÓN DE TABLA: FILAS DE TRENES (TRAIN-ROW) */
.adif-infotren-vista-departures .train-table,
.adif-infotren-vista-arrivals .train-table,
.adif-infotren-vista-alphabetical .alphabetical-table {
    background-color: var(--AdVista24-table-background-color);
}


.adif-infotren-vista-departures .table .train-row,
.adif-infotren-vista-alphabetical .table .alphabetical-row,
.adif-infotren-vista-arrivals .table .train-row  {
    /* Respecto a .table */
    height: var(--row-height);
    font-size: var(--row-height);
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    color: var(--AdVista24-row-text-color);
}


.adif-infotren-vista-departures .train-table-all-trains,
.adif-infotren-vista-arrivals .train-table-all-trains {
    overflow-y: auto;
}


/* ORGANIZACAIÓN DE LA FILA DE TREN */
/* El ancho se asigna dinámicamente */

/* FILA SUPERIOR */
.train-table .train-row .train-time,
.train-table .train-row .train-direction,
.train-table .train-row .train-commercial-id,
.train-table .train-row .train-access,
.train-table .train-row .train-platform,
.train-table .train-row .train-platform-preview
.train-table .train-row .list-margin-sup
{
    height: 60%;
}

.train-table .train-row .train-time,
.train-table .train-row .train-direction,
.train-table .train-row .train-commercial-id,
.train-table .train-row .train-access,
.train-table .train-row .train-platform
{
    font-size: 50%;
}

.train-table .train-row .train-time {
    display: flex;
    justify-content: center;
    align-items: center;
}

.train-time.countdown-delayed {
    color: #5FE0AF;
}

.train-time.cancelled {
    text-decoration: line-through;
    opacity: 0.5;
}

.train-direction {
    display: block;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    overflow: hidden;
}

.train-direction.cancelled {
    /* text-decoration: line-through; */
    opacity: 0.5;
}

.train-direction-iteration.opaque {
    opacity: 0%;
}


.train-commercial-id {
    display: block;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.train-commercial-id .train-commercial-id-iteration {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.train-commercial-id .train-commercial-id-iteration.hidden {
    display: none;
}


.train-table .train-row .train-access {
    display: flex;
    justify-content: center;
    align-items: center;
}

.train-table .train-row .train-access .access-tag {
    display: flex;
    justify-content: center;
    width: 95%;
    height: 100%;
    align-items: center;
    text-align: center;
}

.train-table .train-row .train-access .access-tag.access-time-departures,
.train-table .train-row .train-access .access-tag.access-time-arrivals {
    color: var(--AdVista24-row-access-time-text-color);
}


.train-table .train-row .train-access img.picto {
    height: 110%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    max-height: 0.9em;
    /* padding-left: 0.3em; */
    width: auto;

}

.train-platform {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    text-align: center;
}

.train-platform .train-platform-tag,
.train-platform-preview .train-platform-tag
{
    display: flex;
    justify-content: center;
    width: 95%;
    height: 100%;
    align-items: center;
}


.adif-infotren-vista-departures .train-table .train-row .train-platform-preview, 
.adif-infotren-vista-arrivals .train-table .train-row .train-platform-preview {
    font-size: 32%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--AdVista24-row-platform-preview-text-color);
    max-width: 100%;
    white-space: nowrap;
}



.train-platform img {
    height: 85%;
    max-width: 100%;
}


/* FILA INFERIOR */
.train-table .train-row .train-status,
.train-table .train-row .train-horizontal-journey,
.train-table .train-row .train-info,
.train-table .train-row .train-platform-routing,
.train-table .train-row .list-margin-inf
.train-table .train-row .list-margin-inf-end
{
    height: 40%;
    font-size: 32%;
}


.adif-infotren-vista-departures .train-table .train-row .train-status.teorical,
.adif-infotren-vista-arrivals .train-table .train-row .train-status.teorical {
    white-space: nowrap;
    overflow: hidden;
    color: var(--AdVista24-row-teorical-time-color);
    display: flex;
    flex-wrap: wrap;
    vertical-align: center;
    /* justify-content: center; */
}


.adif-infotren-vista-departures .train-table .train-row .train-status.cancelled,
.adif-infotren-vista-arrivals .train-table .train-row .train-status.cancelled {
    white-space: nowrap;
    overflow: hidden;
    color: var(--AdVista24-row-cancelled-color);
    display: flex;
    flex-wrap: wrap;
    vertical-align: center;
    justify-content: flex-start;
}


.adif-infotren-vista-departures .train-table .train-row .train-status,
.adif-infotren-vista-arrivals .train-table .train-row .train-status {
    white-space: nowrap;
    overflow: hidden;
    color: var(--AdVista24-row-status-color);
    display: flex;
    flex-wrap: wrap;
    vertical-align: center;
    justify-content: flex-start;
}


.train-table .train-row .train-status:not(.teorical) div {
    display: flex;
    height: 100%;
    padding-left: var(--delay-padding);
}

.train-table .train-row .train-status.teorical div {
    display: flex;
    height: 100%;
    padding-left: var(--delay-padding);
}

.train-table .train-row .train-status:not(.teorical) div.hidden{
    display: none;

}


.train-horizontal-journey  {
    overflow: hidden;
}

.train-horizontal-journey.cancelled {
    text-decoration: line-through;
    opacity: 50%;
}

.train-horizontal-journey div  {
    height: 100%;
}

.train-horizontal-journey div.scrollableX {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.train-horizontal-journey div.scrollableX div {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.train-horizontal-journey div.scroll-by-blocks {
    display: flex;
    flex-wrap: wrap;
    white-space: wrap;
}

.train-horizontal-journey div.scroll-by-stations
 {
    display: block;
    white-space: wrap;
}

.train-horizontal-journey .station-combo {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    white-space: nowrap;
    height: 100%;
}


.adif-infotren-vista-departures .train-table .train-row .train-info:not(.train-info-closed-check-in):not(.train-info-cancelled) {
    white-space: nowrap;
    overflow: hidden;
    color: #5FE0AF;
    align-items: stretch;
}

.adif-infotren-vista-departures .train-table .train-row .train-info.train-info-closed-check-in,
.adif-infotren-vista-departures .train-table .train-row .train-info.train-info-cancelled {
    white-space: nowrap;
    overflow: hidden;
    color: #FF8557;
    align-items: stretch;
}

.adif-infotren-vista-departures .train-table .train-row .train-info.train-info-closed-check-in .train-info-closed-check-in-tag.hidden {
    display: none;
}

.adif-infotren-vista-arrivals .train-table .train-row .train-info {
    white-space: nowrap;
    overflow: hidden;
    color: #4358E0;
    align-items: stretch;


}

.train-table .train-row .train-info div.scrollableX {
    height: 100%;
    white-space: nowrap;
}

.train-table .train-row .train-info div.scrollableS {
    white-space: normal;
    height: 100%;
    line-height: 125%; 
    position: relative;
    top: -0.10em;
    
}

.train-table .train-row .train-platform-routing {

    white-space: nowrap;
    
}

/* ORGANIZACIÓN DE FILA DE TREN EN TABLAS */
/* El ancho se asigna dinámicamente */
.train-direction div.train-direction-iteration {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.train-direction div.train-direction-iteration .station-combo {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.train-direction div.hidden {
    display: none;
}


.train-vertical-journey  .station-combo {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-self: flex-start;
    align-items: baseline;
    white-space: nowrap;
    height: 100%;
}

.station-combo .line {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    max-height: 0.9em;
    height: fit-content;
    padding-right: 0.2em;
}



.station-combo div {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;

}

.train-horizontal-journey .station-combo div {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;

}



.station-combo img.picto {
    height: 90%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    max-height: 0.9em;
    /* padding-left: 0.3em; */
    width: auto;

}

.train-horizontal-journey  .station-combo img.picto {
    height: 90%;
    max-height: 0.9em;
    padding-top: 0.1em;

}



.train-product {
    height: 100%;
    font-size: 60%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.train-product img {

    max-width: 100%;
    height: 85%;
    width: auto;
    border-radius: 0.25em;
}

.train-product .train-product-tag {
    display: flex;
    height: 100%;
    width: 94%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.train-product .train-product-tag p {
    display: flex;
    height: 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}



.train-product .train-product-margin {
    height: 100%;
}


.train-number {
    height: 100%;
    font-size: 60%;
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden;
    text-align: center;
}

.train-number.cancelled {
    opacity: 0.5;
}

.train-number-tag {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.train-composition {
    overflow: visible;
}

.train-composition svg {
    overflow: visible;
}

.train-closed-check-in {
    font-family: "AdVista24_BrandFont_Bold", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    vertical-align: center;
    justify-content: center;
    color: var(--AdVista24-closed-checkin-text-color);
    background-color: var(--AdVista24-closed-checkin-background-color);
    font-size: 95%;
}

.train-closed-check-in-line {
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    vertical-align: center;
    justify-content: center;
    font-size: 95%;
}

.train-closed-check-in-line div.hidden {
    display: none;
}


.adif-infotren-vista-platform .platform-info {
    white-space: nowrap;
    overflow: hidden;
    color: var(--AdVista24-observation-text-color);
    align-items: stretch;
    padding-bottom: 0.08em;
}

.adif-infotren-vista-platform .platform-info .short-observation {
    text-align: center;

}


.train-alighting-only {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.train-alighting-only-canvas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    overflow: hidden;
}

.train-alighting-only-tag {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    color: #ffc26c; 
}

.train-alighting-only-tag.hidden {
    display: none;
}


/* ORGANIZACAIÓN DE LAS FILAS EN PLANTILLA ALPHABETICAL */
.alphabetical-row .alphabetical-station {
    height: 100%;
    font-size: 100%;
    display: block;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    overflow: hidden;
}

.alphabetical-row .alphabetical-station-name {
    height: 65%;
    font-size: 60%;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    white-space: nowrap;
    overflow: hidden;
}

.alphabetical-row .alphabetical-station-name .station-combo {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    white-space: nowrap;
    height: 100%;
    width: 100%;
    overflow: hidden;


}

.alphabetical-row .alphabetical-station-name .alphabetical-station-name-literal {
    transform: scaleX(var(--scaleX));
    transform-origin: left;
    width: fit-content;
}


.alphabetical-row .alphabetical-station-connections {
    height: 35%;
    font-size: 35%;
    width: 100%;
    white-space: nowrap;

}

.alphabetical-row .alphabetical-station-connections .picto {
    height: 90%;
    padding-right: 1%;
}

.alphabetical-row .alphabetical-station-connections .last_picto {
    height: 90%;
    padding-right: 2%;
}



.alphabetical-row .alphabetical-trains {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-self: flex-start;
    align-items: baseline;
    white-space: nowrap;
    height: 100%;
    font-size: 100%;

}

.alphabetical-row .alphabetical-trains .alphabetical-train {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: center;
    align-items: center;
    white-space: nowrap;
    text-align: center;
    height: 100%;
    font-size: 100%;

}


.alphabetical-row .alphabetical-trains .alphabetical-train .alphabetical-train-upper-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-self: flex-start;
    align-items: center;
    white-space: nowrap;
    text-align: center;
    height: 60%;
    font-size: 60%;
    width: 100%;
}

.alphabetical-row .alphabetical-trains .alphabetical-train-border {
    background-color: var(--AdVista24-bar-color);
}

.alphabetical-train .train-line {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;  
    align-items: center; 
    white-space: nowrap;
    height: 100%;
}

.alphabetical-train .train-line img {
    max-width: 80%;
    max-height: 85%;
    height: auto;
    width: auto;
}

.alphabetical-train .train-time {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;  
    align-items: center; 
    white-space: nowrap;
    height: 100%;
    font-size: 75%;
}

.alphabetical-train .train-platform {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;  
    align-items: center; 
    white-space: nowrap;
    height: 100%;
    font-size: 90%;
}

.alphabetical-train .train-platform-preview {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;  
    align-items: center; 
    white-space: nowrap;
    height: 100%;
    font-size: 50%;
    color: #B9D0FF;
}

.alphabetical-row .alphabetical-trains .alphabetical-train .alphabetical-train-lower-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-self: flex-start;
    align-items: baseline;
    white-space: nowrap;
    text-align: center;
    height: 40%;
    font-size: 35%;
    width: 100%;
}


.train-alphabetical-direction div.train-direction-iteration {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    white-space: nowrap;
    height: 100%;
    width: 100%;
    overflow: visible;
}

.train-alphabetical-direction div.train-direction-iteration .station-combo {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    width: 100%;
}

.train-alphabetical-direction div.hidden {
    display: none;
}

.alphabetical-train-margin {
    height: 100%;
}

.alphabetical-letter {
    height: 100%;
    font-size: 40%;
    color: black;
    text-align: center;
}

.alphabetical-letter-even {
    background-color: var(--AdVista24-letter-index-even-background-color);
}

.alphabetical-letter-odd {
    background-color: var(--AdVista24-letter-index-odd-background-color);
}

.alphabetical-train .alphabetical-train-info {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.alphabetical-train .alphabetical-train-info-tag {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    color: #ffc26c; 
}

.alphabetical-train .alphabetical-train-info-tag.hidden {
    display: none;
}







/* Colores alternados en listas */

.adif-infotren-vista-departures .table[colors="normal"] .train-row:nth-child(odd),
.adif-infotren-vista-alphabetical .table[colors="normal"] .alphabetical-row:nth-child(odd),
.adif-infotren-vista-arrivals .table[colors="normal"] .train-row:nth-child(odd)
{
    background-color: var(--AdVista24-row-main-background-color);
}

.adif-infotren-vista-departures .table[colors="normal"] .train-row:nth-child(even),
.adif-infotren-vista-alphabetical .table[colors="normal"] .alphabetical-row:nth-child(even),
.adif-infotren-vista-arrivals .table[colors="normal"] .train-row:nth-child(even) {
    background-color: var(--AdVista24-row-alternate-background-color);
}

.adif-infotren-vista-departures .table[colors="inverse"] .train-row:nth-child(even),
.adif-infotren-vista-alphabetical .table[colors="inverse"] .alphabetical-row:nth-child(even),
.adif-infotren-vista-arrivals .table[colors="inverse"] .train-row:nth-child(even) {
    background-color: var(--AdVista24-row-main-background-color);
}

.adif-infotren-vista-departures .table[colors="inverse"] .train-row:nth-child(odd),
.adif-infotren-vista-alphabetical .table[colors="inverse"] .alphabetical-row:nth-child(odd),
.adif-infotren-vista-arrivals .table[colors="inverse"] .train-row:nth-child(odd) {
    background-color: var(--AdVista24-row-alternate-background-color);
}





/** MONITOR DE VÍA (PLATFORM) **/

.platform-train {
    /* Respecto a .adif-infotren-vista-platform */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    
    color: white;
    font-size: 100%;
}

.platform-train:nth-child(odd) {
    background-color: var(--AdVista24-train-main-background-color);
}

.platform-train:nth-child(even) {
    background-color: var(--AdVista24-train-alternate-background-color);
}

.platform-train .platform-train-body {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    
    color: white;
}



.platform-train .platform-train-body .platform-header {
    /* Respecto a .adif-infotren-vista-platform */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    color: white;
    font-size: 100%;
}


.adif-infotren-vista-platform .platform-sign {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    border-width: 0 0 0.02em 0;
    border-color:  var(--AdVista24-platform-sign-bar-color);
    border-style: solid;
}

.adif-infotren-vista-platform .platform-sign.include-right-border {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    border-width: 0 0.02em 0.02em 0;
    border-color:  var(--AdVista24-platform-sign-bar-color);
    border-style: solid;
}

.adif-infotren-vista-number .platform-sign {
    background-color: var(--AdVista24-platform-sign-background-color);
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    border-style: none;
}

.platform-sign .platform-sign-bar {
    width: 12.5%;
    background-color: var(--AdVista24-platform-sign-bar-color);
    box-sizing: border-box;
    height: 100%;
    overflow: visible;
}

.platform-sign .platform-sign-number-box {
    width: 87.5%;
    color: white;
    text-align: center;
    font-size: 100%;
    display: flex;
    flex-wrap: wrap;
}

.platform-sign .platform-sign-number-box .platform-sign-number-margin-sup {
    width: 100%;
    height: 14.2%;
}

.platform-sign .platform-sign-number-box .platform-sign-number-margin-inf {
    width: 100%;
    height: 20.2%;
}

.platform-sign .platform-sign-number-box .platform-sign-number-margin-left,
.platform-sign .platform-sign-number-box .platform-sign-number-margin-right {
    height: 65.6%;
    display: flex;
    align-items: flex-start;
}

.platform-sign .platform-sign-number-box .platform-sign-number-margin-left {
    justify-content: flex-end;
}

.platform-sign .platform-sign-number-box .platform-sign-number-margin-right {
    justify-content: flext-start;
}

.platform-sign .platform-sign-number-box .train-platform {
    width: 90%;
    font-size: 90%;
    height: 65.6%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-sign .platform-sign-number-box .platform-sign-number p {
    vertical-align: middle;
}

.platform-sign .arrow {
    transform: translateY(0%);
}



.platform-train  .platform-train-body .platform-header .platform-train-header {
    height: 100%;
    font-size: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    font-size: 100%;
} 


.platform-train  .platform-train-body .platform-header .platform-train-header .platform-train-header-margin-sup,
.platform-train  .platform-train-body .platform-header .platform-train-header .train-time {
    height: 100%;
    font-size: 100%;
    white-space: nowrap;
}

.platform-train .platform-train-body .platform-header .platform-train-header .train-commercial-id {
    height: 100%;
    font-size: 82%;
}

.platform-train .platform-train-body .platform-header .platform-train-header .train-time span {
    font-size: 60%;
    color: #5FE0AF;
    padding-left: 0.3em;
    padding-bottom: 0.05em;
}


.platform-train .platform-train-body .platform-header .platform-train-header .platform-train-header-upper-row {
    width: 100%; 
    display: flex; 
    flex-wrap: wrap;
}

.platform-train .platform-train-body .platform-header .platform-train-header .platform-train-header-lower-row {
    width: 100%; 
    height: 57%; 
    font-size: 50%; 
    display: flex; 
    flex-wrap: wrap;
    overflow: hidden;
}

.platform-train .platform-train-body .platform-header .platform-train-header .platform-train-header-margin-inf,
.platform-train .platform-train-body .platform-header .platform-train-header .train-direction {
    height: 90%;
    font-size: 100%;
    overflow: visible;
}

.platform-train .platform-train-body .platform-header .platform-train-header .train-direction .train-direction-iteration,
.platform-train .platform-train-body .platform-header .platform-train-header .train-direction .train-direction-iteration .station-combo {
    overflow: visible;
}


.platform-train .platform-train-body .platform-header .platform-train-header .platform-train-header-margin-bottom {
    height: 10%;
}

.platform-train .platform-train-body .platform-horizontal-journey  {
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-train .platform-train-body .platform-horizontal-journey .train-horizontal-journey  {
    height: 100%;
    font-size: 90%;
}


.platform-train .platform-train-body .platform-horizontal-journey .platform-train-journey-margin {
    height: 100%;
}


.platform-train .platform-train-body .platform-train-header .inf {
    height: 50%;
    font-size: 50%;
    padding-bottom: 5%;
    
}

.platform-train .platform-train-body .platform-train-header .train-time {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-top: 0.05em;
}

.platform-train .platform-train-body .platform-train-header .train-time p {
    display: flex;
    align-items: flex-end;
    height: 100%;
}





.platform-train .platform-train-body .train-vertical-journey {
    width: 100%;
    display: block;
    overflow: hidden;
}

.platform-train .platform-train-body .train-vertical-journey .train-vertical-journey-container {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}


.platform-train .platform-train-body .train-vertical-journey  .train-vertical-journey-container .train-vertical-journey-stop {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}



.platform-train .platform-train-body .train-vertical-journey .train-vertical-journey-container .train-vertical-journey-stop .train-vertical-journey-stop-time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    font-size: 90%;
}



.platform-train .platform-train-body .train-vertical-journey .train-vertical-journey-container .train-vertical-journey-stop .train-vertical-journey-stop-circle {
    display: block;
    height: 100%;
    overflow: visible;
    position: relative;
}

.platform-train .platform-train-body .train-vertical-journey .train-vertical-journey-container .train-vertical-journey-stop .train-vertical-journey-stop-circle svg {
    display: block;
    height: 100%;
    overflow: visible;
    position: absolute;
}


.platform-train .platform-train-side-correct {
    background-color: var(--AdVista24-platform-side-arrow-background-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform-train .platform-train-side-correct img {
    max-width: 80%;
}

.platform-train .platform-train-side-incorrect {
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform-train .platform-train-side-incorrect img {
    max-width: 80%;
}




/** Monitor CLOCK **/
.adif-clock:not(.adif-black-clock) {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    background-color: var(--AdVista24-clock-background-color);
    color: var(--AdVista24-clock-text-color);
}


.adif-clock.adif-black-clock {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    background-color: black;
    color: #999999;
}



.adif-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
}

.adif-logo  .logo {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
}

.adif-logo .logo img {
    max-width: 70%;
    max-height: 70%;
    height: auto;
}

.adif-clock .adif-clock-time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
}

.adif-clock .adif-clock-time .clock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
}

.adif-number-black {
    color: #999999;
    text-align: right; 
    vertical-align: middle;
}



.adif-infotren-vista .version:not(.version-visible)  {
    display: none;
}






/** FILTOS DE COLOR PARA LOGOS VECTORIALES MONOCROMÁTICOS **/
.color-gravita-azul-primario {
    /* Colorea a #102341 */
    -webkit-filter: invert(8%) sepia(81%) saturate(1349%) hue-rotate(197deg) brightness(96%) contrast(94%);
    filter: invert(8%) sepia(81%) saturate(1349%) hue-rotate(197deg) brightness(96%) contrast(94%);
}

.color-gravita-azul-electrico {
    /* Colorea a #4358E0 */
    -webkit-filter: brightness(0) saturate(100%) invert(28%) sepia(47%) saturate(3307%) hue-rotate(224deg) brightness(93%) contrast(89%);
    filter: brightness(0) saturate(100%) invert(28%) sepia(47%) saturate(3307%) hue-rotate(224deg) brightness(93%) contrast(89%);
}

.color-gravita-verde-primario {
    /* Colorea a #5FE0AF */
    -webkit-filter: invert(75%) sepia(47%) saturate(414%) hue-rotate(104deg) brightness(95%) contrast(94%);
    filter: invert(75%) sepia(47%) saturate(414%) hue-rotate(104deg) brightness(95%) contrast(94%);
}

.color-gravita-blanco {
    /* Colorea a #5FE0AF */
    -webkit-filter: invert(99%) sepia(1%) saturate(769%) hue-rotate(25deg) brightness(114%) contrast(100%);
    filter: invert(99%) sepia(1%) saturate(769%) hue-rotate(25deg) brightness(114%) contrast(100%);
}

.color-gravita-naranja {
    /* Colorea a #FF8557 */
    -webkit-filter: invert(56%) sepia(31%) saturate(953%) hue-rotate(328deg) brightness(106%) contrast(101%);
    filter: invert(56%) sepia(31%) saturate(953%) hue-rotate(328deg) brightness(106%) contrast(101%);
}

.color-gravita-ocre {
    /* Colorea a #FFCE6C */
    -webkit-filter: brightness(0) saturate(100%) invert(73%) sepia(82%) saturate(321%) hue-rotate(340deg) brightness(103%) contrast(101%);
    filter: brightness(0) saturate(100%) invert(73%) sepia(82%) saturate(321%) hue-rotate(340deg) brightness(103%) contrast(101%);
}

.color-gravita-gris {
    /* Colorea a #999999 */
    -webkit-filter: invert(65%) sepia(6%) saturate(15%) hue-rotate(314deg) brightness(93%) contrast(89%);
    filter: invert(65%) sepia(6%) saturate(15%) hue-rotate(314deg) brightness(93%) contrast(89%);
}

.color-gravita-granate {
    /* Colorea a #521625 */
    -webkit-filter: brightness(0) saturate(100%) invert(8%) sepia(69%) saturate(2594%) hue-rotate(325deg) brightness(96%) contrast(92%);
    filter: brightness(0) saturate(100%) invert(8%) sepia(69%) saturate(2594%) hue-rotate(325deg) brightness(96%) contrast(92%);
}



/** EFECTOS Y ANIMACIONES **/


@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.15; }
    100% { opacity: 1; }
}


@-webkit-keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blinking {
    -webkit-animation: blink 1s;
    animation: blink 1s;
}







@keyframes scrollX {
    0% {
        transform: translateX(0);

    }
    100% {
        transform: translateX(var(--scrollX-width));
    }
}

@keyframes scrollX-fadeout {
    0% {
        transform: translateX(var(--scrollX-width));
        opacity: 1;

    }
    50% {
        opacity: 1;
        transform: translateX(var(--scrollX-width));
    }
    75% {
        opacity: 0;
        transform: translateX(var(--scrollX-width));
    }
    76% {
        opacity: 0;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}




.scrollingX-moving {
    animation: scrollX var(--scrollX-time) linear 3s;
}

.scrollingX-fade {
    animation: scrollX-fadeout 4s linear;
}





@keyframes scrollXA {
    0% {
        transform: translateX(0);

    }
    100% {
        transform: translateX(var(--scrollXA-width));
    }
}


@keyframes scrollXA-hold {
    0% {
        transform: translateX(var(--scrollXA-width));
        opacity: 1;
    }
    100% {
        transform: translateX(var(--scrollXA-width));
        opacity: 1;
    }
}

@keyframes scrollXA-fadein {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    90% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


@keyframes scrollXA-fadeout {
    0% {
        transform: translateX(var(--scrollXA-width));
        opacity: 1;
    }

    90% {
        transform: translateX(var(--scrollXA-width));
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 0;
    }
}

@keyframes scrollXA-fadeout-header {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    90% {
        transform: translateX(0);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 0;
    }
}




.scrollableXA-header:not(.scrollingXA) {
    opacity: 0;
}

.scrollableXA:not(.scrollingXA) {
    opacity: 0;
}

.scrollingXA-fadein {
    animation: scrollXA-fadein 2s linear;
}

.scrollingXA-moving {
    animation: scrollXA var(--scrollXA-time) linear 3s;
}

.scrollingXA-hold {
    animation: scrollXA-hold var(--scrollXA-hold) linear;
}

.scrollingXA-fadeout {
    animation: scrollXA-fadeout 2s linear;
}

.scrollingXA-fadeout-header{
    animation: scrollXA-fadeout-header 2s linear;
}

@keyframes scrollI {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--scrollI-width));
  }
}



.scrollingI {
  white-space: nowrap;
  animation: scrollI 15s linear infinite;
}







@keyframes scrollS {
    0% {
        transform: translateY(var(--scrollS-start));

    }
    70% {
        transform: translateY(var(--scrollS-start));

    }
    95% {
        transform: translateY(var(--scrollS-end));
    }
    100% {
        transform: translateY(var(--scrollS-end));
    }
}

@keyframes scrollS-stop {
    0% {
        transform: translateY(var(--scrollS-start));

    }
    100% {
        transform: translateY(var(--scrollS-start));
    }
}

@keyframes scrollS-fadeout {
    0% {
        transform: translateY(var(--scrollS-start));
        opacity: 1;

    }
    75% {
        transform: translateY(var(--scrollS-start));
        opacity: 1;

    }
    83% {
        opacity: 1;
        transform: translateY(var(--scrollS-start));
    }
    90% {
        opacity: 0;
        transform: translateY(var(--scrollS-start));
    }
    91% {
        opacity: 0;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.scrollingS-moving {
    animation: scrollS 4s ease forwards;
}

.scrollingS-fade {
    animation: scrollS-fadeout 4s ease both;
}

.scrollingS-stop {
    animation: scrollS-stop 0.1s ease forwards;
}

.scrollingS-fade-stop {
    animation: scrollS-stop 0.1s ease both;
}



@keyframes scrollY {
    0% {
        transform: translateY(0);

    }
    100% {
        transform: translateY(var(--scrollY-height));
    }
}

@keyframes scrollY-fadeout {
    0% {
        transform: translateY(var(--scrollY-height));
        opacity: 1;

    }
    50% {
        opacity: 1;
        transform: translateY(var(--scrollY-height));
    }
    75% {
        opacity: 0;
        transform: translateY(var(--scrollY-height));
    }
    76% {
        opacity: 0;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.scrollingY {
    animation: scrollY var(--scrollY-time) linear 3s;
}

.scrollingY-fade {
    animation: scrollY-fadeout 4s linear;
}



@keyframes scrollL-fadeout {
    0% {
        opacity: 1;

    }
    80% {
        opacity: 1;

    }
    100% {
        opacity: 0;

    }
}

@keyframes scrollL-fadein {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}





.scrollingL-fadeout {
    animation: scrollL-fadeout 2.5s ease forwards;
}

.scrollingL-fadein {
    animation: scrollL-fadein 2.5s ease forwards;
}



@keyframes scrollF-fadeout {
    0% {
        transform: rotateX(0deg);

    }
    85% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(90deg);
    }
}

@keyframes scrollF-fadein {
    0% {
        transform: rotateX(270deg);
    }
    15% {
        transform: rotateX(360deg);
    }
    100% {
        transform: rotateX(360deg);
    }
}





.train-direction.scrollingF1-fadeout,
.train-alphabetical-direction.scrollingF1-fadeout {
    animation: scrollF-fadeout 2s ease forwards;
}

.train-direction.scrollingF1-fadein,
.train-alphabetical-direction.scrollingF1-fadein {
    animation: scrollF-fadein 2s ease forwards;
}

.train-commercial-id.scrollingF2-fadeout {
    animation: scrollF-fadeout 1.8s ease forwards;
}

.train-commercial-id.scrollingF2-fadein {
    animation: scrollF-fadein 1.8s ease forwards;
}






@keyframes bounce {
    0%, 100% {
        transform: translate(0,-5%);
    }
    50% {
        transform: translate(0,0);
    }
}

.bouncing {
    animation: bounce 1s infinite ease-in-out;
}

.not-bouncing {
    transform: translate(0,0%);
}


@keyframes moving-strokes {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -30;
    }
}


.moving-strokes {
    animation: moving-strokes 2s infinite linear;
}

@keyframes moving-strokes-reversed {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 30;
    }
}


.moving-strokes-reversed {
    animation: moving-strokes-reversed 2s infinite linear;
}

@keyframes moving-strokes-little {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -20;
    }
}


.moving-strokes-little {
    animation: moving-strokes-little 2s infinite linear;
}

@keyframes moving-strokes-reversed-little {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 20;
    }
}


.moving-strokes-reversed-little {
    animation: moving-strokes-reversed-little 2s infinite linear;
}