/* Google Font: Roboto Condensed para modo alto contraste */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700;900&display=swap');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a, .btn-link {
    color: #006bb7;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1:focus {
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.invalid {
    outline: 1px solid #e50000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.validation-message {
    color: #e50000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45OTMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.main-fullscreen-layout {
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    background: #f5f5f5;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* AutobusesParadas.razor */
.arrivals-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    overflow: hidden;
    font-size: 1em;
    transition: font-size 1s cubic-bezier(0.4,0,0.2,1);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .arrivals-container.zoom-font {
        font-size: 2em;
    }

/* Indicador de tipo de autobuses */
.bus-type-indicator {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bus-type-label {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    color: #666;
    transition: all 0.3s ease;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .bus-type-label.active {
        background-color: #d0024b;
        color: white;
        box-shadow: 0 2px 4px rgba(208, 2, 75, 0.3);
    }

.arrivals-list-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.arrival-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.line-badge {
    flex-shrink: 0;
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-weight: 900;
    font-size: 2em;
    text-align: center;
    min-width: 50px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.white-contrast {
    color: white !important;
}

.destination-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .destination-info strong {
        font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
        font-size: 1.8em;
        font-weight: 700;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .destination-info span {
        font-size: 0.9em;
        color: #666;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

.arrival-time {
    margin-left: auto;
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 2em;
    font-weight: 900;
    text-align: right;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .arrival-time.arriving-now {
        font-weight: 900 !important;
        color: #006400 !important;
    }

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding-top: 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .pagination-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #ddd;
        cursor: pointer;
    }

        .pagination-dots span.active {
            background-color: #d0024b;
        }

/* BannerLogo.razor */
.banner-logo-box {
    font-weight: bold;
    font-size: 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .banner-logo-box.no-bg {
        background: transparent !important;
        box-shadow: none !important;
    }

/* Publicidad.razor */
.publicidad-container {
    flex: 1 1 auto;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.48);
    position: relative;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .publicidad-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .publicidad-container.slide-out {
        transform: translateX(-100vw);
    }

    .publicidad-container.slide-in {
        transform: translateX(0);
    }

.publicidad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    opacity: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .publicidad-slide.active {
        transform: translateX(0);
        opacity: 1;
    }

    .publicidad-slide.previous {
        transform: translateX(-100%);
        opacity: 0;
    }

.tarjeta-blanca {
    display: flex;
    justify-content: center; /* centra horizontalmente */
    align-items: center; /* centra verticalmente */
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.recurso-container {
    display: flex;
    flex-direction: column; /* filas */
    justify-content: center; /* centra verticalmente */
    align-items: center; /* centra horizontalmente */
    height: 100%; /* aseg�rate de que ocupe el alto del contenedor padre */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.recurso-nombre {
    margin-top:2rem;
    margin-bottom: 12px;
    font-weight: 900;
    font-size: 2.5rem; /* tama�o doblado aprox */
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.recurso-nombre-vertical {
    margin-bottom: 12px;
    font-weight: 900;
    font-size: 2.2rem; /* tama�o doblado aprox */
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.recurso-imagenes {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 100%;
    gap: 8px;
    flex: 1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .recurso-imagenes > div {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px; /* padding interior para las im�genes */
        box-sizing: border-box;
    }

    .recurso-imagenes img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
/* Ticker.razor */
.ticker-outer {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 25rem;
    margin-top: -14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ticker-inner {
    color: #F5F5F5;
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    left: 100%;
    animation: ticker-scroll 22s linear infinite;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@keyframes ticker-scroll {
    0% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

/* TimeAndDate.razor */
.time-container {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-right: 25px;
    font-family: sans-serif;
    color: white;
    line-height: 1.2;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.time-display {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.day-of-week {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: -10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.date-display {
    font-size: 1rem;
    font-weight: 500;
    margin-top: -5px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .date-display .date-bold {
        font-weight: 700;
    }

/* WeatherLocation.razor */
.weather-location-box {
    color: #fff;
    border-radius: 16px;
    min-width: 220px;
    display: flex;
    margin-left: 25px;
    flex-direction: column;
    justify-content: center;
    font-family: 'Montserrat', Arial, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .weather-location-box.no-bg, .no-bg .weather-location-box {
        background: transparent !important;
        box-shadow: none !important;
    }

.weather-location-title {
    margin-top: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.weather-location-desc {
    font-size: 0.8rem;
    margin-top: -15px;
    font-weight: 400;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.weather-location-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: -20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.weather-location-icon {
    font-size: 2.5rem;
}

.weather-location-temp {
    font-size: 2.5rem;
    font-weight: bold;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.weather-location-minmax {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 0.5rem;
    line-height: 1.2;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.weather-location-max {
    color: #ffb347;
}

.weather-location-min {
    color: #b3e0ff;
}

/* Home.razor */
.page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f5f5f5;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.content-area {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    gap: 2.0rem;
    padding: 2.0rem;
    min-height: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.left-col {
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.48);
    transition: flex-basis 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), flex-grow 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .left-col.fade-out {
        opacity: 1;
    }

    .left-col.collapsed {
        flex-basis: 0;
        flex-grow: 0;
        opacity: 0;
    }

.banner-row {
    height: 22%;
    background: #a10a35;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: azure 2px solid;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .banner-row > * {
        flex: 1;
        min-width: 0;
    }

.main-image {
    flex: 1 1 auto;
    background: #fff;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.seg-turismo {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    color: #fff;
    font-size: 4.8rem;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
    line-height: 1.1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .seg-turismo span {
        display: block;
        font-size: 2rem;
        font-weight: 400;
    }

.right-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: flex-start;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.arrivals-panel {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.48);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-top: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.arrivals-header {
    background: #1F206F;
    color: #fff;
    padding: 1.2rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 1s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .arrivals-header.interurbano {
        background: #EB2120;
    }

    .arrivals-header i {
        font-size: 1.5rem;
    }

    .arrivals-header strong {
        font-weight: 700;
    }

.arrivals-list {
    border-radius: 0 0 24px 24px;
    flex: 1 1 auto;
    padding: 1.2rem 1.5rem;
    min-height: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ticker-row {
    flex-shrink: 0;
    margin: 0 2.5rem 1.5rem 2.5rem;
    background: #222;
    border-radius: 16px;
    padding: 0.9rem 1.5rem;
    font-size: 5rem;
    height: 8rem;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.48);
    transition: font-size 1s ease-out, height 1s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .ticker-row.small {
        font-size: 2.6rem;
        height: 4.0rem;
    }

/* Animation for arrival items */
.animated-arrival {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 0.30s cubic-bezier(0.4,0,0.2,1), transform 0.30s cubic-bezier(0.4,0,0.2,1);
    will-change: opacity, transform;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .animated-arrival.show {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

.parada-nombre-box {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.8rem;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
    line-height: 1.1;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    text-overflow: ellipsis;
    min-height: 4.8rem;
    transition: font-size 0.8s ease-out, min-height 0.8s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .parada-nombre-box.big {
        font-size: 3.4rem;
        min-height: 7rem;
    }

/* Loading overlay and spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.screened-loading-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.spinner {
    border: 8px solid #eee;
    border-top: 8px solid #9a0c5e;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Logos Institucionales */
.logos-institucionales {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin: 0 0 0.8rem 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .logos-institucionales img {
        max-height: 50px;
        height: 50px;
        width: auto;
        object-fit: contain;
        filter: none;
    }

/* Estilos específicos para modo alto contraste - fuente grande y condensada */
.arrivals-container.high-contrast-mode {
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.95em;
    font-stretch: condensed;
    padding: 3px 0;
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: black;
    color: white;
    letter-spacing: -0.3px;
}

    .arrivals-container.high-contrast-mode .arrivals-list-content {
        gap: 4px;
        height: 100%;
        justify-content: center;
    }

    .arrivals-container.high-contrast-mode .arrival-item {
        height: auto;
        padding: 4px 1px 6px 1px;
        gap: 2px;
        min-height: 0;
        max-height: none;
        background: black;
        border-bottom: none;
    }

    .arrivals-container.high-contrast-mode .line-badge {
        min-width: 32px;
        max-width: 42px;
        width: auto;
        height: auto;
        padding: 1px 3px 1px 3px;
        font-size: 1.15em;
        font-weight: 950;
        line-height: 1.1;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-shrink: 0;
    }

    .arrivals-container.high-contrast-mode .destination-info {
        flex: 1;
        min-width: 0;
        line-height: 1.1;
        overflow: hidden;
        margin: 0;
        padding: 0;
        position: relative;
    }

        /* Degradado suave en el borde derecho */
        .arrivals-container.high-contrast-mode .destination-info::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(to right, transparent, black);
            pointer-events: none;
        }

        .arrivals-container.high-contrast-mode .destination-info strong {
            font-size: 0.95em;
            font-weight: 700;
            color: white;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            margin: 0;
            padding: 0;
            padding-right: 0;
        }

        /* Texto con efecto ticker (cuando no cabe) */
        .arrivals-container.high-contrast-mode .destination-info strong.ticker-scroll {
            display: inline-block;
            overflow: visible;
            animation: ticker-destination-scroll 12s linear forwards;
        }

        /* En modo alto contraste, ocultamos el subdestino para ahorrar espacio */
        .arrivals-container.high-contrast-mode .destination-info span {
            display: none;
        }

    .arrivals-container.high-contrast-mode .arrival-time {
        font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
        font-stretch: ultra-condensed;
        font-size: 1.05em;
        font-weight: 900;
        color: white;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
        white-space: nowrap;
        width: 27px;
        min-width: 27px;
        text-align: right;
    }

        .arrivals-container.high-contrast-mode .arrival-time.arriving-now {
            color: #00ff00;
            font-weight: 900;
            animation: blink-high-contrast 1s ease-in-out infinite alternate;
        }

        .arrivals-container.high-contrast-mode .arrival-time .time-unit {
            font-size: 0.5em;
            font-weight: 700;
        }

        .arrivals-container.high-contrast-mode .arrival-time .arriving-arrows {
            font-size: 0.9em;
            font-weight: 900;
            letter-spacing: -6px;
            display: inline-block;
            text-align: center;
            width: 100%;
        }

@keyframes blink-high-contrast {
    0% {
        color: #00ff00;
    }

    100% {
        color: #88ff88;
    }
}

/* Ocultamos la paginaci�n en modo alto contraste para ahorrar espacio */
.arrivals-container.high-contrast-mode .pagination-dots {
    display: none;
}

/* Estilos para el contenedor principal en modo alto contraste */
.arrivals-panel.high-contrast-mode {
    background: black;
    border: 3px solid white;
    border-radius: 12px;
    height: 100%;
    overflow: hidden;
}

    .arrivals-panel.high-contrast-mode .arrivals-header {
        display: none; /* Ocultamos el header para ahorrar espacio */
    }

    .arrivals-panel.high-contrast-mode .arrivals-list {
        padding: 4px 0;
        height: 100%;
        background: black;
        border-radius: 12px;
    }

/* Overlay de carga optimizado para modo alto contraste */
.arrivals-container.high-contrast-mode .screened-loading-overlay {
    background: black;
    height: 100%;
}

.arrivals-container.high-contrast-mode .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid white;
}

.arrivals-container.high-contrast-mode .siri-error-message {
    font-size: 1.2em;
    color: #ff6666;
}

/* Animación ticker para el texto del destino en modo alto contraste
   Ciclo de 12 segundos:
   - 0%-25%: pausa inicial 3s (texto visible a la izquierda)
   - 25%-75%: scroll hacia la izquierda 6s
   - 75%-100%: pausa al final 3s (se queda hasta próxima actualización)
   El valor de --ticker-translate se calcula dinámicamente según la longitud del texto
*/
@keyframes ticker-destination-scroll {
    0%, 25% {
        transform: translateX(0);
    }
    75%, 100% {
        transform: translateX(var(--ticker-translate, -100%));
    }
}