/* Domselaar Digital · QA · Desktop UX4 · 2026-10-16
   SOLO pantallas grandes. Preserva por completo el diseño Mobile.
   Reordena el Home en filas lógicas: trenes / colectivos / actualidad.
   Los horarios y datos siguen viniendo de los módulos existentes. */
@media (min-width:960px){
  /* Restaurar la lectura del Home: nada de trenes y colectivos enfrentados. */
  #v-inicio.view.on{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    grid-template-areas:
      'welcome welcome welcome welcome welcome welcome welcome welcome welcome welcome welcome welcome'
      'trainTitle trainTitle trainTitle trainTitle trainTitle trainTitle trainTitle trainTitle trainTitle trainTitle trainTitle trainTitle'
      'trains trains trains trains trains trains trains trains trains trains trains trains'
      'busTitle busTitle busTitle busTitle busTitle busTitle busTitle busTitle busTitle busTitle busTitle busTitle'
      'busCards busCards busCards busCards busCards busCards busCards busCards busCards busCards busCards busCards'
      'tripInfo tripInfo tripInfo tripInfo tripInfo tripInfo tripInfo tripInfo tripInfo tripInfo tripInfo tripInfo'
      'subeTitle subeTitle subeTitle subeTitle subeTitle subeTitle subeTitle subeTitle subeTitle subeTitle subeTitle subeTitle'
      'subeCard subeCard subeCard subeCard subeCard subeCard subeCard subeCard subeCard subeCard subeCard subeCard'
      'civicTitle civicTitle civicTitle civicTitle civicTitle civicTitle civicTitle civicTitle civicTitle civicTitle civicTitle civicTitle'
      'civicCards civicCards civicCards civicCards civicCards civicCards civicCards civicCards civicCards civicCards civicCards civicCards'
      'newsTitle newsTitle newsTitle newsTitle newsTitle newsTitle newsTitle newsTitle newsTitle newsTitle newsTitle newsTitle'
      'newsCards newsCards newsCards newsCards newsCards newsCards newsCards newsCards newsCards newsCards newsCards newsCards'
      'entre entre entre entre entre entre entre entre entre entre entre entre'
      'communityTitle communityTitle communityTitle communityTitle communityTitle communityTitle reminderTitle reminderTitle reminderTitle reminderTitle reminderTitle reminderTitle'
      'community community community community community community reminder reminder reminder reminder reminder reminder'
      'search search search search search search search search search search search search'
      'sumTitle sumTitle sumTitle sumTitle sumTitle sumTitle sumTitle sumTitle sumTitle sumTitle sumTitle sumTitle'
      'summary summary summary summary summary summary summary summary summary summary summary summary'
      'shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle shortcutTitle'
      'shortcuts shortcuts shortcuts shortcuts shortcuts shortcuts shortcuts shortcuts shortcuts shortcuts shortcuts shortcuts'
      'cta cta cta cta cta cta feedback feedback feedback feedback feedback feedback'
      'pharmacy pharmacy pharmacy pharmacy pharmacy pharmacy property property property property property property'
      'pueblo pueblo pueblo pueblo pueblo pueblo pueblo pueblo pueblo pueblo pueblo pueblo';
    column-gap:20px;
    row-gap:11px;
    align-items:start;
  }
  #v-inicio>:nth-child(2){grid-area:welcome}
  #v-inicio>:nth-child(3){grid-area:trainTitle}
  #v-inicio>:nth-child(4){grid-area:trains}
  #v-inicio>:nth-child(5){grid-area:busTitle}
  #v-inicio>:nth-child(6){grid-area:busCards}
  #v-inicio>:nth-child(7){grid-area:tripInfo}
  #v-inicio>:nth-child(8){grid-area:subeTitle}
  #v-inicio>:nth-child(9){grid-area:subeCard}
  #v-inicio>:nth-child(10){grid-area:civicTitle}
  #v-inicio>:nth-child(11){grid-area:civicCards}
  #v-inicio>:nth-child(12){grid-area:newsTitle}
  #v-inicio>:nth-child(13){grid-area:newsCards}
  #v-inicio>:nth-child(14){grid-area:entre}
  #v-inicio>:nth-child(15){grid-area:communityTitle}
  #v-inicio>:nth-child(16){grid-area:community}
  #v-inicio>:nth-child(17){grid-area:reminderTitle}
  #v-inicio>:nth-child(18){grid-area:reminder}
  #v-inicio>:nth-child(19){grid-area:search}
  #v-inicio>:nth-child(20){grid-area:sumTitle}
  #v-inicio>:nth-child(21){grid-area:summary}
  #v-inicio>:nth-child(22){grid-area:shortcutTitle}
  #v-inicio>:nth-child(23){grid-area:shortcuts}
  #v-inicio>:nth-child(24){grid-area:cta}
  #v-inicio>:nth-child(25){grid-area:feedback}
  #v-inicio>:nth-child(26){grid-area:pharmacy}
  #v-inicio>:nth-child(27){grid-area:property}
  #v-inicio>:nth-child(28){grid-area:pueblo}
  #v-inicio>.property-invite[hidden], #v-inicio>.card[hidden]{display:none!important}
  #v-inicio>h1.sr{position:absolute}
  #v-inicio>.today{margin:0 0 2px;padding:4px 0 0}
  #v-inicio>.today .hello{font-size:27px}
  #v-inicio>.shead{margin:12px 0 0;align-items:center;min-width:0}
  #v-inicio>.shead h2{font-size:20px;letter-spacing:-.02em}
  /* Sin indicaciones de swipe cuando ya se ven todas las opciones. */
  #v-inicio>.transport-first .hint, #v-inicio>#busesHead .hint,
  #v-inicio>.shead:has(+ #tiles) .hint{display:none}
  #v-inicio>.board{margin:0;width:100%;min-width:0;overflow:visible}
  #v-inicio .board .track{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;gap:14px;
    overflow:visible;scroll-snap-type:none;scroll-behavior:auto;
    margin:0;padding:0;
  }
  #v-inicio .board .slide{min-width:0;width:100%;flex:auto;scroll-snap-align:none}
  #v-inicio .slide .plate{border-radius:18px;padding:5px;box-shadow:none;min-height:100%}
  #v-inicio .slide .plate-in{border-width:2px;border-radius:14px;padding:13px 14px 12px;display:flex;flex-direction:column;min-height:100%;text-align:left}
  #v-inicio .slide .sl-top{font-size:12px;gap:6px;align-items:flex-start}
  #v-inicio .slide .sl-top .prog{font-size:11px;padding:3px 8px}
  #v-inicio .slide .sl-dir{font-size:17px;line-height:1.25;margin-top:12px;min-height:22px}
  #v-inicio .slide .sl-time{font-size:clamp(38px,3.8vw,54px);letter-spacing:-.03em;line-height:1.05;margin-top:8px}
  #v-inicio .slide .sl-eta{font-size:15px;margin-top:5px;font-weight:600;line-height:1.35}
  #v-inicio .slide .rule{height:1px;margin:10px 0 7px;opacity:.6}
  #v-inicio .slide .sl-next{font-size:14px;line-height:1.3}
  #v-inicio .slide .btn.gold{font-size:14px;min-height:42px;padding:0 6px;line-height:1.25;margin-top:auto;white-space:normal}
  #v-inicio .slide .btn.line{margin-top:2px;font-size:14px;min-height:38px;text-underline-offset:2px}
  #v-inicio .board .arw,#v-inicio .board .dots{display:none!important}
  #v-inicio .board .track,#v-inicio>#buses.rail{cursor:default}
  /* Las 3 líneas deben ser comparables, sin cards cortadas ni scroll horizontal. */
  #v-inicio>#buses.rail{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;margin:0;padding:0;overflow:visible;scroll-snap-type:none;
    width:100%;min-width:0;
  }
  #v-inicio>#buses .bcard{
    min-width:0;min-height:174px;width:100%;max-width:none;flex:auto;
    padding:15px;border-radius:18px;gap:7px;box-shadow:none;
  }
  #v-inicio>#buses .bnum{font-size:22px;border-radius:11px}
  #v-inicio>#buses .bcard b{font-size:16px}
  #v-inicio>#buses .bcard .now{font-size:14px;line-height:1.4}
  #v-inicio>#buses .bcard .go{font-size:14px}
  /* Avisos oficiales: tarjetas completas, nunca se cortan en el borde. */
  #v-inicio>#civicRail.rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;overflow:visible;margin:0;padding:0;scroll-snap-type:none}
  #v-inicio>#civicRail .civic-card{flex:auto;max-width:none;width:100%;min-width:0;min-height:178px}
  /* Bloque SUBE más liviano, con botones visibles. */
  #v-inicio>.sube-card{width:100%;min-width:0;margin-top:0}
  #v-inicio>.sube-card .sube-main{min-width:0}
  #v-inicio>.sube-card .sube-actions{flex-wrap:wrap}
  #v-inicio>.newsSlider{min-width:0;width:100%;margin:0}
  #v-inicio>.newsSlider #newsRail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;overflow:visible;margin:0;padding:0;scroll-snap-type:none;align-items:stretch}
  #v-inicio>.newsSlider #newsRail>*{min-width:0;width:100%;max-width:none;flex:auto;scroll-snap-align:none}
  #v-inicio>.newsSlider .newsSlideFooter{display:none}
  #v-inicio>.entre-banner,#v-inicio>.search,#v-inicio>.community-grid,#v-inicio>#rem,#v-inicio>#sum,#v-inicio>#tiles{min-width:0;width:100%;margin-top:0}
  #v-inicio>.community-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  #v-inicio>#sum{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
  #v-inicio>#tiles.rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;overflow:visible;margin:0;padding:0;scroll-snap-type:none}
  #v-inicio>#tiles .tile{width:100%;min-width:0;max-width:none;flex:auto;min-height:115px}
  #v-inicio>.card.cta,#v-inicio>.feedback-promo,#v-inicio>.property-invite:not([hidden]),#v-inicio>.puebloInvite{margin-top:0;min-width:0}
  #v-inicio .civic-head,#v-inicio .newsHeadline{align-items:center}
  /* Navegación compacta, estados visibles, sin intervenir en el menú mobile. */
  .tabs a{font-size:13px}
  .tabs a:focus-visible,#v-inicio button:focus-visible{outline:3px solid var(--paja);outline-offset:2px}
}
@media(min-width:960px) and (max-width:1099px){
  #v-inicio .slide .sl-time{font-size:39px}
  #v-inicio .slide .sl-top .prog{font-size:10px}
  #v-inicio>#sum{grid-template-columns:repeat(4,minmax(0,1fr))}
  #v-inicio>#tiles.rail{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:1100px){
  #v-inicio>#civicRail.rail{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1240px){
  /* Sidebar visual más sutil, sin invadir el contenido. */
  .tabs{width:176px}
  .tabs a{height:44px}
  #v-inicio .slide .sl-time{font-size:46px}
}
@media(min-width:1600px){
  #v-inicio .slide .sl-time{font-size:56px}
  #v-inicio>#civicRail.rail{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  #v-inicio .board .track{scroll-behavior:auto}
}
