/**
 * Extras de la landing de Gastronomía (/rubros/gastronomia).
 * Se carga DESPUÉS de comercio.css, que aporta todos los bloques cm-*.
 * Acá solo van los recursos gráficos propios: avisos flotantes del hero y
 * el escenario del showcase con paneles (uno es un gráfico HTML/CSS).
 */

/* ── PRIMITIVAS ───────────────────────────────────────── */
.gs-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--gray-50);
    color: var(--text-muted);
}
.gs-chip-blue  { background: var(--blue-50); color: var(--blue-900); }
.gs-chip-green { background: #E7F7F0;        color: #0B7A56; }

/* ── SHOWCASE: paneles intercambiables ────────────────── */
/* Reemplaza al #cm-showcase-shot de comercio: acá cada tab muestra su panel,
   porque uno de ellos no es una captura sino un gráfico armado en HTML. */
.gs-panel { display: none; width: 100%; }
.gs-panel.is-active { display: block; }
/* Solo la captura del panel, no los iconos que puedan ir dentro del contenido */
.gs-panel > img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 440px;
    margin: 0 auto;
    border-radius: var(--border-radius-md);
}

/* ── GRÁFICO: turno que cruza la medianoche ───────────── */
/* Compara la misma noche partida en dos días (planillas) contra una sola
   jornada continua (VeoTime). La medianoche cae al 25% del track: 22 → 06. */
.gs-night {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}
.gs-night-row {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.gs-night-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
}
.gs-night-track {
    position: relative;
    display: block;
    height: 34px;
}

/* Cabecera de días: dos bloques separados por la medianoche */
.gs-night-days { margin-bottom: var(--spacing-sm); }
.gs-night-days .gs-night-track { height: 26px; }
.gs-night-day {
    position: absolute;
    top: 0;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    background: white;
    border-radius: var(--border-radius-sm, 6px);
}
.gs-night-day-fri { left: 0;   width: calc(25% - 3px); }
.gs-night-day-sat { left: 25%; right: 0; margin-left: 3px; }

/* Divisor de medianoche: cruza todas las filas */
.gs-night-mid {
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 129px;
    border-left: 2px dashed var(--gray-400, #98A2B3);
}
.gs-night-mid-label {
    position: absolute;
    top: -22px;
    border-radius: var(--border-radius-md);
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--bg-white);
    white-space: nowrap;
}

/* Barras de jornada */
.gs-night-bar {
    position: absolute;
    top: 0;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm, 6px);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.gs-night-bar-cut { background: var(--gray-400, #98A2B3); }
.gs-night-bar-a { left: 0;   width: calc(25% - 4px); }
.gs-night-bar-b { left: 25%; right: 0; margin-left: 4px; }
.gs-night-bar-full {
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #1E3A5F 0%, #2F5C8F 25%, #5B8FC7 72%, #F2C14E 100%);
}

/* Nota al pie de cada fila, alineada con el track */
.gs-night-note {
    grid-column: 2;
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
}
.gs-night-note img {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 6px 0 0;
    vertical-align: -3px;
}
.gs-night-note-bad { color: #B42318; }
.gs-night-note-ok  { color: #0B7A56; }

/* La última fila no arrastra margen inferior */
.gs-night-row:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .gs-night { padding: var(--spacing-lg); }
    .gs-night-row { grid-template-columns: 1fr; gap: 4px; }
    .gs-night-label { text-align: left; }
    .gs-night-note { grid-column: 1; }
    .gs-night-bar, .gs-night-day { font-size: 0.7rem; }
}
