/* =============================================================================
   PROLED3D V3 — Banner publicitario del editor (js/v3/publicidad.js)
   Formato de referencia: 970 × 90 px (Large Leaderboard). Va dentro del panel inferior del
   visor, entre la barra de estado del editor y la barra Despiece · Corte · Vista · Luz…
   Está en el flujo del layout (sin posición absoluta): cuando se oculta no deja espacio
   reservado y el visor recupera ese alto.
   ============================================================================= */

.v3pub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 970px) minmax(0, 1fr); align-items: center; column-gap: 14px; min-width: 0; width: 100%; margin: 0; padding: 0 8px; box-sizing: border-box; }
.v3pub[hidden] { display: none !important; }

/* La creatividad conserva siempre la proporción 970:90 y se achica con el ancho disponible. */
.v3pub-marco { position: relative; grid-column: 2; width: 100%; max-width: 970px; justify-self: center; min-width: 0; aspect-ratio: 970 / 90; container-type: inline-size;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--v3t-borde-fuerte, rgba(148, 163, 184, .24));
  background: var(--v3t-panel, #0e121a); box-shadow: var(--v3t-sombra-md, 0 10px 28px -10px rgba(0, 0, 0, .7)); }
.v3pub-imagen { display: block; width: 100%; height: 100%; }
.v3pub-imagen img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
a.v3pub-imagen { cursor: pointer; }
a.v3pub-imagen:focus-visible, .v3pub-boton:focus-visible, .v3pub-quitar:focus-visible { outline: 2px solid var(--v3t-acento-texto, #5cb4ff); outline-offset: -2px; }

.v3pub-etiqueta { position: absolute; left: 0; top: 0; z-index: 2; padding: 2px 7px; border-bottom-right-radius: 7px; pointer-events: none;
  background: rgba(0, 0, 0, .58); color: #fff; font: 600 10px/1.4 var(--v3t-fuente, system-ui); letter-spacing: .02em; }

/* Botón HTML de la campaña: sus medidas siguen al ancho del banner (cqw) para que escale junto con la imagen. */
.v3pub-boton { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; max-width: 34%; min-height: 0; height: 48%; padding: 0 2.3cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 700 clamp(9px, 1.75cqw, 17px)/1 var(--v3t-fuente, system-ui); text-decoration: none; cursor: pointer;
  background: var(--v3pub-fondo, #ff7a1a); color: var(--v3pub-color, #fff); border: var(--v3pub-borde-ancho, 0) solid var(--v3pub-borde-color, transparent);
  border-radius: calc(var(--v3pub-radio, 10) * 1cqw / 9.7); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .6); transition: filter var(--v3t-t, 160ms), transform var(--v3t-t, 160ms); }
.v3pub-boton:hover { filter: brightness(1.08); }
.v3pub-boton--contorno { background: transparent; color: var(--v3pub-color, #fff); border-width: max(1px, var(--v3pub-borde-ancho, 2px)); box-shadow: none; }
.v3pub-boton--izquierda { left: 3cqw; }
.v3pub-boton--derecha { right: 3cqw; }
.v3pub-boton--centro { left: 50%; transform: translate(-50%, -50%); }

/* «Quitar anuncios con PRO»: sólo para cuentas Free y sólo si entra al costado sin achicar el banner. */
.v3pub-quitar { grid-column: 3; justify-self: start; display: none; align-items: center; gap: 8px; max-width: 170px; padding: 8px 12px; border-radius: 10px; cursor: pointer; text-align: left;
  background: transparent; color: var(--v3t-texto-2, #a4b0c3); border: 1px solid var(--v3t-borde-fuerte, rgba(148, 163, 184, .24)); font: 600 12px/1.25 var(--v3t-fuente, system-ui); }
.v3pub-quitar:hover { color: var(--v3t-texto, #e8edf5); background: var(--v3t-panel-2, #141924); }
.v3pub-quitar svg { flex: 0 0 auto; width: 18px; height: 18px; }
.v3pub-quitar[hidden] { display: none !important; }
.v3pub[data-v3pub-ancho="amplio"] .v3pub-quitar:not([hidden]) { display: inline-flex; }

/* El editor tiene prioridad: en ventanas bajas el banner se muestra más chico. */
@media (max-height: 700px) { .v3pub { grid-template-columns: minmax(0, 1fr) minmax(0, 728px) minmax(0, 1fr); } }
@media (max-height: 560px) { .v3pub { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .v3pub-boton { transition: none; } }
@media print { .v3pub { display: none !important; } }
