/* ============================================================================
   SIQPUEDES V17.5.225 — Presentación profesional de navegación y portadas
   Sólo layout/visual. No altera lógica de Firebase ni negocio.
   ============================================================================ */

/* --------------------------------------------------------------------------
   1) Barra global: ya no existen Volver / X. Mantener composición simétrica.
   -------------------------------------------------------------------------- */
.global-route-topbar{
  grid-template-columns:minmax(240px,1fr) auto minmax(240px,1fr)!important;
}
.global-route-left{min-width:0!important}
.global-route-right{
  min-width:0;
  justify-self:end;
}

/* Votaciones y Ganadores conservan su marca a la izquierda. */
.voting-page .voting-topbar.global-route-topbar,
.gw-topbar.global-route-topbar{
  grid-template-columns:minmax(240px,1fr) auto minmax(240px,1fr)!important;
}
.global-route-topbar .voting-brand,
.global-route-topbar .gw-brand{
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}

/* Cómo funciona: raíles laterales vacíos mantienen el menú perfectamente centrado. */
.cw-topbar.global-route-topbar{
  grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr)!important;
}
.cw-route-left,
.cw-route-right{
  width:100%;
  height:1px;
  pointer-events:none!important;
}

/* --------------------------------------------------------------------------
   2) GANADORES — quitar el margen visual duplicado bajo el topbar.
   Base: topbar fijo + main con exactamente la misma compensación.
   -------------------------------------------------------------------------- */
.gw-topbar.global-route-topbar{
  position:fixed!important;
  inset:0 0 auto!important;
  height:66px!important;
  min-height:66px!important;
}
.gw-topbar.global-route-topbar + main{
  padding-top:66px!important;
}
.gw-hero{
  margin:0!important;
}
.gw-hero-content{
  padding-top:30px!important;
}

/* --------------------------------------------------------------------------
   3) CÓMO FUNCIONA — portada completa debajo del menú, mejor encuadre y título.
   -------------------------------------------------------------------------- */
.cw-topbar.global-route-topbar{
  position:fixed!important;
  inset:0 0 auto!important;
  height:66px!important;
  min-height:66px!important;
}
.cw-topbar.global-route-topbar + main{
  padding-top:66px!important;
}
.cw-hero{
  height:460px!important;
  min-height:460px!important;
  margin:0!important;
}
.cw-hero-art{
  background-position:center 36%!important;
  background-size:cover!important;
  transform:scale(1.006)!important;
  filter:saturate(1.10) contrast(1.055) brightness(1.025)!important;
}
.cw-hero-overlay{
  background:
    linear-gradient(90deg,rgba(2,7,22,.91) 0%,rgba(2,7,22,.76) 20%,rgba(2,7,22,.45) 39%,rgba(2,7,22,.16) 62%,rgba(2,7,22,.025) 100%),
    linear-gradient(180deg,rgba(0,0,0,.10),transparent 40%,rgba(0,0,0,.26) 100%)!important;
}
.cw-hero-title{
  left:6.5%!important;
  top:50%!important;
  width:min(690px,47vw)!important;
  max-width:690px!important;
  transform:translateY(-50%)!important;
}
.cw-hero-title h1{
  font-size:clamp(54px,5vw,82px)!important;
  line-height:.91!important;
  letter-spacing:-.05em!important;
  text-wrap:balance;
}
.cw-hero-title p{
  margin-top:16px!important;
  font-size:23px!important;
  line-height:1.14!important;
}
.cw-hero-chips{
  margin-top:18px!important;
}

/* Los iconos flotantes evitan las zonas de rostro/texto. */
.page-floating-how .hf-1{left:18%!important;top:77%!important}
.page-floating-how .hf-2{left:69%!important;top:12%!important}
.page-floating-how .hf-3{left:91.5%!important;top:13%!important}
.page-floating-how .hf-4{left:92%!important;top:34%!important}
.page-floating-how .hf-5{left:86.5%!important;top:67%!important}
.page-floating-how .hf-6{left:70.5%!important;top:72%!important}
.page-floating-how .hf-7{left:31%!important;top:81%!important}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media(max-width:1250px){
  .global-route-topbar,
  .voting-page .voting-topbar.global-route-topbar,
  .gw-topbar.global-route-topbar{
    grid-template-columns:minmax(190px,1fr) auto minmax(160px,1fr)!important;
  }
  .cw-topbar.global-route-topbar{
    grid-template-columns:minmax(80px,1fr) auto minmax(80px,1fr)!important;
  }
  .cw-hero-title{width:min(620px,50vw)!important}
}

@media(max-width:1020px){
  .global-route-topbar,
  .voting-page .voting-topbar.global-route-topbar,
  .gw-topbar.global-route-topbar,
  .cw-topbar.global-route-topbar{
    grid-template-columns:minmax(90px,1fr) auto minmax(90px,1fr)!important;
  }
  .cw-hero{
    height:430px!important;
    min-height:430px!important;
  }
  .cw-hero-art{background-position:58% 34%!important}
  .cw-hero-title{
    left:5.5%!important;
    width:min(580px,58vw)!important;
  }
  .cw-hero-title h1{font-size:clamp(48px,6.2vw,72px)!important}
}

@media(max-width:820px){
  .global-route-topbar,
  .voting-page .voting-topbar.global-route-topbar,
  .gw-topbar.global-route-topbar,
  .cw-topbar.global-route-topbar{
    grid-template-columns:56px auto 56px!important;
    height:62px!important;
    min-height:62px!important;
  }
  .gw-topbar.global-route-topbar + main,
  .cw-topbar.global-route-topbar + main{padding-top:62px!important}
  .global-route-topbar .voting-brand,
  .global-route-topbar .gw-brand{display:none!important}

  .cw-hero{
    height:500px!important;
    min-height:500px!important;
  }
  .cw-hero-art{background-position:66% 34%!important}
  .cw-hero-title{
    left:5.5%!important;
    top:47%!important;
    width:70%!important;
  }
  .cw-hero-title h1{font-size:clamp(46px,9vw,66px)!important}
  .cw-hero-title p{font-size:19px!important}
}

@media(max-width:620px){
  .global-route-topbar,
  .voting-page .voting-topbar.global-route-topbar,
  .gw-topbar.global-route-topbar,
  .cw-topbar.global-route-topbar{
    grid-template-columns:44px auto 44px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .cw-hero{
    height:520px!important;
    min-height:520px!important;
  }
  .cw-hero-art{background-position:68% 34%!important}
  .cw-hero-title{
    left:5%!important;
    top:43%!important;
    width:88%!important;
  }
  .cw-hero-title h1{
    font-size:42px!important;
    line-height:.92!important;
  }
  .cw-hero-title p{font-size:17px!important}
}
