/* Fuente propia (Bricolage Grotesque, licencia SIL OFL): servida desde Quizo! y no desde Google, que está bloqueado en China */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(/img/fuente-bricolage-latin.woff2) format("woff2-variations"), url(/img/fuente-bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(/img/fuente-bricolage-latin-ext.woff2) format("woff2-variations"), url(/img/fuente-bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Quizo! — estilos de marca */
:root {
  --tinta: #14122B;
  --tinta-2: #1E1B3D;
  --tinta-3: #2A2652;
  --lima: #C6FF3D;
  --lima-osc: #9FD11F;
  --crema: #FFF8E7;
  --gris: #A9A5C9;
  --coral: #FF6B5B;
  --turquesa: #1FC8B4;
  --ambar: #FFB627;
  --violeta: #8B5CF6;
  --rosa: #FF5FA2;
  --azul: #3BA4FF;
  --ok: #2ED47A;
  --mal: #FF4D6D;
  --radio: 18px;
  --sombra: 0 6px 0 rgba(0,0,0,.35);
  --fuente: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--tinta);
  background-image: radial-gradient(circle at 15% 10%, rgba(139,92,246,.22), transparent 40%),
                    radial-gradient(circle at 90% 90%, rgba(198,255,61,.10), transparent 45%);
  background-attachment: fixed;
  color: var(--crema);
  font-family: var(--fuente);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lima); }
button, input, select, textarea { font: inherit; color: inherit; }
.oculto { display: none !important; }

.logo { font-weight: 800; letter-spacing: -.03em; color: var(--crema); text-decoration: none; display: inline-flex; align-items: center; gap: .08em; }
.logo .burbuja { background: var(--lima); color: var(--tinta); border-radius: 14px 14px 14px 4px; padding: .02em .32em; transform: rotate(-4deg); display: inline-block; }
.logo .exc { color: var(--lima); }

.btn {
  border: 0; border-radius: 14px; padding: .8em 1.4em; font-weight: 800; cursor: pointer;
  background: var(--lima); color: var(--tinta); box-shadow: var(--sombra); transition: transform .08s, box-shadow .08s, filter .15s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sec { background: var(--tinta-3); color: var(--crema); }
.btn.peligro { background: var(--mal); color: #fff; }
.btn.peq { padding: .45em .8em; font-size: .9rem; border-radius: 10px; }

.campo {
  width: 100%; border: 3px solid var(--tinta-3); background: var(--tinta-2); border-radius: 14px;
  padding: .75em 1em; outline: none; transition: border-color .15s;
}
.campo:focus { border-color: var(--lima); }
.campo::placeholder { color: #6f6a99; }

.tarjeta { background: var(--tinta-2); border: 2px solid var(--tinta-3); border-radius: var(--radio); padding: 1.2rem; }
.error { color: var(--mal); font-weight: 700; min-height: 1.3em; }
.sutil { color: var(--gris); }

/* colores de respuestas */
.r0 { --c: var(--coral); }
.r1 { --c: var(--turquesa); }
.vf-si { --c: #1fbf75; } .vf-no { --c: #ff4d6d; }
.r2 { --c: var(--ambar); }
.r3 { --c: var(--violeta); }
.r4 { --c: var(--rosa); }
.r5 { --c: var(--azul); }
.forma { width: 1.6em; height: 1.6em; fill: currentColor; flex: none; }

/* Pantalla de juego */
.centro { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.anim-pop { animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.anim-sube { animation: sube .4s ease-out both; }
@keyframes sube { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .anim-pop, .anim-sube { animation: none; } }

/* logo del cliente (fondo y logo propios) */
#logo-cliente img { max-height: 54px; max-width: 200px; object-fit: contain; display: block; }

/* multimedia */
.media { display: flex; justify-content: center; }
.media img { max-width: 100%; max-height: 34vh; border-radius: 16px; object-fit: contain; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.media img.revelar { animation: revelar var(--dur, 20s) linear forwards; }
@keyframes revelar { from { filter: blur(28px) saturate(.6); transform: scale(1.04); } to { filter: blur(0); transform: none; } }
.media.video { width: 100%; }
.media.video iframe { width: min(100%, 60vh * 16 / 9); aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }

/* controles del móvil */
.zona-controles { position: fixed; inset: 112px 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.botonera { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-rows: 1fr; }
.botonera.dos { grid-template-columns: 1fr; }
.opcion { border: 0; border-radius: 20px; background: var(--c); color: var(--tinta); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--sombra); cursor: pointer; transition: transform .08s; padding: 8px; min-height: 0; overflow: hidden; }
.opcion .forma { width: 30%; height: auto; max-width: 96px; }
.botonera.con-texto .opcion .forma { width: 2.2em; }
.opcion .op-txt { font-weight: 800; font-size: clamp(.95rem, 4.2vw, 1.3rem); line-height: 1.15; }
.opcion .op-img { max-width: 90%; max-height: 55%; border-radius: 10px; object-fit: contain; }
.opcion:active { transform: scale(.96); }
.opcion:disabled { opacity: .3; }
.opcion.elegida { outline: 6px solid var(--crema); opacity: 1; }
.enviar-g { width: 100%; font-size: 1.2rem; padding: .85em; }
.puzzle-lista { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.pz-item { display: flex; align-items: center; gap: 10px; background: var(--tinta-2); border: 2px solid var(--tinta-3); border-radius: 14px; padding: 8px 10px; }
.pz-n { background: var(--lima); color: var(--tinta); border-radius: 8px; padding: 2px 9px; font-weight: 800; }
.pz-t { flex: 1; font-weight: 700; display: flex; align-items: center; gap: 8px; text-align: left; }
.pz-t .op-img { max-height: 48px; border-radius: 8px; }
.pz-flechas { display: flex; gap: 6px; }
.pz-b { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--tinta-3); font-size: 1.1rem; cursor: pointer; }
.pz-b:disabled { opacity: .25; }
.reacciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.reacciones button { font-size: 2.2rem; width: 64px; height: 64px; border-radius: 18px; border: 0; background: var(--tinta-3); cursor: pointer; }
.reacciones button:active { transform: scale(.9); }
.chip-tipo { display: inline-flex; gap: 6px; align-items: center; background: var(--tinta-3); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .9rem; }

/* tipos nuevos en el móvil */
.libre { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.libre .campo { font-size: 1.4rem; font-weight: 700; text-align: center; }
.libre textarea.campo { text-align: left; font-size: 1.1rem; }
.valor-g { font-size: clamp(2.6rem, 14vw, 4.5rem); font-weight: 800; color: var(--lima); text-align: center; }
.desliza { width: 100%; accent-color: var(--lima); height: 44px; }
.extremos { display: flex; justify-content: space-between; color: var(--gris); font-weight: 700; gap: 10px; }
.ajuste-fino { display: flex; justify-content: center; gap: 16px; }
.ajuste-fino .pz-b { width: 64px; height: 52px; font-size: 1.6rem; }
.escala-m { flex: 1; display: grid; grid-template-columns: 1fr; gap: 10px; }
.escala-m.nps { grid-template-columns: repeat(4, 1fr); }
.esc-b { border: 0; border-radius: 16px; font-size: 1.8rem; font-weight: 800; cursor: pointer; color: var(--tinta); background: hsl(var(--h) 85% 62%); display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: var(--sombra); }
.esc-b small { font-size: 1.1rem; }
.esc-b.elegida { outline: 5px solid var(--crema); }
.esc-b:disabled:not(.elegida) { opacity: .3; }
.pin-zona { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pin-img { position: relative; display: inline-block; max-width: 100%; max-height: 100%; cursor: crosshair; touch-action: manipulation; }
.pin-img img { max-width: 100%; max-height: 58vh; display: block; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.pin-marca { position: absolute; transform: translate(-50%, -100%); font-size: 2.4rem; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.6)); }
.avatares { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0; }
.avatares button { font-size: 1.8rem; border: 3px solid transparent; background: var(--tinta-2); border-radius: 14px; padding: 6px 0; cursor: pointer; }
.avatares button.sel { border-color: var(--lima); background: var(--tinta-3); }
.seguro-t { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 14px; border: 3px dashed var(--ambar); background: transparent; font-weight: 800; font-size: 1rem; cursor: pointer; }
.seguro-t.on { background: var(--ambar); color: var(--tinta); border-style: solid; }
.zona-ok { position: absolute; border: 4px solid var(--ok); background: rgba(46,212,122,.25); border-radius: 50%; pointer-events: none; box-sizing: border-box; }

.selector-idioma { position: fixed; right: 10px; top: 10px; z-index: 40; background: var(--tinta-2); border: 2px solid var(--tinta-3); border-radius: 10px; padding: 4px 6px; font-size: .85rem; opacity: .85; }
.ideas-lista { display: flex; flex-direction: column; gap: 8px; overflow: auto; flex: 1; min-height: 0; }
.idea-b { text-align: left; border: 3px solid var(--tinta-3); background: var(--tinta-2); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.idea-b.sel { border-color: var(--lima); background: rgba(198,255,61,.15); }
.idea-mia { background: rgba(198,255,61,.12); border-radius: 10px; padding: 8px 12px; text-align: left; font-weight: 700; }
.logro { display: flex; gap: 10px; align-items: center; background: var(--tinta-2); border: 2px solid var(--tinta-3); border-radius: 14px; padding: 10px 14px; text-align: left; }
.logro .ico { font-size: 2rem; }
.trofeo { border-radius: 18px; padding: 14px 18px; text-align: center; font-weight: 800; }
.trofeo.oro { background: linear-gradient(135deg, #FFD54A, #FFB627); color: var(--tinta); }
.trofeo.plata { background: linear-gradient(135deg, #E8ECF5, #AEB7C9); color: var(--tinta); }
.trofeo.bronce { background: linear-gradient(135deg, #E9A66B, #B86A35); color: var(--tinta); }
.trofeo.nada { background: var(--tinta-2); border: 2px dashed var(--tinta-3); }
body:has(#barra:not(.oculto)) .selector-idioma:not(.mini) { display: none; }

/* repaso personal */
.repaso summary { list-style: none; cursor: pointer; }
.repaso summary::-webkit-details-marker { display: none; }
.rep-item { background: var(--tinta-2); border-left: 5px solid var(--tinta-3); border-radius: 10px; padding: 10px 12px; margin-top: 8px; line-height: 1.4; }
.rep-item.ok { border-left-color: var(--ok); } .rep-item.mal { border-left-color: var(--mal); }
/* accesibilidad */
.a11y { position: fixed; left: 10px; top: 10px; z-index: 40; display: flex; gap: 6px; }
.a11y button { background: var(--tinta-2); border: 2px solid var(--tinta-3); border-radius: 10px; width: 38px; height: 34px; font-weight: 800; cursor: pointer; }
.a11y button[aria-pressed="true"] { background: var(--lima); color: var(--tinta); }
body:has(#barra:not(.oculto)) .a11y { display: none; }
.a11y.inline { position: static; }
html.grande { font-size: 118%; }
html.grande .opcion .op-txt { font-size: 1.5rem; }
html.contraste { --tinta: #000; --tinta-2: #0b0b0b; --tinta-3: #5a5a5a; --gris: #e8e8e8; --crema: #fff; }
html.contraste body { background: #000 !important; }
html.contraste .opcion, html.contraste .op, html.contraste .btn { outline: 3px solid #fff; }
html.contraste .sutil { color: #f0f0f0; }
.selector-idioma.inline { position: static; opacity: 1; }

/* diapositivas con diseño */
.dp { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 1150px; margin: 0 auto; width: 100%; text-align: center; }
.dp h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 0; letter-spacing: -.03em; line-height: 1.05; }
.dp-titulo h1 { font-size: clamp(3rem, 9vw, 7rem); }
.dp-sub { font-size: clamp(1.2rem, 2.6vw, 2rem); color: var(--gris); margin: 0; }
.dp-cuerpo { font-size: clamp(1.2rem, 2.4vw, 2rem); white-space: pre-wrap; line-height: 1.35; }
.dp-tt { text-align: left; } .dp-tt h1 { border-bottom: 6px solid var(--lima); padding-bottom: 10px; }
.dp-vin { text-align: left; } .dp-vin ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dp-vin li { font-size: clamp(1.2rem, 2.6vw, 2.1rem); font-weight: 700; display: flex; gap: 14px; align-items: baseline; animation: sube .4s both; }
.dp-vin li::before { content: ""; width: .7em; height: .7em; border-radius: 4px; background: var(--lima); flex: none; transform: translateY(-.1em); }
.dp-vin li:nth-child(2) { animation-delay: .1s } .dp-vin li:nth-child(3) { animation-delay: .2s } .dp-vin li:nth-child(4) { animation-delay: .3s } .dp-vin li:nth-child(5) { animation-delay: .4s }
.dp-cita blockquote { font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 800; margin: 0; line-height: 1.15; font-style: italic; }
.dp-pie { font-size: clamp(1.1rem, 2.2vw, 1.7rem); color: var(--gris); margin: 0; font-weight: 700; }
.dp-mm .media img { max-height: 62vh; } .dp-mm .media.video iframe, .dp-video .media.video iframe { width: min(100%, 70vh * 16 / 9); }

.bloque-reac { margin-top: 18px; }
.bloque-reac .reacciones button { width: 54px; height: 54px; font-size: 1.8rem; }
.reacciones button.enviada { animation: pop .3s; background: var(--lima); }

/* ===== imágenes de marca ===== */
.av-img { width: 1.6em; height: 1.6em; object-fit: contain; vertical-align: middle; display: inline-block; }
.av-xl { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.mascota { display: block; margin: 0 auto; width: min(220px, 55vw); height: auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); user-select: none; }
.mascota.peq { width: 120px; } .mascota.med { width: 170px; } .mascota.gde { width: min(320px, 70vw); }
.mascota.flota { animation: flota-m 3s ease-in-out infinite; }
@keyframes flota-m { 50% { transform: translateY(-10px); } }
.ilus { display: block; margin: 0 auto 6px; width: min(260px, 70vw); height: auto; }
.logro-img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.trofeo-img { width: 64px; height: 64px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.avatares button img { width: 100%; height: auto; display: block; }
.avatares button { padding: 4px; }
.escalon .av-xl { width: 110px; height: 110px; display: block; margin: 0 auto 4px; }
.btn-sonido { background: rgba(255,255,255,.12); border: 0; border-radius: 999px; width: 34px; height: 34px; font-size: 1.05rem; cursor: pointer; }

/* ¡Basta! en el móvil */
.basta-m { display: flex; flex-direction: column; gap: 10px; overflow: auto; min-height: 0; }
.basta-letra { align-self: center; width: 58px; height: 58px; display: grid; place-items: center; font-size: 2.3rem; flex: none; font-weight: 900; background: var(--lima); color: var(--tinta); border-radius: 20px; box-shadow: 0 6px 0 #8db800; }
.basta-campos { display: grid; gap: 6px; }
.basta-c { display: grid; grid-template-columns: 6.2em 1fr; align-items: center; gap: 8px; font-weight: 800; }
.basta-c span { font-size: .9rem; line-height: 1.1; }
.basta-c .campo { padding: .45em .65em; font-size: 1.05rem; }
.basta-c .campo.bien { border-color: #1fbf75; } .basta-c .campo.mal { border-color: #ff4d6d; }
.basta-b { font-size: 1.35rem !important; background: #ff4d6d !important; color: #fff !important; }
.basta-b:disabled { opacity: .45; }
.basta-ayuda { text-align: center; margin: 0; font-size: .85rem; }
.aviso-basta { background: #ff4d6d; color: #fff; font-weight: 900; text-align: center; border-radius: 14px; padding: 8px 10px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.aviso-basta .av-img { width: 24px; height: 24px; }
.basta-mio { display: grid; gap: 4px; text-align: left; }
.basta-mio > div { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 4px 8px; border-radius: 8px; font-size: .95rem; }
.basta-mio .u { background: rgba(31,191,117,.25); } .basta-mio .rep { background: rgba(242,183,5,.25); } .basta-mio .no { background: rgba(255,77,109,.15); }
.basta-mio em { font-style: normal; font-weight: 800; }
.basta-ed { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.basta-ed-letra { display: grid; gap: 4px; font-weight: 800; text-align: center; }
.basta-ed-letra input { width: 84px; height: 84px; font-size: 3rem; font-weight: 900; text-align: center; border-radius: 18px; border: 0; background: var(--lima); color: var(--tinta); text-transform: uppercase; }
.basta-ed-cats { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 8px; flex: 1; min-width: 280px; }
/* mascota siempre a la derecha del logo (en la portada se usa la grande) */
.logo .logo-masc { width: 1.9em; height: 1.9em; margin: -.45em 0 -.45em .15em; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); transform-origin: 50% 90%; animation: saluda-logo 3.2s ease-in-out infinite; }
@keyframes saluda-logo { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-10deg); } 86% { transform: rotate(8deg); } 94% { transform: rotate(-4deg); } }
.home .logo .logo-masc { display: none; }
@media (prefers-reduced-motion: reduce) { .logo .logo-masc { animation: none; } }
/* ⚖️ retos de ¡Basta! en el móvil */
.retables { margin-top: 12px; text-align: left; } .retables summary { list-style: none; width: 100%; text-align: center; } .retables summary::-webkit-details-marker { display: none; }
.retables-lista { display: grid; gap: 6px; margin-top: 8px; max-height: 40vh; overflow: auto; }
.retable-b { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: inherit; border-radius: 12px; padding: 8px 10px; font: inherit; text-align: left; cursor: pointer; }
.retable-b small { color: var(--gris); margin-left: auto; } .retable-b .av-img { width: 24px; height: 24px; } .retable-b:disabled { opacity: .4; }
.reto-palabra-m { font-size: 2.4rem; font-weight: 900; color: var(--lima); line-height: 1.1; margin: 6px 0; overflow-wrap: anywhere; }
.reto-votos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .reto-votos .btn { font-size: 1.3rem; padding: .9em; }
.reto-fin-m { border-radius: 12px; padding: 8px 10px; font-weight: 800; margin-top: 10px; } .reto-fin-m.fuera { background: rgba(255,77,109,.2); } .reto-fin-m.vale { background: rgba(31,191,117,.2); }
/* 🎲 botón para detener la ruleta de letras */
.ruleta-b { width: min(100%, 320px); aspect-ratio: 1; border-radius: 50% !important; font-size: 2.2rem !important; font-weight: 900; background: #ff4d6d !important; color: #fff !important; box-shadow: 0 12px 0 #b3002a, 0 20px 40px rgba(255,60,90,.45) !important; margin: 14px auto; display: grid; place-items: center; animation: late-b 1s ease-in-out infinite; }
.ruleta-b:active { transform: translateY(8px); box-shadow: 0 4px 0 #b3002a !important; } .ruleta-b:disabled { animation: none; opacity: .6; }
@keyframes late-b { 50% { transform: scale(1.05); } }
/* 💬 botón flotante de feedback (beta): compacto y con espacio reservado al final de la página para no tapar nada */
body.con-feedback { padding-bottom: 76px; }
.btn-feedback { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: inline-flex; gap: 8px; align-items: center; height: 48px; min-width: 48px; padding: 0 12px; background: #ff4d6d; color: #fff; font-weight: 800; font-size: .92rem; text-decoration: none; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.35); overflow: hidden; white-space: nowrap; transition: max-width .25s, opacity .2s; max-width: 48px; opacity: .92; }
.btn-feedback .em { font-size: 1.35rem; flex: none; }
.btn-feedback:hover, .btn-feedback:focus-visible { max-width: 220px; opacity: 1; }
.btn-feedback:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media print { .btn-feedback { display: none; } }
/* selector de idioma compacto en la barra del celular */
.selector-idioma.mini { max-width: 104px; font-size: .78rem; padding: 3px 4px; opacity: 1; }
