/* TS · Pantalla Calendario (TV) — modo kiosco de solo lectura */

.tsg-kiosk {
    --card-accent: #e66415;
    --kiosk-bg-start: #001489;
    --kiosk-bg-end: #000524;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(120% 140% at 15% 0%, var(--kiosk-bg-start) 0%, var(--kiosk-bg-end) 62%);
    padding: clamp(18px, 2.2vw, 36px);
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.tsg-kiosk__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(18px, 2.4vw, 32px);
    color: #fff;
    padding-bottom: clamp(14px, 1.6vw, 22px);
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.tsg-kiosk__brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(24px, 3vw, 44px);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tsg-kiosk__brand::before {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--card-accent);
    box-shadow: 0 0 0 6px rgba(230,100,21,.25);
    flex-shrink: 0;
}

/* Logo en blanco, más grande y sin caja de fondo: el filtro lo vuelve
 * monocromático blanco sobre el azul del kiosk. */
.tsg-kiosk__logo {
    height: clamp(36px, 4vw, 60px);
    width: auto;
    display: block;
    background: transparent;
    padding: 0;
    filter: brightness(0) invert(1);
}

/* Bloque de estado: clima + reloj (estilo dashboard de teléfono) */
.tsg-kiosk__status {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
}
.tsg-kiosk__weather {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}
.tsg-kiosk__weather:empty { display: none; }
.tsg-kiosk__weather-icon { font-size: clamp(20px, 2.2vw, 32px); }
.tsg-kiosk__weather-temp {
    font-weight: 800;
    font-size: clamp(20px, 2.4vw, 34px);
    letter-spacing: -0.5px;
}
.tsg-kiosk__weather-city {
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.65);
}
.tsg-kiosk__ampm {
    font-size: 0.55em;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255,255,255,.75);
}

.tsg-kiosk__clock {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 38px);
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(255,255,255,.08);
    padding: 6px 18px;
    border-radius: 999px;
}

.tsg-kiosk__brand { text-decoration: none; cursor: pointer; }
.tsg-kiosk__brand:hover { opacity: .88; }

.tsg-kiosk__topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botón "Inicio": para salir del modo kiosco sin depender del botón atrás
 * del navegador (importante en TV/tablet donde a veces ni se ve la barra). */
.tsg-kiosk__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 999px;
    padding: 12px 20px;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.tsg-kiosk__home:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.2);
    color: #fff;
}

.tsg-kiosk__fullscreen {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.tsg-kiosk__fullscreen:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.tsg-kiosk__calendar {
    flex: 1;
}

/* Amplifica el calendario existente para lectura a distancia (TV) */
.tsg-kiosk .tsg-calendar-container {
    font-size: clamp(15px, 1.05vw, 19px);
}

/* La barra de control (nav/filtros) queda sobre fondo oscuro: pasa a "glass" */
.tsg-kiosk .tsg-control-bar {
    background: rgba(255,255,255,.08) !important;
    box-shadow: none !important;
    backdrop-filter: blur(6px);
}
.tsg-kiosk .tsg-week-title { color: #fff !important; }
.tsg-kiosk .tsg-nav-btn { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.tsg-kiosk .tsg-nav-btn:hover:not(:disabled) { background: var(--card-accent) !important; }
.tsg-kiosk .tsg-filter-select {
    background-color: rgba(255,255,255,.95) !important;
}

/* Cabeceras de día: sobre fondo oscuro, blanco en vez del azul por defecto */
.tsg-kiosk .tsg-day-header__name { color: #fff; }
.tsg-kiosk .tsg-day-header__date { color: rgba(255,255,255,.6); }
.tsg-kiosk .tsg-calendar-column.is-today .tsg-day-header__name { color: var(--card-accent); }

/* Banner "ahora": más grande y con más presencia en TV */
.tsg-kiosk .tsg-now-banner {
    font-size: clamp(13px, 1vw, 16px);
    padding: 12px 16px;
    margin-bottom: 10px;
}
.tsg-kiosk .tsg-now-banner--live {
    background: rgba(230,100,21,.18);
}
.tsg-kiosk .tsg-now-banner--next {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.tsg-kiosk .tsg-now-banner--done {
    color: rgba(255,255,255,.55);
}

.tsg-kiosk .tsg-class-item {
    padding: clamp(14px, 1.4vw, 22px) !important;
}

.tsg-kiosk .tsg-class-item .tsg-class-title,
.tsg-kiosk .tsg-class-item h4 {
    font-size: clamp(17px, 1.4vw, 24px) !important;
}

/* En modo kiosco no hay reservas: oculta cualquier control de acción
   por si quedara expuesto (defensa en profundidad, además de is-member=0). */
.tsg-kiosk [data-tsg-action],
.tsg-kiosk .tsg-book-btn,
.tsg-kiosk .tsg-mark-btn {
    display: none !important;
}

@media (max-width: 700px) {
    .tsg-kiosk__topbar {
        flex-wrap: wrap;
    }
}
