@font-face { font-family: C059; font-weight: 700; src: url(../fuentes/c059-bold.otf) format("opentype"); font-display: swap; }
/* ==========================================================================
   Editores de billetes y fichas de casino — estilo United Events
   Mismo marcado que mesasdecasinoparaeventos.com; aquí se viste con los
   colores del tema (marino, azul, violeta, ámbar) como los demás diseñadores.
   ========================================================================== */

/* Fuentes que usa el dibujo del billete y de la ficha (canvas y SVG). */
@font-face { font-family: Prata; src: url(../fuentes/prata-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Archivo; font-weight: 400 700; src: url(../fuentes/archivo-latin.woff2) format("woff2"); font-display: swap; }

.uec-pagina { background:
  radial-gradient(50% 40% at 0% 0%, rgba(47, 107, 255, .14), transparent 70%),
  radial-gradient(45% 40% at 100% 10%, rgba(124, 77, 255, .14), transparent 70%),
  linear-gradient(180deg, #f2f5ff 0%, #f7f4ff 100%); }
.uec-seccion { position: relative; padding: 18px 0 56px; }
.uec-seccion::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(20, 26, 58, .12) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.uec-wrap { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter, 24px); }

.uec-intro { text-align: center; max-width: 820px; margin: 0 auto 20px; }
.uec-intro h1 { margin: 0 0 6px; font-family: var(--f-titulo, sans-serif); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.15; color: var(--tinta, #0b1026); }
.uec-intro h1 span { background: linear-gradient(90deg, var(--azul, #2f6bff), var(--violeta, #7c4dff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uec-intro p { margin: 0; color: var(--texto-suave, #4d5478); font-size: 1.02rem; }
.uec-intro__otro { margin-top: 8px !important; }
.uec-intro__otro a { font-weight: 700; color: var(--azul, #2f6bff); text-decoration: none; }
.uec-intro__otro a:hover { text-decoration: underline; }

/* ---------- Aplicación ---------- */
.uec { --r: 18px; --borde: rgba(20, 26, 58, .1); --marino: #141a3a; --azul: #2f6bff; --violeta: #7c4dff;
  position: relative; color: var(--texto, #1c2140); font-family: var(--f-texto, system-ui, sans-serif); }
.uec [hidden] { display: none !important; }
.uec .oculto-visual { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.uec .disenador { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1000px) { .uec .disenador { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

/* Vista: el billete o la ficha sobre un escenario claro, como la vista 3D de las máquinas */
.uec .vista-pegada { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r);
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--borde), 0 24px 48px -32px rgba(20, 26, 58, .45); }
@media (min-width: 1000px) { .uec .vista-pegada { position: sticky; top: calc(var(--barra-mini, 64px) + 14px); } }
.uec .mesa-billete { position: relative; width: 100%; padding: 34px 30px 46px 46px; border-radius: 14px; perspective: 1600px;
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(56, 213, 255, .22), transparent 70%),
    radial-gradient(60% 50% at 80% 100%, rgba(124, 77, 255, .3), transparent 70%),
    linear-gradient(180deg, #e9eefc 0%, #dfe6fa 58%, #cfd8f3 100%);
  box-shadow: inset 0 0 0 1px var(--borde); }
.uec .mesa-ficha { max-width: 470px; margin: 0 auto; }
.uec .billete-3d { position: relative; width: 100%; aspect-ratio: 1772 / 827; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); -webkit-user-select: none; user-select: none; }
.uec .billete-3d.girado { transform: rotateY(180deg); }
.uec .billete-3d .cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; overflow: hidden;
  box-shadow: 0 18px 34px -14px rgba(11, 16, 38, .55); }
.uec .billete-3d .cara-reverso { transform: rotateY(180deg); }
.uec .billete-3d .cara canvas, .uec .billete-3d .cara svg { display: block; width: 100%; height: 100%; }
.uec .billete-3d .cara canvas, .uec .billete-3d.moneda-ficha .cara { touch-action: none; }
.uec .billete-3d:not(.girado) .cara-reverso, .uec .billete-3d.girado .cara-frente { pointer-events: none; }
.uec:not(.listo) .billete-3d.clasico .cara { background: #e4e8f5; }
.uec .billete-3d.moneda-ficha { aspect-ratio: 1 / 1; max-width: 380px; margin: 0 auto; }
.uec .billete-3d.moneda-ficha .cara { border-radius: 50%; background: none; }

.uec .cota { position: absolute; color: var(--azul); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.uec .cota-ancho { left: 46px; right: 30px; bottom: 14px; height: 14px; border-left: 1px solid; border-right: 1px solid; }
.uec .cota-ancho::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px dashed; opacity: .6; }
.uec .cota-ancho span { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); background: #dfe6fa; padding: 0 8px; line-height: 18px; }
.uec .cota-alto { top: 34px; bottom: 46px; left: 14px; width: 14px; border-top: 1px solid; border-bottom: 1px solid; }
.uec .cota-alto::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; border-left: 1px dashed; opacity: .6; }
.uec .cota-alto span { position: absolute; top: 50%; left: 7px; transform: translate(-50%, -50%) rotate(-90deg); background: #e4eafb; padding: 0 8px; white-space: nowrap; line-height: 18px; }

.uec .botonera-caras { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--borde); }
.uec .botonera-caras button { min-height: 38px; padding: 6px 16px; border: 0; border-radius: 9px; background: none; cursor: pointer; font: 600 .9rem var(--f-texto, system-ui, sans-serif); color: var(--texto-suave, #4d5478); }
.uec .botonera-caras button[aria-pressed="true"] { background: var(--marino); color: #fff; }
.uec .botonera-caras button:hover:not([aria-pressed="true"]) { background: #eef2ff; color: var(--azul); }

.uec .descargas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.uec .boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 .93rem var(--f-texto, system-ui, sans-serif); text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s, background-color .15s;
  background: #fff; color: var(--marino); box-shadow: inset 0 0 0 1px var(--borde), 0 6px 14px -10px rgba(20, 26, 58, .4); }
.uec .boton:hover { background: #f1f4ff; color: var(--azul); }
.uec .boton:disabled { opacity: .6; cursor: default; }
.uec .boton.ambar, .uec-boton--ambar { background: var(--g-cta, linear-gradient(135deg, #ffbf1f, #ff8a00)); color: #1a1200; box-shadow: 0 12px 24px -12px rgba(255, 138, 0, .9); }
.uec .boton.ambar:hover { transform: translateY(-1px); color: #1a1200; }
.uec .boton.pequeno { min-height: 38px; padding: 7px 14px; font-size: .88rem; border-radius: 10px; }
.uec .boton.linea { background: #fff; }
.uec .hueco-imprenta { display: flex; justify-content: center; }
.uec .nota-privada { margin: 0; max-width: 46ch; text-align: center; font-size: .82rem; line-height: 1.45; color: var(--texto-suave, #4d5478); }

/* Controles */
.uec .controles { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r);
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--borde), 0 24px 48px -32px rgba(20, 26, 58, .45); }
.uec .cara-opciones { margin: 0 2px; font-size: .84rem; color: var(--texto-suave, #4d5478); }
.uec .cara-opciones strong { color: var(--azul); }
.uec .pestanas { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 14px;
  background: linear-gradient(160deg, #141a3a, #0b1026 60%, #160e36); box-shadow: 0 16px 30px -22px rgba(11, 16, 38, .8); }
.uec .pestanas [role="tab"] { flex: 1 1 auto; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: rgba(255, 255, 255, .82); font: 600 .88rem var(--f-texto, system-ui, sans-serif); }
.uec .pestanas [role="tab"]:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.uec .pestanas [role="tab"][aria-selected="true"] { background: rgba(56, 213, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(56, 213, 255, .6); }
.uec .pestanas [role="tab"]:focus-visible { outline: 2px solid #38d5ff; outline-offset: 2px; }
.uec .panel-pestana { display: flex; flex-direction: column; gap: 12px; }

.uec .bloque { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #f6f8fe, #f1f3fc); box-shadow: inset 0 0 0 1px var(--borde); min-width: 0; }
.uec .bloque legend { float: left; width: 100%; margin: 0 0 2px; padding: 0; font-family: var(--f-titulo, sans-serif); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.uec .bloque legend + * { clear: both; }
.uec .ayuda { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--texto-suave, #4d5478); }

.uec .campo { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--texto-suave, #4d5478); }
.uec .campo input, .uec .campo select { width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 26, 58, .16); color: var(--texto, #1c2140); font: 500 .95rem var(--f-texto, system-ui, sans-serif); }
.uec .campo input:focus, .uec .campo select:focus { outline: 2px solid var(--azul); outline-offset: 0; }
.uec .campo.corto { max-width: 220px; }

.uec .pastillas { display: flex; flex-wrap: wrap; gap: 6px; }
.uec .pastillas label { position: relative; cursor: pointer; }
.uec .pastillas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uec .pastillas span { display: inline-block; padding: 7px 13px; border-radius: 10px; font-size: .86rem; font-weight: 600; background: #fff; color: var(--texto-suave, #4d5478);
  box-shadow: inset 0 0 0 1px var(--borde); transition: background .15s, color .15s; }
.uec .pastillas label:hover span { color: var(--azul); }
.uec .pastillas input:checked + span { background: var(--marino); color: #fff; box-shadow: none; }
.uec .pastillas input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }

.uec .muestras { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.uec .muestras label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.2; color: var(--texto-suave, #4d5478); cursor: pointer; }
.uec .muestras input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uec .muestras span { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); transition: box-shadow .15s; }
.uec .muestras input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 2px #fff, 0 0 0 4px var(--azul); }
.uec .muestras input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 4px; }

.uec .rango { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: var(--texto-suave, #4d5478); }
.uec .rango input { width: 100%; accent-color: var(--azul); }
.uec .colores-dos { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.uec .colores-dos label { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; }
.uec .colores-dos input[type="color"] { width: 42px; height: 30px; padding: 2px; border: 0; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--borde); cursor: pointer; }

.uec .interruptor { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.uec .interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uec .interruptor span { position: relative; flex: none; width: 40px; height: 22px; border-radius: 99px; background: #cdd3e6; transition: background .15s; }
.uec .interruptor span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.uec .interruptor input:checked + span { background: var(--azul); }
.uec .interruptor input:checked + span::after { transform: translateX(18px); }
.uec .interruptor input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }

.uec .subir { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.uec .subir .ayuda { flex-basis: 100%; }
.uec .subir label.boton { position: relative; cursor: pointer; }
.uec .quitar { padding: 0; border: 0; background: none; cursor: pointer; font: 600 .84rem var(--f-texto, system-ui, sans-serif); color: var(--rojo, #e6262f); text-decoration: underline; }
.uec .recolocar.quitar { align-self: flex-start; color: var(--azul); }

.uec .plantillas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.uec .plantilla { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 0; border-radius: 12px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1px var(--borde); color: var(--marino); font: 600 .8rem var(--f-texto, system-ui, sans-serif); transition: transform .15s, box-shadow .15s; }
.uec .plantilla svg { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; }
.uec .plantilla:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--azul); }
.uec .plantilla[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--azul); background: #eef2ff; }

/* ---------- Cómo funciona ---------- */
.uec-info { position: relative; padding: clamp(56px, 7vw, 96px) 0; background: linear-gradient(160deg, #141a3a, #0b1026 60%, #160e36); color: rgba(255, 255, 255, .8); }
.uec-info__cab { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.uec-info__cab .antetitulo { color: var(--ambar, #ffb000); }
.uec-info h2 { color: #fff; }
.uec-pasos { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.uec-pasos li { flex: 1 1 230px; max-width: 290px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.uec-pasos__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; background: var(--g-cta, linear-gradient(135deg, #ffbf1f, #ff8a00)); color: #1a1200; font-weight: 800; font-family: var(--f-titulo, sans-serif); }
.uec-pasos h3 { margin: 0 0 6px; color: #fff; font-size: 1.05rem; }
.uec-pasos p { margin: 0; font-size: .92rem; }
.uec-info__cta { text-align: center; margin: 0; }
.uec-boton { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; }

@media (max-width: 600px) {
  .uec-wrap { padding: 0 14px; }
  .uec .mesa-billete { padding: 18px 14px 34px 30px; }
  .uec .cota-ancho { left: 30px; right: 14px; bottom: 8px; }
  .uec .cota-alto { top: 18px; bottom: 34px; left: 6px; }
  .uec .rango { grid-template-columns: 80px 1fr; }
  .uec .plantillas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Pestañas con el mismo aspecto que el resto de editores (norma de Jordi, 13-oct-2026): segmentado
   blanco con la activa en marino. */
.uec .pestanas { padding: 3px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--borde); }
.uec .pestanas [role="tab"] { min-height: 34px; padding: 5px 11px; border-radius: 8px; color: var(--texto-suave, #4d5478); font-size: .84rem; }
.uec .pestanas [role="tab"]:hover { background: rgba(20, 26, 58, .06); color: var(--marino); }
.uec .pestanas [role="tab"][aria-selected="true"] { background: var(--marino); color: #fff; box-shadow: none; }
.uec .pestanas [role="tab"]:focus-visible { outline: 2px solid var(--azul); }

/* Medidas y lote de 5 colores, bajo "Anverso y reverso" (14-oct-2026) */
.uec .lote-ficha { margin: 4px 0 0; padding: 16px 16px 14px; border: 2px solid var(--azul); border-radius: 14px; background: #fff; }
.uec .lote-titulo { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); text-align: center; }
.uec .lote-datos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uec .lote-datos li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(0, 0, 0, .05); }
.uec .lote-datos strong { font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.1; color: var(--azul); }
.uec .lote-datos span { font-size: .8rem; line-height: 1.25; margin-top: 3px; }
.uec .lote-colores { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.uec .lote-ficha-mini { display: flex; flex-direction: column; align-items: center; width: 17%; min-width: 48px; max-width: 72px; }
.uec .lote-ficha-mini svg { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.uec .lote-ficha-mini em { font-style: normal; font-size: .72rem; margin-top: 4px; }
.uec .lote-texto { margin: 0; text-align: center; font-size: .95rem; line-height: 1.45; }
.uec .lote-texto strong { color: var(--azul); }
.uec .lote-datos strong { white-space: nowrap; font-size: clamp(1.05rem, 3.6vw, 1.4rem); }

/* Cotas de 39 y 23 mm sobre la ficha (14-oct-2026) */
.uec .mesa-billete.con-cotas { padding-bottom: 104px; }
.uec .mesa-ficha .cota-ancho { display: none; }
.uec .cotas-ficha { pointer-events: none; }
.uec .cotas-ficha svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 640px) { .uec .mesa-billete.con-cotas { padding-bottom: 92px; } }

/* Tipografías de la ficha (14-oct-2026) */
@font-face { font-family: Cinzel; font-weight: 700; src: url(../fuentes/tipo-cinzel.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Montserrat; font-weight: 700; src: url(../fuentes/tipo-montserrat.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Oswald; font-weight: 600; src: url(../fuentes/tipo-oswald.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url(../fuentes/tipo-bebas.woff2) format("woff2"); font-display: swap; }
.uec .tipos { display: flex; flex-direction: column; gap: 8px; }
.uec .tipos-lista { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.uec .tipo-op { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 10px; cursor: pointer; border: 1.5px solid rgba(0, 0, 0, .12); }
.uec .tipo-op input { position: absolute; opacity: 0; pointer-events: none; }
.uec .tipo-op span { font-size: 21px; line-height: 1.15; white-space: nowrap; }
.uec .tipo-op em { font-style: normal; font-size: 11.5px; opacity: .8; }
.uec .tipo-op:has(input:checked) { border-color: var(--azul); background: #fff; }
.uec .tipo-op:has(input:focus-visible) { outline: 2px solid var(--azul); outline-offset: 2px; }
@media (max-width: 420px) { .uec .tipo-op span { font-size: 17px; } }
