/* SIQPUEDES V17.5.342 | Corrección exclusiva de maquetación.
   Los estados de concursos comparten filas de tamaño idéntico.
   No modifica cálculos, votos, fechas, pagos ni operaciones de Firebase. */

/* La altura del encabezado y del bloque de fase ya no depende del texto. */
.contests-v329 .contest-grid .contest-card > .contest-card-heading{
  box-sizing:border-box!important;
  height:108px!important;
  min-height:108px!important;
  flex:0 0 108px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
}
.contests-v329 .contest-grid .contest-card > .contest-lifecycle-panel{
  box-sizing:border-box!important;
  height:151px!important;
  min-height:151px!important;
  max-height:151px!important;
  flex:0 0 151px!important;
  padding:10px 11px!important;
  margin-top:0!important;
  margin-bottom:9px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:visible!important;
}
/* Reservamos espacio suficiente para los estados de dos o tres líneas,
   sin que se desplacen los demás elementos de la tarjeta. */
.contests-v329 .contest-grid .contest-card .contest-lifecycle-panel .contest-phase-row{
  box-sizing:border-box!important;
  height:79px!important;
  min-height:79px!important;
  max-height:79px!important;
  flex:0 0 79px!important;
  display:grid!important;
  grid-template-columns:10px minmax(0,1fr) 20px!important;
  column-gap:9px!important;
  align-items:center!important;
  padding:9px 10px!important;
}
.contests-v329 .contest-grid .contest-card .contest-phase-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:0!important;
}
.contests-v329 .contest-grid .contest-card .contest-phase-copy b,
.contests-v329 .contest-grid .contest-card .contest-phase-copy small{
  display:block!important;
  margin:0!important;
  min-width:0!important;
  max-width:100%!important;
  text-wrap:balance;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  white-space:normal!important;
}
.contests-v329 .contest-grid .contest-card .contest-phase-copy b{
  line-height:1.18!important;
  font-size:clamp(9px,.63vw,11px)!important;
}
.contests-v329 .contest-grid .contest-card .contest-phase-copy small{
  line-height:1.27!important;
  font-size:clamp(9px,.59vw,10px)!important;
}
.contests-v329 .contest-grid .contest-card .contest-progress-meta{
  box-sizing:border-box!important;
  flex:0 0 23px!important;
  height:23px!important;
  min-height:23px!important;
  margin:9px 0 0!important;
  align-items:center!important;
  min-width:0!important;
}
.contests-v329 .contest-grid .contest-card .contest-life-progress{
  box-sizing:border-box!important;
  flex:0 0 8px!important;
  height:8px!important;
  min-height:8px!important;
  margin:9px 0 0!important;
}

/* Una fila fija para el plazo, independientemente de inscripción,
   validación, espera de votación o próxima edición. */
.contests-v329 .contest-grid .contest-card > .live-contest-timer{
  box-sizing:border-box!important;
  height:57px!important;
  min-height:57px!important;
  max-height:57px!important;
  flex:0 0 57px!important;
  margin-top:0!important;
  margin-bottom:10px!important;
  grid-template-columns:30px minmax(0,1fr) 13px!important;
  column-gap:9px!important;
}
.contests-v329 .contest-grid .contest-card .live-contest-timer-copy{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:7px!important;
  justify-content:normal!important;
}
.contests-v329 .contest-grid .contest-card .live-contest-timer-copy b{
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  flex:none!important;
  padding:0 2px!important;
  margin:0!important;
  text-align:center!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.16!important;
  font-size:clamp(9px,.62vw,10px)!important;
  text-wrap:balance;
}
.contests-v329 .contest-grid .contest-card .live-contest-timer-copy strong{
  min-width:79px!important;
  max-width:132px!important;
  flex:none!important;
  justify-self:end!important;
  font-size:clamp(9px,.69vw,11px)!important;
  padding:7px 8px!important;
  white-space:nowrap!important;
}

/* Mismos renglones para los premios, el precio, los participantes
   y los dos botones de acciones. */
.contests-v329 .contest-grid .contest-card > .contest-prize.contest-prize-dynamic{
  box-sizing:border-box!important;
  flex:0 0 174px!important;
  height:174px!important;
  min-height:174px!important;
  max-height:174px!important;
  margin-top:0!important;
  margin-bottom:11px!important;
}
.contests-v329 .contest-grid .contest-card > .contest-stats{
  box-sizing:border-box!important;
  flex:0 0 74px!important;
  height:74px!important;
  min-height:74px!important;
  max-height:74px!important;
  margin-top:0!important;
  margin-bottom:10px!important;
  align-items:stretch!important;
}
.contests-v329 .contest-grid .contest-card > .contest-card-actions{
  box-sizing:border-box!important;
  flex:0 0 58px!important;
  min-height:58px!important;
  height:58px!important;
  max-height:58px!important;
  margin-top:0!important;
  margin-bottom:14px!important;
  padding-top:0!important;
}
.contests-v329 .contest-grid .contest-card .contest-card-actions button{
  box-sizing:border-box!important;
  height:100%!important;
  max-height:58px!important;
  margin:0!important;
}

/* La misma corrección en tema claro, sin cambiar el color de las fases. */
html[data-siq-theme="sunrise"] .contests-v329 .contest-card .contest-phase-copy b,
html[data-siq-theme="sunrise"] .contests-v329 .contest-card .contest-phase-copy small{
  text-shadow:none!important;
}

@media (min-width:900px) and (max-width:1399px){
  .contests-v329 .contest-grid .contest-card > .contest-lifecycle-panel{
    height:158px!important;min-height:158px!important;max-height:158px!important;flex-basis:158px!important;
  }
  .contests-v329 .contest-grid .contest-card .contest-lifecycle-panel .contest-phase-row{
    height:86px!important;min-height:86px!important;max-height:86px!important;flex-basis:86px!important;
  }
}
@media (max-width:600px){
  .contests-v329 .contest-grid .contest-card > .contest-card-heading{
    height:96px!important;min-height:96px!important;flex-basis:96px!important;
  }
  .contests-v329 .contest-grid .contest-card > .contest-lifecycle-panel{
    height:148px!important;min-height:148px!important;max-height:148px!important;flex-basis:148px!important;
  }
  .contests-v329 .contest-grid .contest-card .contest-lifecycle-panel .contest-phase-row{
    height:76px!important;min-height:76px!important;max-height:76px!important;flex-basis:76px!important;
  }
  .contests-v329 .contest-grid .contest-card > .contest-prize.contest-prize-dynamic{
    height:170px!important;min-height:170px!important;max-height:170px!important;flex-basis:170px!important;
  }
  .contests-v329 .contest-grid .contest-card .live-contest-timer-copy strong{
    min-width:78px!important;
  }
}
