/* =============================================================
   Template Votacion Top 3
   ============================================================= */

.votacion-top3-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---- Loading ---- */
.vt3-loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.2em;
  color: #aaa;
}

/* ---- Instrucciones + contador ---- */
.vt3-instrucciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px 20px;
  background: #1a1a1a;
  border-left: 4px solid var(--vt3-seleccionada);
}

.vt3-instrucciones p {
  margin: 0;
  font-size: 1.5em;
  color: #ccc;
}


/* .vt3-instrucciones p {
  margin: 0;
  font-size: 1.5em;
  color: #ccc;
} */

main #content .inner .vt3-instrucciones p {
  margin: 0;
  font-size: 1.5em;
  color: #ccc;
}

/* ============================================================
   FILTRO TOOLBAR — fixed en la parte superior, siempre visible
   ============================================================ */

/* Barra fija superior */
.vt3-filtro-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  gap: 12px;
  height: 50px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}

/* Visible tras hacer scroll */
.vt3-filtro-toolbar.toolbar-visible {
  transform: translateY(0);
}

/* ---- Select compartido: variables visuales del sitio ---- */

/*
  Paleta de referencia:
  bg-deep  : #0d0d0d
  bg-card  : #1a1a1a
  border   : #333 / #444
  accent   : #eb008b
  text-muted: #aaa / #ccc
  font     : Poppins, sans-serif
*/

/* Wrapper selector reutilizable (usado en toolbar e inline) */
.vt3-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.vt3-select-wrap::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--vt3-seleccionada);
}

/* Select nativo homologado */
.vt3-select,
.vt3-select-orden,
.vt3-filtro-toolbar select {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 500;
  color: #ccc;
  background: #111;
  border: 1px solid #333;
  border-left: 3px solid var(--vt3-seleccionada);
  /* acento igual que .vt3-instrucciones */
  padding: 7px 32px 7px 12px;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* flecha SVG rosa */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='currentColor'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 9px;
  min-width: 140px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.03em;
}

.vt3-select:hover,
.vt3-select-orden:hover,
.vt3-filtro-toolbar select:hover {
  background-color: #1a1a1a;
  border-color: #555;
  border-left-color: var(--vt3-seleccionada);
}

.vt3-select:focus,
.vt3-select-orden:focus,
.vt3-filtro-toolbar select:focus {
  outline: none;
  border-color: #444;
  border-left-color: var(--vt3-seleccionada);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vt3-seleccionada) 18%, transparent);
}

.vt3-select option,
.vt3-select-orden option,
.vt3-filtro-toolbar select option {
  background: #111;
  color: #ccc;
}

/* Branding en la toolbar */
.vt3-filtro-toolbar__branding {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.vt3-filtro-toolbar__logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.vt3-filtro-toolbar__titulo {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72em;
  font-weight: 600;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vt3-filtro-toolbar__patrocinio {
  font-weight: 400;
  color: #888;
}

.vt3-filtro-toolbar__logo-pase {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

/* Etiqueta de la toolbar */
.vt3-filtro-toolbar__label {
  color: #888;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Grupo select en toolbar */
.vt3-filtro-toolbar__grupo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

/* Contador en toolbar */
.vt3-filtro-toolbar__contador {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78em;
  font-weight: 700;
  color: #666;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: 20px;
}

.vt3-filtro-toolbar__contador.lleno {
  color: var(--vt3-seleccionada);
  border-color: var(--vt3-seleccionada);
  box-shadow: 0 0 8px color-mix(in srgb, var(--vt3-seleccionada) 25%, transparent);
}

/* Filtro original — Solo para que Vue mantenga el v-model */
.filtro {
  margin-left: auto;
}

/* FAB y panel legados — no se usan */
.filtro-fab,
.filtro-panel {
  display: none !important;
}


/* ---- Columnas Voto (wrapper flex 75/25) ---- */
.columnasvoto {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
  width: 100%;
}

/* ---- Grid ---- */
.vt3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
  /* width: 75%; */
  width: 100%;
  flex-shrink: 0;
}

/* ---- Video dentro de columnasvoto ---- */
.columnasvoto .vt3-video,
.columnasvoto .videoencuesta {
  width: calc(25% - 16px);
  flex-shrink: 0;
  margin: 0 0 16px 16px;
  max-width: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border: none;
  padding: 0;
}

.columnasvoto .vt3-video video,
.columnasvoto .videoencuesta video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.columnasvoto .vt3-video::before {
  display: none;
}

@media (max-width: 900px) {
  .columnasvoto {
    flex-direction: column;
  }

  .columnasvoto .vt3-video,
  .columnasvoto .videoencuesta {
    width: 100%;
    order: -1;
    position: relative;
    height: auto;
    max-height: 300px;
    margin: 0 0 16px 0;
  }

  .vt3-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ---- Tarjeta ---- */
.vt3-card {
  background: #1a1a1a;
  border: 1px solid #444;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.vt3-card:hover {
  border-color: var(--vt3-seleccionada);
  transform: translateY(-3px);
}

/* Defaults / fallbacks si no hay colores personalizados */
:root {
  --vt3-seleccionada: #eb008b;
  --vt3-btn: #eb008b;
  --vt3-check: #ffffff;
  --vt3-confirmar: #eb008b;
}

.vt3-card--seleccionada {
  border-color: var(--vt3-seleccionada);
}

/* Imagen */
.vt3-card__imagen {
  position: relative;
  width: 100%;
  padding-top: 56%;
  overflow: hidden;
  background: #222;
}

.vt3-card__imagen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.vt3-card:hover .vt3-card__imagen img {
  transform: scale(1.04);
}

.vt3-card--seleccionada .vt3-card__imagen img {
  opacity: 0.55;
}

.vt3-card__imagen-placeholder {
  position: absolute;
  inset: 0;
  background: #2a2a2a;
}

/* Overlay checkmark */
.vt3-card__check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vt3-check-bg, rgba(235, 0, 139, 0.45));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.vt3-card__check span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--vt3-check);
  color: #fff;
  font-size: 1.8em;
  line-height: 52px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.vt3-card--seleccionada .vt3-card__check {
  opacity: 1;
}

/* Body */
.vt3-card__body {
  padding: 24px 28px 20px;
  flex: 1;
  background: #1a1a1a;
}

.vt3-card__titulo {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.4;
  text-align: center;
}

.vt3-card__desc {
  font-size: 15px;
  color: #ccc;
  margin: 0;
  line-height: 1.7;
  text-align: left;
}



main #content .inner p.vt3-card__desc {
  font-size: 15px;
  color: #ccc;
  margin: 0 auto 1em;
  line-height: 1.7;
  text-align: center;

}

/* Footer / Botón VOTAR */
.vt3-card__footer {
  padding: 0 28px 24px;
  margin-top: auto;
  background: #1a1a1a;
}

.vt3-card__btn {
  display: block;
  text-align: center;
  padding: 12px 0;
  border: 1px solid #555;
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vt3-card:hover .vt3-card__btn {
  border-color: #888;
}

.vt3-card--seleccionada .vt3-card__btn {
  background: var(--vt3-btn);
  border-color: var(--vt3-btn);
  color: #fff;
}

@media (max-width: 480px) {
  .vt3-card__titulo {
    font-size: 12px;
  }

  .vt3-card__desc {
    font-size: 0.8em;
  }

  .vt3-card__body {
    padding: 16px 18px 14px;
  }

  .vt3-card__footer {
    padding: 0 18px 18px;
  }
}

/* ---- Acciones ---- */
.vt3-acciones {
  text-align: center;
  padding: 10px 0 16px;
}

.vt3-mensaje {
  margin-bottom: 16px;
  font-size: 0.95em;
  color: #ccc;
}

.vt3-mensaje--error {
  color: #ff6b6b;
  font-weight: 600;
}

.vt3-btn-confirmar {
  display: inline-block;
  padding: 14px 48px;
  background: var(--vt3-confirmar);
  color: #fff;
  border: none;
  font-size: 0.9em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  height: fit-content;
}

.vt3-btn-confirmar:hover:not(:disabled) {
  filter: brightness(0.85);
  transform: translateY(-1px);
}

.vt3-btn-confirmar:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* ---- Panel confirmación post-voto ---- */
.vt3-panel-confirmacion {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.vt3-panel-inner {
  background: #111;
  border: 2px solid var(--vt3-seleccionada);
  padding: 40px 48px;
  text-align: center;
  max-width: 460px;
  width: 100%;
}

.vt3-panel-inner h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--vt3-seleccionada);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vt3-panel-inner>p {
  color: #aaa;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.vt3-votos-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.vt3-votos-lista li {
  padding: 10px 0;
  border-bottom: 1px solid #222;
  font-size: 0.85em;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vt3-votos-lista li:last-child {
  border-bottom: none;
}

.vt3-cooldown p {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 10px;
}

.vt3-countdown {
  display: inline-block;
  padding: 10px 28px;
  background: #000;
  color: var(--vt3-seleccionada);
  font-size: 1.6em;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.1em;
  border: 1px solid #333;
}

@media (max-width: 480px) {
  .vt3-panel-inner {
    padding: 28px 20px;
  }

  .vt3-instrucciones {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Video Encuesta ---- */
.vt3-video,
.videoencuesta {
  margin: 40px auto;
  max-width: 800px;
  background: #000;
  border: 1px solid #333;
  padding: 10px;
  position: relative;
}

.vt3-video video,
.videoencuesta video,
.wp-block-video video {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.vt3-video::before {
  content: 'VIDEO NOMINADOS';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--vt3-seleccionada);
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  padding: 2px 10px;
  letter-spacing: 0.1em;
  z-index: 2;
}

@media (max-width: 768px) {

  .vt3-filtro-toolbar {
    padding: 6px 12px;
    gap: 8px;
  }

  .vt3-filtro-toolbar__branding {
    gap: 5px;
  }

  .vt3-filtro-toolbar__logo {
    height: 22px;
  }

  .vt3-filtro-toolbar__titulo {
    font-size: 0.6em;
  }

  .vt3-filtro-toolbar__logo-pase {
    height: 16px;
  }

  .vt3-filtro-toolbar__contador {
    display: none;
  }

  .vt3-video,
  .videoencuesta {
    margin: 20px auto;
    padding: 5px;
  }

  main #content .inner .vt3-instrucciones p {
    margin: 0;
    font-size: 1.1em;
    color: #ccc;
  }

  main #content .inner p.vt3-card__desc {
    /* font-size: 1em; */
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
  }

  .filtro {
    margin-left: inherit;
  }


}