/* ==========================================================================
   MQB 2026 — Tema visual de votaciones
   Capa que se carga DESPUÉS de main.css / Bootstrap 3 y re-estiliza el markup
   existente (formularios, alertas, botones, tarjetas de votación). No cambia IDs
   ni nombres de campos: toda la lógica de login/registro/votos sigue igual.
   Paleta tomada del micrositio: negro → morado #340531, magenta #ff1775,
   morado neón #a317b7 / #e040fb, dorado #d6ab5f.
   ========================================================================== */
:root {
  --mqb-bg: #0b0210;
  --mqb-magenta: #ff1775;
  --mqb-violeta: #a317b7;
  --mqb-neon: #e040fb;
  --mqb-dorado: #f2c96d;
  --mqb-dorado-osc: #b2892a;
  --mqb-texto: #ffffff;
  --mqb-texto-sec: rgba(255,255,255,0.72);
  --mqb-texto-ter: rgba(255,255,255,0.5);
  --mqb-vidrio: rgba(255,255,255,0.045);
  --mqb-vidrio-borde: rgba(255,255,255,0.1);
  --mqb-radio: 22px;
  --mqb-grad: linear-gradient(135deg, #ff1775 0%, #c21ad1 55%, #7b2ff7 100%);
  --mqb-grad-dorado: linear-gradient(135deg, #ffe39a 0%, #f2c96d 45%, #b2892a 100%);
}

/* #BASE
   ========================================================================== */
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--mqb-texto);
  background-color: var(--mqb-bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(163,23,183,0.35), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, rgba(255,23,117,0.18), transparent 60%),
    linear-gradient(160deg, #000 0%, #1a0419 45%, #340531 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
/* Luces de fondo que se mueven lento (decorativas, detrás de todo) */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}
body::before {
  top: -20vmax; left: -15vmax;
  background: radial-gradient(circle, rgba(224,64,251,0.8), transparent 65%);
  animation: mqb-flotar-a 22s ease-in-out infinite alternate;
}
body::after {
  bottom: -25vmax; right: -15vmax;
  background: radial-gradient(circle, rgba(255,23,117,0.7), transparent 65%);
  animation: mqb-flotar-b 26s ease-in-out infinite alternate;
}
@keyframes mqb-flotar-a { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes mqb-flotar-b { to { transform: translate(-16vmax, -12vmax) scale(1.1); } }

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: var(--mqb-texto); }
p { color: var(--mqb-texto-sec); line-height: 1.65; }
b, strong { font-weight: 700; }
a { color: #ff7ab8; }
a:hover, a:focus { color: #fff; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--mqb-vidrio-borde); margin: 24px 0; }
.text-white { color: #fff; }
::selection { background: var(--mqb-magenta); color: #fff; }
body > section { padding: 0; }
#bg-mobile { display: none !important; } /* banner móvil viejo de activar_cuenta.php (imagen ya no existe) */

/* Título degradado reutilizable */
.mqb-titulo {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, #ffb3d9 50%, #f2c96d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* #BANNER PRINCIPAL
   ========================================================================== */
.mqb-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  /* Todo el banner (fondo y haces de luz) se funde con la página */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.mqb-hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background: #3a0636 url(../images/slider/Header_MQB.png) center / cover no-repeat;
  background-image: -webkit-image-set(url(../images/slider/Header_MQB.webp) 1x);
  background-image: image-set(url(../images/slider/Header_MQB.webp) type("image/webp"), url(../images/slider/Header_MQB.png) type("image/png"));
  animation: mqb-zoom 18s ease-in-out infinite alternate;
}
@keyframes mqb-zoom { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1.5%); } }
/* Degradado inferior: el banner se funde con el fondo de la página */
.mqb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,2,16,0.55) 0%, rgba(11,2,16,0) 30%);
}
/* Haces de luz que barren el escenario */
.mqb-hero-luz {
  position: absolute;
  z-index: -2;
  top: -30%;
  width: 22%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  filter: blur(18px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.mqb-hero-luz--1 { left: 10%; transform: rotate(18deg); animation: mqb-barrido 7s ease-in-out infinite alternate; }
.mqb-hero-luz--2 { right: 10%; transform: rotate(-18deg); animation: mqb-barrido-2 9s ease-in-out infinite alternate; }
@keyframes mqb-barrido   { from { transform: translateX(-60%) rotate(18deg); opacity: .3; }  to { transform: translateX(140%) rotate(28deg); opacity: .9; } }
@keyframes mqb-barrido-2 { from { transform: translateX(60%) rotate(-18deg); opacity: .9; }  to { transform: translateX(-140%) rotate(-28deg); opacity: .3; } }

.mqb-hero-contenido { text-align: center; padding: 0 16px 48px; }
.mqb-hero-logo {
  display: block;
  width: 420px;
  max-width: 78vw;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(255,23,117,0.45)) drop-shadow(0 0 18px rgba(242,201,109,0.25));
  animation: mqb-entrada-logo 0.9s cubic-bezier(.2,.8,.2,1) both, mqb-flotar-logo 5s ease-in-out 0.9s infinite;
}
@keyframes mqb-entrada-logo { from { opacity: 0; transform: translateY(20px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes mqb-flotar-logo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mqb-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.6);
  animation: mqb-aparecer 0.8s ease 0.4s both;
}
.mqb-hero-kicker span { width: 36px; height: 2px; background: var(--mqb-grad-dorado); border-radius: 2px; }
@keyframes mqb-aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mqb-hero--compacto { height: 220px; }
.mqb-hero--compacto .mqb-hero-kicker { display: none; }
.mqb-hero--compacto .mqb-hero-contenido { padding-bottom: 24px; }
.mqb-hero--compacto .mqb-hero-logo { width: 240px; }

/* Portada: banner más alto con la cuenta regresiva a la próxima gala */
.mqb-hero.mqb-hero--portada {
  height: auto;
  min-height: 520px;
  padding: 34px 0 76px;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.mqb-hero--portada .mqb-hero-contenido { padding-bottom: 0; display: flex; flex-direction: column; align-items: center; }
.mqb-hero--portada .mqb-hero-logo { width: 360px; }

.mqb-cuenta {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px 16px;
  background: rgba(20,3,22,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242,201,109,0.35);
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: mqb-aparecer 0.8s ease 0.6s both;
}
.mqb-cuenta-titulo {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mqb-dorado);
}
.mqb-cuenta-fecha {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #fff;
}
.mqb-cuenta-numeros { display: flex; justify-content: center; gap: 10px; }
.mqb-cuenta-caja {
  min-width: 74px;
  padding: 10px 6px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
}
.mqb-cuenta-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums; /* que los números no "bailen" de ancho */
  background: var(--mqb-grad-dorado);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mqb-cuenta-num.is-tic { animation: mqb-tic .45s cubic-bezier(.2,.8,.2,1); }
@keyframes mqb-tic { from { transform: translateY(-35%); opacity: 0; } to { transform: none; opacity: 1; } }
.mqb-cuenta-caja small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mqb-texto-sec);
}

/* Estado "en vivo" (reemplaza a los números mientras dura la gala) */
.mqb-cuenta-envivo { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 4px 6px; }
.mqb-cuenta.is-envivo { border-color: rgba(255,59,92,0.55); }
.mqb-cuenta.is-envivo .mqb-cuenta-antes { display: none; }
.mqb-cuenta.is-envivo .mqb-cuenta-envivo { display: flex; }
.mqb-cuenta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.mqb-cuenta-punto {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff3b5c;
  box-shadow: 0 0 0 0 rgba(255,59,92,0.7);
  animation: mqb-latido 1.4s ease-out infinite;
}
@keyframes mqb-latido { 70% { box-shadow: 0 0 0 12px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.mqb-cuenta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #dc3545;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(220,53,69,0.5);
  transition: transform .2s, box-shadow .2s;
}
.mqb-cuenta-btn:hover, .mqb-cuenta-btn:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(220,53,69,0.65); }

/* #FRANJA DE TÍTULO (section.emerald: "Registro…", "Si aún no te has registrado…")
   ========================================================================== */
body > section.emerald {
  background: transparent;
  border: 0;
  padding: 0 16px !important;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.emerald .center {
  display: flex;
  justify-content: center;
}
.emerald h4 {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 0;
  padding: 12px 14px 12px 26px;
  min-height: 56px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(20,3,22,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(224,64,251,0.35);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45), 0 0 0 4px rgba(224,64,251,0.06);
}
/* Cuando la franja es solo título (sin botón) queda centrada y simétrica */
.emerald h4:not(:has(.btn)) { padding: 12px 30px; }
.emerald h4 .btn { margin: 0; }

/* #TARJETA DE CONTENIDO (section#login-options / section#registro.container)
   ========================================================================== */
body > section.container {
  position: relative;
  margin-top: 32px;
  margin-bottom: 64px;
  padding: 36px 32px !important;
  background: var(--mqb-vidrio);
  border: 1px solid var(--mqb-vidrio-borde);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  color: #fff !important;
  animation: mqb-aparecer 0.7s ease 0.15s both;
}
/* Línea de brillo superior */
body > section.container::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mqb-neon), var(--mqb-magenta), transparent);
  border-radius: 2px;
}
/* En la página de votar el contenido ya son tarjetas: la sección no lleva caja */
body > section.container:has(.mqb-votacion) {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 15px !important;
}
body > section.container:has(.mqb-votacion)::before { display: none; }

body > section.container h2 { font-size: 26px; font-weight: 800; margin: 8px 0 14px; }
body > section.container h4 {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #fff;
}
body > section.container h4 + p { margin-bottom: 22px; }
/* "< Regresar" */
body > section.container a[href="index.php"]:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mqb-texto-ter);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
body > section.container a[href="index.php"]:not(.btn):hover { color: #fff; }

/* Mensaje de "votaciones cerradas" del index */
#login-options .col-sm-12.text-center h2 {
  font-size: 34px;
  background: var(--mqb-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* #FORMULARIOS
   ========================================================================== */
.form-group { margin-bottom: 16px; }
.form-control,
.form-group-lg .form-control {
  height: 50px;
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #fff;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control::placeholder { color: rgba(255,255,255,0.45); }
.form-control:hover { border-color: rgba(255,255,255,0.26); }
.form-control:focus {
  color: #fff;
  background-color: rgba(255,255,255,0.09);
  border-color: var(--mqb-neon);
  box-shadow: 0 0 0 4px rgba(224,64,251,0.18);
  outline: none;
}
/* Autocompletado del navegador: que no quede el fondo amarillo/celeste */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #2a0a2c inset;
  caret-color: #fff;
  transition: background-color 9999s;
}
.input-group { width: 100%; }
.input-group-addon {
  min-width: 50px;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-right: 0;
  border-radius: 14px 0 0 14px;
}
.input-group .form-control:last-child { border-radius: 0 14px 14px 0; }
.input-group:focus-within .input-group-addon { color: var(--mqb-neon); border-color: var(--mqb-neon); }
/* Mensajes de validación en rojo (spans con style="color:red") */
.form-group span[id$="OK"],
.form-group-lg span[id$="OK"] {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ff8fab !important;
}
.form-group span[id$="OK"]:empty { display: none; }
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: -3px;
  accent-color: var(--mqb-magenta);
  cursor: pointer;
}
label { font-weight: 600; color: var(--mqb-texto-sec); }

/* #BOTONES
   ========================================================================== */
.btn, .btn-primary, .btn-success, .btn-lg {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 1.2px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-position .4s ease;
}
/* Ojo: el botón INGRESAR y ENVIAR usan "btn-lg btn-block btn-primary" sin la clase .btn */
.btn-primary {
  display: inline-block;
  padding: 11px 26px;
  color: #fff;
  border: 0;
  background: var(--mqb-grad);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 10px 28px rgba(255,23,117,0.35);
  cursor: pointer;
  text-transform: uppercase;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus {
  color: #fff;
  background: var(--mqb-grad);
  background-size: 160% 160%;
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255,23,117,0.5), 0 0 0 4px rgba(224,64,251,0.15);
  outline: none;
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary[disabled],
.btn-primary[disabled]:hover {
  opacity: 0.45;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

.btn-success {
  padding: 10px 22px;
  color: #2a0626;
  border: 0;
  background: var(--mqb-grad-dorado);
  box-shadow: 0 8px 24px rgba(242,201,109,0.3);
  text-transform: uppercase;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:active:focus {
  color: #2a0626;
  background: var(--mqb-grad-dorado);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242,201,109,0.45);
  filter: brightness(1.05);
  outline: none;
}
.btn-secondary {
  padding: 6px 14px;
  font-size: 12px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-secondary:hover, .btn-secondary:focus { color: #fff; background: rgba(224,64,251,0.2); border-color: var(--mqb-neon); }

/* Links "Olvidé mi contraseña" / "Registrarse" del login (eran labels de Bootstrap) */
#Form .label {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background .2s, border-color .2s;
}
#Form .label:hover { background: rgba(224,64,251,0.18); border-color: var(--mqb-neon); }
#Form .label-success { border-color: rgba(242,201,109,0.55); }
#Form .label a { color: #fff; }

/* #LOGIN (index): columna de otras formas de votar
   ========================================================================== */
#login-options .col-sm-4.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
#login-options .col-sm-4.text-center p { color: #fff; margin: 8px 0 4px; }
#login-options .col-sm-4.text-center br { display: none; }
#login-options .col-sm-4.text-center a:not(.google-login-button) { color: var(--mqb-texto-ter); }
#login-options .col-sm-4.text-center a:not(.google-login-button):hover { color: #fff; }
#login-options .col-sm-4.text-center a[data-toggle="modal"] {
  margin: 4px 0 10px;
  transition: transform .2s;
}
#login-options .col-sm-4.text-center a[data-toggle="modal"]:hover { transform: translateY(-2px) scale(1.03); }
#login-options .google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  padding: 12px 20px;
  margin: 4px 0 8px;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform .2s, box-shadow .2s;
}
#login-options .google-login-button img { width: 22px; height: auto; }
#login-options .google-login-button:hover {
  color: #1f1f1f;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 0 4px rgba(255,255,255,0.12);
}
@media (min-width: 768px) {
  #login-options .col-sm-8 + hr + .col-sm-4 { border-left: 1px solid var(--mqb-vidrio-borde); }
}

/* #ALERTAS
   ========================================================================== */
.alert {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: mqb-aparecer .4s ease both;
}
.alert a { color: #fff; text-decoration: underline; }
.alert-danger  { color: #ffd6de; background: rgba(255,59,92,0.14);  border-color: rgba(255,90,120,0.45); }
.alert-warning { color: #ffe9b8; background: rgba(242,201,109,0.14); border-color: rgba(242,201,109,0.45); }
.alert-success { color: #d4ffe9; background: rgba(46,204,142,0.14);  border-color: rgba(46,204,142,0.45); }
.alert-info    { color: #d9ecff; background: rgba(80,160,255,0.14);  border-color: rgba(80,160,255,0.45); }

/* #PÁGINA DE GRACIAS (thanks.php)
   ========================================================================== */
#login-options .alert-success:has(.title) {
  position: relative;
  overflow: hidden;
  padding: 36px 20px 30px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,23,117,0.22), rgba(123,47,247,0.22));
  border: 1px solid rgba(242,201,109,0.45);
  border-radius: 24px;
  font-size: 15px;
  letter-spacing: 1px;
}
#login-options .alert-success:has(.title)::before {
  content: "\2605";
  display: block;
  margin: 0 auto 6px;
  font-size: 44px;
  line-height: 1;
  color: var(--mqb-dorado);
  text-shadow: 0 0 24px rgba(242,201,109,0.8);
  animation: mqb-estrella 1s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes mqb-estrella { from { transform: scale(0) rotate(-120deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* Destellos que suben (confeti liviano, solo CSS) */
#login-options .alert-success:has(.title)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 12% 80%, #f2c96d, transparent),
    radial-gradient(2px 2px at 28% 90%, #fff, transparent),
    radial-gradient(3px 3px at 46% 85%, #ff7ab8, transparent),
    radial-gradient(2px 2px at 64% 95%, #f2c96d, transparent),
    radial-gradient(3px 3px at 82% 82%, #e040fb, transparent),
    radial-gradient(2px 2px at 92% 92%, #fff, transparent);
  animation: mqb-destellos 2.6s ease-out 0.3s both;
}
@keyframes mqb-destellos { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-120%); opacity: 0; } }
#login-options .alert-success .title {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--mqb-grad-dorado);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* "Votaste por…" (thanks.php): tarjeta compacta con enlace al micrositio */
.mqb-famoso {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 520px;
  margin: 8px auto 4px;
  padding: 12px 22px 12px 14px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--mqb-vidrio-borde);
  border-radius: 20px;
  animation: mqb-aparecer .6s ease .5s both;
}
.mqb-famoso picture { flex: 0 0 auto; }
.mqb-famoso-foto {
  display: block;
  width: 90px;
  height: auto;
  border-radius: 14px;
  background: radial-gradient(70% 60% at 50% 100%, rgba(224,64,251,0.45), transparent 70%);
}
.mqb-famoso-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mqb-famoso-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mqb-dorado);
}
.mqb-famoso-nombre {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.mqb-famoso-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(224,64,251,0.14);
  border: 1px solid rgba(224,64,251,0.55);
  border-radius: 999px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.mqb-famoso-link i { transition: transform .2s; }
.mqb-famoso-link:hover,
.mqb-famoso-link:focus {
  color: #fff;
  background: var(--mqb-grad);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255,23,117,0.4);
}
.mqb-famoso-link:hover i { transform: translateX(4px); }

/* Compartir (thanks.php) */
.mqb-compartir { margin: 4px auto 6px; max-width: 780px; }
.mqb-compartir-titulo {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.mqb-compartir-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.mqb-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.mqb-share i { font-size: 17px; line-height: 1; }
.mqb-share:hover, .mqb-share:focus { color: #fff; transform: translateY(-2px); outline: none; }
.mqb-share[hidden] { display: none; }
.mqb-share--whatsapp {
  padding: 0 24px;
  font-size: 14px;
  background: #25d366;
  border-color: #25d366;
  color: #062e16;
  box-shadow: 0 10px 26px rgba(37,211,102,0.35);
}
.mqb-share--whatsapp:hover, .mqb-share--whatsapp:focus { color: #062e16; box-shadow: 0 14px 32px rgba(37,211,102,0.5); }
.mqb-share--facebook:hover, .mqb-share--facebook:focus { background: #1877f2; border-color: #1877f2; }
.mqb-share--x:hover, .mqb-share--x:focus { background: #000; border-color: rgba(255,255,255,0.4); }
.mqb-share--copiar:hover, .mqb-share--copiar:focus,
.mqb-share--mas:hover, .mqb-share--mas:focus { background: rgba(224,64,251,0.2); border-color: var(--mqb-neon); }
.mqb-share--copiar.is-copiado { background: rgba(46,204,142,0.2); border-color: #2ecc8e; }

/* #PÁGINA DE VOTAR
   ========================================================================== */
.mqb-votacion-intro {
  text-align: center;
  max-width: 720px;
  margin: 8px auto 36px;
}
.mqb-votacion-intro p { font-size: 15px; margin-bottom: 16px; }
.mqb-votos-restantes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(242,201,109,0.12);
  border: 1px solid rgba(242,201,109,0.45);
  border-radius: 999px;
}
.mqb-votos-restantes b { color: var(--mqb-dorado); font-size: 15px; }
.mqb-votos-restantes i { color: var(--mqb-dorado); }

.mqb-votacion-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.mqb-votacion-grid::before, .mqb-votacion-grid::after { display: none; } /* clearfix de BS3 rompe flex en Safari */
.mqb-votacion-grid > form { margin-bottom: 28px; display: flex; }

.mqb-vote-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--mqb-vidrio-borde);
  border-radius: var(--mqb-radio);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.mqb-vote-card:hover,
.mqb-vote-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(224,64,251,0.55);
  box-shadow: 0 26px 60px rgba(0,0,0,0.5), 0 0 40px rgba(224,64,251,0.25);
}
.mqb-vote-foto {
  position: relative;
  padding: 18px 18px 0;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(224,64,251,0.45), transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(255,23,117,0.12));
}
.mqb-vote-foto img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  transform-origin: 50% 100%;
}
.mqb-vote-card:hover .mqb-vote-foto img { transform: scale(1.04); }
.mqb-vote-cuerpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 22px;
  text-align: center;
}
.mqb-vote-nombre {
  margin: 0;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  color: #fff;
}
.mqb-vote-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.mqb-vote-limite {
  flex: 0 0 auto;
  min-width: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--mqb-texto-ter);
}
.mqb-vote-btn {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 15px;
}
.mqb-vote-cantidad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 14px;
  color: #2a0626;
  background: var(--mqb-grad-dorado);
  border-radius: 999px;
  transition: transform .2s;
}
.mqb-vote-cantidad.mqb-pulso { animation: mqb-pulso .35s ease; }
@keyframes mqb-pulso { 50% { transform: scale(1.3); } }

/* Slider (bootstrap-slider). Los marcadores son estrellas ('custom') */
.mqb-vote-slider .slider.slider-horizontal { flex: 1; width: auto; height: 28px; margin: 0 14px; }
.mqb-vote-slider .slider.slider-horizontal .slider-track {
  width: 100%;
  height: 6px;
  margin-top: -3px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: none;
}
.mqb-vote-slider .slider-selection {
  background: var(--mqb-grad);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255,23,117,0.6);
}
.mqb-vote-slider .slider-track-high { background: transparent; }
.mqb-vote-slider .slider-tick.custom::before {
  color: rgba(255,255,255,0.28);
  font-size: 14px;
  transition: color .2s, text-shadow .2s;
}
.mqb-vote-slider .slider-tick.custom.in-selection::before {
  color: var(--mqb-dorado);
  text-shadow: 0 0 8px rgba(242,201,109,0.8);
}
.mqb-vote-slider .slider-handle.custom {
  top: 0;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: 0;
  background: var(--mqb-grad-dorado);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(242,201,109,0.25), 0 4px 14px rgba(0,0,0,0.5);
  cursor: grab;
  transition: box-shadow .2s;
}
.mqb-vote-slider .slider-handle.custom::before {
  display: block;
  line-height: 28px;
  font-size: 16px;
  text-align: center;
  color: #6b0b58;
}
.mqb-vote-slider .slider-handle.custom:hover,
.mqb-vote-slider .slider-handle.custom:focus { box-shadow: 0 0 0 7px rgba(242,201,109,0.3), 0 4px 14px rgba(0,0,0,0.5); outline: none; }
.mqb-vote-slider .slider .tooltip { display: none !important; } /* la cantidad ya se ve en el botón */

/* #MODAL WHATSAPP
   ========================================================================== */
.modal { color: #fff !important; }
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 60px);
}
.modal-content {
  width: 100%;
  color: #fff;
  background: linear-gradient(160deg, #1f0520, #2d0730);
  border: 1px solid rgba(224,64,251,0.35);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.modal-header, .modal-footer { border-color: var(--mqb-vidrio-borde); padding: 18px 22px; }
.modal-title { color: #fff; font-weight: 800; }
.modal-body { padding: 20px 22px; line-height: 1.9; color: var(--mqb-texto-sec); }
.modal-body b[id^="h"] { color: var(--mqb-dorado); font-size: 15px; }
.modal-backdrop.in { opacity: 0.75; }

/* #PUBLICIDAD (GAM /57869717/flat2 en <div id="Publi" class="mqb-publi">)
   ========================================================================== */
.mqb-publi {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 0 12px;
  overflow: hidden;
  text-align: center;
}
.mqb-publi > div { display: flex; justify-content: center; max-width: 100%; }
.mqb-publi iframe { display: block; margin: 0 auto; max-width: 100%; border: 0; }

/* #PÁGINAS DE TEXTO (privacidad, recopilación, eliminar usuario)
   ========================================================================== */
body > section.container p[align="justify"],
body > section.container li { color: var(--mqb-texto-sec); }

/* #ANIMACIÓN AL HACER SCROLL (js/mqb-layout.js agrega .mqb-js y .is-visible)
   ========================================================================== */
.mqb-js .mqb-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.mqb-js .mqb-reveal.is-visible { opacity: 1; transform: none; }

/* #RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .mqb-hero { height: 300px; }
}
@media (max-width: 767px) {
  .mqb-hero { height: 210px; }
  .mqb-hero-logo { width: 230px; }
  .mqb-hero-kicker { font-size: 10px; letter-spacing: 3px; margin-top: 8px; }
  .mqb-hero-kicker span { width: 22px; }
  .mqb-hero--compacto { height: 150px; }
  .mqb-hero.mqb-hero--portada { height: auto; min-height: 0; padding: 18px 0 60px; }
  .mqb-hero--portada .mqb-hero-logo { width: 200px; }
  .mqb-cuenta { margin-top: 12px; padding: 10px 12px 12px; border-radius: 18px; }
  .mqb-cuenta-titulo { font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
  .mqb-cuenta-fecha { font-size: 13px; }
  .mqb-cuenta-numeros { gap: 6px; }
  .mqb-cuenta-caja { min-width: 60px; padding: 8px 4px 6px; border-radius: 12px; }
  .mqb-cuenta-num { font-size: 26px; }
  .mqb-cuenta-caja small { font-size: 9px; letter-spacing: 1px; }
  .mqb-cuenta-badge { font-size: 16px; }
  .mqb-cuenta-btn { padding: 10px 18px; font-size: 12px; }
  .mqb-hero--compacto .mqb-hero-logo { width: 170px; }
  .mqb-hero-bg {
    background-image: -webkit-image-set(url(../images/slider/Header_MQB-960.webp) 1x);
    background-image: image-set(url(../images/slider/Header_MQB-960.webp) type("image/webp"), url(../images/slider/Header_MQB.png) type("image/png"));
  }

  body > section.emerald { margin-top: -22px; }
  .emerald h4 { font-size: 12px; padding: 10px 12px 10px 18px; border-radius: 22px; }
  .emerald h4:not(:has(.btn)) { padding: 12px 22px; }
  .emerald h4 .btn { padding: 8px 16px; font-size: 12px; }

  body > section.container {
    width: auto;
    margin: 24px 12px 48px;
    padding: 26px 8px !important;
    border-radius: 22px;
  }
  body > section.container:has(.mqb-votacion) { margin: 16px 6px 40px; padding: 8px 0 !important; }
  body > section.container h4 { font-size: 21px; }
  #login-options .col-sm-12.text-center h2 { font-size: 26px; }
  .mqb-titulo { font-size: 22px; }

  /* Tarjeta de votación horizontal: foto a la izquierda, controles a la derecha */
  .mqb-vote-card { flex-direction: row; align-items: stretch; }
  .mqb-vote-foto { flex: 0 0 38%; padding: 10px 4px 0 10px; display: flex; align-items: flex-end; }
  .mqb-vote-cuerpo { padding: 14px 14px 14px 10px; gap: 12px; justify-content: center; text-align: left; }
  .mqb-vote-nombre { font-size: 16px !important; }
  .mqb-vote-slider { padding: 8px 10px; gap: 8px; }
  .mqb-vote-btn { margin-top: 0; padding: 11px 14px; font-size: 14px; }
  .mqb-votacion-grid > form { margin-bottom: 16px; }
  .mqb-vote-card:hover, .mqb-vote-card:focus-within { transform: none; }

  #login-options .alert-success .title { font-size: 26px; }

  .mqb-famoso { gap: 14px; padding: 10px 14px 10px 10px; }
  .mqb-famoso-foto { width: 72px; }
  .mqb-famoso-nombre { font-size: 17px; }
  .mqb-famoso-link { padding: 8px 14px; font-size: 12px; }

  /* WhatsApp a todo el ancho; el resto como íconos en una fila */
  .mqb-compartir-titulo { font-size: 16px; }
  .mqb-share--whatsapp { flex: 1 1 100%; min-height: 50px; font-size: 15px; }
  .mqb-share:not(.mqb-share--whatsapp) { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .mqb-share:not(.mqb-share--whatsapp) span { font-size: 12px; }
}

/* Respeta a quien pidió menos movimiento en su sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mqb-js .mqb-reveal { opacity: 1; transform: none; }
}
