/* ============================================================
   EMAIL sin Klaviyo (maqueta 17-oct-2026) — prefijo em-. Solo tokens de tokens.css y las piezas
   de siempre (wa-tabrow, sec-tabs, pg-card, pg-table, ui-seg, ui-btn, pill…). Lo único con otra
   letra es el EMAIL en sí (Montserrat y el azul marino de Fenghi): es lo que verá quien lo reciba.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400&display=swap");

.em-page { max-width: var(--content-w-lg); margin: 0 auto; width: 100%; box-sizing: border-box; }
.em-pg .pg-hero .pg-big.md { font-size: 28px; }
.em-h { margin: 0; font: var(--fw-sb) 22px/1.25 var(--font); letter-spacing: -.02em; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.em-h .pill { font-size: 12px; letter-spacing: 0; }
.em-sec-h { margin: 36px 0 14px; font: var(--fw-sb) 14px/1.3 var(--font); color: var(--ink); }
.em-side-h { margin: 22px 0 8px; font: var(--fw-sb) 13px/1.3 var(--font); color: var(--ink); }
.em-side-h:first-child { margin-top: 0; }
.em-vacio { margin: 0; padding: 18px 20px 20px; color: var(--ink-3); font-size: 13px; }
.em-vacio-td { padding: 28px 20px !important; color: var(--ink-3); }
.em-link { appearance: none; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.em-link:hover { text-decoration: underline; }
.em-mal { color: var(--alert); font-weight: var(--fw-sb); }

/* ---- Buscar en la fila de pestañas ---- */
.em-buscar { position: relative; display: inline-flex; align-items: center; margin-left: auto; }
.em-buscar + .wa-tabinfo { margin-left: 0; }
.em-buscar-ico { position: absolute; left: 9px; width: 14px; height: 14px; color: var(--ink-3); pointer-events: none; }
.em-buscar input { width: 200px; height: 30px; padding: 0 10px 0 28px; border: 0; border-radius: var(--r-md); background: var(--block-2);
                   font: 13px var(--font); color: var(--ink); outline: none; transition: background var(--t), box-shadow var(--t), width 160ms ease; }
.em-buscar input:focus { background: var(--bg); box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px rgba(37, 99, 235, .14); width: 240px; }

/* ---- Tablas con filas que se pulsan ---- */
.em-row { cursor: pointer; transition: background var(--t); }
.em-row:hover { background: var(--hover); }
.em-ct td a { color: var(--ink); text-decoration: none; font-weight: var(--fw-med); }
.em-mas { display: block; padding: 12px 20px 14px; border-top: 1px solid var(--line-row); text-align: center; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.em-mas:hover { color: var(--ink); background: var(--hover); }

/* ---- Resumen: lo que más vendió y lo que viene ---- */
.em-top { padding: 8px 8px 12px; }
.em-top-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 76px; align-items: center; gap: 14px; padding: 9px 12px;
              border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
a.em-top-row:hover { background: var(--hover); }
.em-top-n { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.em-top-n .t { font-size: 13px; font-weight: var(--fw-med); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-top-n .s { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-top-bar { height: 6px; border-radius: 3px; background: var(--block-2); overflow: hidden; }
.em-top-bar i { display: block; height: 100%; border-radius: 3px; background: #3B82F6; }
.em-top-bar.gris i { background: #A1A1AA; }
.em-top-row > b { text-align: right; font-size: 13px; font-weight: var(--fw-sb); font-variant-numeric: tabular-nums; }
.em-viene { padding: 6px 8px 12px; }
.em-viene-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-lg); }
.em-viene-row:hover { background: var(--hover); }
.em-dia { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; border-radius: 9px;
          background: var(--block-2); color: var(--ink-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.em-dia b { font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.em-viene-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.em-viene-n .t { font-size: 13px; font-weight: var(--fw-med); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-viene-n .s { font-size: 12px; color: var(--ink-3); }
.em-pill-a { text-decoration: none; }

/* ---- Cifras en fila (detalle de campaña y de flow) ---- */
.em-kpis { display: flex; flex-wrap: wrap; gap: 8px 44px; margin: 22px 0 6px; }
.em-kpis > div { display: flex; flex-direction: column; gap: 3px; }
.em-kpis span { font-size: 12.5px; color: var(--ink-2); }
.em-kpis b { font: var(--fw-sb) 24px/1.15 var(--font); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.em-kpis small { font-size: 12px; color: var(--ink-3); }
.em-kpis.sm { gap: 8px 28px; margin: 18px 0 8px; }
.em-kpis.sm b { font-size: 16px; letter-spacing: -.01em; }
.em-kpis.sm .pill { font-size: 12px; }

/* ---- Detalle de una campaña ---- */
.em-det-head { margin-top: 2px; }
.em-det-sub { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.em-det-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.em-det-side { position: sticky; top: calc(var(--header-total) + 20px); padding-top: 24px; }
.em-previa { margin-top: 22px; padding: 28px; border-radius: var(--r-card); background: var(--block-2); }
.em-previa .em-inbox { max-width: 600px; margin: 0 auto 14px; }
.em-frame { display: block; width: 100%; max-width: 640px; height: 1400px; margin: 0 auto; border: 0; border-radius: 10px; background: #fff;
            box-shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 10px 30px rgba(24, 24, 27, .06); }
.em-compras { display: flex; flex-direction: column; }
.em-compra { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: var(--r-md);
             color: var(--ink); text-decoration: none; font-size: 13px; }
.em-compra:hover { background: var(--hover); }
.em-compra > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.em-compra small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-compra .r { text-align: right; font-weight: var(--fw-sb); font-variant-numeric: tabular-nums; flex: none; }
.em-compra .r small { font-weight: 400; }

/* ---- La fila de bandeja (remitente · asunto · vista previa) ---- */
.em-inbox { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px;
            border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line-card), 0 1px 2px rgba(24, 24, 27, .04); }
.em-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #00305C; color: #fff; font: var(--fw-sb) 14px/1 var(--font); }
.em-inbox-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.35; }
.em-inbox-t > b { font-weight: var(--fw-sb); color: var(--ink); }
.em-inbox-s { color: var(--ink); font-weight: var(--fw-med); }
.em-inbox-p { color: var(--ink-2); }
.em-inbox-ro .em-inbox-s, .em-inbox-ro .em-inbox-p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-inbox-h { align-self: start; font-size: 12px; color: var(--ink-3); padding-top: 2px; }

/* ---- Nueva campaña ---- */
.em-nueva .em-h { margin-bottom: 22px; }
.em-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.em-start-card { appearance: none; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; border: 0; border-radius: 14px;
                 background: var(--bg); box-shadow: var(--shadow-card); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
                 transition: box-shadow var(--t), transform 120ms ease; }
button.em-start-card:hover { box-shadow: 0 0 0 1px var(--accent), 0 6px 20px rgba(37, 99, 235, .10); }
.em-start-t { font: var(--fw-sb) 14px/1.3 var(--font); padding: 0 2px 2px; }
.em-start-art { position: relative; display: block; height: 168px; border-radius: 10px; background: var(--block-2); overflow: hidden; }
.em-art-plantilla, .em-art-blanco { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 22% 0; box-sizing: border-box; }
.em-art-plantilla::before, .em-art-blanco::before { content: ""; position: absolute; inset: 12px 18% 0; border-radius: 6px 6px 0 0; background: #fff; box-shadow: 0 1px 3px rgba(24, 24, 27, .06); }
.em-start-art i, .em-start-art .a-prods { position: relative; display: block; }
.em-start-art .a-logo { width: 14px; height: 14px; border-radius: 50%; background: #00305C; margin-top: 6px; }
.em-start-art .a-foto { width: 100%; height: 52px; border-radius: 3px; background: linear-gradient(135deg, #E9D8C4, #C9A882 55%, #8C6A4A); }
.em-start-art .a-tit { width: 70%; height: 7px; border-radius: 3px; background: #00305C; }
.em-start-art .a-l { width: 86%; height: 4px; border-radius: 2px; background: #C9D3DE; }
.em-start-art .a-l.s { width: 60%; }
.em-start-art .a-btn { width: 38%; height: 11px; border-radius: 6px; background: #00305C; }
.em-start-art .a-prods { display: flex; gap: 5px; width: 76%; }
.em-start-art .a-prods i { flex: 1; height: 26px; border-radius: 3px; background: #EEF1F5; }
.em-art-blanco span { position: relative; margin-top: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
                      color: var(--ink-3); font-size: 22px; box-shadow: inset 0 0 0 1.5px #D4D4D8; }
.em-art-claude { display: none; }
.em-start-claude { cursor: default; }
.em-start-claude .em-start-t { order: -1; }
.em-start-claude textarea { flex: 1; min-height: 120px; resize: none; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--block-2);
                             font: 13.5px/1.5 var(--font); color: var(--ink); outline: none; transition: background var(--t), box-shadow var(--t); }
.em-start-claude textarea:focus { background: var(--bg); box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px rgba(37, 99, 235, .14); }
.em-start-claude .ui-btn { align-self: flex-end; }
.em-start-claude.busy textarea { opacity: .5; }
.em-copias { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 16px; }
.em-copia { appearance: none; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.em-copia-mini { position: relative; display: block; height: 220px; border-radius: 10px; overflow: hidden; background: #fff;
                 box-shadow: 0 0 0 1px var(--line-card), 0 1px 2px rgba(24, 24, 27, .04); margin-bottom: 6px; transition: box-shadow var(--t); }
.em-copia:hover .em-copia-mini { box-shadow: 0 0 0 1px var(--accent), 0 6px 18px rgba(37, 99, 235, .12); }
.em-copia-mini iframe { position: absolute; top: 0; left: 0; width: 640px; height: 1100px; border: 0; transform: scale(.28); transform-origin: 0 0; pointer-events: none; }
.em-copia-t { font-size: 13px; font-weight: var(--fw-med); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-copia-s { font-size: 12px; color: var(--ink-3); }
.em-cargando { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; background: rgba(255, 255, 255, .72); backdrop-filter: blur(2px); }
.em-cargando > div { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.em-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(24, 24, 27, .12); border-top-color: var(--ink); animation: em-spin .8s linear infinite; }
@keyframes em-spin { to { transform: rotate(360deg); } }

/* ============================================================
   EL CONSTRUCTOR
   ============================================================ */
.em-ed { max-width: none; }
.em-ed > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.em-ed > .wa-step:not(.em-s-email), .em-ed > .em-foot { max-width: 1320px; }
.em-ed-top { display: flex; align-items: center; justify-content: space-between; }
.em-ed-top .back-link { margin-bottom: 0; }
.em-saved { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.em-saved.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.em-nombre { display: block; width: 100%; box-sizing: border-box; margin: 12px auto 22px; }
.em-ed .wa-step { margin-top: 26px; padding-top: 20px; scroll-margin-top: calc(var(--header-total) + 8px); }
.em-studio { scroll-margin-top: calc(var(--header-total) + 12px); }
.em-ed .wa-step + .wa-step { margin-top: 30px; }

.em-studio { --rail: 156px; --props: 272px;
             display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) var(--props);
             height: clamp(560px, calc(100dvh - var(--header-total) - 112px), 900px);
             border-radius: 14px; background: var(--bg); box-shadow: var(--shadow-card); overflow: hidden; }

/* Bloques */
.em-rail { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.em-rail-h { padding: 14px 16px 8px; font: var(--fw-sb) 12px/1 var(--font); color: var(--ink-2); }
.em-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 12px 14px; overflow-y: auto; }
.em-tile { appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 68px; padding: 6px 4px;
           border: 0; border-radius: 10px; background: var(--block); color: var(--ink-2); font: var(--fw-med) 11.5px/1.15 var(--font);
           cursor: grab; transition: background var(--t), color var(--t), box-shadow var(--t); text-align: center; }
.em-tile:hover { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line-card), 0 2px 6px rgba(24, 24, 27, .06); }
.em-tile:active { cursor: grabbing; }
.em-tile svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Escenario */
.em-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #F4F4F5; }
.em-bar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.em-bar .ui-seg { margin-right: 8px; }
.em-bar .ui-seg svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.em-ibtn { appearance: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--r-md); background: none;
           color: var(--ink-2); cursor: pointer; }
.em-ibtn:hover { background: var(--hover-ctl); color: var(--ink); }
.em-ibtn[disabled] { opacity: .35; pointer-events: none; }
.em-ibtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.em-bar-r { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.em-peso { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.em-peso.mal { color: var(--alert); font-weight: var(--fw-sb); }
.em-canvas { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 16px 72px; scroll-padding: 24px; container-type: inline-size; container-name: lienzo; }
.em-paper { width: 600px; max-width: 100%; margin: 0 auto; transition: width 200ms ease; }
.em-paper.movil { width: 375px; }
.em-paper > .em-inbox { margin-bottom: 14px; }
.em-paper [contenteditable] { outline: none; cursor: text; }
.em-paper [contenteditable]:empty::before { content: attr(data-ph); color: #9FB0C3; pointer-events: none; }
.em-mail [contenteditable]:empty { min-height: 1.4em; }
.eb-texto:empty::before { display: block; }
.em-inbox-s[contenteditable], .em-inbox-p[contenteditable] { border-radius: 4px; padding: 1px 4px; margin: 0 -4px; transition: background var(--t), box-shadow var(--t); }
.em-inbox-s[contenteditable]:hover, .em-inbox-p[contenteditable]:hover { background: var(--hover); }
.em-inbox-s[contenteditable]:focus, .em-inbox-p[contenteditable]:focus { background: #fff; box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px rgba(37, 99, 235, .14); }

/* El email: lo que verá ella (Montserrat, azul marino de Fenghi) */
.em-mail { position: relative; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 12px 32px rgba(24, 24, 27, .07);
           font: 400 16px/1.55 Montserrat, Arial, sans-serif; color: #00305C; padding-bottom: 6px; }
.em-mail-h { display: flex; justify-content: center; padding: 26px 0 18px; }
.em-mail-h img { width: 46px; height: 46px; }
.em-mail-f { margin-top: 18px; padding: 22px 40px 26px; text-align: center; font-size: 11.5px; line-height: 1.6; color: #5B7290; border-top: 1px solid #EEF1F5; }
.em-mail-f p { margin: 0 0 6px; }
.em-mail-f a { color: #5B7290; }
.em-redes { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.em-redes span { width: 22px; height: 22px; border-radius: 50%; background: #E8EDF3; display: grid; place-items: center; }
.em-redes svg { width: 12px; height: 12px; fill: #5B7290; }
.em-vacio-mail { margin: 10px 24px 20px; padding: 46px 24px; border: 1.5px dashed #D4DCE6; border-radius: 10px; text-align: center; color: #8A9BB0;
                 font: 13.5px/1.5 var(--font); }

/* Un bloque */
.eb { position: relative; outline: 1px solid transparent; outline-offset: -1px; transition: outline-color 80ms ease; }
.eb:hover { outline-color: rgba(37, 99, 235, .35); }
.eb.sel { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 2; }
.eb.drag { opacity: .35; }
.eb-tag { position: absolute; left: -2px; top: -22px; display: none; align-items: center; height: 20px; padding: 0 8px; border-radius: 5px 5px 5px 0;
          background: var(--accent); color: #fff; font: var(--fw-med) 11px/1 var(--font); white-space: nowrap; pointer-events: none; }
.eb.sel .eb-tag { display: inline-flex; }
.eb-acts { position: absolute; top: 0; right: -46px; display: none; flex-direction: column; gap: 2px; padding: 3px; border-radius: 9px;
           background: var(--bg); box-shadow: var(--shadow-pop); z-index: 5; }
.eb.sel .eb-acts { display: flex; }
.eb-acts button { appearance: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none;
                  color: var(--ink-2); cursor: pointer; }
.eb-acts button:hover { background: var(--hover-ctl); color: var(--ink); }
.eb-acts button.del:hover { color: var(--alert); background: var(--pill-red-bg); }
.eb-acts .grip { cursor: grab; }
.eb-acts svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eb-plus { position: absolute; left: 50%; bottom: -11px; z-index: 6; display: none; place-items: center; width: 22px; height: 22px; margin-left: -11px;
           padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 0 0 3px #fff; }
.eb-plus svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.eb:hover > .eb-plus, .eb.sel > .eb-plus { display: grid; }
.em-drop { position: absolute; left: 12px; right: 12px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--accent); pointer-events: none; z-index: 8; }
.em-drop::before, .em-drop::after { content: ""; position: absolute; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.em-drop::before { left: -4px; } .em-drop::after { right: -4px; }
@container lienzo (max-width: 691px) {
    .eb-acts { top: 6px; right: 6px; flex-direction: row; }
    .eb-tag { top: 0; left: 0; border-radius: 0 0 5px 0; }
}

/* Lo de dentro de cada bloque */
.eb-pad { padding: 10px 40px; }
.em-paper.movil .eb-pad { padding: 10px 22px; }
.eb-titulo { margin: 0; font-weight: 600; letter-spacing: -.005em; line-height: 1.25; color: #00305C; }
.eb-titulo.s { font-size: 19px; } .eb-titulo.m { font-size: 24px; } .eb-titulo.l { font-size: 30px; }
.eb-texto p { margin: 0 0 12px; } .eb-texto p:last-child { margin-bottom: 0; }
.eb-texto a, .eb-ft a { color: #00305C; }
.eb-texto.s { font-size: 14px; } .eb-texto.l { font-size: 18px; }
.c { text-align: center; }
.em-var { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 5px; background: #E6EEF8; color: #1E4B7A; font: 600 .82em/1.6 var(--font); vertical-align: .05em; }
.eb-foto { display: block; }
.eb-foto img { display: block; width: 100%; height: auto; }
.eb-foto.margen { padding: 8px 40px; }
.em-paper.movil .eb-foto.margen { padding: 8px 22px; }
.eb-foto.margen img { border-radius: 6px; }
.eb-foto-vacia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 240px; background: #F2F5F8;
                 color: #8A9BB0; font: 13px var(--font); }
.eb-foto-vacia svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.eb-boton { padding: 14px 40px; }
.eb-boton span { display: inline-block; padding: 14px 30px; border-radius: 25px; background: #00305C; color: #fff; font: 400 17px/1.2 Montserrat, Arial, sans-serif; }
.eb-boton.verde span { background: #3E6B4A; } .eb-boton.negro span { background: #18181B; }
.eb-boton.borde span { background: transparent; color: #00305C; box-shadow: inset 0 0 0 1.5px #00305C; }
.eb-prods { display: grid; gap: 14px; padding: 10px 24px 14px; }
.eb-prods.c2 { grid-template-columns: repeat(2, 1fr); } .eb-prods.c3 { grid-template-columns: repeat(3, 1fr); }
.em-paper.movil .eb-prods.c3 { grid-template-columns: repeat(2, 1fr); }
.eb-prod { text-align: center; }
.eb-prod img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #F6F7F9; }
.eb-prod b { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.eb-prod span { display: block; margin-top: 2px; font-size: 13px; }
.eb-prod-vacio { grid-column: 1 / -1; padding: 30px; border: 1.5px dashed #D4DCE6; border-radius: 8px; text-align: center; color: #8A9BB0; font: 13px var(--font); }
.eb-codigo { padding: 12px 40px; }
.eb-codigo > div { padding: 18px 16px; border: 1.5px dashed #00305C; border-radius: 10px; text-align: center; }
.eb-codigo b { display: block; font: 600 24px/1.2 Montserrat, Arial, sans-serif; letter-spacing: .12em; }
.eb-codigo span { display: block; margin-top: 4px; font-size: 13.5px; }
.eb-ft { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; padding: 12px 40px; }
.eb-ft.der > :first-child { order: 2; }
.eb-ft img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.eb-ft h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.eb-ft p { margin: 0 0 8px; font-size: 15px; }
.em-paper.movil .eb-ft { grid-template-columns: 1fr; padding: 12px 22px; }
.em-paper.movil .eb-ft.der > :first-child { order: 0; }
.eb-resena { padding: 14px 48px; text-align: center; }
.eb-resena .est { color: #E0A93B; letter-spacing: 2px; font-size: 15px; }
.eb-resena q { display: block; margin: 6px 0 8px; font-style: italic; font-size: 17px; line-height: 1.5; quotes: "«" "»"; }
.eb-resena span { font-size: 13px; font-weight: 600; }
.eb-firma { padding: 12px 40px 16px; }
.eb-firma p { margin: 0; } .eb-firma b { font-weight: 600; }
.eb-sep { padding: 14px 40px; } .eb-sep hr { margin: 0; border: 0; border-top: 1px solid #DDE4EC; }
.eb-esp { background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(37, 99, 235, .0) 6px 12px); }
.eb:hover .eb-esp, .eb.sel .eb-esp { background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(37, 99, 235, .07) 6px 12px); }

/* La barrita de formato al seleccionar texto */
.em-fmt { position: fixed; z-index: 1250; display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--ink); box-shadow: var(--shadow-toast); }
.em-fmt button { appearance: none; height: 28px; min-width: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: #fff; font: var(--fw-sb) 13px/1 var(--font); cursor: pointer; }
.em-fmt button:hover { background: rgba(255, 255, 255, .14); }
.em-fmt i { font-family: Georgia, serif; }

/* Propiedades */
.em-props { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); overflow-y: auto; }
.emp-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 14px 18px 12px; background: var(--bg); font: var(--fw-sb) 13.5px/1.2 var(--font); color: var(--ink); }
.emp-h svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.emp-h .em-link { margin-left: auto; font-size: 12.5px; }
.emp-b { display: flex; flex-direction: column; gap: 16px; padding: 4px 18px 22px; }
.emp-b .ui-field input, .emp-b .ui-field textarea { font-size: 13px; }
.emp-cnt { float: right; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.emp-cnt.mal { color: var(--watch); }
.emp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: var(--fw-med) 12.5px/1.2 var(--font); color: var(--ink-2); }
.emp-row .ui-seg svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.emp-sws { display: flex; gap: 7px; }
.emp-sw { appearance: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.emp-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.emp-img { position: relative; border-radius: 10px; overflow: hidden; background: var(--block-2); }
.emp-img img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.emp-img .ui-btn { position: absolute; right: 8px; bottom: 8px; }
.emp-img-vacia { display: grid; place-items: center; height: 120px; color: var(--ink-3); font-size: 12.5px; }
.emp-desc { font-size: 12px; color: var(--ink-3); line-height: 1.45; margin-top: -6px; }
.emp-prods { display: flex; flex-direction: column; gap: 6px; }
.emp-prod { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border-radius: 9px; background: var(--block); font-size: 12.5px; }
.emp-prod img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: #fff; }
.emp-prod span { display: flex; flex-direction: column; min-width: 0; }
.emp-prod span b { font-weight: var(--fw-med); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-prod span small { color: var(--ink-3); }
.emp-prod .ui-x { width: 24px; height: 24px; }
.emp-ia { margin-top: 4px; padding: 12px; border-radius: 12px; background: var(--block); display: flex; flex-direction: column; gap: 8px; }
.emp-ia-h { display: flex; align-items: center; gap: 6px; font: var(--fw-sb) 12.5px/1 var(--font); color: var(--ink); }
.emp-ia-h svg { width: 14px; height: 14px; fill: #D97757; }
.emp-ia textarea { min-height: 54px; resize: none; padding: 8px 10px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(24, 24, 27, .1);
                   font: 13px/1.45 var(--font); color: var(--ink); outline: none; }
.emp-ia textarea:focus { box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px rgba(37, 99, 235, .14); }
.emp-ia-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.emp-ia-chips button { appearance: none; height: 24px; padding: 0 9px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line-card);
                       font: var(--fw-med) 12px/1 var(--font); color: var(--ink-2); cursor: pointer; }
.emp-ia-chips button:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(24, 24, 27, .2); }
.emp-ia.busy { opacity: .6; pointer-events: none; }
.emp-ideas { display: flex; flex-direction: column; gap: 6px; }
.emp-idea { appearance: none; text-align: left; padding: 8px 10px; border: 0; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line-card);
            font: 12.5px/1.4 var(--font); color: var(--ink); cursor: pointer; }
.emp-idea:hover { box-shadow: 0 0 0 1px var(--accent); }
.emp-idea small { display: block; color: var(--ink-3); }
.emp-gmail { padding: 12px 14px; border-radius: 12px; background: var(--block); }
.emp-gmail-l { font: var(--fw-med) 11.5px/1 var(--font); color: var(--ink-3); margin-bottom: 8px; }
.emp-gmail-r { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font: 13px/1.35 Roboto, Arial, sans-serif; color: #202124; }
.emp-gmail-r .em-av { width: 30px; height: 30px; font-size: 12px; }
.emp-gmail-r b { display: block; font-weight: 600; }
.emp-gmail-r > span:last-child { min-width: 0; }
.emp-gmail-r > span:last-child span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-gmail-r .p { color: #5f6368; }
.emp-nada { padding: 2px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.emp-range { width: 100%; accent-color: var(--ink); }

/* Popover (el «+» entre bloques) */
.em-pop { position: fixed; z-index: 1250; padding: 5px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-pop); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 260px; }
.em-pop button { appearance: none; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 9px; border: 0; border-radius: 8px; background: none;
                 font: var(--fw-med) 12.5px/1 var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.em-pop button:hover { background: var(--hover-ctl); }
.em-pop svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Fotos: la Biblioteca y los productos ---- */
.em-bib .ui-modal-box { width: min(1120px, 100%); height: min(860px, calc(100dvh - 48px)); }
.em-bib-h { display: flex; align-items: center; gap: 14px; padding: 16px 20px 0; flex-wrap: wrap; }
.em-bib-h h2 { margin: 0; font: var(--fw-sb) 16px/1.2 var(--font); }
.em-bib-h .ui-x { margin-left: auto; }
.em-bib-f { display: flex; align-items: center; gap: 8px; padding: 14px 20px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.em-bib-q { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.em-bib-q svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--ink-3); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.em-bib-q input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 0; border-radius: 9px; background: var(--block-2); font: 14px var(--font); color: var(--ink); outline: none; }
.em-bib-q input:focus { background: #fff; box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px rgba(37, 99, 235, .14); }
.em-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.em-chip { appearance: none; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-card);
           font: var(--fw-med) 12.5px/1 var(--font); color: var(--ink-2); cursor: pointer; }
.em-chip:hover { color: var(--ink); }
.em-chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.em-bib-b { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.em-bib-grid { overflow-y: auto; padding: 14px 16px 24px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows: max-content; gap: 8px; align-content: start; }
.em-bib-it { appearance: none; position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--block-2); aspect-ratio: 1; cursor: pointer; }
.em-bib-it img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 200ms ease; }
.em-bib-it:hover img { transform: scale(1.03); }
.em-bib-it.on { box-shadow: 0 0 0 3px var(--accent); }
.em-bib-it.on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff;
                       display: grid; place-items: center; font: 600 12px/1 var(--font); }
.em-bib-it.prod { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-card); text-align: left; }
.em-bib-it.prod img { aspect-ratio: 1; height: auto; background: #F6F7F9; }
.em-bib-it.prod span { padding: 7px 9px 9px; font: var(--fw-med) 12px/1.3 var(--font); color: var(--ink); }
.em-bib-it.prod span small { display: block; color: var(--ink-3); font-weight: 400; }
.em-bib-it.prod.agotado img { opacity: .45; }
.em-bib-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.em-bib-ver { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.em-bib-ver img { width: 100%; border-radius: 10px; background: var(--block-2); }
.em-bib-ver p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.em-bib-ver small { font-size: 12px; color: var(--ink-3); }
.em-bib-nada { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 13px; text-align: center; padding: 20px; }
.em-bib-pie { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.em-bib-pie span { margin-right: auto; font-size: 12.5px; color: var(--ink-3); }
.em-bib-vacia { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---- Vista previa ---- */
.em-prev .ui-modal-box { width: min(1060px, 100%); height: min(900px, calc(100dvh - 48px)); }
.em-prev-b { flex: 1; min-height: 0; display: flex; gap: 36px; justify-content: center; padding: 22px 30px; background: var(--block-2); overflow: auto; }
.em-prev-pc { width: 600px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.em-prev-mv { width: 360px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.em-prev-b iframe { flex: 1; width: 100%; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 10px 30px rgba(24, 24, 27, .07); }
.em-prev-mv iframe { border-radius: 26px; box-shadow: 0 0 0 8px #18181B, 0 14px 36px rgba(24, 24, 27, .18); }
.em-prev-l { font: var(--fw-med) 12px/1 var(--font); color: var(--ink-3); text-align: center; }

/* ---- 2 A quién · 3 Revisión · 4 Cuándo ---- */
.em-sin { display: flex; flex-direction: column; gap: 10px; }
.em-sin-row { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); cursor: pointer; width: fit-content; }
.em-sin-row small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.em-tandas { margin-top: 4px; }
.em-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; max-width: 860px; }
.emc { appearance: none; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; margin: 0 -10px;
       border: 0; border-radius: 9px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: default; }
.emc[data-blk] { cursor: pointer; }
.emc[data-blk]:hover { background: var(--hover); }
.emc i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.emc i svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.emc.ok i { background: var(--good); } .emc.aviso i { background: var(--watch); } .emc.mal i { background: var(--alert); }
.emc b { display: block; font-size: 13px; font-weight: var(--fw-med); }
.emc small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-3); }
.emc.mal small { color: var(--alert); } .emc.aviso small { color: var(--pill-yellow-tx); }
.em-test { max-width: 860px; }
.em-test input[type=email] { width: 240px; }
.em-foot { position: sticky; bottom: 0; z-index: 5; margin-top: 30px; padding: 14px 0 16px; background: linear-gradient(to bottom, rgba(255, 255, 255, .86), #fff 30%); backdrop-filter: blur(4px); }
.em-foot .tpl-f-status { font-size: 13px; color: var(--ink-2); }
.em-foot .tpl-f-status b { color: var(--ink); font-weight: var(--fw-sb); }

/* ============================================================
   FLOWS
   ============================================================ */
.em-flow .em-kpis { margin-top: 20px; }
.em-dice { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.em-dice-i { appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
             background: var(--block); color: var(--ink-2); font: 13px/1 var(--font); cursor: pointer; }
.em-dice-i:hover { background: var(--block-2); color: var(--ink); }
.em-dice-i b { color: var(--ink); font-weight: var(--fw-sb); }
.em-dice-i i { width: 7px; height: 7px; border-radius: 50%; }
.em-dice-i i.ok { background: var(--good); } .em-dice-i i.bad { background: var(--alert); } .em-dice-i i.mid { background: var(--watch); }
@media (max-width: 640px) { .em-dice-i { height: auto; min-height: 32px; padding: 7px 12px; line-height: 1.35; text-align: left; flex-wrap: wrap; border-radius: 12px; } }
.em-ramas { margin: 26px 0 0; }
.em-rec { list-style: none; margin: 24px 0 40px; padding: 0; max-width: 980px; position: relative; }
.em-rec::before { content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 1.5px; background: #E4E4E7; }
.em-rec > li { position: relative; }
.em-rec-ini, .em-rec-fin { display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
.em-rec-ini span:last-child { font-weight: var(--fw-sb); color: var(--ink); }
.em-rec-dot { position: relative; z-index: 1; width: 36px; height: 20px; display: grid; place-items: center; }
.em-rec-dot::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.em-rec-fin .em-rec-dot::before { background: #D4D4D8; }
.em-rec-w { padding: 7px 0 7px 50px; font-size: 12.5px; color: var(--ink-3); }
.em-rec-w span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -2px; border-radius: 50%;
                         background: conic-gradient(var(--ink-3) 0 25%, transparent 0) border-box; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.em-rec-x { padding: 6px 0 6px 50px; font-size: 12.5px; color: var(--pill-green-tx); }
.em-rec-x span::before { content: "↳ "; }
.em-rec-card { appearance: none; position: relative; z-index: 1; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px;
               width: 100%; padding: 12px 16px 12px 0; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
               transition: background var(--t); }
.em-rec-card:hover { background: var(--block); }
.em-rec-card.on { background: var(--block-2); }
.em-rec-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--line-card), 0 1px 2px rgba(24, 24, 27, .05); }
.em-rec-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.em-rec-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.em-rec-n .t { font-size: 13.5px; font-weight: var(--fw-sb); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.em-rec-n .s { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-cond { font-size: 11.5px; font-weight: var(--fw-med); color: var(--ink-2); background: var(--block-2); padding: 2px 7px; border-radius: 6px; }
.em-rec-bar { display: block; height: 4px; margin-top: 5px; max-width: 260px; border-radius: 2px; background: var(--block-2); overflow: hidden; }
.em-rec-bar i { display: block; height: 100%; background: #93C5FD; border-radius: 2px; }
.em-rec-st { display: grid; grid-template-columns: 92px 56px 56px 84px; gap: 10px; text-align: right; }
.em-rec-st > span { display: flex; flex-direction: column; gap: 1px; }
.em-rec-st b { font-size: 13.5px; font-weight: var(--fw-sb); font-variant-numeric: tabular-nums; }
.em-rec-st small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.em-rec-st em { font-style: normal; }
.em-rec-st em.bad { color: var(--alert); }
.em-rec-eur.cero b { color: var(--ink-3); font-weight: 400; }

/* Panel de un email del flow / de una persona */
.em-drawer .em-dw-h { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 6px; }
.em-drawer .em-dw-h > div { flex: 1; min-width: 0; }
.em-drawer .em-dw-h h2 { margin: 0; font: var(--fw-sb) 16px/1.3 var(--font); }
.em-drawer .em-dw-h p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.em-dw-b { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 24px; }
.em-dw-b .em-kpis { margin: 12px 0 18px; gap: 6px 28px; }
.em-dw-b .em-kpis b { font-size: 18px; }
.em-dw-prev { padding: 16px; border-radius: 12px; background: var(--block-2); }
.em-dw-prev .em-inbox { margin-bottom: 12px; }
.em-dw-prev iframe { display: block; width: 100%; height: 1200px; border: 0; border-radius: 8px; background: #fff; }
.em-pc { padding: 20px; }
.em-pc-h { display: flex; align-items: center; gap: 12px; }
.em-pc-h h2 { margin: 0; font: var(--fw-sb) 17px/1.25 var(--font); }
.em-pc-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); }
.em-hist > div { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-row); font-size: 12.5px; }
.em-hist span { color: var(--ink-3); } .em-hist b { font-weight: var(--fw-med); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-hist small { color: var(--ink-3); white-space: nowrap; }

/* ---- Contactos ---- */
.em-persona { display: flex; align-items: center; gap: 10px; }
.em-persona > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.em-persona b { font-weight: var(--fw-med); }
.em-persona small { font-size: 12px; color: var(--ink-3); }
.em-ini { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--block-2); color: var(--ink-2); font: var(--fw-sb) 12.5px/1 var(--font); }
.em-ini.lg { width: 44px; height: 44px; font-size: 16px; }
.em-entro { display: flex; flex-direction: column; font-size: 13px; }
.em-entro small { color: var(--ink-3); font-size: 12px; }

/* ---- Entregabilidad ---- */
.em-dns { padding: 6px 8px 12px; }
.em-dns-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: var(--r-lg); font-size: 13px; }
.em-dns-row:hover { background: var(--hover); }
.em-dns-k { font-weight: var(--fw-sb); }
.em-dns-q { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.em-dns-q small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   ANCHOS
   ============================================================ */
@media (max-width: 1360px) {
    .em-studio { --rail: 70px; --props: 268px; }
    .em-rail-h { display: none; }
    .em-tiles { grid-template-columns: 1fr; padding-top: 12px; }
    .em-tile { height: 52px; font-size: 10.5px; }
    .em-tile span { display: none; }
    .em-tile svg { width: 20px; height: 20px; }
    .em-canvas { padding: 26px 16px 64px; }
}
@media (max-width: 1100px) {
    .em-det-grid { grid-template-columns: 1fr; }
    .em-det-side { position: static; padding-top: 0; }
    .em-rec-st { grid-template-columns: 80px 48px 52px 76px; }
}
@media (max-width: 980px) {
    .em-studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(560px, 1fr) auto; height: auto; }
    .em-rail { border-right: 0; border-bottom: 1px solid var(--line); }
    .em-tiles { display: flex; overflow-x: auto; padding: 10px 12px; gap: 6px; }
    .em-tile { flex: none; width: 56px; height: 52px; }
    .em-stage { height: 72dvh; min-height: 520px; }
    .em-props { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
    .em-start { grid-template-columns: 1fr; }
    .em-checks { grid-template-columns: 1fr; }
    .pg-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .em-buscar { order: 3; flex: 1 1 100%; margin-left: 0; }
    .em-buscar input, .em-buscar input:focus { width: 100%; }
    .em-rec-card { grid-template-columns: 36px minmax(0, 1fr); }
    .em-rec-st { grid-column: 2; grid-template-columns: repeat(4, auto); justify-content: start; text-align: left; gap: 16px; }
    .em-bib-b { grid-template-columns: minmax(0, 1fr); }
    .em-bib-side { display: none; }
    .em-prev-b { flex-direction: column; align-items: center; }
    .em-prev-pc { width: 100%; height: 800px; }
}
@media (max-width: 640px) {
    .em-canvas { padding: 18px 10px 56px; }
    .em-paper { width: 100%; }
    .eb-pad, .eb-boton, .eb-codigo, .eb-firma, .eb-sep, .eb-ft, .eb-foto.margen { padding-left: 20px; padding-right: 20px; }
    .eb-prods.c3 { grid-template-columns: repeat(2, 1fr); }
    .em-kpis { gap: 8px 26px; }
    .em-kpis b { font-size: 20px; }
    .em-top-row { grid-template-columns: minmax(0, 1fr) 70px; }
    .em-top-bar { display: none; }
    .em-dns-row { grid-template-columns: minmax(0, 1fr) auto; }
    .em-dns-k { grid-column: 1 / -1; margin-bottom: -6px; }
    .em-foot { flex-wrap: wrap; }
    .em-test input[type=email] { width: 100%; }
    .em-previa { padding: 12px; }
}

/* Entregabilidad › Amazon SES (17-oct-2026): conectar y los registros que faltan en el DNS, para copiar. */
.em-ses-modal .ui-modal-box { width: min(560px, 100%); }
.em-ses-m { padding: 0 24px 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.em-ses-pasos { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.em-ses-pasos b { color: var(--ink); font-weight: var(--fw-sb); }
.em-ses-pasos a { color: var(--ink); text-decoration: underline; }
.em-ses-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.em-ses-f input { font: 13px/1.4 var(--font-mono); }
.em-ses-err { margin: 0; min-height: 18px; color: var(--alert); font-size: 12.5px; }
.em-ses { padding: 4px 18px 6px; display: flex; flex-direction: column; gap: 10px; }
.em-ses-st { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.em-ses-p { margin: 0; font-size: 13px; color: var(--ink-2); }
.em-regs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.em-reg { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); }
.em-reg:first-child { border-top: 0; }
.em-reg.ok { opacity: .55; }
.em-reg-t { font: var(--fw-sb) 11px/1 var(--font); color: var(--ink-3); letter-spacing: .04em; }
.em-copiar { min-width: 0; text-align: left; font: 12px/1.4 var(--font-mono); color: var(--ink); background: var(--block);
    border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: copy; }
.em-copiar:hover { border-color: var(--ink-3); }
@media (max-width: 720px) { .em-reg { grid-template-columns: 1fr auto; } .em-reg-t { grid-column: 1 / -1; } }

/* Flows en sombra (17-oct-2026): lo que mandaría Fenghi OS frente a Klaviyo. */
.em-sombra-l { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.em-sombra-l b { color: var(--ink); font-weight: var(--fw-sb); font-variant-numeric: tabular-nums; }
.em-sombra-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 3px var(--block); flex: none; }
.em-sombra-chip { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font: var(--fw-md, 500) 11px/18px var(--font); font-variant-numeric: tabular-nums; vertical-align: 1px; }
.em-sombra-chip.green { background: var(--pill-green-bg); color: var(--pill-green-tx); }
.em-sombra-chip.yellow { background: var(--pill-yellow-bg); color: var(--pill-yellow-tx); }
.em-sombra-chip.red { background: var(--pill-red-bg); color: var(--pill-red-tx); }
.em-sombra-chip.gray { background: var(--pill-gray-bg); color: var(--pill-gray-tx); }
