
/* ============================================================
   BRAND KIT · asistente rediseñado
   Bloque unico. Sustituye a cualquier <style> anterior del kit.
   Medidas: popup 920 = izquierda 577 + borde 1 + derecha 342
   Flujo de 5 pasos. Cabecera opcion C: titulo + nombre + puntos
   ============================================================ */

.scrollingWrap#popupBrandKit .bk-shell,
.scrollingWrap#popupBrandKit .bk-shell * {
    box-sizing: border-box;
}

.scrollingWrap#popupBrandKit .bk-shell {
    position: relative;
    width: 920px !important;
    max-width: 920px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

@media (min-width: 1000px) {
    .scrollingWrap#popupBrandKit .bk-shell {
        min-width: 920px !important;
        flex: none !important;
    }
}

/* ── CABECERA · opcion C · 72px ────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 74px 16px 22px;
    border-bottom: 1px solid #ececf1;
    flex: none;
    height: 72px;
}

.scrollingWrap#popupBrandKit .bk-head-title {
    flex: none;
    font-size: 17px;
    font-weight: 800;
    color: #17171c;
    text-align: left;
    letter-spacing: -.01em;
    line-height: 22px;
    white-space: nowrap;
}

.scrollingWrap#popupBrandKit .bk-head-step {
    flex: none;
    font-size: 12.5px;
    font-weight: 700;
    color: #17171c;
    text-align: left;
    line-height: 22px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scrollingWrap#popupBrandKit .bk-head-step:empty {
    display: none;
}

.scrollingWrap#popupBrandKit .bk-head-fill {
    flex: 1 1 0;
    min-width: 0;
}

/* ── Indicador: puntos de 7px ──────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-steps {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    flex: none;
    height: 22px;
}

.scrollingWrap#popupBrandKit .bk-dot {
    width: 7px;
    height: 7px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: #e0e0e7;
    box-shadow: none !important;
    font-size: 0;
    line-height: 0;
    color: transparent;
    cursor: pointer;
    flex: none;
    position: relative;
    transition: background .18s;
}

/* Area de clic mayor que el punto, sin agrandarlo */
.scrollingWrap#popupBrandKit .bk-dot::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    top: -8px;
    bottom: -8px;
}

.scrollingWrap#popupBrandKit .bk-dot:hover {
    background: #c4c4cd;
}

.scrollingWrap#popupBrandKit .bk-dot.is-done {
    background: #2f57d8;
}

.scrollingWrap#popupBrandKit .bk-dot.is-done:hover {
    background: #1f3ea8;
}

.scrollingWrap#popupBrandKit .bk-dot.is-current,
.scrollingWrap#popupBrandKit .bk-dot.is-current:hover {
    background: #2f57d8;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock.bk-shell > .closeX {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dcdce2;
    background: #fff;
    z-index: 5;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock.bk-shell > .closeX:hover {
    background: #f6f6f9;
    border-color: #c4c4cd;
}

/* ── CUERPO · 488px ────────────────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-shell .col-redesign {
    flex: none;
    width: 920px;
    height: 488px;
    align-items: stretch !important;
    overflow: hidden;
}

.scrollingWrap#popupBrandKit .bk-shell .col-redesign .bloquer:first-of-type {
    flex: none !important;
    width: 577px !important;
    max-width: 577px !important;
    min-width: 577px !important;
    height: 488px;
    padding: 22px !important;
    border-right: 1px solid #ececf1;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left !important;
}

.scrollingWrap#popupBrandKit .bk-shell .col-redesign .bloquer:last-of-type {
    flex: none !important;
    width: 342px !important;
    max-width: 342px !important;
    min-width: 342px !important;
    height: 488px;
    padding: 22px !important;
    margin: 0 !important;
    background: #f8f8fb;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.scrollingWrap#popupBrandKit .bk-shell .col-redesign .bloquer:last-of-type img#img_brandkit {
    display: none !important;
}

/* ── Neutralizar el chasis viejo ───────────────────────────── */

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-first-step,
.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-second-step,
.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .title,
.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .bloquer:first-of-type .button,
.scrollingWrap#popupBrandKit .bk-danger-zone,
.scrollingWrap#popupBrandKit .delete-brand-btn {
    display: none !important;
}

/* ── Cabecera de paso · 62px ───────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-step-head {
    height: 62px;
    margin: 0 0 18px;
    overflow: hidden;
}

.scrollingWrap#popupBrandKit .bk-step-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #17171c;
    text-align: left;
    line-height: 1.3;
    margin: 0 0 5px;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .bloquer:first-of-type p {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #6f6f7a !important;
    text-align: left !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .bloquer:first-of-type p.error {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    margin: 4px 0 0 !important;
}

/* ── Etiquetas ─────────────────────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-label {
    display: block !important;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a8a95;
    text-align: left !important;
    line-height: 1.3;
    white-space: nowrap;
}

.scrollingWrap#popupBrandKit .bk-label-soft {
    display: inline !important;
    float: none !important;
    margin: 0 !important;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.scrollingWrap#popupBrandKit .bk-side-label {
    flex: none;
    width: 298px !important;
    align-self: stretch;
    height: 16px;
    line-height: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a8a95;
    text-align: left;
}

.scrollingWrap#popupBrandKit .bk-hint {
    font-size: 12px;
    line-height: 1.45;
    color: #8a8a95;
    text-align: left;
}

/* ── Campos ────────────────────────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 16px;
    align-items: stretch;
    width: 100%;
    max-width: 430px;
}

.scrollingWrap#popupBrandKit .bk-field-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.scrollingWrap#popupBrandKit .bk-field-row .formfield {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield {
    height: 44px !important;
    border: 1px solid #dcdce2 !important;
    border-radius: 10px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transition: border-color .15s, box-shadow .15s;
    flex:auto;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield:nth-of-type(2) {
    margin: 0 !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield:focus-within {
    border: 1px solid #2f57d8 !important;
    box-shadow: 0 0 0 3px #e8edff;
}

/* Nombre en negro al escribir, gris mientras siga el valor por defecto */
.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield input {
    /*font-size: 14.5px !important;
    font-weight: 600 !important;
    text-align: left !important;
    color: #17171c !important;*/
    transition: color .12s;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield input#nombreBrandKit.is-default {
    /*color: #a4a4b0 !important;
    font-weight: 500 !important;*/
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #otherDatabrandkit .scroll-form {
    height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 430px;
}

/* ── Caja de subida · 533 x 146 ────────────────────────────── */

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield-logo {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield-logo .drag-zone.bk-drop {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 146px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 1.5px solid #2f57d8 !important;
    border-radius: 12px !important;
    outline: none !important;
    background: #f9fafe !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    cursor: pointer;
    transition: background .15s;
}

.scrollingWrap#popupBrandKit .bk-drop:hover {
    background: #f2f5ff !important;
}

.scrollingWrap#popupBrandKit .bk-drop > span {
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    float: none !important;
    flex: none !important;
}

.scrollingWrap#popupBrandKit .bk-drop-plus {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8edff;
    color: #2f57d8;
    font-size: 20px;
    line-height: 34px !important;
    text-align: center;
    font-weight: 400;
    margin: 0 0 10px !important;
}

.scrollingWrap#popupBrandKit .bk-drop-label {
    font-size: 14.5px;
    font-weight: 700;
    color: #17171c;
    text-align: center;
    line-height: 19px !important;
    margin: 0 0 6px !important;
}

.scrollingWrap#popupBrandKit .bk-drop-hint {
    font-size: 12px;
    color: #8a8a95;
    text-align: center;
    line-height: 16px !important;
    margin: 0 !important;
}

/* ── Miniaturas subidas ────────────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-assets {
    display: flex !important;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
    justify-content: flex-start !important;
    width: 100%;
    margin: 0 !important;
    min-height: 66px;
}

.scrollingWrap#popupBrandKit .bk-assets-empty {
    font-size: 12.5px;
    color: #8a8a95;
    align-self: flex-start;
}

.scrollingWrap#popupBrandKit .bk-assets .brandkit-thumb-wrap {
    position: relative;
    width: 66px !important;
    height: 66px !important;
    border-radius: 9px;
    border: 1px solid #e6e6ec;
    background: #fff;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.scrollingWrap#popupBrandKit .bk-assets .brandkit-thumb {
    max-width: 84% !important;
    max-height: 84% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain !important;
    border-radius: 6px;
}

.scrollingWrap#popupBrandKit .bk-assets .brandkit-thumb-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 20, 30, .22);
    color: #55555f;
    font-size: 11px;
    line-height: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, color .15s;
}

.scrollingWrap#popupBrandKit .bk-assets .brandkit-thumb-wrap:hover .brandkit-thumb-delete {
    opacity: 1;
}

.scrollingWrap#popupBrandKit .bk-assets .brandkit-thumb-delete:hover {
    color: #c02a2a;
}

.scrollingWrap#popupBrandKit .bk-font-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e6e6ec;
    border-radius: 10px;
    padding: 9px 13px;
    background: #fff;
    flex: none;
}

.scrollingWrap#popupBrandKit .bk-font-aa {
    font-size: 17px;
    font-weight: 800;
    color: #17171c;
    line-height: 1;
}

.scrollingWrap#popupBrandKit .bk-font-name {
    font-size: 13px;
    font-weight: 600;
    color: #3d3d47;
}

/* ── Paleta de colores ─────────────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-colors-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 10px;
    width: 100%;
    max-width: 430px;
}

.scrollingWrap#popupBrandKit .bk-colors-count {
    font-size: 12px;
    color: #8a8a95;
    flex: none;
}

.scrollingWrap#popupBrandKit .bk-colors-empty {
    font-size: 13px;
    color: #8a8a95;
    align-self: center;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    width: 100%;
    min-height: 88px;
}

.grid-color-admin .containerColorChnageBrand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 66px;
    overflow: visible;
    position: relative !important;
    flex: none;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color .containerColorChnageBrand > button {
    width: 66px !important;
    height: 66px !important;
    border-radius: 11px !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: box-shadow .15s;
    box-shadow: 0 0 0 1px rgba(20, 20, 30, .1) inset !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color .containerColorChnageBrand > button:hover {
    box-shadow: 0 0 0 1px rgba(20, 20, 30, .1) inset, 0 3px 10px rgba(20, 20, 30, .16) !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color .containerColorChnageBrand > button.is-selected {
    box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px #2f57d8 !important;
}

.grid-color-admin .brandkit-color-hex {
    display: block;
    margin-top: 6px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 500;
    color: #6f6f7a;
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
}

.grid-color-admin .containerColorChnageBrand .brandkit-color-delete {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    color: #55555f;
    font-size: 12px;
    line-height: 21px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s, visibility .15s, color .15s;
    box-shadow: 0 2px 8px rgba(20, 20, 30, .24);
    z-index: 2;
}

.grid-color-admin .containerColorChnageBrand:hover .brandkit-color-delete,
.grid-color-admin .containerColorChnageBrand:focus-within .brandkit-color-delete {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.grid-color-admin .brandkit-color-delete:hover {
    color: #c02a2a;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color button.add-color {
    width: 66px !important;
    height: 66px !important;
    border-radius: 11px !important;
    border: 1.5px dashed #c4c4cd !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    flex: none;
    transition: border-color .15s, background .15s;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color button.add-color::before {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: #8a8a95;
    transition: color .15s;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color button.add-color:hover {
    border-color: #2f57d8 !important;
    background: #f9fafe !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color button.add-color:hover::before {
    color: #2f57d8;
}

/* ── Solo lectura ──────────────────────────────────────────── */

.scrollingWrap#popupBrandKit .grid-color-admin.is-readonly .brandkit-color-delete,
.scrollingWrap#popupBrandKit .grid-color-admin.is-readonly .add-color,
.scrollingWrap#popupBrandKit .bk-shell.is-readonly .bk-btn-main,
.scrollingWrap#popupBrandKit .bk-shell.is-readonly .bk-drop,
.scrollingWrap#popupBrandKit .bk-shell.is-readonly .brandkit-thumb-delete {
    display: none !important;
}

.scrollingWrap#popupBrandKit .grid-color-admin.is-readonly .containerColorChnageBrand > button {
    cursor: default;
    pointer-events: none;
}

.scrollingWrap#popupBrandKit .bk-shell.is-readonly .brand-info input {
    pointer-events: none;
    color: #6f6f7a !important;
}

.scrollingWrap#popupBrandKit .bk-readonly-bar {
    flex: none;
    padding: 10px 22px;
    background: #fff8e6;
    border-top: 1px solid #f0e2bd;
    font-size: 12.5px;
    font-weight: 600;
    color: #8a6a00;
    text-align: left;
}

/* ============================================================
   PREVISUALIZADOR · 298 x 330
   ============================================================ */

.scrollingWrap#popupBrandKit .bk-preview {
    flex: none;
    width: 298px;
    height: 330px;
    border-radius: 13px;
    overflow: hidden;
}

.scrollingWrap#popupBrandKit .bk-pv-card {
    width: 298px;
    height: 330px;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(20, 20, 30, .1);
    transition: background .2s;
}

.scrollingWrap#popupBrandKit .bk-pv-hero {
    flex: none;
    width: 298px;
    height: 118px;
    position: relative;
    overflow: visible;
    transition: background .2s;
}

.scrollingWrap#popupBrandKit .bk-pv-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.scrollingWrap#popupBrandKit .bk-pv-hero-empty {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 12px;
    font-family: montserrat, sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .72);
    cursor: pointer;
}

.scrollingWrap#popupBrandKit .bk-pv-hero-empty:hover {
    color: #fff;
}

/* Caja del logo: fondo blanco solo cuando es placeholder */
.scrollingWrap#popupBrandKit .bk-pv-logo {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 96px;
    height: 74px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 20, 30, .22);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3;
}

/* Con logo real: sin caja, sin borde, sin sombra rectangular */
.scrollingWrap#popupBrandKit .bk-pv-logo.has-img {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 2px 5px rgba(20, 20, 30, .3));
}

.scrollingWrap#popupBrandKit .bk-pv-logo img {
    max-width: 96px !important;
    max-height: 74px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    float: none !important;
    vertical-align: middle !important;
    object-fit: contain;
    display: block !important;
}

.scrollingWrap#popupBrandKit button.bk-pv-logo.is-empty {
    border: 1.5px dashed #b8b8c2;
    background: rgba(255, 255, 255, .94);
    font-family: montserrat, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #55555f;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 3px 12px rgba(20, 20, 30, .16);
    transition: border-color .15s, color .15s;
}

.scrollingWrap#popupBrandKit button.bk-pv-logo.is-empty:hover {
    border-color: #2f57d8;
    color: #2f57d8;
}

.scrollingWrap#popupBrandKit .bk-pv-body {
    flex: none;
    width: 298px;
    height: 212px;
    padding: 32px 16px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    overflow: hidden;
}

.scrollingWrap#popupBrandKit .bk-pv-copy {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.scrollingWrap#popupBrandKit .bk-pv-kitname {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
    line-height: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .12s, opacity .12s;
}

.scrollingWrap#popupBrandKit .bk-pv-kitname.is-default {
    opacity: .55;
    font-weight: 700;
}

.scrollingWrap#popupBrandKit .bk-pv-h {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
}

.scrollingWrap#popupBrandKit .bk-pv-p {
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.scrollingWrap#popupBrandKit .bk-pv-cta {
    align-self: flex-start;
    margin-top: 2px;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex: none;
}

.scrollingWrap#popupBrandKit .bk-pv-side {
    flex: none;
    width: 82px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scrollingWrap#popupBrandKit .bk-pv-thumb {
    width: 82px;
    height: 132px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(20, 20, 30, .16);
    flex: none;
    margin: 0;
}

.scrollingWrap#popupBrandKit button.bk-pv-thumb.is-empty {
    background: rgba(255, 255, 255, .55);
    border: 1.5px dashed rgba(23, 23, 28, .28);
    box-shadow: none;
    font-family: montserrat, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    padding: 6px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.scrollingWrap#popupBrandKit button.bk-pv-thumb.is-empty:hover {
    border-color: #2f57d8 !important;
    color: #2f57d8 !important;
}

/* Colores 3, 4 y 5: pastillas 20 x 8 */
.scrollingWrap#popupBrandKit .bk-pv-swatches {
    display: flex;
    gap: 5px;
    align-items: center;
    flex: none;
    width: 82px;
    height: 8px;
}

.scrollingWrap#popupBrandKit .bk-pv-swatches i {
    width: 20px;
    height: 8px;
    flex: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(20, 20, 30, .14) inset;
}

.scrollingWrap#popupBrandKit .bk-pv-swatches i.is-empty {
    background: transparent !important;
    box-shadow: 0 0 0 1px currentColor inset;
    opacity: .22;
}

/* ── Chips · 4 x 70,75px, sin contador ─────────────────────── */

.scrollingWrap#popupBrandKit .bk-side-tags {
    flex: none;
    display: flex;
    gap: 5px;
    width: 298px;
    height: 26px;
}

.scrollingWrap#popupBrandKit .bk-tag {
    flex: 1 1 0;
    min-width: 0;
    display: block !important;
    height: 26px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    border: 1px solid #e6e6ec;
    background: #fff;
    border-radius: 999px;
    font-family: montserrat, sans-serif;
    font-size: 9.5px !important;
    line-height: 24px !important;
    text-align: center !important;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color .15s, background .15s;
}

.scrollingWrap#popupBrandKit .bk-tag-name {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    float: none !important;
    transform: none !important;
    height: auto !important;
    font-size: 9.5px !important;
    font-weight: 800;
    line-height: 24px !important;
    letter-spacing: .02em;
    text-transform: uppercase;
    vertical-align: baseline !important;
    color: #a5a5b0;
}

.scrollingWrap#popupBrandKit .bk-tag.is-filled {
    border-color: #dcdce2;
}

.scrollingWrap#popupBrandKit .bk-tag.is-filled .bk-tag-name {
    color: #3d3d47;
}

.scrollingWrap#popupBrandKit .bk-tag.is-active {
    border-color: #2f57d8;
    background: #f6f7fd;
}

.scrollingWrap#popupBrandKit .bk-tag.is-active .bk-tag-name {
    color: #2f57d8;
}

.scrollingWrap#popupBrandKit .bk-tag:hover {
    border-color: #2f57d8;
}

.scrollingWrap#popupBrandKit .bk-side-note {
    flex: none;
    width: 298px;
    height: 35px;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.45;
    color: #8a8a95;
    text-align: left;
    word-break: break-word;
}

/* ── PIE · 74px ────────────────────────────────────────────── */

.scrollingWrap#popupBrandKit .bk-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 22px;
    border-top: 1px solid #ececf1;
    flex: none;
    height: 74px;
    background: #fff;
}

.scrollingWrap#popupBrandKit .bk-foot-left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 16px;
    height: 20px;
}

.scrollingWrap#popupBrandKit .bk-foot-left > button,
.scrollingWrap#popupBrandKit .bk-foot-link {
    border: 0;
    background: none;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    font-family: montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px !important;
    color: #6f6f7a;
    cursor: pointer;
    transition: color .15s;
}

.scrollingWrap#popupBrandKit .bk-foot-link:hover {
    color: #17171c;
}

.scrollingWrap#popupBrandKit .bk-btn-ghost,
.scrollingWrap#popupBrandKit .bk-btn-alt {
    height: 42px;
    padding: 0 17px;
    border: 1px solid #dcdce2;
    border-radius: 10px;
    background: #fff;
    font-family: montserrat, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #3d3d47;
    cursor: pointer;
    white-space: nowrap;
    flex: none;
    transition: background .15s, border-color .15s, color .15s;
}

.scrollingWrap#popupBrandKit .bk-btn-alt {
    height: 44px;
}

.scrollingWrap#popupBrandKit .bk-btn-ghost:hover {
    background: #f6f6f9;
}

.scrollingWrap#popupBrandKit .bk-btn-alt:hover {
    border-color: #2f57d8;
    color: #2f57d8;
    background: #f9fafe;
}

.scrollingWrap#popupBrandKit .bk-btn-diag {
    border-style: dashed !important;
    border-color: #c4c4cd !important;
    color: #8a8a95 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
}

.scrollingWrap#popupBrandKit .bk-btn-main {
    height: 42px;
    min-width: 118px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    font-family: montserrat, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    flex: none;
    background: transparent linear-gradient(280deg, #3533ad -10%, #e3097e 80%) 0 0 no-repeat padding-box;
    transition: filter .2s;
}

.scrollingWrap#popupBrandKit .bk-btn-main:hover {
    filter: brightness(1.08);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 999px) {
    .scrollingWrap#popupBrandKit .bk-shell {
        width: 96% !important;
        max-width: auto !important;
        min-width: auto !important;
    }
    .scrollingWrap#popupBrandKit .simplebar-content .bk-shell .col-redesign {
        width: 100%;
        height: auto;
        flex-direction: row !important;
    }
    .scrollingWrap#popupBrandKit .bk-shell .col-redesign .bloquer:first-of-type {
        border-right: 0;
        height: auto;
        overflow: visible;
        flex:auto !important;
        min-width: auto !important;
    }
    .scrollingWrap#popupBrandKit .re-design-doubleBlock .bk-shell .col-redesign .bloquer:last-of-type {
        display: block !important;
    }
}

@media(max-width: 768px){
	.scrollingWrap#popupBrandKit .bk-shell .col-redesign {
        flex-direction: column !important;
    }
	.scrollingWrap#popupBrandKit .re-design-doubleBlock.bk-shell .col-redesign .bloquer:last-of-type {
        display: none !important;
    }
}

@media (max-width: 580px) {
	.scrollingWrap#popupBrandKit .bk-shell {
        width: 100% !important;
    }
    .scrollingWrap#popupBrandKit .bk-head {
        padding: 14px 58px 14px 18px;
        height: auto;
        min-height: 66px;
        gap: 10px;
    }
    .scrollingWrap#popupBrandKit .bk-head-title { font-size: 16px; }
    .scrollingWrap#popupBrandKit .bk-head-step { max-width: 110px; }
    .scrollingWrap#popupBrandKit .bk-steps { padding: 0; gap: 5px; }
    .scrollingWrap#popupBrandKit .bk-dot { width: 6px; height: 6px; }
    .scrollingWrap#popupBrandKit .re-design-doubleBlock.bk-shell > .closeX { top: 16px; right: 16px; }
    .scrollingWrap#popupBrandKit .bk-shell .col-redesign .bloquer:first-of-type { padding: 20px 18px !important; }
    .scrollingWrap#popupBrandKit .bk-foot {
        padding: 14px 18px;
        height: auto;
        position: sticky;
        bottom: 0;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, .12);
    }
    .scrollingWrap#popupBrandKit .bk-foot-left { flex: none; }
    .scrollingWrap#popupBrandKit .bk-btn-main,
    .scrollingWrap#popupBrandKit .bk-btn-ghost { flex: 1 1 0; min-width: 0; padding: 0 12px; }
    .scrollingWrap#popupBrandKit .bk-btn-diag { display: none !important; }
    .scrollingWrap#popupBrandKit .bk-field-row { flex-direction: column; }
    .scrollingWrap#popupBrandKit .bk-btn-alt { width: 100%; }
    .scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color .containerColorChnageBrand > button,
    .scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign #colorsbrandkit .grid-color button.add-color {
        width: 60px !important;
        height: 60px !important;
    }
    .grid-color-admin .containerColorChnageBrand { width: 60px; }
}

/* El texto de los puntos no debe verse: la regla base pierde contra button */
.scrollingWrap#popupBrandKit .bk-head .bk-dot {
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* Red de seguridad: si .bk-head-txt sigue en el HTML, que no apile en vertical */
.scrollingWrap#popupBrandKit .bk-head-txt {
    display: contents !important;
}



#bk-side-note { display: none; }

.scrollingWrap#popupBrandKit .bk-preview,
.scrollingWrap#popupBrandKit .bk-pv-card {
    height: 356px;
}

.scrollingWrap#popupBrandKit .bk-pv-body {
    height: 238px;
}

.scrollingWrap#popupBrandKit .bk-pv-thumb {
    height: 142px;
}



.scrollingWrap#popupBrandKit .bk-pv-swatches {
    height: 24px;
}

.scrollingWrap#popupBrandKit .bk-pv-swatches i {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.scrollingWrap#popupBrandKit .bk-pv-thumb {
    height: 116px;
}



.scrollingWrap#popupBrandKit .bk-pv-swatches {
    display: flex;
    gap: 8px;
}

.scrollingWrap#popupBrandKit .bk-pv-swatches i.is-empty {
    width: 24px !important;
    height: 24px !important;
    border-radius: 5px !important;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 6px, rgba(255, 255, 255, .05) 6px 12px) !important;
    border: 1.5px dashed rgba(255, 255, 255, .55) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08) !important;
    opacity: 1 !important;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.scrollingWrap#popupBrandKit .bk-pv-swatches i.is-empty:hover {
    border-color: #fff !important;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 6px, rgba(255, 255, 255, .08) 6px 12px) !important;
}



#suscribete_div span.text-star p, #suscribete_div2 span.text-star p, #suscribete_div_mkt span.text-star p {
    line-height: 18px;
}


.folderTip {
    min-width: min(399px, 100%) !important;
}

@media (max-width: 640px) {
    header .leftSide .space-hamburguer {
        display: flex !important;
    }
}


.content-sub-cats .fieldTemplates .brand_template, .content-sub-cats .fieldTemplates .team-floater {
    position: absolute;
    z-index: 9 !important;
}



body .dropdownExample .dropbtn {

    z-index: 1 !important;
}

body .title-slider .flex-title p {
    width: calc(100% - 100px) !important;
}

/* ── Reordenar colores por arrastre ────────────────────────── */

.scrollingWrap#popupBrandKit .grid-color-admin .containerColorChnageBrand[draggable="true"] {
    cursor: grab;
}

.scrollingWrap#popupBrandKit .grid-color-admin .containerColorChnageBrand.is-dragging {
    opacity: .4;
    cursor: grabbing;
}

.scrollingWrap#popupBrandKit .grid-color-admin.is-reordering .containerColorChnageBrand .brandkit-color-delete {
    opacity: 0 !important;
    visibility: hidden !important;
}

.scrollingWrap#popupBrandKit .grid-color-admin .containerColorChnageBrand.is-drop-before::before,
.scrollingWrap#popupBrandKit .grid-color-admin .containerColorChnageBrand.is-drop-after::before {
    content: "";
    position: absolute;
    top: -3px;
    width: 3px;
    height: 72px;
    border-radius: 2px;
    background: #2f57d8;
    z-index: 4;
}

.scrollingWrap#popupBrandKit .grid-color-admin .containerColorChnageBrand.is-drop-before::before {
    left: -7px;
}

.scrollingWrap#popupBrandKit .grid-color-admin .containerColorChnageBrand.is-drop-after::before {
    right: -7px;
}

.scrollingWrap#popupBrandKit .bk-colors-hint {
    font-size: 11.5px;
    color: #a5a5b0;
    margin: 10px 0 0;
    text-align: left;
}



.sidebar .sidePanel {
    background-color: #ffffff !important;
}

#replaceTheme_MSG.re-design-forma-popup #notificacion_img {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='60' viewBox='0 0 120 80' fill='none'%3E%3Crect x='10' y='22' width='30' height='36' rx='4' stroke='%237b6df0' stroke-width='2.4'%3E%3C/rect%3E%3Cpath d='M17 32h16M17 39h11' stroke='%23c8c2f2' stroke-width='2.2' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M48 40h16' stroke='%237b6df0' stroke-width='2.6' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M59 34.5 65.5 40 59 45.5' stroke='%237b6df0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M74 30a4 4 0 0 1 4-4h9l4 5h17a4 4 0 0 1 4 4v19a4 4 0 0 1-4 4H78a4 4 0 0 1-4-4z' stroke='%233f2fb8' stroke-width='2.6'%3E%3C/path%3E%3C/svg%3E") !important;
}

#NewPayments #suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box .box .top-box .price-input-number .number-input {
display:none !important;
}








.btn-accept-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 32px;
  margin: 0 0 24px;
  border: none;
  border-radius: 999px;
  background: #E5007E;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.btn-accept-invitation:hover,
.btn-accept-invitation:focus-visible {
  background: #3B2FA0;
  color: #fff;
  text-decoration: none;
}

.btn-accept-invitation:active {
  background: #1F1466;
}

.btn-accept-invitation[disabled],
.btn-accept-invitation.is-disabled {
  background: #C9C6E6;
  pointer-events: none;
}







.title-selector {
    justify-content: flex-start !important;
    gap: 10px !important;
}

.title-selector > .selector:first-of-type {
    margin-left: auto !important;
}


.title-selector .selector {
    position: relative;
    min-width: 207px !important;
}



.userBlock .content-userblock .userPadding.user-btns-block .newBtnStyle span.icon.icon-menu {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS13aWR0aD0iMS44IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0zIDEwLjVMMTIgM2w5IDcuNVYyMGExIDEgMCAwIDEtMSAxaC01di02YTEgMSAwIDAgMC0xLTFoLTRhMSAxIDAgMCAwLTEgMXY2SDRhMSAxIDAgMCAxLTEtMVYxMC41eiIvPjwvc3ZnPg==");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}



.ai-categories2 .textarea-button {
    max-width: calc(600px - 2px) !important;
    width: calc(90% - 2px);
    height: 85px !important;
}

@media (max-width: 800px) {
    .ai-categories2 .textarea-button {
        height: 125px !important;
    }
}




.ai-categories2 {
        min-height: 205px !important;
}


@media (hover: none) {
    .item-brand-kit .dots-brand-hover,
    .item-brand-kit .dots-brand {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;   /* o flex, según tu layout */
    }
}



#brandKitCard .logo img
{

        display: block !important;
}


/* ── Efecto de error en el campo de nombre del brand kit ── */
.formfield.is-error {
    border: 1.5px solid #d63b3b !important;
    box-shadow: 0 0 0 3px rgba(214, 59, 59, .14) !important;
    animation: shake .64s ease !important;
    border-radius: 8px;
}

/* El input de dentro no debe tener borde propio (evita el doble marco) */
.formfield.is-error input {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .formfield.is-error { animation: none !important; }
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield + .error
{
    color: #c62525 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}





@keyframes chatToastFlashAnim {
	0%   { box-shadow: 0 0 0 3px rgba(53,51,173,.5); }
	100% { box-shadow: 0 0 0 0 rgba(53,51,173,0); }
}
.toast.chat-toast-flash {
	animation: chatToastFlashAnim 1.1s ease-out;
}

.pagination-container .pager-nav #notes_design
{
    height: 388px !important;
}

.pagination-container .pager-nav #notes_design .closeX, .pagination-container .pager-nav #layers_design .closeX
{
top: -15px;
right: -35px;

}



#ActivateLayers.btn-notes:before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: middle;
	background-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2029.338%2029.338'><path%20fill='%23555555'%20d='M27.184,1.605H2.156C0.967,1.605,0,2.572,0,3.76v17.572c0,1.188,0.967,2.155,2.156,2.155h13.543l5.057,3.777c0.414,0.31,0.842,0.468,1.268,0.468c0.789,0,1.639-0.602,1.637-1.923v-2.322h3.523c1.188,0,2.154-0.967,2.154-2.155V3.76C29.338,2.572,28.371,1.605,27.184,1.605z%20M27.34,21.332c0,0.085-0.068,0.155-0.154,0.155h-5.523v3.955l-5.297-3.956H2.156c-0.086,0-0.154-0.07-0.154-0.155V3.759c0-0.085,0.068-0.155,0.154-0.155v0.001h25.029c0.086,0,0.154,0.07,0.154,0.155L27.34,21.332L27.34,21.332z%20M5.505,10.792h4.334v4.333H5.505C5.505,15.125,5.505,10.792,5.505,10.792z%20M12.505,10.792h4.334v4.333h-4.334V10.792z%20M19.505,10.792h4.334v4.333h-4.334V10.792z'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}


.redimension#redimension_menu2 .more-buttons .box-tooltip a#categoria_copy_upload_comment span {
	background-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2029.338%2029.338'><path%20fill='%23000000'%20d='M27.184,1.605H2.156C0.967,1.605,0,2.572,0,3.76v17.572c0,1.188,0.967,2.155,2.156,2.155h13.543l5.057,3.777c0.414,0.31,0.842,0.468,1.268,0.468c0.789,0,1.639-0.602,1.637-1.923v-2.322h3.523c1.188,0,2.154-0.967,2.154-2.155V3.76C29.338,2.572,28.371,1.605,27.184,1.605z%20M27.34,21.332c0,0.085-0.068,0.155-0.154,0.155h-5.523v3.955l-5.297-3.956H2.156c-0.086,0-0.154-0.07-0.154-0.155V3.759c0-0.085,0.068-0.155,0.154-0.155v0.001h25.029c0.086,0,0.154,0.07,0.154,0.155L27.34,21.332L27.34,21.332z%20M5.505,10.792h4.334v4.333H5.505C5.505,15.125,5.505,10.792,5.505,10.792z%20M12.505,10.792h4.334v4.333h-4.334V10.792z%20M19.505,10.792h4.334v4.333h-4.334V10.792z'/></svg>");
}




.chat-layer-thumb {
	width: 120px;
	height: 60px;
	margin: 4px 0 8px;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 6px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #f4f4f5;
	transition: border-color .15s;
}
.chat-layer-thumb:hover { border-color: rgba(53,51,173,.6); }
.chat-layer-thumb.missing {
	background-image: none;
	opacity: .5;
	cursor: default;
}

.chat-preview-capa {
	width: 120px;
	height: 60px;
	flex: 0 0 auto;
	align-self: flex-start;
	margin: 0 0 10px 0;
	border: 1px solid rgba(53,51,173,.4);
	border-radius: 6px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #f4f4f5;
	box-sizing: border-box;
}


.pagination-container .pager-nav #notes_design .module-chat .chat-comments .user .name-comments p {
	overflow-wrap: break-word;
	word-break: break-word;
	min-width: 0;
}


/* chat */
.pagination-container .pager-nav #notes_design .module-chat .chat-comments .user.deleted {
	opacity: .4;
}

/*  Compartir */
.select-invite-share .option-window { display: none; }
.select-invite-share.open .option-window { display: block !important; }


.select-invite-share .option-window { display: none !important; }
.select-invite-share.open .option-window { display: block !important; }

.select-invite-share.open .option-window {
    visibility: visible !important;
    opacity: 1 !important;
}


.pagination-container .pager-nav #notes_design .module-chat .chat-comments .user .name-comments p,.pagination-container .pager-nav #notes_design .module-chat .chat-comments .user .name-comments p,
.pagination-container .pager-nav #notes_design .module-chat .chat-comments .user .name {
	user-select: text;
	-webkit-user-select: text;
	cursor: text;
}   



.pagination-container .pager-nav #notes_design .module-chat .chat-comments .user .name button {
	background: #e0e0e3 !important;
    padding:3px !important;
	color: #333;
}



.select-invite-share > button { width: 100%; }

.box-fila-select .initial-mail { flex-shrink: 0; }

.box-fila-select .name-mail { min-width: 0; }
.box-fila-select .name-mail p,
.box-fila-select .name-mail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


#groupFolder .scrollingBox .tooltipBox.folderTip:has(.share-system-folder) {
    max-width: 555px !important;
}

/*se cortaba Kit de marca en español */
.sidebar .sidebarMenu .sideBarNav button .name, .sidebar .sidebarMenu .sideBarNav .dots .name {

    text-overflow: ellipsis;
    overflow: visible !important;
}

/*popup de pagos 3 columnas*/



#suscriptionPremium3.plans-new-tooltip.scrollingWrap #NewPayments #suscriptionPremium2 .scrollingBox .simplebar-content .wrap-all.only-2-paymentsREAL .box.blue-gradient:not(#box_pro) .color-background
 {
    background: #ffffff !important;
}

/* boton de capas/layers de barra para que no se salte a 2 lineas */
.toolsWork #tooltip2 span.tooltip2_span {
    
    white-space: nowrap;
}
    

@media (min-width: 1096px)  {
    #NewPayments #suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    #suscriptionPremium3.plans-new-tooltip.scrollingWrap #NewPayments #suscriptionPremium2 .scrollingBox .simplebar-content .wrap-all.only-2-payments .grid-box .box .top-box .btns-select button
{

 margin-top: 0px !important;
}




#suscriptionPremium3.plans-new-tooltip.scrollingWrap #NewPayments #suscriptionPremium2 .scrollingBox .simplebar-content .wrap-all.only-2-paymentsREAL .grid-box .box .top-box .btns-select button,    
#NewPayments #suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box .box:not(#box_pro) .top-box .btns-select .btn-ppal.fill {

    margin-top: 0px !important;
}


#NewPayments#NewPayments
#suscriptionPremium2#suscriptionPremium2.payment_redesign
.double-pages.pasarela
.col:first-of-type.distribute-pay-info
.top-popup-pay
.new-plan-teams
.grid-box
.box
.top-box h2 {
    min-height: 80px !important;
}


}



/* Popup de pagos lo ponermos en 3 columnas que se quedaba teams colgado y generaba un gap */
@media (min-width: 1001px)  {
    #NewPayments #suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    #suscriptionPremium3.plans-new-tooltip.scrollingWrap #NewPayments #suscriptionPremium2 .scrollingBox .simplebar-content .wrap-all.only-2-payments .grid-box .box .top-box .btns-select button
{

 margin-top: 0px !important;
}




#suscriptionPremium3.plans-new-tooltip.scrollingWrap #NewPayments #suscriptionPremium2 .scrollingBox .simplebar-content .wrap-all.only-2-paymentsREAL .grid-box .box .top-box .btns-select button,    
#NewPayments #suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box .box:not(#box_pro) .top-box .btns-select .btn-ppal.fill {

    margin-top: 0px !important;
}



#NewPayments#NewPayments #suscriptionPremium2#suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box .box .top-box h2 {
    min-height: 112px !important;
}


}








}
#NewPayments #suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box .box .top-box .price-month .saving-text, #NewPayments #suscriptionPremium2.payment_redesign .double-pages.pasarela .col:first-of-type.distribute-pay-info .top-popup-pay .new-plan-teams .grid-box .box .top-box .price-year .saving-text {

    margin-top: 7px !important;
}




/* ===== Panel de capas — CSS definitivo ===== */

/* outer: wrapper posicional, NO scrollea (aquí vive el botón .closeX) */
#layers_design {
    position: relative;
    box-sizing: border-box;
}

/* inner: el scroller real y root del IntersectionObserver */
#layers_design_inside {
    height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.layers-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.layer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    height: 56px;
    margin-bottom: 8px;
    padding: 0 12px;
    background: #dcdfe4;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
    touch-action: pan-y;
}

.layer-row.is-selected  { border-color: #2196f3; }
.layer-row.layer-hidden { opacity: .45; }
.layer-row.layer-locked { cursor: pointer; }

.layer-handle {
    flex: 0 0 auto;
    display: flex;
    cursor: grab;
    fill: #8a8f98;
    touch-action: none;
}
.layer-handle:active { cursor: grabbing; }

/* candado/rayado del fondo: usa stroke (color), no fill */
.layer-handle-off {
    fill: none;
    color: #868e96;
    cursor: pointer;
}

/* distintivo rayado de la imagen de fondo (inerte al click) */
.layer-bg-badge {
    flex: 0 0 auto;
    display: flex;
    color: #868e96;
    fill: none;
    pointer-events: none;
}

.layer-row-text .layer-thumb { height: 28px; }


.layer-thumb {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 50px;
    object-fit: contain;
    pointer-events: none;
}

.layer-row.is-dragging {
    position: fixed;
    z-index: 9999;
    margin: 0;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    opacity: .95;
}

.layer-placeholder {
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(0,0,0,.06);
    list-style: none;
}

.ventana-emergente ul li a#btnLayers span
{


  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3Csvg fill='%23000000' version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 512.001 512.001' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M512,256.001c0-10.821-6.012-20.551-15.694-25.398l-38.122-19.061l38.122-19.06c0.001-0.001,0.004-0.002,0.004-0.002 c9.68-4.845,15.692-14.576,15.692-25.397c0-10.819-6.013-20.55-15.694-25.397L281.09,34.08 c-15.712-7.849-34.47-7.849-50.185,0.001L15.691,141.691C6.013,146.534,0,156.264,0,167.084c0,10.821,6.012,20.551,15.694,25.398 l38.121,19.06l-38.126,19.063C6.012,235.45,0,245.18,0,256.001s6.012,20.551,15.694,25.397l38.121,19.061l-38.118,19.059 C6.02,324.353,0.004,334.08,0,344.902c-0.004,10.828,6.008,20.564,15.694,25.412l215.215,107.608 c7.856,3.925,16.471,5.886,25.09,5.886c8.619,0,17.238-1.963,25.095-5.887l215.215-107.608 c9.682-4.845,15.695-14.582,15.691-25.41c-0.004-10.822-6.02-20.549-15.694-25.381l-38.122-19.061l38.126-19.063 C505.988,276.552,512,266.822,512,256.001z M26.225,171.431c-2.339-1.171-2.687-3.226-2.687-4.346s0.35-3.175,2.683-4.343 L241.429,55.138c4.563-2.28,9.568-3.418,14.573-3.418c5.003,0,10.007,1.139,14.567,3.417L485.776,162.74 c2.337,1.17,2.687,3.225,2.687,4.345s-0.348,3.175-2.687,4.346L270.572,279.032c-9.125,4.558-20.019,4.558-29.139,0.001 L26.225,171.431z M485.783,340.575c2.33,1.164,2.679,3.215,2.679,4.336c0.001,1.123-0.348,3.182-2.683,4.35L270.571,456.865 c-9.125,4.558-20.019,4.559-29.139,0.001L26.225,349.262c-2.339-1.171-2.688-3.229-2.687-4.352c0-1.119,0.348-3.171,2.683-4.337 l53.912-26.956l150.776,75.387c7.856,3.925,16.471,5.886,25.089,5.886c8.619,0,17.238-1.963,25.095-5.887l150.772-75.386 L485.783,340.575z M485.778,260.345L270.571,367.949c-9.125,4.558-20.019,4.559-29.139,0.001L26.225,260.347 c-2.339-1.17-2.687-3.225-2.687-4.345c0-1.122,0.348-3.175,2.683-4.344l53.912-26.956l150.776,75.387 c7.855,3.925,16.472,5.886,25.089,5.886c8.617,0,17.237-1.962,25.094-5.888l150.774-75.386l53.908,26.954 c2.339,1.171,2.687,3.225,2.687,4.346C488.462,257.121,488.113,259.176,485.778,260.345z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

}

@media (min-width: 1641px) {
    body .workspace #toolsWork.toolsWork {
        max-width: 1100px !important;
    }
}



@media (min-width: 1750px) {
    body .workspace #toolsWork.toolsWork {
        max-width: 1180px !important;
    }
}




.ventana-emergente ul li a#btnComment span,.toolsWork span.svg-path#tooltipComment
{
  background-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2029.338%2029.338'><path%20fill='%23000000'%20d='M27.184,1.605H2.156C0.967,1.605,0,2.572,0,3.76v17.572c0,1.188,0.967,2.155,2.156,2.155h13.543l5.057,3.777c0.414,0.31,0.842,0.468,1.268,0.468c0.789,0,1.639-0.602,1.637-1.923v-2.322h3.523c1.188,0,2.154-0.967,2.154-2.155V3.76C29.338,2.572,28.371,1.605,27.184,1.605z%20M27.34,21.332c0,0.085-0.068,0.155-0.154,0.155h-5.523v3.955l-5.297-3.956H2.156c-0.086,0-0.154-0.07-0.154-0.155V3.759c0-0.085,0.068-0.155,0.154-0.155v0.001h25.029c0.086,0,0.154,0.07,0.154,0.155L27.34,21.332L27.34,21.332z%20M5.505,10.792h4.334v4.333H5.505C5.505,15.125,5.505,10.792,5.505,10.792z%20M12.505,10.792h4.334v4.333h-4.334V10.792z%20M19.505,10.792h4.334v4.333h-4.334V10.792z'/></svg>");

}



/*codigo nuevo — máxima prioridad, gana a .pager-nav button:not(.closeX)*/
#layers_design .pager-nav button.layer-menu-btn,
#layers_design_inside button.layer-menu-btn:not(.closeX) {
    border: 0 !important;
    background: transparent !important;
    height: 28px !important;
    padding: 0 !important;
    width: 28px;
    border-radius: 6px;
    fill: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity .12s ease, background .12s ease;
    -webkit-appearance: none;
    appearance: none;
}

#layers_design_inside .layer-row:hover button.layer-menu-btn {
    opacity: 1 !important;
    pointer-events: auto;
}

#layers_design_inside button.layer-menu-btn:hover {
    background: rgba(0,0,0,.08) !important;
}

@media (hover: none), (pointer: coarse) {
    #layers_design_inside button.layer-menu-btn {
        opacity: 1 !important;
        pointer-events: auto;
    }
}

#layers_design_inside .layer-menu-btn svg {
    width: 20px;
    height: 20px;
}

/*codigo nuevo*/
#layers_design_inside .layer-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

#layers_design_inside .layer-menu-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
    fill: #495057;
}


/*codigo nuevo*/
#layers_design_inside .layer-menu-btn {
    width: 32px !important;
    height: 32px !important;
}



/*codigo nuevo*/
#layers_design_inside .layer-row .layer-menu-btn {
    width: 32px !important;
    height: 32px !important;
}

#layers_design_inside .layer-row .layer-menu-btn svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    display: block !important;
    flex: 0 0 auto !important;   /* que el flex del botón no lo estire */
    fill: #495057 !important;
}

/*codigo nuevo*/
#layers_design .pagination-container .pager-nav button.layer-menu-btn:not(.closeX),
#layers_design_inside button.layer-menu-btn {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
}

/*codigo nuevo — botón de 3 puntos: 32px, centrado, gana al height heredado*/
#layers_design .pager-nav button.layer-menu-btn:not(.closeX),
#layers_design_inside button.layer-menu-btn {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
}

#layers_design_inside button.layer-menu-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    margin: auto !important;
    flex: 0 0 auto !important;
    fill: #495057 !important;
}

/* handle de arrastrar: 32px de alto, icono centrado */
#layers_design_inside .layer-row .layer-handle {
    align-self: center !important;
    height: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px;
}


/*codigo nuevo*/
#layers_design_inside button.layer-menu-btn svg {
    width: 22px !important;
    height: 22px !important;
}



#layers_design_inside button.layer-menu-btn::before,
#layers_design_inside button.layer-menu-btn::after {
    content: none !important;
    display: none !important;
}


/*codigo nuevo*/
#layers_design_inside .layer-handle svg {
    width: 20px !important;
    height: 20px !important;
}


.errorBrandkit
{
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
}



.filas.brandkitcolors-flex, .filas.brandkitlogo-flex {
    margin: 15px auto;
    padding: 6px 14px;
    box-sizing: border-box;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    height: 52px;
    width: 100%;
    background: #f4f4f7;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    font-weight: 600;
    color: #000;
    font-size: 14px;
    cursor: pointer;
}

.filas.brandkitcolors-flex span, .filas.brandkitlogo-flex span{
    margin:0;
}


.filas.brandkitcolors-flex:hover, .filas.brandkitlogo-flex:hover{
	background:#f6f5fe;
}

.filas.aicolors-flex,
.filas.brandkit-flex {
    cursor: pointer;
    transition: color .15s ease;
}
.filas.aicolors-flex:hover,
.filas.brandkit-flex:hover {
    color: #000;
}


.filas.brandkitcolors-flex:before {
    content: '';
    display: block;
    height: 20px;
    width: 20px;
    margin: 0 14px 0 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Outline' xmlns='http://www.w3.org/2000/svg' width='23' height='23' viewBox='0 0 23 23'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; %7D .cls-2 %7B fill: %23fff; %7D %3C/style%3E%3C/defs%3E%3Cpath d='M11.51,3.94c2.82,0,5.32,1.27,6.85,3.48,1.62,2.34,1.95,5.32.88,8.17-.71,1.9-2.51,3.82-4.59,3.82-.5,0-1-.11-1.49-.33-.55-.24-1.06-.67-1.05-2.11,0-.16.02-.38.04-.61.09-.92.22-2.32-.8-3.37-.69-.7-1.43-1.03-2.33-1.03-.86,0-1.79.3-3.32.89-.19.07-.39.11-.58.11-.36,0-1.01-.12-1.26-.96-.57-1.89.37-4.13,1.48-5.41,1.3-1.49,3.52-2.53,5.64-2.65.18,0,.36-.01.53-.01M11.51,2.64c-.2,0-.4,0-.6.02-2.39.13-4.97,1.28-6.55,3.09-1.45,1.66-2.44,4.35-1.74,6.64.39,1.28,1.43,1.88,2.5,1.88.35,0,.71-.07,1.05-.2,1.33-.51,2.19-.8,2.86-.8.55,0,.97.2,1.4.64.79.81.39,2.13.39,3.06,0,1.26.3,2.63,1.83,3.3.69.3,1.36.44,2.02.44,2.62,0,4.88-2.2,5.8-4.67,2.48-6.64-1.93-13.41-8.95-13.41h0Z'/%3E%3Cg%3E%3Cpath d='M17.87,21.28c-.27,0-.51-.17-.6-.43-.4-1.19-.74-1.53-1.92-1.93-.26-.09-.43-.33-.43-.6s.17-.52.43-.6c1.19-.4,1.53-.74,1.92-1.92.09-.26.33-.43.6-.43s.51.17.6.43c.4,1.19.74,1.53,1.92,1.93.26.08.43.33.43.6s-.18.52-.44.6c-1.18.4-1.53.74-1.92,1.92-.09.26-.33.43-.6.43Z'/%3E%3Cpath class='cls-2' d='M17.87,15.86c.05,0,.11.03.13.09.45,1.34.9,1.79,2.24,2.24.12.04.12.21,0,.25-1.34.45-1.79.9-2.24,2.24-.02.06-.07.09-.13.09s-.11-.03-.13-.09c-.45-1.34-.9-1.79-2.24-2.24-.12-.04-.12-.21,0-.25,1.34-.45,1.79-.9,2.24-2.24.02-.06.07-.09.13-.09M17.87,14.86c-.49,0-.92.31-1.08.77-.35,1.04-.57,1.26-1.61,1.61-.46.15-.78.59-.78,1.08s.31.92.78,1.08c1.04.35,1.26.57,1.61,1.61.16.46.59.78,1.08.78s.92-.31,1.08-.78c.35-1.04.57-1.26,1.61-1.61.46-.15.78-.59.78-1.08s-.31-.92-.78-1.08c-1.04-.35-1.26-.57-1.61-1.61-.15-.46-.59-.78-1.08-.78h0Z'/%3E%3C/g%3E%3Cpath d='M16.23,16.59c-.81.27-1.09.55-1.36,1.36-.02.07-.13.07-.15,0-.27-.81-.55-1.09-1.36-1.36-.07-.02-.07-.13,0-.15.81-.27,1.09-.55,1.36-1.36.02-.07.13-.07.15,0,.27.81.55,1.09,1.36,1.36.07.02.07.13,0,.15Z'/%3E%3Cg%3E%3Cpath d='M3.53,4.31c-.15.01-.27.13-.29.29v.86c0,.16.13.29.29.29.16,0,.29-.13.29-.29v-.72c0-.29-.14-.43-.29-.43Z'/%3E%3Cpath d='M3.53,2.16c-.15.01-.27.13-.29.29v.86c0,.16.13.29.29.29.16,0,.29-.13.29-.29v-.86c-.01-.15-.13-.27-.29-.29Z'/%3E%3Cpath d='M5.11,3.74h-.86c-.16,0-.29.13-.29.29s.13.29.29.29h.86c.16,0,.29-.13.29-.29s-.13-.29-.29-.29h0Z'/%3E%3Cpath d='M2.81,3.74h-.88c-.16,0-.29.13-.29.29,0,.16.13.29.29.29h.86c.16,0,.29-.13.29-.29,0-.16-.13-.29-.29-.29h.01Z'/%3E%3C/g%3E%3Cg%3E%3Cpath d='M8.35,19.18c-.12.01-.22.11-.23.23v.69c0,.13.1.23.23.23.13,0,.23-.1.23-.23v-.57c0-.23-.11-.34-.23-.34Z'/%3E%3Cpath d='M8.35,17.46c-.12.01-.22.11-.23.23v.69c0,.13.1.23.23.23.13,0,.23-.1.23-.23v-.69c-.01-.12-.11-.22-.23-.23Z'/%3E%3Cpath d='M9.61,18.72h-.69c-.13,0-.23.1-.23.23s.1.23.23.23h.69c.13,0,.23-.1.23-.23s-.1-.23-.23-.23h0Z'/%3E%3Cpath d='M7.77,18.72h-.7c-.13,0-.23.1-.23.23,0,.13.1.23.23.23h.69c.13,0,.23-.1.23-.23,0-.13-.1-.23-.23-.23h.01Z'/%3E%3C/g%3E%3Ccircle cx='10.08' cy='6.5' r='1.4'/%3E%3Ccircle cx='13.9' cy='6.88' r='1.4'/%3E%3Ccircle cx='16.7' cy='9.43' r='1.4'/%3E%3Ccircle cx='17.29' cy='13.21' r='1.4'/%3E%3Crect class='cls-1' width='23' height='23'/%3E%3C/svg%3E");

}


.filas.brandkitlogo-flex:before {
    content: '';
    display: block;
    height: 20px;
    width: 20px;
    margin: 0 14px 0 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Ctext x='0.8' y='15.8' font-family='Poppins, sans-serif' font-size='9.6' font-weight='700' fill='black'%3EL%3C/text%3E%3Ccircle cx='8.2' cy='12.6' r='2.9' stroke='black' stroke-width='1.6'/%3E%3Ctext x='11.2' y='15.8' font-family='Poppins, sans-serif' font-size='9' font-weight='700' fill='black'%3EG%3C/text%3E%3Ccircle cx='20.6' cy='12.6' r='3.1' fill='black'/%3E%3C/svg%3E");

}


.brandkit-colors-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.brandkit-color-single {
    width: 53px;
    height: 53px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform .12s ease;
}
.brandkit-color-single:hover {
    transform: scale(1.1);
}

#BrandKit .first-post .title.big-gradient {
    font-size: 17px !important;
}




//codigo nuevo
.containerColorChnage {
    position: relative;
    display: inline-block;
}

.containerColorChnage button {
    position: relative;
    overflow: visible;
    /* mantén aquí tu width/height/border-radius actuales del swatch */
}

/* El + como badge circular limpio, arriba a la derecha, sin tapar el centro */
.color-add-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    color: #444;
    border: 1px solid rgba(0,0,0,.18);
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

/* Desktop: el + aparece al pasar por encima (más limpio) */
@media (hover: hover) {
    .color-add-btn { opacity: 0; transition: opacity .12s ease; }
    .containerColorChnage:hover .color-add-btn { opacity: 1; }
}
/* Táctil: siempre visible (no hay hover) — el @media de arriba no aplica */

/*codigo nuevo*/
.ventana-emergente ul li a#btnEditExt span  {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M2.68,13.78l1.06-3.87,7.7-7.7c.61-.6,1.6-.61,2.21,0l.66.66c.29.29.46.69.46,1.1s-.16.81-.46,1.1l-7.74,7.74-3.89.96ZM4.91,10.59l-.38,1.4,1.39-.34,7.43-7.43c.1-.1.13-.16.13-.24s-.03-.14-.08-.19l-.66-.66c-.1-.1-.27-.1-.38,0l-7.45,7.45Z'/%3E%3Cpath d='M16.12,16.07H1.6c-.36,0-.65-.29-.65-.65s.29-.65.65-.65h14.52c.36,0,.65.29.65.65s-.29.65-.65.65Z'/%3E%3C/svg%3E");
}



/*color de fondo y reeemplazar añadir color en ession de colors  >> MAS PEQUEÑOS */
.palette-color .sample-color-tabs .sample-tab-combination .colors-sample .box-backround .row #document_colors_pal div button {
    float: none;
    height: calc(43px - 2px)!important;
    width: calc(43px - 2px)!important;
}
	
	.palette-color .sample-color-tabs .sample-tab-combination .colors-sample .box-backround .row #document_colors_pal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
    gap: 9px 2px !important;
    overflow: visible;
}




.palette-color .sample-color-tabs .sample-tab-combination .colors-sample .box-backround .row #document_colors_pal div.title-section-colors,#latest_colors_title {

    font-size: 15px !important;
    font-weight: 600 !important;
    color: #000 !important;
}

.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign p {
    font-size: 17px !important;
	}
	
	.scrollingWrap .re-design-doubleBlock .col-redesign .title span:last-of-type {
  
    font-size: 27px !important;
	}


/* menu botón derecho, opcion de borrar ponemos linea abajo */
.ventana-emergente ul li a#btnEliminar {
    border-top: 0px !important;
    border-bottom: 1px solid #efefef;
}

.ventana-emergente ul li.submenu {
    position: relative;
    border-top: 0px !important;
       border-bottom: 1px solid #efefef;
}

.ventana-emergente ul li.submenu .spanLI 
{
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; %7D .cls-1, .cls-2 %7B stroke-width: 0px; %7D .cls-2 %7B fill: %23000; %7D %3C/style%3E%3C/defs%3E%3Cg id='Outline'%3E%3Cg%3E%3Cpath class='cls-2' d='M12.09,16.5h-7.94c-.36,0-.65-.29-.65-.65v-5.69c0-.36.29-.65.65-.65h7.94c.36,0,.65.29.65.65v5.69c0,.36-.29.65-.65.65ZM4.8,15.2h6.64v-4.39h-6.64v4.39Z'/%3E%3Cpath class='cls-2' d='M16,8.68H4.15c-.36,0-.65-.29-.65-.65V2.34c0-.36.29-.65.65-.65h11.85c.36,0,.65.29.65.65v5.69c0,.36-.29.65-.65.65ZM4.8,7.38h10.55V2.99H4.8v4.39Z'/%3E%3Cpath class='cls-2' d='M2,16.5c-.36,0-.65-.29-.65-.65V2.15c0-.36.29-.65.65-.65s.65.29.65.65v13.69c0,.36-.29.65-.65.65Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Export'%3E%3Crect class='cls-1' width='18' height='18'/%3E%3C/g%3E%3C/svg%3E");
    width: 18px;
    height: 18px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    margin-right: 10px;
    position: absolute;
    left: 10px;
}



@media (min-height: 675px) 
{
.pagination-container .pager-nav #notes_design, .pagination-container .pager-nav #layers_design {

    height: 350px;
}

}

/*
//ocultamos boton 2 en logos de brand kit
*/
.scrollingWrap#popupBrandKit .re-design-doubleBlock .col-redesign .brand-info .formfield-logo .drag-zone2 {
    display: none !important;
}





  /* //estaba como elipsis y salian 3 puntitos y se cortaban los textos cuando realmente si que podian mostrarse(perdiamos 3 caracteres) */ 

.workspace #toolsWork.toolsWork .masktoolContent .button-click-tools span:last-of-type {
    text-overflow: clip !important;
}



.modalTextContainer .modalText {
        top: 4px !important;
}

.modalTextContainer .modalText textarea {

    font-size: 16px !important; 
    min-height: calc(120px - 26px) !important;
}
.modalTextContainer .modalText .head::before {
    content: none !important;
}




@media (min-width: 901px) {

    body .border-square-btn.share-icon span.icon {
        display: none !important;
    }

    body .border-square-btn.share-icon.share-icon span:last-of-type {
        color: #fff !important;
        display: block !important;
    }

    header.premiumHeader .rightSide a.botonUpdate#botonUpdate span.icon {
        display: none !important;
    }

    #personal-profile {
        display: none !important;
    }

    /*
      Bloque 1: título
      Actual Title -> Undo: 46px
      Lo dejamos parecido, visualmente está bien.
    */
    header .rightSide .name-design {
        margin-right: 46px !important;
    }

    /*
      Bloque 2: Undo / Redo / File / Resize
      Actual Redo -> File: 27px
      Actual File -> Resize: 10px
      Están bien.
    */
    header.premiumHeader .rightSide.flex-zoom .canvaZoom {
        margin-right: 17px !important;
    }

    /*
      Bloque 3: Share / Save / Download
      Actual Resize -> Share: 59px
      Lo bajo a unos 46px visuales.
      Como canvaZoom aporta 17px, Share necesita 36px aprox.
    */
    #share_button_header { 
        margin-left: 36px !important;
        margin-right: 12px !important;
    }

    /*
      Actual Share -> Save: 10px
      Lo dejamos en 12px para respirar un poco más.
    */
    #botonUpdate {
        margin-left: 0 !important;
        margin-right: 14px !important;
    }

    /*
      Download CTA final.
    */
    #botonFinalizar {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}



/*


@media (min-width: 700px) and (max-width: 1220px) {
    .button-click-tools span:last-of-type {
        display: block !important;
    }
}
/*
/*codigo nuevo scroll de Mis diseños fix(se quedaban como muchas filas y se perdia*/
.scrolleable {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}
.scrolleable .img-design {
    flex: 0 0 auto;
    min-width: 0;
    width: 120px;   /* ajusta al ancho previo */
}
.scrolleable .img-design figure {
    width: 100%;
}
.scrolleable .img-design figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* codigo nuevo */
.scrolleable .img-design figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scrolleable .img-design figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}


/* listado de subcategorias en bsuqueda central */
/*.tooltipSelectFormat .selectDesign .overflowSelect .new_categories.is_in_category .gridCat.filter-image {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    gap: 10px !important;
    flex-wrap: wrap;
}*/

.box-tooltip
{

overflow:scroll;

}

.fieldTemplates img {
    width: 100%;
    height: auto;
}





.edit-loader__dot {
    transform-box: fill-box;
    transform-origin: 50px 50px;
    /* el origin se referencia al viewBox, asi ambos puntos giran alrededor del centro */
    animation: edit-loader-spin 1.1s linear infinite;
    will-change: transform;
}

/* el segundo punto va medio ciclo desfasado -> queda opuesto al primero */
.edit-loader__dot--2 {
    animation-delay: -0.55s;
}

@keyframes edit-loader-spin {
    to { transform: rotate(360deg); }
}



/* ===========================
   COSAS DE COLOR PICKER
=========================== */

/*=======SELETOR DE OPACIDAD DE COLORES REDONDEAMOS============= */




.sp-alpha-handle {
    width: 11px !important;
    border-radius: 3px !important;
}

body .sp-picker-container .sp-input-container input {
    width: 187px !important;
}

.sp-palette-container {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.sp-palette-container::-webkit-scrollbar {
    width: 12px;
}

.sp-palette-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .3);
    border-radius: 12px;
    border: 3px solid #fff;
}


.os-theme-dark>.os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle, .os-theme-light>.os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle {
    min-height: 40px !important;
    min-width: 6px !important;
}

.sp-palette-container {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}





/* Que el texto de los toast no se corte. */
.toast-content {
    flex: 1;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}


#searchPhotos,#searchGraphis {
    font-size: 15px !important;
}




.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates .container_template{
    width: calc(100% - 17px) !important;
}
.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates{margin-bottom:17px !important}



.tooltipSelectFormat .selectDesign .overflowSelect .new_categories.is_in_category .gridCat.filter-image a {
    width: auto !important;
    max-width: 180px !important;
}

.tooltipSelectFormat .selectDesign .overflowSelect .new_categories.is_in_category .gridCat.filter-image a .img-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: none !important;
    max-width: 180px;
    height: auto !important;
    background: #e1e1e1 !important;
    border: 1px solid rgba(57,76,96,0.2) !important;
    width:auto !important;
}

.tooltipSelectFormat .selectDesign .overflowSelect .new_categories.is_in_category .gridCat.filter-image a .img-frame img {
    object-fit: contain;
    height: 100%;
    max-width: 160px !important;
    max-height: 158px !important;
}










/*111111111111*/

.category-filters-search {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox - oculta scrollbar */
}

.category-filters-search::-webkit-scrollbar {
    display: none; /* Chrome - oculta scrollbar */
}

.category-filters-search button {
    flex-shrink: 0; /* evita que los botones se compriman */
}


/*drag buscador central listado de bsuquedas */
.category-filters-search {
    cursor: grab;
    user-select: none;
}
@media (min-width:2000px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
        width: calc(100% / 6);
    }
}

@media (min-width:1800px) and (max-width:1999px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
        width: 16.666%;
    }
}

@media (min-width:1500px) and (max-width:1799px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
        width: 20%;
    }
}

@media (min-width:1200px) and (max-width:1499px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
        width: 25%;
    }
}

@media (min-width:701px) and (max-width:1199px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
        width: 33.333%;
    }
}

@media (max-width:700px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
        width: 50%;
    }
}

@media (max-width:380px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
        width: 100%;
    }
}
#templates_list2 {
    visibility: hidden;
}

#templates_list2.masonry-ready {
    visibility: visible;
}


#teams .first-post .title.big-gradient {
    font-size: 28px !important;
}

/*

.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
    height: 175px !important;
    max-width: 355px !important;
}


@media (max-width: 1290px) {
  .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
    max-width: 304px !important;
  }
}


@media (max-width: 1140px) {

.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 {
    
    display: grid;
}

    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 {
        
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
}



@media (max-width: 999px) {
    .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 {
        
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
}


@media (max-width: 1140px) {
  .tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
    max-width: 375px !important;  
  }
}

*/


.new_categories.listModules .slider-container.categorias-slider-items .slide button figure {
    background: #f8f8f8;
}


.slider-container.categorias-slider-items .slide button .figure-date
 {
    background: #f8f8f8 !important;
}

.new_categories.listModules + .new_categories .slider-container.categorias-slider-items .slide button figure {
    background: #f8f8f8 !important;
}


.new_categories.listModules + .new_categories + .new_categories .slider-container.categorias-slider-items .slide button figure {
    background: #f8f8f8 !important;

}

/*

.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {
    width: auto;
    height: auto;
    max-width: 430px;
}

.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates .container_template .img-box img{object-fit:contain}

.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {background:#f8f8f8}
.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates:hover {background:#e1e1e1}


.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 {

    justify-content: space-between !important;
    gap: 12px !important;
}


.tooltipSelectFormat .selectDesign .overflowSelect .new_categories #templates_list2 .fieldTemplates {overflow: hidden; border-radius: 10px;
}

*/
.scrollingWrap .scrollingBox .tooltipBox.get-premium.newDownloadFile.boxShareDesign.share-group-system .double-share .colit .error {
    color: #bb3e6f;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: none;
    max-width: 100%;
    text-align: left !important;
} 


.sp-button-container a.sp-cancel {
    display: flow !important;
}



    .workspace #toolsWork.toolsWork .button-click-tools:not(.buttonReturnShadow)#reemplazarImagen span:last-of-type {
        display: block !important;
    }




.sp-cancel,.sp-choose
{
    width: 100% !important;
}


.sp-choose
{
    margin-top: 10px !important;
    width: 100% !important;
}


.sp-button-container.sp-cf
{
display:grid;

}

@media (max-width: 768px) {
#containerSelect.select-general {
    
    height: 152px !important;
}


.option-obj-resp.font-sprite-box .more-buttons-box .more-buttons {

    height: 222px !important;

}


}


}

/*popup de demasiado espacio al reeemplazar la imagen de ejemplo ponemos la imagen del diseño clicqueado. */
.scrollingWrap .re-design-doubleBlock .col-redesign .bloquer:last-of-type {
        min-height: 570px;
}


@media (max-width: 1000px) {
    .scrollingWrap .scrollingBox .tooltipBox.get-premium.newDownloadFile.boxShareDesign.share-group-system.create-team.invite-create-team .colit:last-of-type .vertical-align .topper + .double-btn {
        height: 171px !important;
    }


.scrollingWrap .scrollingBox .tooltipBox.get-premium.newDownloadFile.boxShareDesign.share-group-system.create-team .colit:first-of-type.white-version-team {
display:none;
}

    .scrollingWrap .scrollingBox .tooltipBox.get-premium.newDownloadFile.boxShareDesign.share-group-system.create-team .colit:last-of-type .btns.double-btn button
 {
        width: 76% !important;
        max-width: 324px;
        min-width: 331px;
 }
  }


.filters-box.redesign-filters .accordionBlock .accordion .item .acc-content.with-range .color-tint-img .img-input-color-box
 {
    height: 30px !important;
}


.scrollingWrap .scrollingBox .tooltipBox.get-premium.newDownloadFile.boxShareDesign.share-group-system.create-team .colit:last-of-type p:not(.error).user_modified_ok {
    color: #007473 !important;
    font-size: 13px !important;
        padding-left: 4px;
    padding-top: 3px;
}

/*Diseños de equipos los marcamos */
.content-sub-cats .fieldTemplates .team-floater {
  
  left: 6px !important;
  width: 24px;
  height: 24px;
}


/* Diseño bloqueado: PRO TEAMS no renovado */
.canvas-container.pro-locked {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
    transition: filter .25s ease;
}

#workspace-section #msgaccountType {
    max-width: 80%;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.25);
}


#workspace-section .pro-lock-overlay {
    position: absolute;
    inset: 0;
   z-index: 9999;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17,17,26,.22);
}
#workspace-section .pro-lock-card {
    position: relative;
    max-width: 80%;
    box-sizing: border-box;
    padding: 32px 40px;
    border-radius: 18px;
    background: rgba(24,24,34,.93);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    text-align: center;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    overflow: hidden;
}
#workspace-section .pro-lock-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg,#d6207f,#1aa3a3);
}
#workspace-section .pro-lock-card .pro-tag {
    color: #ffce3a; font-weight: 700; font-size: 14px;
    letter-spacing: .08em; margin-bottom: 14px;
}
#workspace-section .pro-lock-card .pro-msg {
    font-weight: 600; font-size: 20px; line-height: 1.4;
}



/* menu inferior en responsive se cortaban textos. */
@media (max-width: 640px) {
    .sidebar .sidebarMenu .sideBarNav button, .sidebar .sidebarMenu .sideBarNav .dots {
        height: 36px;
        width: 65px !important;
    }

#cancelCropRestore
{

display:none;

}


}



/* Imagen que quitamos fonto ponemos trama de transparencia */
.preview11{
    display:inline-block;

    background-image:
        linear-gradient(45deg,#eee 25%,transparent 25%),
        linear-gradient(-45deg,#eee 25%,transparent 25%),
        linear-gradient(45deg,transparent 75%,#eee 75%),
        linear-gradient(-45deg,transparent 75%,#eee 75%);
        
    background-size:20px 20px;
    background-position:0 0,0 10px,10px -10px,-10px 0;
}

#img_replace{
    display:block;
    max-width:100%;
}

h1#registroLoginConEmailHeaderH12.header-smaller {
    font-size: 20px !important;
    line-height: 22px !important;
}




.newRegisterImage .newregistro-box {
    height: 575px;
}

    .newRegisterImage .newregistro-box .col.align-vertical-center {
        flex-direction: column;
        justify-content: flex-start !important;
    }

.newRegisterImage.testing-register-free .newregistro-box p.content {
    font-size: 20px !important;
    line-height: 28px !important;  
    margin-top: 16px;
    margin-bottom: 32px;

}



.dots-window {
    display: none;
}

.dots-window.open {
    display: block;
}



.sidebar .sidebarMenu .sideBarNav button.buttonMyTeams.active .name, .sidebar .sidebarMenu .sideBarNav .dots.buttonMyTeams.active .name, .sidebar .sidebarMenu .sideBarNav button.buttonMyTeams.active:hover .name, .sidebar .sidebarMenu .sideBarNav .dots.buttonMyTeams.active:hover .name {
    white-space: normal;
}

#toast-container { position: fixed;     top: 70px;
    right: 10px; z-index: 9999990; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: calc(100vw - 32px); }

.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px;
  min-width: 280px; max-width: 420px; padding: 12px 12px 12px 16px;
  background: #fff; border: 1px solid #E6E6EA; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(26,26,46,.14);
  font-family: Poppins, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.45; color: #1A1A2E;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.toast.toast-show { opacity: 1; transform: none; }
.toast.toast-hide { opacity: 0; transform: translateY(-8px); }

.toast-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.toast-info    .toast-icon { background: #3533AD; }
.toast-success .toast-icon { background: #17A06A; }
.toast-warning .toast-icon { background: #D99A0B; }
.toast-error   .toast-icon { background: #C0223C; }

.toast-content { flex: 1; overflow-wrap: anywhere; padding-top: 1px; }
.toast-content strong { font-weight: 600; }
.toast-action { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #3533AD; cursor: pointer; }
.toast-action:hover { color: #2A288C; }

.toast-close { flex: none; width: 28px; height: 28px; margin: -2px -2px 0 0; border: 0; border-radius: 14px; background: transparent; color: #52556B; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.toast-close:hover { background: #F2F2F5; }

@media (max-width: 480px) {
  #toast-container { top: 12px; right: 12px; left: 12px; max-width: none; }
  .toast { min-width: 0; max-width: none; }
}


@media (max-width: 580px) {
    #registroUsuario2.scrollingWrap .scrollingBox .newRegisterImage .simplebar-content .newregistro-box #register_options_block .blockMin .fb-google {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 30px !important;
        margin-top: 9px;
    }
}

.scrollingWrap#designHistory .re-design-doubleBlock {
    max-width: 700px !important;
    max-width:95%;
}

.newRegisterImage.testing-register-free .newregistro-box p.content {
    font-size: 20px !important;
    line-height: 20px !important;
}

.newRegisterImage .newregistro-box .col p#errorEmail, .newRegisterImage .newregistro-box .col p#errorPassword, .newRegisterImage .newregistro-box .col p#errorTerminos {

    font-size: 14px !important;
}

/* THUMBS (logos e imágenes) */
.brandkit-thumb-wrap {
    position: relative;
    display: inline-block;
    margin: 4px;
}

.brandkit-thumb {
    height: 60px;
    max-width: 120px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 4px;
    display: block;
}

.brandkit-thumb-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.brandkit-thumb-wrap:hover .brandkit-thumb-delete {
    opacity: 1;
}

.brandkit-thumb-delete:hover {
    background: #c00;
}

/* COLORES */
.grid-color-admin .containerColorChnageBrand {
    position: relative !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.grid-color-admin .brandkit-color-hex {
    display: block;
    margin-top: 6px;
    font-family: monospace;
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
    user-select: text;
}

.grid-color-admin .containerColorChnageBrand .brandkit-color-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 10;
    user-select: none;
    pointer-events: none;
}

.grid-color-admin .containerColorChnageBrand:hover .brandkit-color-delete {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.grid-color-admin .brandkit-color-delete:hover {
    background: #c00;
}


.grid-color-admin .add-color {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 2px dashed #ccc;
    background: #fafafa;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 4px;
    vertical-align: top;
    transition: all 0.15s ease;
}

.grid-color-admin .add-color::before {
    content: '+';
    font-size: 28px;
    color: #999;
    line-height: 1;
    font-weight: 300;
}

.grid-color-admin .add-color:hover {
    border-color: #999;
    background: #f0f0f0;
}

.grid-color-admin .add-color:hover::before {
    color: #555;
}



 .scrollingWrap.re-design-forma-popup#getPremiumRegister .redesign-welcome .title span, .scrollingWrap.re-design-forma-popup#helpVideos .redesign-welcome .title span {
    max-width: 622px !important;
}




@media (max-width:580px){.re-design-forma-popup#share_design2 .re-design-doubleBlock{height:calc(100vh - 90px)}}.re-design-forma-popup#share_design2 .re-design-doubleBlock .col-redesign{display:block}@media (max-width:680px){.re-design-forma-popup#share_design2 .re-design-doubleBlock .col-redesign{height:100%;justify-content:center}}@media (max-width:580px){.re-design-forma-popup#share_design2 .re-design-doubleBlock .col-redesign{display:flex}}@media (min-width:581px){.re-design-forma-popup#share_design2 .re-design-doubleBlock .col-redesign .bloquer{height:auto !important;width:384px !important}}@media (max-width:680px){.re-design-forma-popup#share_design2 .re-design-doubleBlock .col-redesign .bloquer:first-of-type .title{display:block !important}.re-design-forma-popup#share_design2 .re-design-doubleBlock .col-redesign .bloquer:first-of-type .title .get-premium-icon{display:block !important}.re-design-forma-popup#share_design2 .re-design-doubleBlock .col-redesign .bloquer:last-of-type{display:block !important}}




.scrollingWrap.re-design-forma-popup#selectordeFormatos #downloadfile #DownloadBTN + small {

    width: 87% !important;
        background-color: cornsilk !important;
        font-size: 12px !important;
}




/* BLUR PARA POPUPS COMO EL DE REDIMESIONADO MAGICO */
.scrollingWrap {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}




#resizeIMG_TO_REPLACE.skeleton-loading {
  width: 100%;
  min-height: 200px;
  object-fit: none;
  border-radius: 18px;

  background-image:
    linear-gradient(
      100deg,
      rgba(245,245,245,1) 0%,
      rgba(245,245,245,1) 38%,
      rgba(255,255,255,.98) 48%,
      rgba(235,235,235,.18) 54%,
      rgba(190,190,190,.06) 62%,
      rgba(245,245,245,1) 74%,
      rgba(245,245,245,1) 100%
    ),

    radial-gradient(circle at 30% 35%,
      rgba(255,255,255,.45) 0 10%,
      rgba(255,255,255,.04) 24%,
      transparent 42%
    ),

    radial-gradient(circle at 70% 65%,
      rgba(80,80,80,.04) 0 12%,
      transparent 36%
    ),

    linear-gradient(
      135deg,
      #f4f4f4 0%,
      #f8f8f8 45%,
      #ececec 100%
    );

  background-size:
    360% 100%,
    180% 180%,
    200% 200%,
    100% 100%;

  background-position:
    -340% 0,
    -20% -10%,
    120% 120%,
    center;

  animation: revealBehind 22s cubic-bezier(.22,.61,.36,1) infinite;
}

@keyframes revealBehind {

  /* Muy limpio/blanco al inicio */
  0% {
    background-position:
      -340% 0,
      -20% -10%,
      120% 120%,
      center;

    filter: brightness(1.02);
  }

  /* Apenas empieza a aparecer algo */
  35% {
    background-position:
      -220% 0,
      -10% 0%,
      110% 110%,
      center;

    filter: brightness(1.015);
  }

  /* Aquí empieza el reveal */
  60% {
    background-position:
      -40% 0,
      12% 14%,
      88% 88%,
      center;

    filter: brightness(1);
  }

  100% {
    background-position:
      320% 0,
      35% 35%,
      65% 65%,
      center;

    filter: brightness(.99);
  }
}

.not-valid .find-mail {

  margin-top: 12px;          /* pegado al bloque "Send again" */
  font-size: 14px !important;
  line-height: 1.5;
  color: #6b7280;

}



.tooltipSelectFormat .selectDesign .overflowSelect .new_categories.new_categories_sub {
    display: block;
    margin: 0px auto 29px;
}

.ai-categories2 {
    margin: 0px auto;
}


.hide-before::before {
  display: none !important;
}


@media (max-width: 640px) {
    .pagination-container .pager-nav button:not(.closeX) p {
        display: block !important;
    }
}


.ai-categories {
    margin-bottom: -75px !important;
}



.ampling-button#shrink_button + .results-object-wrap {
    margin-bottom: 15px;
}


@media (max-width: 640px) {
    header .rightSide .name-design {
 display:none;
    }
}




#graphics .masonryGallery .content-collapsible #pixabayok #contenido_graphics.grid .grid-item-m{min-width: auto !important;}




/* ------------------------------------------------
   Bloque principal clickeable (los spans de color)
   height: 55px como el original
   ------------------------------------------------ */
.container-sample {
    position: relative;
    height: calc(55px - 2px);
    width: calc(100% - 2px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;       /* ← clave: flex para repartir spans */
    flex-direction: row;
}

/* Cada span ocupa su parte proporcional */
.container-sample span {
    display: block;
    height: 100%;
    flex: 1;             /* todos iguales por defecto */
    cursor: pointer;
}

/* ------------------------------------------------
   square-sample (los cuadraditos debajo)
   ------------------------------------------------ */
.square-sample {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.15);
    display: inline-block;
    flex-shrink: 0;
}

/* ------------------------------------------------
   Tamaño del bloque .container-sample según N colores
   Para que todos los bloques tengan el mismo ancho visual
   ------------------------------------------------ */

/* 2 colores — ancho base */
.container-combination .container-sample {
    width: 55px;
}

/* 3 colores */
.container-combination--3 .container-sample {
    width: 66px;
}

/* 4 colores */
.container-combination--4 .container-sample {
    width: 77px;
}

/* 5 colores */
.container-combination--5 .container-sample {
    width: 88px;
}

/* ------------------------------------------------
   Hover
   ------------------------------------------------ */
.container-sample:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,0.4);
    transform: scale(1.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ------------------------------------------------
   Responsive: si el panel es estrecho, 
   ajustar contenedor para que quepan en fila
   ------------------------------------------------ */
.combinations-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
}




.grid-item-m {
    position: relative;
}

.Icons8Star {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 1;
}

.star-premiumIcons8 {
    display: block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23.051' height='23.051' viewBox='0 0 23.051 23.051'%3E%3Cg id='Grupo_1274' data-name='Grupo 1274' transform='translate(-235 -483)'%3E%3Cg id='boton-menu-estado-1' transform='translate(235 483)'%3E%3Cg id='Grupo_931' data-name='Grupo 931'%3E%3Cg id='Grupo_632' data-name='Grupo 632' transform='translate(0)' opacity='0.5'%3E%3Cpath id='Trazado_580' data-name='Trazado 580' d='M11.526,0A11.526,11.526,0,1,1,0,11.526,11.526,11.526,0,0,1,11.526,0Z' opacity='0.8'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3Cpath id='Icon_awesome-star' data-name='Icon awesome-star' d='M5.67.315,4.514,2.659l-2.587.377A.567.567,0,0,0,1.613,4L3.485,5.827,3.042,8.4a.566.566,0,0,0,.822.6L6.179,7.784,8.493,9a.567.567,0,0,0,.822-.6L8.872,5.827,10.744,4a.567.567,0,0,0-.313-.967L7.843,2.659,6.687.315A.567.567,0,0,0,5.67.315Z' transform='translate(240.347 489.272)' fill='%23ffc94e'/%3E%3C/g%3E%3C/svg%3E");
}




#contenido_graphics .grid-item-m a.info-icon {
    display: block;
    height: 20px;
    width: 20px;
    -webkit-box-shadow: 0 0 20px 0 rgba(255,255,255,0.5);
    -moz-box-shadow: 0 0 20px 0 rgba(255,255,255,0.5);
    box-shadow: 0 0 20px 0 rgba(255,255,255,0.5);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-repeat: no-repeat !important;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='30px' height='30px' viewBox='0 0 30 30' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='download' fill-rule='nonzero'%3E%3Cpath d='M15,0 C17.9667,0 20.8668,0.879734 23.3335,2.52796 C25.8003,4.17618 27.7229,6.51886 28.8582,9.25975 C29.9935,12.0006 30.2905,15.0166 29.7118,17.9263 C29.133,20.8361 27.7044,23.5088 25.6066,25.6066 C23.5088,27.7044 20.8361,29.133 17.9263,29.7118 C15.0166,30.2905 12.0006,29.9935 9.25975,28.8582 C6.51886,27.7229 4.17618,25.8003 2.52796,23.3335 C0.879734,20.8668 0,17.9667 0,15 C0,11.0217 1.58035,7.20644 4.3934,4.3934 C7.20644,1.58035 11.0217,0 15,0 Z' id='Path' fill='%23000000' opacity='0.6'%3E%3C/path%3E%3Cg id='download-(1)' transform='translate(13.000000, 7.000000)' fill='%23FFFFFF'%3E%3Cg id='Group'%3E%3Cpath d='M1.6,15.136 C1.024,15.136 0.56,14.672 0.56,14.096 L0.56,5.488 C0.56,4.912 1.024,4.448 1.6,4.448 C2.176,4.448 2.64,4.912 2.64,5.488 L2.64,14.096 C2.64,14.672 2.176,15.136 1.6,15.136 Z' id='Path'%3E%3C/path%3E%3Cpath d='M1.6,2.944 C1.472,2.944 1.328,2.912 1.2,2.864 C1.072,2.8 0.96,2.72 0.864,2.64 C0.672,2.432 0.56,2.176 0.56,1.904 C0.56,1.616 0.672,1.36 0.864,1.152 C1.152,0.88 1.616,0.784 2,0.944 C2.128,0.992 2.24,1.072 2.336,1.152 C2.528,1.36 2.64,1.616 2.64,1.904 C2.64,2.176 2.528,2.432 2.336,2.64 C2.24,2.736 2.128,2.8 2,2.864 C1.872,2.912 1.744,2.944 1.6,2.944 Z' id='Path'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: absolute;
    top: 5px;
    left: 5px;
    -webkit-opacity: 0;
    -moz-opacity: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    z-index: 99999999;
    background-size: contain;
}


#contenido_graphics .grid-item-m:hover a.info-icon {
    -webkit-opacity: 0.7;
    -moz-opacity: 0.7;
    opacity: 0.7;
}


@media (max-width: 1220px) {


/* mostramos boton de crop en responsive */
#newCropButton span:last-of-type {
        display: block;
    }
/* crop with shape */
    .workspace #toolsWork.toolsWork .button-click-tools#selectorTippy span:last-of-type {
        display: block !important;
    }


}



/*
//icono de info en fotos de unsplash / pixabay
*/
.btn-upload-photo #cargarEfectossemoticonos1 .content-collapsible #pixabayok #contenido.grid .grid-item-m a.info-icon {
    height: 20px !important;
    width: 20px !important;
    top: 5px !important;
    left: 5px !important;
cursor: pointer !important;
}



/* ── Brand kit: avatares de personas con acceso ───────────────── */

.item-brand-kit {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.item-brand-kit .click-brand {
    flex: 1;
    min-width: 0;
}

/* los tres puntos ocupan siempre la ultima columna, esten o no en hover */
.item-brand-kit .dots-brand {
    flex: 0 0 auto;
    margin-left: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.item-brand-kit .dots-brand-hover {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #ECEEF0;
    opacity: 1 !important;
    visibility: visible !important;
}

.bk-avatars {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding-right: 2px;
}

.bk-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
    border: 2px solid #f2f3f5;   /* mismo color que el fondo de la fila */
    box-sizing: border-box;
    margin-left: -4px;
}

.bk-avatar:first-child {
    margin-left: 0;
}

.bk-avatar--more {
    background: #ECEEF0;
    color: #6b7280;
}

/* la fila activa tiene otro fondo: el borde del avatar debe seguirlo */
.item-brand-kit.active .bk-avatar {
    border-color: #efeefb;
}


/* ── Brand kit: fila con avatares + menu siempre a la derecha ── */

.item-brand-kit {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.item-brand-kit .click-brand {
    flex: 1;
    min-width: 0;
}

.item-brand-kit .home-mails {
    flex: 0 0 auto;
    margin-left: auto;
}

/* los tres puntos ocupan siempre la ultima columna, haya avatares o no.
   El CSS original los tenia en display:none + position:absolute y solo los
   mostraba en hover: los devolvemos al flujo flex para que se alineen con
   los avatares y no cambien de sitio segun el estado de la fila. */
.item-brand-kit .dots-brand {
    display: block !important;
    position: relative !important;
    /* el CSS original lo posicionaba absoluto con top: ~25px. Al pasarlo a
       relative ese top seguia aplicandose y descentraba el boton 12px. */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    align-self: center;
    flex: 0 0 auto;
    margin-left: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.item-brand-kit .home-mails {
    margin-right: 8px;
}

/* si no hay avatares, el margin-left:auto lo lleva el propio menu */
.item-brand-kit .click-brand + .dots-brand {
    margin-left: auto;
}

.item-brand-kit .dots-brand-hover {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #ECEEF0;
    opacity: 1 !important;
    visibility: visible !important;
}


.item-brand-kit .dots-brand {
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    align-self: center;
    flex: 0 0 auto;
    margin-left: 0;
    /* el contenedor debe medir solo lo que el boton: el desplegable va
       absoluto para no inflar la altura y descentrar el icono */
    width: 26px;
    height: 26px;
    line-height: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.item-brand-kit .tooltip-box-brand {
    position: absolute !important;
    top: 100%;
    right: 0;
    line-height: normal;
}


.item-brand-kit {
    padding-right: 12px;
}

/* atenuado en reposo para que el hover se note */
.item-brand-kit .dots-brand-hover {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #ECEEF0;
    opacity: .5 !important;
    visibility: visible !important;
    transition: opacity .15s ease;
}

.item-brand-kit:hover .dots-brand-hover,
.item-brand-kit .dots-brand-hover:hover {
    opacity: 1 !important;
}



/* insignia de kit compartido conmigo (con tus medidas) */
.item-brand-kit .bk-shared-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #E8F1F2;
    color: #0F6D7A;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.item-brand-kit .bk-shared-badge::before {
    content: "";
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    background-color: #0F6D7A;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.3 0-6 1.2-6 3.5V19h7v-2.5c0-.9.5-1.7 1.3-2.4A9.6 9.6 0 0 0 8 13zm8 0c-2.7 0-8 1.3-8 4v2h16v-2c0-2.7-5.3-4-8-4z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.3 0-6 1.2-6 3.5V19h7v-2.5c0-.9.5-1.7 1.3-2.4A9.6 9.6 0 0 0 8 13zm8 0c-2.7 0-8 1.3-8 4v2h16v-2c0-2.7-5.3-4-8-4z'/></svg>") center / contain no-repeat;
}



/* ── Tarjetas de plan y equipo (prefijo tplan-, no choca con tmp-/tseats-) ── */

.tplan-card {
    background: #F2F3F5;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.tplan-card--equipo {
    background: #FFFFFF;
    border: 1px solid #E6E8EB;
}

.tplan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tplan-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .07em;
    color: #6B7280;
    text-transform: uppercase;
}

.tplan-cta {
    font-size: 15px;
    font-weight: 600;
    color: #3B31A8;
    text-decoration: none;
}

.tplan-cta:hover { text-decoration: underline; }

.tplan-nombre {
    font-size: 21px;
    font-weight: 700;
    color: #16202A;
    margin: 6px 0 10px;
    word-break: break-word;
}

.tplan-estado {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* insignia */
.tplan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.tplan-badge--big { font-size: 13px; }

.tplan-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.tplan-badge--trial          { background: #FDF1DD; color: #8A5A00; }
.tplan-badge--trial::before  { background: #E08C00; }

.tplan-badge--pro            { background: #E8F1F2; color: #0F6D7A; }
.tplan-badge--pro::before    { background: #0F9D6E; }

.tplan-badge--free           { background: #ECEEF0; color: #3D4852; }
.tplan-badge--free::before   { background: #9AA1A9; }

/* fecha */
.tplan-fecha {
    font-size: 15px;
    color: #16202A;
}

.tplan-fecha--sm {
    font-size: 12px;
    color: #6B7280;
}

.tplan-fecha b,
.tplan-fecha strong { font-weight: 700; }

.tplan-dias--urgente { color: #C02020; font-weight: 600; }

.tplan-nota {
    font-size: 13px;
    line-height: 1.5;
    color: #9AA1A9;
    margin-top: 10px;
}

.tplan-rol {
    font-size: 15px;
    color: #16202A;
    margin-top: 8px;
}

.tplan-sep {
    height: 1px;
    background: #E6E8EB;
    margin: 14px 0;
}

/* acciones */
.tplan-accion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 16px;
    color: #16202A;
    text-decoration: none;
}

.tplan-accion:hover { color: #3B31A8; }

.tplan-accion--danger        { color: #C02020; }
.tplan-accion--danger:hover  { color: #9a1a1a; }

.tplan-accion--exit          { color: #3D4852; }
.tplan-accion--exit:hover    { color: #16202A; }

.tplan-ico {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.tplan-ico--team {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.3 0-6 1.2-6 3.5V19h7v-2.5c0-.9.5-1.7 1.3-2.4A9.6 9.6 0 0 0 8 13zm8 0c-2.7 0-8 1.3-8 4v2h16v-2c0-2.7-5.3-4-8-4z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.3 0-6 1.2-6 3.5V19h7v-2.5c0-.9.5-1.7 1.3-2.4A9.6 9.6 0 0 0 8 13zm8 0c-2.7 0-8 1.3-8 4v2h16v-2c0-2.7-5.3-4-8-4z'/></svg>");
}

.tplan-ico--card {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4H4V6h16zm0 10H4v-6h16z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4H4V6h16zm0 10H4v-6h16z'/></svg>");
}

.tplan-ico--trash {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z'/></svg>");
}

.tplan-ico--exit {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 17l1.4-1.4-2.6-2.6H20v-2H8.8l2.6-2.6L10 7l-5 5zM4 4h8V2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v-2H4z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 17l1.4-1.4-2.6-2.6H20v-2H8.8l2.6-2.6L10 7l-5 5zM4 4h8V2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v-2H4z'/></svg>");
}



.tplan-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    vertical-align: middle;
}

/* el contenedor padre centra el texto: lo forzamos a la izquierda */
.tplan-card,
.tplan-card * {
    text-align: left;
}

/* la insignia se quedo en display:flex por herencia del contenedor flex;
   la queremos como pildora en linea */
.tplan-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    flex: 0 0 auto;
    vertical-align: middle;
}






/* ═══════════════════════════════════════════════════════════════
   TARJETAS DE PLAN Y EQUIPO  (prefijo tplan-)
   Medidas tomadas del mockup "Indicador de plan".
   Los !important pisan el text-align y el display heredados de
   .boxAccount / .group-block-item.
   ═══════════════════════════════════════════════════════════════ */

/* el contenedor padre centra el texto */
.tplan-card,
.tplan-card * {
    text-align: left !important;
    box-sizing: border-box;
}

/* ── tarjeta PLAN: gris, dentro del panel ──────────────────── */
.tplan-card {
    padding: 16px 18px;
    border-radius: 11px;
    background: #f2f3f5;
    margin-bottom: 14px;
}

.tplan-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tplan-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0;
}

.tplan-cta {
    font-size: 15px;
    font-weight: 600;
    color: #3b31a8;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.tplan-cta:hover { color: #2a2380; text-decoration: none; }

.tplan-estado {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tplan-fecha {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #16202a;
}

.tplan-fecha strong { font-weight: 600; }

.tplan-dias--urgente {
    color: #c02020;
    font-weight: 600;
}

.tplan-nota {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin-top: 9px;
}

/* ── tarjeta MI EQUIPO: blanca, con sombra ─────────────────── */
.tplan-card--equipo {
    background: #ffffff;
    border: 0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(20,25,35,0.08);
}

.tplan-card--equipo .tplan-label {
    font-size: 12px;
    margin-bottom: 10px;
}

.tplan-nombre {
    font-size: 17px;
    font-weight: 700;
    color: #16202a;
    margin: 0;
    word-break: break-word;
}

.tplan-card--equipo .tplan-estado {
    gap: 8px;
    margin-top: 8px;
}

.tplan-fecha--sm {
    flex: 0 0 auto;
    font-size: 12px;
    color: #6b7280;
}

.tplan-rol {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.tplan-sep {
    height: 1px;
    background: #ebedef;
    margin: 16px 0;
    border: 0;
}

/* ── insignia ──────────────────────────────────────────────── */
.tplan-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: auto !important;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
    border: 0;
}

/* en la tarjeta PLAN es un punto mas grande */
.tplan-badge--big {
    font-size: 13px;
    padding: 4px 11px;
}

.tplan-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.tplan-badge--trial         { background: #fdf1dd; color: #8a5a00; }
.tplan-badge--trial::before { background: #e08c00; }

.tplan-badge--pro           { background: #e8f1f2; color: #0f6d7a; }
.tplan-badge--pro::before   { background: #0f9d6e; }

.tplan-badge--free          { background: #eceef0; color: #3d4852; }
.tplan-badge--free::before  { background: #9aa1a9; }

/* ── acciones ──────────────────────────────────────────────── */
.tplan-accion {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 15px;
    color: #16202a;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease;
}

.tplan-accion:hover {
    background: #f7f8f9;
    color: #16202a;
    text-decoration: none;
}

.tplan-accion--danger {
    font-size: 14px;
    color: #c02020;
}

.tplan-accion--danger:hover { background: #fdf0f0; color: #c02020; }

.tplan-accion--exit { color: #3d4852; }
.tplan-accion--exit:hover { background: #f7f8f9; color: #16202a; }

/* separador antes de la accion destructiva: mas ajustado */
.tplan-accion--danger,
.tplan-accion--exit { margin-top: 0; }

.tplan-card--equipo .tplan-sep + .tplan-accion--danger,
.tplan-card--equipo .tplan-sep + .tplan-accion--exit { margin-top: -2px; }

/* ── iconos ────────────────────────────────────────────────── */
.tplan-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background-color: #3d4852;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.tplan-accion--danger .tplan-ico { background-color: #c02020; }

.tplan-ico--team {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.3 0-6 1.2-6 3.5V19h7v-2.5c0-.9.5-1.7 1.3-2.4A9.6 9.6 0 0 0 8 13zm8 0c-2.7 0-8 1.3-8 4v2h16v-2c0-2.7-5.3-4-8-4z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm-8 0a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.3 0-6 1.2-6 3.5V19h7v-2.5c0-.9.5-1.7 1.3-2.4A9.6 9.6 0 0 0 8 13zm8 0c-2.7 0-8 1.3-8 4v2h16v-2c0-2.7-5.3-4-8-4z'/></svg>");
}

.tplan-ico--card {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4H4V6h16zm0 10H4v-6h16z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4H4V6h16zm0 10H4v-6h16z'/></svg>");
}

.tplan-ico--trash {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z'/></svg>");
}

.tplan-ico--exit {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 17l1.4-1.4-2.6-2.6H20v-2H8.8l2.6-2.6L10 7l-5 5zM4 4h8V2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v-2H4z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 17l1.4-1.4-2.6-2.6H20v-2H8.8l2.6-2.6L10 7l-5 5zM4 4h8V2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v-2H4z'/></svg>");
}   




/* ═══════════════════════════════════════════════════════════════
   DANGER ZONE (prefijo tdanger-)
   ═══════════════════════════════════════════════════════════════ */

.tdanger-block,
.tdanger-block * {
    text-align: left !important;
    box-sizing: border-box;
}

.tdanger-block {
    margin: 26px 0 18px;
}

.tdanger-title {
    font-size: 19px !important;
    font-weight: 700;
    color: #16202a;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
}

.tdanger-box {
    background: #fdf0f0;
    border-radius: 12px;
    overflow: hidden;
}

.tdanger-row {
    display: flex !important;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
}

.tdanger-row + .tdanger-row {
    border-top: 1px solid #f6dcdc;
}

.tdanger-txt {
    flex: 1;
    min-width: 0;
}

.tdanger-row-title {
    font-size: 16px;
    font-weight: 700;
    color: #c02020;
    margin-bottom: 3px;
}

.tdanger-row-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #8a4040;
}

.tdanger-btn {
    flex: 0 0 auto;
    padding: 12px 20px;
    border-radius: 9px;
    border: 1px solid #e5a5a5;
    background: #ffffff;
    color: #c02020;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s ease, border-color .12s ease;
}

.tdanger-btn:hover {
    background: #fdf6f6;
    border-color: #c02020;
}

/* salir del equipo: neutro, no destruye nada del resto */
.tdanger-row--neutral                  { background: #f7f8f9; }
.tdanger-row--neutral .tdanger-row-title { color: #16202a; }
.tdanger-row--neutral .tdanger-row-desc  { color: #6b7280; }

.tdanger-btn--neutral {
    border-color: #dfe1e5;
    color: #3d4852;
}

.tdanger-btn--neutral:hover {
    background: #f2f3f5;
    border-color: #9aa1a9;
}

@media (max-width: 560px) {
    .tdanger-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .tdanger-btn { width: 100%; }
}




/* ═══════════════ SECCIONES PLAN / MI EQUIPO ═══════════════ */

.tplan-seccion,
.tplan-seccion * {
    text-align: left !important;
    box-sizing: border-box;
}

.tplan-seccion { margin-bottom: 26px; }

.tplan-h3 {
    font-size: 21px !important;
    font-weight: 700;
    color: #16202a;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
}

.tplan-h3-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tplan-h3-row .tplan-h3 { margin-bottom: 0 !important; }

/* ── tarjeta del equipo ────────────────────────────────────── */
.tteam-card {
    background: #f2f3f5;
    border-radius: 12px;
    padding: 18px;
}

.tteam-head {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.tteam-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: #3f2fb8;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.tteam-info { flex: 1; min-width: 0; }

.tteam-nombre {
    font-size: 21px;
    font-weight: 700;
    color: #16202a;
    margin-bottom: 6px;
    word-break: break-word;
}

.tteam-meta {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tteam-meta-txt {
    font-size: 15px;
    color: #6b7280;
}

.tteam-meta-txt strong { font-weight: 600; color: #16202a; }

.tteam-avatars { flex: 0 0 auto; margin-left: auto; }

/* medidores dentro de la tarjeta */
.tteam-meter {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 10px;
}

.tteam-meter-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tteam-meter-row {
    display: flex !important;
    align-items: center;
    gap: 14px;
}

.tteam-meter-count {
    font-size: 16px;
    font-weight: 700;
    color: #16202a;
    flex: 0 0 auto;
    white-space: nowrap;
}

.tteam-bar {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: #dfe1e5;
    overflow: hidden;
}

.tteam-bar-fill {
    height: 100%;
    background: #3b31a8;
    border-radius: 99px;
}

.tteam-meter-left {
    font-size: 15px;
    color: #6b7280;
    flex: 0 0 auto;
    text-align: right !important;
    white-space: nowrap;
}

.tteam-sep-dot { color: #9aa1a9; }

/* limite alcanzado */
.tteam-meter--full .tteam-meter-count,
.tteam-meter--full .tteam-meter-left { color: #c02020; font-weight: 700; }

.tteam-meter--full .tteam-bar-fill { background: #c02020; }

/* avatares dentro de la tarjeta */
.tteam-avatars.home-mails {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
}

.tteam-avatars.home-mails > div {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #f2f3f5;
    margin-left: -8px;
    flex: 0 0 auto;
    padding: 0 !important;
    line-height: 1;
}

.tteam-avatars.home-mails > div:first-child { margin-left: 0; }

.tteam-avatars.home-mails > div.number {
    background: #eceef0 !important;
    color: #6b7280 !important;
}

@media (max-width: 560px) {
    .tteam-head { flex-wrap: wrap; }
    .tteam-avatars { margin-left: 0; }
    .tteam-meter-row { flex-wrap: wrap; }
    .tteam-bar { order: 3; width: 100%; flex: 1 0 100%; }
}



/* ── lista de acciones de facturacion dentro de la tarjeta PLAN ── */

.tplan-billing {
    margin-top: 14px;
    border-top: 1px solid #e3e5e8;
}

.tplan-billing .payments-group {
    display: flex;
    flex-direction: column;
}

.tplan-billing button {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 2px;
    background: none;
    border: 0;
    border-bottom: 1px solid #e3e5e8;
    font-size: 15px;
    color: #16202a;
    text-align: left !important;
    cursor: pointer;
    transition: color .12s ease;
}

.tplan-billing button:last-child { border-bottom: 0; }

.tplan-billing button:hover { color: #3b31a8; }

/* flecha a la derecha */
.tplan-billing button::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-left: 12px;
    border-right: 2px solid #9aa1a9;
    border-bottom: 2px solid #9aa1a9;
    transform: rotate(-45deg);
}

.tplan-billing button:hover::after {
    border-color: #3b31a8;
}

.tplan-billing span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    padding: 10px 2px;
}



/* ═══════════ PLAN · bloque de facturacion (Stripe) ═══════════ */

.tplan-cta--toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

/* el chevron rotado se salia de su caja y quedaba recortado:
   le damos una caja de 14px y dibujamos la flecha con un ::before
   centrado dentro, asi la rotacion no desborda */
.tplan-chevron {
    position: relative;
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 auto;
    border: 0 !important;
    overflow: visible;
}

.tplan-chevron::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .18s ease;
}

.tplan-cta--toggle.is-open .tplan-chevron::before {
    transform: translate(-50%, -30%) rotate(-135deg);
}

.tplan-billing {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e0e2e6;
}

.tplan-billing-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 11px;
}

.tplan-billing-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.tplan-billing-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #9aa1a9;
    white-space: nowrap;
}

.tplan-billing-note::before {
    content: "";
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    background-color: #9aa1a9;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9zm3 12a2 2 0 1 1 2-2 2 2 0 0 1-2 2z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9zm3 12a2 2 0 1 1 2-2 2 2 0 0 1-2 2z'/></svg>") center / contain no-repeat;
}

.tplan-billing-list {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}

.tplan-billing-row {
    display: flex !important;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .12s ease;
}

.tplan-billing-row:hover {
    box-shadow: 0 2px 8px rgba(20,25,35,.08);
    text-decoration: none;
}

.tplan-billing-ico {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    background-color: #3d4852;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.tplan-billing-ico--card {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4H4V6h16zm0 10H4v-6h16z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4H4V6h16zm0 10H4v-6h16z'/></svg>");
}

.tplan-billing-ico--tax {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 2H8a2 2 0 0 0-2 2v16l3-2 3 2 3-2 3 2 3-2V4a2 2 0 0 0-2-2zm-2 6H10V6h7zm0 4H10v-2h7zm-3 4h-4v-2h4z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 2H8a2 2 0 0 0-2 2v16l3-2 3 2 3-2 3 2 3-2V4a2 2 0 0 0-2-2zm-2 6H10V6h7zm0 4H10v-2h7zm-3 4h-4v-2h4z'/></svg>");
}

.tplan-billing-ico--doc {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9zM8 13h8v2H8zm0 4h8v2H8z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9zM8 13h8v2H8zm0 4h8v2H8z'/></svg>");
}

.tplan-billing-ico--plan {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 6v6c0 5 3.4 9.4 8 10 4.6-.6 8-5 8-10V6zm0 4a2 2 0 1 1-2 2 2 2 0 0 1 2-2zm0 10a5 5 0 0 1-4-2c0-1.3 2.7-2 4-2s4 .7 4 2a5 5 0 0 1-4 2z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 6v6c0 5 3.4 9.4 8 10 4.6-.6 8-5 8-10V6zm0 4a2 2 0 1 1-2 2 2 2 0 0 1 2-2zm0 10a5 5 0 0 1-4-2c0-1.3 2.7-2 4-2s4 .7 4 2a5 5 0 0 1-4 2z'/></svg>");
}

.tplan-billing-txt {
    flex: 1;
    min-width: 0;
}

.tplan-billing-title {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #16202a;
    line-height: 1.35;
}

.tplan-billing-desc {
    display: block;
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
}

/* indicador de enlace externo */
.tplan-billing-ext {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    background-color: #9aa1a9;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 17 17 7M9 7h8v8'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 17 17 7M9 7h8v8'/></svg>") center / contain no-repeat;
}

.tplan-billing-row:hover .tplan-billing-ext { background-color: #3b31a8; }

.tplan-billing-aviso {
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7280;
    margin-top: 12px;
}


.tplan-billing-ext {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 3v2h3.6l-9.8 9.8 1.4 1.4L19 6.4V10h2V3zM5 5h5V3H3v18h18v-7h-2v5H5z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 3v2h3.6l-9.8 9.8 1.4 1.4L19 6.4V10h2V3zM5 5h5V3H3v18h18v-7h-2v5H5z'/></svg>");
}


/* ═══ overrides: el panel de cuenta pisa tamaños y colores ═══ */

/* reset solo de lo que inflaba: alto minimo y line-height.
   Los paddings propios se respetan mas abajo. */
.tplan-card span,
.tplan-card a {
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.tplan-card .tplan-billing-txt,
.tplan-card .tplan-billing-title,
.tplan-card .tplan-billing-desc,
.tplan-card .tplan-label,
.tplan-card .tplan-fecha {
    margin: 0 !important;
    padding: 0 !important;
}

.tplan-billing-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}

.tplan-billing-note {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-size: 11.5px !important;
    color: #9aa1a9 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
}

.tplan-billing-row {
    padding: 13px 15px !important;
    align-items: center !important;
}

.tplan-billing-txt {
    display: block !important;
    flex: 1;
    min-width: 0;
}

.tplan-billing-title {
    display: block !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #16202a !important;
    line-height: 1.35 !important;
}

.tplan-billing-desc {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
    margin-top: 2px !important;
}

.tplan-billing-ico {
    width: 20px !important;
    height: 20px !important;
    align-self: center;
}

.tplan-billing-ext {
    width: 14px !important;
    height: 14px !important;
    align-self: center;
}

/* estado del plan */
.tplan-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}

.tplan-fecha {
    font-size: 15px !important;
    color: #16202a !important;
    line-height: 1.4 !important;
}

.tplan-fecha strong { font-weight: 600 !important; }

.tplan-cta {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #3b31a8 !important;
    line-height: 1.4 !important;
}

.tplan-chevron {
    width: 8px !important;
    height: 8px !important;
}

.tplan-badge {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    padding: 3px 10px !important;
}

.tplan-badge--big {
    font-size: 13px !important;
    padding: 4px 11px !important;
}



.tplan-billing-row {
    padding: 13px 15px !important;
    margin: 0 !important;
}

.tplan-badge {
    padding: 3px 10px !important;
    margin: 0 !important;
}

.tplan-badge--big {
    padding: 4px 11px !important;
}

.tplan-billing-desc {
    margin-top: 2px !important;
}

.tplan-cta {
    padding: 0 !important;
    margin: 0 !important;
}



.tplan-billing-row--off {
    display: flex;
    align-items: flex-start;
    cursor: default;
    opacity: .75;
}
.tplan-billing-row--off:hover { background: transparent; }


.tplan-hint-pago {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #52556b;
}





.hist-modal {
    width: 620px !important;
    max-width: calc(100vw - 40px) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(26, 26, 46, .2) !important;
    overflow: hidden !important;
}
.hist-modal .col-redesign,
.hist-modal .scrollbar {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
.hist-modal .hist-head {
    padding: 26px 26px 14px !important;
}
.hist-modal .hist-head .title {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em !important;
    color: #1a1a2e !important;
}
.hist-modal .hist-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 0 14px 8px !important;
    max-height: min(56vh, 430px) !important;
    overflow-y: auto !important;
}
.hist-modal .historial-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    transition: background .15s ease;
}
.hist-modal .historial-item:hover {
    background: #f7f7f9 !important;
}
.hist-modal .historial-item.is-latest,
.hist-modal .historial-item.is-latest:hover {
    background: var(--eb-tinte, #F0EFFA) !important;
}
.hist-modal .historial-thumb {
    display: block !important;
    flex: none !important;
    width: 86px !important;
    height: 62px !important;
    padding: 2px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(26, 26, 46, .12) !important;
}
.hist-modal .historial-item.is-latest .historial-thumb {
    box-shadow: inset 0 0 0 1.5px var(--eb-indigo, #3533AD) !important;
}
.hist-modal .historial-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.hist-modal .historial-data {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}
.hist-modal .hist-when {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.2 !important;
}
.hist-modal .historial-item.is-latest .hist-when {
    font-weight: 700 !important;
    color: var(--eb-tinte-texto, #241D63) !important;
}
.hist-modal .hist-badge {
    flex: none !important;
    height: 21px !important;
    padding: 0 8px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 11px !important;
    background: var(--eb-borde, #DDD9F4) !important;
    color: var(--eb-tinte-texto, #241D63) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}
.hist-modal .hist-who {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    font-size: 13px !important;
    color: #33344d !important;
    line-height: 1.3 !important;
}
.hist-modal .hist-avatar {
    flex: none !important;
    width: 20px !important;
    height: 20px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
}
.hist-modal .hist-mail {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.hist-modal .hist-you {
    flex: none !important;
    color: #52556b !important;
}
.hist-modal .hist-size {
    flex: none !important;
    height: 20px !important;
    padding: 0 7px !important;
    display: none !important;
    place-items: center !important;
    border-radius: 10px !important;
    background: #f0f0f4 !important;
    color: #52556b !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}
.hist-modal .btn-restaurar {
    flex: none !important;
    display: inline-grid !important;
    place-items: center !important;
    height: var(--eb-h-sm, 36px) !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: var(--eb-radio, 8px) !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px var(--eb-borde, #DDD9F4) !important;
    color: var(--eb-tinte-texto, #241D63) !important;
    font-size: 13.5px !important;
    font-weight: var(--eb-peso, 600) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.hist-modal .btn-restaurar:hover {
    background: var(--eb-tinte, #F0EFFA) !important;
    box-shadow: inset 0 0 0 1px var(--eb-indigo, #3533AD) !important;
    color: var(--eb-indigo, #3533AD) !important;
}
.hist-modal .btn-restaurar:active {
    background: var(--eb-borde, #DDD9F4) !important;
}
.hist-modal .btn-restaurar:focus-visible {
    outline: none !important;
    box-shadow: var(--eb-focus, 0 0 0 2px #fff, 0 0 0 4px #A9A7E6) !important;
}
.hist-modal .hist-foot {
    padding: 12px 26px 20px !important;
    border-top: 1px solid #f0f0f4 !important;
    margin-top: 8px !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: #52556b !important;
}
.hist-modal .hist-empty {
    padding: 8px 26px 30px !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #52556b !important;
}
.hist-modal .hist-list::-webkit-scrollbar {
    width: 8px;
}
.hist-modal .hist-list::-webkit-scrollbar-thumb {
    background: #ddddE3;
    border-radius: 4px;
}
@media (max-width: 560px) {
    .hist-modal .hist-head {
        padding: 20px 18px 12px !important;
    }
    .hist-modal .hist-list {
        padding: 0 8px 8px !important;
    }
    .hist-modal .historial-item {
        gap: 10px !important;
        padding: 10px !important;
    }
    .hist-modal .historial-thumb {
        width: 64px !important;
        height: 46px !important;
    }
    .hist-modal .btn-restaurar {
        padding: 0 12px !important;
    }
}


.hist-modal .hist-role {
    display: inline-block !important;
    margin-left: 6px !important;
    padding: 1px 7px !important;
    border-radius: 10px !important;
    background: #f0f0f4 !important;
    color: #52556b !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    vertical-align: 1px !important;
}


.hist-modal .hist-filters {
    display: flex !important;
    gap: 3px !important;
    margin: 0 26px 10px !important;
    padding: 3px !important;
    border-radius: 9px !important;
    background: #f0f0f4 !important;
}
.hist-modal .hist-filter {
    flex: 1 1 0 !important;
    height: 34px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #52556b !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.hist-modal .hist-filter.is-on {
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(26, 26, 46, .1) !important;
    color: var(--eb-tinte-texto, #241D63) !important;
    font-weight: 600 !important;
}
.hist-modal .hist-day {
    padding: 12px 12px 6px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #6f7189 !important;
    line-height: 1.3 !important;
}
.hist-modal .hist-event {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 11px 12px !important;
}
.hist-modal .hist-dot {
    flex: none !important;
    width: 8px !important;
    height: 8px !important;
    margin-top: 6px !important;
    border-radius: 50% !important;
    background: #c9c7da !important;
}
.hist-modal .hist-event.is-access .hist-dot {
    background: #7aa7e0 !important;
}
.hist-modal .hist-event.is-ok .hist-dot {
    background: #7bcfa8 !important;
}
.hist-modal .hist-event.is-warn .hist-dot {
    background: #e8c98a !important;
}
.hist-modal .hist-event.is-danger .hist-dot {
    background: #e7b3bd !important;
}
.hist-modal .hist-event-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.hist-modal .hist-event-text {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #1a1a2e !important;
    text-align: left !important;
}
.hist-modal .hist-event-text b {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
}
.hist-modal .hist-quote {
    margin-top: 5px !important;
    padding-left: 10px !important;
    border-left: 2px solid var(--eb-borde, #DDD9F4) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #33344d !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.hist-modal .hist-time {
    flex: none !important;
    margin-top: 1px !important;
    font-size: 12.5px !important;
    color: #52556b !important;
}
.hist-modal .hist-role {
    display: inline-block !important;
    margin-left: 6px !important;
    padding: 1px 7px !important;
    border-radius: 10px !important;
    background: #f0f0f4 !important;
    color: #52556b !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    vertical-align: 1px !important;
}
.hist-modal .hist-list.only-versions .hist-event,
.hist-modal .hist-list.only-versions .hist-day--noversions {
    display: none !important;
}


.hist-modal .hist-list.only-versions .hist-event,
.hist-modal .hist-list.only-versions .hist-day--noversions {
    display: none !important;
}


/* ============================================================
   HISTORIAL DE VERSIONES — RESPONSIVE
   ------------------------------------------------------------
   Tres cambios por tramo: el modal pasa a ocupar la pantalla, la
   fila de version deja de ser horizontal y el boton de restaurar
   pasa a ancho completo, que es lo unico pulsable con el pulgar.
   ============================================================ */

@media (max-width: 740px) {

    .hist-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    /* cabecera fija: el titulo y el nombre del diseño no deben irse con el scroll */
    .hist-head { flex: 0 0 auto; }
    .hist-foot { flex: 0 0 auto; }

    .hist-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 0 14px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .hist-day {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding: 10px 0 6px;
    }

    /* --- fila de version: de horizontal a bloque --- */
    .historial-item {
        display: grid;
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "thumb datos"
            "boton boton";
        gap: 10px 12px;
        padding: 12px 0;
    }
    .historial-thumb { grid-area: thumb; width: 64px; height: 64px; }
    .historial-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .historial-data  { grid-area: datos; min-width: 0; }

    .btn-restaurar {
        grid-area: boton;
        display: grid;
        place-items: center;
        box-sizing: border-box;
        width: 100%;
        height: var(--eb-h-md, 44px);
        margin-top: 2px;
        border-radius: var(--eb-radio, 8px);
        box-shadow: inset 0 0 0 1px var(--eb-indigo-border, #DDD9F4);
        background: #fff;
        font-size: 15px;
        font-weight: var(--eb-peso, 600);
        color: var(--eb-indigo, #3533AD);
        text-decoration: none !important;
    }
    .btn-restaurar:active { background: var(--eb-indigo-soft, #F0EFFA); }

    /* el email largo no debe empujar la fila */
    .hist-mail {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hist-who { flex-wrap: wrap; gap: 6px; }

    /* --- eventos --- */
    .hist-event {
        display: grid;
        grid-template-columns: 10px 1fr auto;
        gap: 8px;
        padding: 10px 0;
    }
    .hist-event-text { min-width: 0; overflow-wrap: anywhere; }
    .hist-time { font-variant-numeric: tabular-nums; white-space: nowrap; }

    /* los chips de filtro no deben partirse en dos lineas */
    .hist-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
    .hist-filter  { flex: none; }



    /* La X estaba en top: -36px, fuera de la pantalla, y ademas medía 0x0.
       En movil pasa a ir DENTRO del modal, arriba a la derecha. */
    .hist-modal { position: relative; }

    .hist-modal .closeX {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        z-index: 10;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(26,26,46,.18);
        cursor: pointer;
    }
    .hist-modal .closeX svg,
    .hist-modal .closeX img {
        width: 16px !important;
        height: 16px !important;
    }

    /* el titulo deja sitio para la X */
    .hist-modal .hist-head { padding-right: 52px !important; }

}

@media (max-width: 420px) {

    /* con la pantalla mas estrecha, la miniatura se encoge y el tamaño
       (hist-size) se oculta: es el dato menos util de la fila */
    .historial-item { grid-template-columns: 52px 1fr; }
    .historial-thumb { width: 52px; height: 52px; }

    .hist-size { display: none; }
    .hist-badge { font-size: 10.5px; padding: 2px 7px; }

    .hist-list { padding: 0 12px 12px; }
}


/* ============================================================
   HISTORIAL DE VERSIONES — RESPONSIVE
   ------------------------------------------------------------
   Clases reales del marcado: hist-head, hist-list, hist-day,
   historial-item, historial-thumb, historial-data, hist-when,
   hist-time, hist-badge, hist-who, hist-avatar, hist-mail,
   hist-you, btn-restaurar. No hay chips de filtro ni hist-foot.
   ============================================================ */

@media (max-width: 740px) {
   .hist-modal .hist-list { max-height: 70dvh; }
    /* height: auto y no 100dvh: con pocas versiones, forzar la altura completa
       dejaba huecos muertos arriba y abajo. Crece solo hasta donde haga falta
       y a partir de ahi scrollea la lista. */
    .hist-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 92dvh !important;
        border-radius: 14px !important;
        display: flex;
        flex-direction: column;
    }

    .hist-modal .hist-head { flex: 0 0 auto; padding: 18px 16px 10px; }

    .hist-modal .hist-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 16px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .hist-modal .hist-day {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding: 10px 0 6px;
    }

    /* Sin grid-template-areas: se posiciona por fila y columna explicitas, que
       no depende de que los nombres de area casen y es mas dificil de romper. */
    .hist-modal .historial-item {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        grid-template-areas: none !important;
        gap: 10px 12px;
        padding: 12px 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        align-items: start;
    }
    .hist-modal .historial-thumb {
        grid-area: auto !important;
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
        flex: none;
        margin: 0 !important;
        overflow: hidden;
    }
    .hist-modal .historial-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
    .hist-modal .historial-data {
        grid-area: auto !important;
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        min-width: 0;
    }
    .hist-modal .btn-restaurar {
        grid-area: auto !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 / 3 !important;
    }
    .hist-modal .historial-thumb img { width: 100%; height: 100%; object-fit: cover; }

    .hist-modal .historial-data { grid-area: datos; min-width: 0; }

    .hist-modal .btn-restaurar {
        grid-area: boton;
        display: grid !important;
        place-items: center;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        height: var(--eb-h-md, 44px);
        margin: 2px 0 0 !important;
        padding: 0 12px;
        border-radius: var(--eb-radio, 8px);
        box-shadow: inset 0 0 0 1px var(--eb-indigo-border, #DDD9F4);
        background: #fff;
        font-size: 15px;
        font-weight: var(--eb-peso, 600);
        color: var(--eb-indigo, #3533AD);
        text-decoration: none !important;
        white-space: nowrap;
    }
    .hist-modal .btn-restaurar:active { background: var(--eb-indigo-soft, #F0EFFA); }

    /* el email largo desbordaba la fila y provocaba scroll horizontal */
    .hist-modal .hist-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
    .hist-modal .hist-mail {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hist-modal .hist-event { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 8px; padding: 10px 0; }
    .hist-modal .hist-event-text { min-width: 0; overflow-wrap: anywhere; }
    .hist-modal .hist-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
}

@media (max-width: 420px) {
    .hist-modal .historial-item  { grid-template-columns: 52px minmax(0, 1fr); }
    .hist-modal .historial-thumb { width: 52px; height: 52px; }
    .hist-modal .hist-size  { display: none; }
    .hist-modal .hist-badge { font-size: 10.5px; padding: 2px 7px; }
    .hist-modal .hist-list  { padding: 0 12px 12px; }
}
    /* hist-who es HERMANO de historial-data, no hijo: sin asignarle area caia
       en el flujo automatico de la rejilla y se colocaba bajo la miniatura,
       invadiendo la columna del thumb. */
    .hist-modal .historial-item {
        grid-template-areas:
            "thumb datos"
            "boton boton";
        grid-template-rows: auto auto;
        align-items: start;
    }
    /* hist-when y hist-who NO son hijos de la rejilla: van dentro de
       historial-data. Asignarles grid-area no hacia nada y rompia su
       disposicion. Dentro de historial-data se apilan con flex. */
    .hist-modal .historial-data {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }
    .hist-modal .hist-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .hist-modal .hist-who  { display: flex; align-items: center; gap: 6px; min-width: 0; }
    .hist-modal .hist-avatar { flex: none; position: static !important; }

    /* el email cabe entero en movil: solo se recorta si de verdad no entra */
    .hist-modal .hist-mail { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }

    /* la cabecera dejaba 200px muertos sobre la lista */
    .hist-modal .hist-head { padding: 18px 16px 4px !important; margin-bottom: 0 !important; }
    .hist-modal .hist-head .title { margin: 0 !important; }


/* pantalla completa solo en moviles reales, no en una ventana estrecha de
   escritorio: ahi el modal flotante se lee mejor */
/* En movil se deja aire arriba y abajo en vez de ocupar la pantalla entera:
   asi se ve que es una capa sobre el editor y no otra pagina, y el gesto de
   cerrar tocando fuera sigue disponible. */
@media (max-width: 740px) and (pointer: coarse) {
    .hist-modal {
        height: auto !important;
        max-height: calc(100dvh - 48px) !important;
        margin: 24px auto !important;
        border-radius: 14px !important;
    }
    .hist-modal .hist-list { max-height: calc(100dvh - 240px); }
}


.storage-bar-in { min-width: 4px; }


/* Barra horizontal inutil: al poner overflow-y: auto el navegador convierte el
   overflow-x en auto y pinta la barra aunque no haya desbordamiento real. */
.hist-modal .hist-list {
	overflow-x: hidden !important;
}
.hist-modal {
	overflow-x: hidden;
}


/* ============================================================
   CSS COMPLETO — sprite de objetos + grupo Formas (patrón 1b)
   Un único bloque, pégalo entero.
   ============================================================ */

/* Sprite de objetos: 24 iconos de 64x64 en una fila (1536x64) */
.objSlide {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	cursor: pointer;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.objSlide:hover { background: rgba(0,0,0,.06); }

.objIcon {
	display: block;
	width: 64px;
	height: 64px;
	background-image: url("/d/img/sprite-objetos.png");
	background-repeat: no-repeat;
	background-size: 1536px 64px;
	pointer-events: none;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.objIcon { background-image: url("/d/img/sprite-objetos@2x.webp"); }
}

.objIcon-squareShape{background-position:-0px 0}
.objIcon-square{background-position:-64px 0}
.objIcon-circleShape{background-position:-128px 0}
.objIcon-circle{background-position:-192px 0}
.objIcon-roundedRectShape{background-position:-256px 0}
.objIcon-roundedRect{background-position:-320px 0}
.objIcon-triangleShape{background-position:-384px 0}
.objIcon-triangle{background-position:-448px 0}
.objIcon-diamond{background-position:-512px 0}
.objIcon-pentagon{background-position:-576px 0}
.objIcon-hexagon{background-position:-640px 0}
.objIcon-hexagonShape{background-position:-704px 0}
.objIcon-octagon{background-position:-768px 0}
.objIcon-star{background-position:-832px 0}
.objIcon-starShape{background-position:-896px 0}
.objIcon-star4{background-position:-960px 0}
.objIcon-heart{background-position:-1024px 0}
.objIcon-heartShape{background-position:-1088px 0}
.objIcon-arrow{background-position:-1152px 0}
.objIcon-doubleArrow{background-position:-1216px 0}
.objIcon-line{background-position:-1280px 0}
.objIcon-lineDashed{background-position:-1344px 0}
.objIcon-speechBubble{background-position:-1408px 0}
.objIcon-cross{background-position:-1472px 0}
/* Grupo "Formas" — vive dentro de .filas/.text/.elementos ya existentes.
   No define contenedor propio: solo tamaño del icono a 26px (via % ,
   funciona a cualquier tamaño) y el overlay "+N" de la última celda. */

.elGrupoCount { font-weight: 500; color: #6f7189; }

.elementosFormas {
	flex-wrap: wrap !important;
}

.elementosFormas .elCell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	flex: 0 0 auto !important;
}

/* El sprite base (objetos-sprite.css) usa posiciones en px pensadas para
   64px. Aquí el icono se muestra a 26px, así que reescalamos el sprite
   entero con background-size en % y recalculamos cada posición en %:
   (índice / 23) * 100, para 24 iconos en fila. Gana por especificidad
   sobre las reglas en px de objetos-sprite.css sin tocar ese fichero. */
.elementosFormas .objIcon {
	width: 26px;
	height: 26px;
	display: block;
	background-size: 2400% 100%;
}
.elementosFormas .objIcon-squareShape      { background-position: 0% 0; }
.elementosFormas .objIcon-square           { background-position: 4.3478% 0; }
.elementosFormas .objIcon-circleShape      { background-position: 8.6957% 0; }
.elementosFormas .objIcon-circle           { background-position: 13.0435% 0; }
.elementosFormas .objIcon-roundedRectShape { background-position: 17.3913% 0; }
.elementosFormas .objIcon-roundedRect      { background-position: 21.7391% 0; }
.elementosFormas .objIcon-triangleShape    { background-position: 26.087% 0; }
.elementosFormas .objIcon-triangle         { background-position: 30.4348% 0; }
.elementosFormas .objIcon-diamond          { background-position: 34.7826% 0; }
.elementosFormas .objIcon-pentagon         { background-position: 39.1304% 0; }
.elementosFormas .objIcon-hexagon          { background-position: 43.4783% 0; }
.elementosFormas .objIcon-hexagonShape     { background-position: 47.8261% 0; }
.elementosFormas .objIcon-octagon          { background-position: 52.1739% 0; }
.elementosFormas .objIcon-star             { background-position: 56.5217% 0; }
.elementosFormas .objIcon-starShape        { background-position: 60.8696% 0; }
.elementosFormas .objIcon-star4            { background-position: 65.2174% 0; }
.elementosFormas .objIcon-heart            { background-position: 69.5652% 0; }
.elementosFormas .objIcon-heartShape       { background-position: 73.913% 0; }
.elementosFormas .objIcon-arrow            { background-position: 78.2609% 0; }
.elementosFormas .objIcon-doubleArrow      { background-position: 82.6087% 0; }
.elementosFormas .objIcon-line             { background-position: 86.9565% 0; }
.elementosFormas .objIcon-lineDashed       { background-position: 91.3043% 0; }
.elementosFormas .objIcon-speechBubble     { background-position: 95.6522% 0; }
.elementosFormas .objIcon-cross            { background-position: 100% 0; }

.elCellMore { cursor: pointer; }
.elCellMoreBadge {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(26, 26, 46, 0.72);
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}


/* Grupo "Formas" — vive dentro de .filas/.text/.elementos ya existentes.
   No define contenedor propio: solo tamaño del icono a 26px (via % ,
   funciona a cualquier tamaño) y el overlay "+N" de la última celda. */

.elGrupoCount { font-weight: 500; color: #6f7189; }

.elementosFormas {
	flex-wrap: wrap !important;
}

.elementosFormas .elCell {
	flex: 0 0 20% !important;
	width: 20% !important;
	aspect-ratio: 1;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: grab;
}

/* El sprite base (objetos-sprite.css) usa posiciones en px pensadas para
   64px. Aquí el icono se muestra a 26px, así que reescalamos el sprite
   entero con background-size en % y recalculamos cada posición en %:
   (índice / 23) * 100, para 24 iconos en fila. Gana por especificidad
   sobre las reglas en px de objetos-sprite.css sin tocar ese fichero. */
.elementosFormas .objIcon {
	width: 85%;
	height: 85%;
	display: block;
	background-size: 2400% 100%;
}
.elementosFormas .objIcon-squareShape      { background-position: 0% 0; }
.elementosFormas .objIcon-square           { background-position: 4.3478% 0; }
.elementosFormas .objIcon-circleShape      { background-position: 8.6957% 0; }
.elementosFormas .objIcon-circle           { background-position: 13.0435% 0; }
.elementosFormas .objIcon-roundedRectShape { background-position: 17.3913% 0; }
.elementosFormas .objIcon-roundedRect      { background-position: 21.7391% 0; }
.elementosFormas .objIcon-triangleShape    { background-position: 26.087% 0; }
.elementosFormas .objIcon-triangle         { background-position: 30.4348% 0; }
.elementosFormas .objIcon-diamond          { background-position: 34.7826% 0; }
.elementosFormas .objIcon-pentagon         { background-position: 39.1304% 0; }
.elementosFormas .objIcon-hexagon          { background-position: 43.4783% 0; }
.elementosFormas .objIcon-hexagonShape     { background-position: 47.8261% 0; }
.elementosFormas .objIcon-octagon          { background-position: 52.1739% 0; }
.elementosFormas .objIcon-star             { background-position: 56.5217% 0; }
.elementosFormas .objIcon-starShape        { background-position: 60.8696% 0; }
.elementosFormas .objIcon-star4            { background-position: 65.2174% 0; }
.elementosFormas .objIcon-heart            { background-position: 69.5652% 0; }
.elementosFormas .objIcon-heartShape       { background-position: 73.913% 0; }
.elementosFormas .objIcon-arrow            { background-position: 78.2609% 0; }
.elementosFormas .objIcon-doubleArrow      { background-position: 82.6087% 0; }
.elementosFormas .objIcon-line             { background-position: 86.9565% 0; }
.elementosFormas .objIcon-lineDashed       { background-position: 91.3043% 0; }
.elementosFormas .objIcon-speechBubble     { background-position: 95.6522% 0; }
.elementosFormas .objIcon-cross            { background-position: 100% 0; }

.elCellMore { cursor: pointer; }
.elCellMoreBadge {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(26, 26, 46, 0.72);
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}