/* Oasis Omnicanal · Reportes y Difusiones · prefijos .rp- y .df-
   Usa los tokens de css/oasis.css (var(--...)) y los componentes .o-*; ver oasis/NOTAS-base.md.
   Colores de datos (validados con el método de la skill dataviz; detalle en oasis/NOTAS-reportes.md):
   serie 1 olivo #5B7224 (enviados, conversaciones), serie 2 arena #C4893A (recibidos),
   rampa secuencial de olivo para el mapa de calor. Pasan croma, separación para daltonismo y contraste 3:1. */
.rp-pagina, .df-pagina {
  --rp-s1: #5B7224;
  --rp-s2: #C4893A;
  --rp-grid: #EFECDF;
  --rp-eje: #6B6E5D;
  --rp-vacia: #F1EFE6;
  --rp-bien: #4E6A2F;
  --rp-mal: #A64B37;
}

/* ================= Reportes ================= */
.rp-cab h1 { min-width: 0; }
.rp-csv-txt { margin-left: 1px; }
.rp-filtros { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.rp-filtros .o-esp { flex: 1; }
.rp-periodo { height: 36px; gap: 8px; padding: 0 10px 0 11px; max-width: 100%; }
.rp-periodo .o-ico { color: var(--ink-2); }
.rp-per-nom { font-weight: 600; }
.rp-per-rango { color: var(--ink-2); font-weight: 400; }
.rp-per-rango::before { content: '·'; margin-right: 8px; color: var(--ink-3); }
.rp-vs { font-size: 13px; color: var(--ink-3t); }
.rp-act { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3t); white-space: nowrap; }
.rp-zona { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 22px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: default; }
#rpRefrescar .o-cargando { width: 14px; height: 14px; }

.rp-pagina { background: var(--bg); padding: 20px 24px 40px; }
.rp-in { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; transition: opacity .18s; }
.rp-in.rp-recargando { opacity: .55; pointer-events: none; }
.rp-in > .o-vacio { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radio-l); min-height: 340px; }
.rp-aviso { align-items: center; }
.rp-aviso a { font-weight: 600; }

/* tarjetas grandes (KPI) */
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.rp-tile { position: relative; display: flex; flex-direction: column; min-height: 122px; padding: 14px 16px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radio-l); overflow: hidden; }
.rp-tile-et { display: flex; align-items: flex-start; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); min-height: 34px; line-height: 1.35; }
.rp-tile-et > span { min-width: 0; padding-top: 1px; }
.rp-ayuda { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -1px 0 -2px; border-radius: 50%; color: var(--ink-3); flex: none; }
.rp-ayuda:hover, .rp-ayuda:focus-visible { color: var(--ink-2); background: var(--olivo-50); }
.rp-tile-fila { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 2px; }
.rp-tile-val { flex: none; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.rp-tile-pie { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; min-height: 34px; }
.rp-tile-sub { font-size: 12px; color: var(--ink-3t); }
.rp-delta { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 5px; border-radius: 99px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: default; }
.rp-delta.bien { color: var(--rp-bien); background: #EDF1E4; }
.rp-delta.mal { color: var(--rp-mal); background: var(--rp-mal-50, #F7E9E4); }
.rp-delta.neutro { color: var(--ink-2); background: var(--bg); }
.rp-flecha { flex: none; }
.rp-spark { flex: 1 1 0; min-width: 0; max-width: 72px; height: 26px; margin-bottom: 3px; pointer-events: none; }
.rp-spark-area { fill: var(--rp-s1); opacity: .08; stroke: none; }
.rp-spark-linea { fill: none; stroke: var(--rp-s1); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .7; }
.rp-tile-ir { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 5px 0 9px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--verde); background: var(--olivo-50); }
.rp-tile-ir:hover { background: var(--olivo-100); text-decoration: none; }
.rp-tile-esq { gap: 0; }
.rp-tiles-can .rp-tile { min-height: 0; }

/* tarjetas de gráfica */
.rp-card { padding: 16px 18px 18px; }
.rp-card + .rp-card { margin-top: 0; }
.rp-card-cab { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rp-card-tit { flex: 1; min-width: 160px; }
.rp-card-tit h2 { font-size: 15px; font-weight: 600; }
.rp-card-tit p { font-size: 13px; color: var(--ink-3t); margin-top: 2px; }
.rp-card-acc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-ver-tabla.on { background: var(--olivo-100); color: var(--verde); }
.rp-mas { color: var(--olivo); font-weight: 600; }
.rp-card-pie { margin-top: 12px; font-size: 12px; color: var(--ink-3t); }
.rp-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rp-dos > .rp-card { height: 100%; }

.rp-leyenda { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.rp-leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.rp-llave-caja { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rp-llave-caja.s1, .rp-llave.s1 { background: var(--rp-s1); }
.rp-llave-caja.s2, .rp-llave.s2 { background: var(--rp-s2); }

/* gráfica de columnas */
.rp-graf { position: relative; width: 100%; min-height: 200px; touch-action: pan-y; border-radius: 8px; }
.rp-nav:focus-visible { outline: 2px solid var(--olivo); outline-offset: 4px; }
.rp-svg { display: block; overflow: visible; }
.rp-grid { stroke: var(--rp-grid); stroke-width: 1; shape-rendering: crispEdges; }
.rp-base { stroke: #DCD8C7; stroke-width: 1; shape-rendering: crispEdges; }
.rp-eje { fill: var(--rp-eje); font-size: 11px; font-family: var(--fuente); font-variant-numeric: tabular-nums; }
.rp-barra { transition: opacity .12s; }
.rp-barra.s1 { fill: var(--rp-s1); }
.rp-barra.s2 { fill: var(--rp-s2); }
.rp-banda { fill: var(--olivo-50); opacity: 0; transition: opacity .1s; }
.rp-banda.on { opacity: 1; }

/* tooltip de las gráficas */
.rp-tip { position: absolute; z-index: 5; left: 0; top: 0; min-width: 132px; max-width: 240px; padding: 8px 10px; border-radius: 9px; background: #232A1C; color: #F4F3EA; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px -8px rgba(35,42,28,.45); pointer-events: none; opacity: 0; transform: translateY(2px); transition: opacity .1s, transform .1s; }
.rp-tip.on { opacity: 1; transform: none; }
.rp-tip-tit { font-size: 12px; color: #C9CBBB; margin-bottom: 4px; }
.rp-tip-fila { display: flex; align-items: center; gap: 7px; }
.rp-tip-fila b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.rp-tip-fila span { color: #D9DACB; }
.rp-tip-sub { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.12); color: #C9CBBB; font-size: 12px; }
.rp-llave { width: 12px; height: 3px; border-radius: 2px; display: inline-block; flex: none; }
.rp-tip .rp-llave.s1 { background: #A9C27A; }
.rp-tip .rp-llave.s2 { background: #E2B26C; }

/* tabla (vista accesible de cada gráfica) */
.rp-tabla-caja { max-height: 420px; }
.rp-th-fila { font-weight: 500; text-align: left; white-space: nowrap; }
.o-tabla th.rp-th-fila { position: static; background: none; font-size: 14px; color: var(--ink); padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.o-tabla tr:last-child th.rp-th-fila { border-bottom: 0; }

/* estado vacío dentro de una tarjeta */
.rp-vacio { display: flex; gap: 12px; align-items: flex-start; padding: 18px 16px; border-radius: var(--radio); background: var(--bg); border: 1px dashed transparent; color: var(--ink-2); }
.rp-vacio > .o-ico { color: var(--olivo); margin-top: 1px; }
.rp-vacio b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.rp-vacio p { font-size: 13px; margin-top: 2px; max-width: 520px; }
.rp-vacio .o-btn { margin-top: 10px; }

.rp-destacado { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.rp-destacado .o-ico { color: var(--olivo); margin-top: 2px; }
.rp-destacado b { color: var(--ink); font-weight: 600; }
.rp-nota { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--ink-3t); }
.rp-nota .o-ico { margin-top: 1px; flex: none; }

/* mapa de calor por hora */
.rp-calor { position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; padding: 2px 0; touch-action: pan-y; border-radius: 6px; }
.rp-cal-col { display: flex; flex-direction: column; align-items: stretch; gap: 6px; cursor: default; min-width: 0; }
.rp-celda { display: block; height: 34px; border-radius: 5px; background: var(--rp-s1); transition: box-shadow .1s, transform .1s; }
.rp-celda.vacia { background: var(--rp-vacia); }
.rp-cal-col.on .rp-celda { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink-2); }
.rp-cal-eje { font-size: 11px; color: var(--rp-eje); white-space: nowrap; height: 14px; line-height: 14px; overflow: visible; }
.rp-cal-leyenda { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 12px; font-size: 12px; color: var(--ink-3t); }
.rp-cal-leyenda .rp-celda { width: 14px; height: 14px; border-radius: 4px; }
.rp-cal-sep { width: 1px; height: 14px; background: var(--line); margin: 0 6px; }

/* barras horizontales (embudo, canales, equipo) */
.rp-filas { display: flex; flex-direction: column; gap: 4px; }
.rp-fila { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 96px; align-items: center; gap: 12px; padding: 6px 4px; border-radius: 8px; }
.rp-fila:hover { background: var(--hover); }
.rp-fila-nom { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 500; }
.rp-fila-nom > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-fila-nom small { font-weight: 400; color: var(--ink-3t); font-size: 12px; }
.rp-fila-barra { min-width: 0; }
.rp-fila-pista { display: block; height: 20px; border-radius: 0 6px 6px 0; background: transparent; }
.rp-fila-relleno { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--rp-s1); min-width: 0; transition: width .3s ease; }
.rp-fila-relleno.s1 { background: var(--rp-s1); }
.rp-fila-val { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-fila-val b { font-size: 14px; font-weight: 600; }
.rp-fila-val small { font-size: 12px; color: var(--ink-3t); }
.rp-emb-cab { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 132px; gap: 12px; padding: 0 4px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3t); }
.rp-emb-cab span:last-child { text-align: right; }
.rp-emb .rp-fila { grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 132px; }
.rp-emb.compacto .rp-fila, .rp-can.compacto .rp-fila { grid-template-columns: minmax(96px, 140px) minmax(0, 1fr) 84px; padding: 5px 2px; }
.rp-emb .o-punto { width: 10px; height: 10px; }
.rp-can-nom { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rp-can-nom > span, .rp-can-nom small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-eq .rp-fila { grid-template-columns: minmax(140px, 210px) minmax(0, 1fr) 132px; }

/* resumen: equipo compacto */
.rp-mini-cab, .rp-mini-eq li { display: grid; grid-template-columns: minmax(0, 1fr) 100px 84px; align-items: center; gap: 10px; }
.rp-mini-cab { padding: 0 4px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3t); }
.rp-mini-cab span:not(:first-child) { text-align: right; }
.rp-mini-eq { display: flex; flex-direction: column; }
.rp-mini-eq li { grid-template-columns: 28px minmax(0, 1fr) 100px 84px; padding: 7px 4px; border-top: 1px solid var(--line-2); }
.rp-mini-cab { grid-template-columns: minmax(0, 1fr) 100px 84px; padding-left: 42px; }
.rp-mini-nom { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-mini-nom small, .rp-persona small { color: var(--ink-3t); font-weight: 400; }
.rp-mini-val { text-align: right; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-mini-val b { color: var(--ink); font-size: 14px; font-weight: 600; }

/* origen de los enviados */
.rp-origen { display: flex; flex-direction: column; gap: 2px; }
.rp-origen li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 4px; border-top: 1px solid var(--line-2); }
.rp-origen li:first-child { border-top: 0; }
.rp-origen-val { font-size: 22px; font-weight: 600; letter-spacing: -.01em; text-align: right; }
.rp-origen-nom { font-size: 14px; font-weight: 500; }
.rp-origen-nom small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3t); margin-top: 1px; }

/* tiempos de respuesta */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 22px 24px; }
.rp-hero h2 { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.rp-hero-val { font-size: 52px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; margin-top: 8px; color: var(--verde); }
.rp-hero-pie { margin-top: 8px; min-height: 20px; }
.rp-hero-txt { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 420px; }
.rp-hero-txt b { color: var(--ink); }
.rp-hero-datos { display: flex; flex-direction: column; justify-content: center; gap: 0; border-left: 1px solid var(--line-2); padding-left: 24px; }
.rp-hero-datos > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.rp-hero-datos > div:first-child { border-top: 0; }
.rp-hero-datos dt { font-size: 13px; color: var(--ink-2); }
.rp-hero-datos dd { font-size: 17px; font-weight: 600; text-align: right; white-space: nowrap; }
.rp-hero-datos dd small { font-size: 12px; font-weight: 400; color: var(--ink-3t); }
.rp-link { font-size: 13px; font-weight: 600; margin-left: 6px; }
.rp-como { padding: 16px 20px; background: var(--side); border-color: var(--line); }
.rp-como h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.rp-como h2 .o-ico { color: var(--olivo); }
.rp-como ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }

/* equipo */
.rp-orden { display: inline-flex; align-items: center; gap: 3px; font: inherit; color: inherit; font-weight: 600; padding: 2px 0; border-radius: 4px; }
.rp-orden:hover, .rp-orden.on { color: var(--ink); }
.o-tabla th.num .rp-orden { justify-content: flex-end; }
.rp-persona { display: flex; align-items: center; gap: 10px; }
.rp-persona > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.rp-persona b { font-weight: 500; }
.rp-persona small { font-size: 12px; }
.rp-td-barra { min-width: 170px; }
.rp-td-barra { white-space: nowrap; }
.rp-td-barra > span:last-child { display: inline-block; min-width: 34px; font-weight: 600; }
.rp-mini-barra { display: inline-block; vertical-align: middle; width: 110px; height: 8px; margin-right: 10px; border-radius: 0 4px 4px 0; background: transparent; }
.rp-mini-barra > span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--rp-s1); }
.rp-tabla-eq td, .rp-tabla-eq th { vertical-align: middle; }
.rp-corto { display: none; }

/* datos por canal */
.rp-can-datos { display: flex; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.rp-can-datos div { display: flex; flex-direction: column; }
.rp-can-datos dt { font-size: 12px; color: var(--ink-3t); }
.rp-can-datos dd { font-size: 15px; font-weight: 600; }

/* nota en la barra lateral */
.rp-lat-nota { display: flex; align-items: center; gap: 6px; margin: 14px 10px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3t); }
.rp-rango-campos .o-campo + .o-campo { margin-top: 0; }

/* ================= Difusiones ================= */
.df-cab h1 { min-width: 0; }
.df-cab .o-insignia { flex: none; }
.df-pagina { background: var(--bg); padding: 20px 24px 48px; }
.df-in { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.df-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 28px; padding: 24px 26px; }
.df-ceja { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--arena-50); border: 1px solid #F0DCBC; color: var(--arena-t); font-size: 12px; font-weight: 600; }
.df-hero h2 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; margin-top: 12px; color: var(--verde); max-width: 520px; }
.df-hero-txt > p { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 560px; }
.df-pasos { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.df-pasos li { display: flex; gap: 12px; align-items: flex-start; }
.df-pasos li > span, .df-num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--olivo-50); color: var(--verde); font-size: 13px; font-weight: 600; border: 1px solid #DCE1C8; }
.df-pasos b { display: block; font-size: 14px; font-weight: 600; }
.df-pasos small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 1px; }

.df-costos { align-self: start; background: var(--side); border: 1px solid var(--line); border-radius: var(--radio-l); padding: 16px 18px; }
.df-costos h3 { font-size: 15px; font-weight: 600; }
.df-costos-sub { font-size: 12px; color: var(--ink-3t); margin-top: 2px; }
.df-costos ul { margin-top: 10px; }
.df-costos li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.df-costos li:first-child { border-top: 0; }
.df-costos li > div:first-child b { display: block; font-size: 14px; font-weight: 600; }
.df-costos small { display: block; font-size: 12px; color: var(--ink-3t); }
.df-precio { text-align: right; white-space: nowrap; }
.df-precio b { font-size: 15px; font-weight: 600; color: var(--ink); }
.df-costos-nota { margin-top: 10px; font-size: 12px; color: var(--ink-3t); line-height: 1.45; }

.df-aviso { align-items: center; }
.df-aviso > span { flex: 1; }
.df-sec-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.df-sec-cab h2 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.df-sec-cab .o-chico { display: inline-flex; align-items: center; gap: 5px; }
.df-cuenta { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.df-lista, .df-ejemplos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.df-borrador, .df-ejemplo { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radio-l); transition: border-color .12s, box-shadow .12s; }
.df-borrador:hover, .df-ejemplo:hover { border-color: #D3CEB9; box-shadow: var(--sombra); }
.df-ejemplo { background: transparent; border-style: dashed; }
.df-ejemplo:hover { background: var(--panel); border-style: solid; }
.df-b-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.df-b-cab b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-b-aud { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.df-b-txt { font-size: 13px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.df-b-pie { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3t); }
.df-ejemplo .df-b-pie { color: var(--olivo); font-weight: 600; justify-content: flex-start; gap: 4px; }
.df-vacio { padding: 6px; }
.df-vacio .o-vacio { min-height: 0; }

/* editor */
.df-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.df-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.df-form > .o-tarjeta + .o-tarjeta { margin-top: 0; }
.df-paso { padding: 18px 20px 20px; }
.df-paso > h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.df-paso .o-ayuda { margin-top: 6px; }
.df-paso .o-fila .o-campo + .o-campo { margin-top: 0; }
.df-tipos { border: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.df-tipos legend { grid-column: 1 / -1; margin-bottom: 6px; }
.df-tipo { position: relative; display: block; cursor: pointer; }
.df-tipo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.df-tipo-in { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radio); background: var(--panel); transition: border-color .12s, background .12s, box-shadow .12s; }
.df-tipo-in b { font-size: 14px; font-weight: 600; }
.df-tipo-in b small { font-weight: 400; color: var(--ink-3t); font-size: 13px; }
.df-tipo-in > small { font-size: 13px; color: var(--ink-2); }
.df-tipo-precio { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--arena-t); }
.df-tipo:hover .df-tipo-in { border-color: #D3CEB9; }
.df-tipo input:checked + .df-tipo-in { border-color: var(--olivo); background: var(--olivo-50); box-shadow: inset 0 0 0 1px var(--olivo); }
.df-tipo input:focus-visible + .df-tipo-in { box-shadow: var(--foco), inset 0 0 0 1px var(--olivo); }
.df-canal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.df-canal .o-etiqueta { margin: 0; }
.df-canal-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 600; }
.df-canal > small { flex-basis: 100%; font-size: 12px; color: var(--ink-3t); }
.df-estimado { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radio); background: var(--side); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); min-height: 56px; transition: opacity .15s; }
.df-estimado:empty { display: none; }
.df-estimado.df-recargando { opacity: .55; }
.df-estimado > .o-ico { color: var(--ink-3); flex: none; }
.df-est-num { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--verde); white-space: nowrap; }
.df-est-txt b { color: var(--ink); font-weight: 600; }
.df-est-txt small { display: block; font-size: 12px; color: var(--ink-3t); margin-top: 2px; }
.df-barra { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.df-barra .o-btn.sec.sm { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.df-barra-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.df-fmt b, .df-fmt i, .df-fmt s { font-size: 14px; font-family: Georgia, 'Times New Roman', serif; }
.df-fmt b { font-family: var(--fuente); font-weight: 700; }
.df-texto { min-height: 150px; font-size: 15px; }
.df-texto-pie { display: flex; justify-content: flex-end; }
.df-texto-pie .o-ayuda { margin-top: 4px; font-variant-numeric: tabular-nums; }
.df-baja { margin-top: 12px; }
.df-baja small { display: block; font-size: 12px; color: var(--ink-3t); margin-top: 1px; }
.df-revision { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.df-revision h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.df-revision ul { display: flex; flex-direction: column; gap: 6px; }
.df-revision li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.df-revision li .o-ico { margin-top: 1px; }
.df-revision li.ok { color: var(--ink-2); }
.df-revision li.ok .o-ico { color: var(--ok); }
.df-revision li.mal { color: #7A3324; }
.df-revision li.mal .o-ico { color: var(--rojo); }
.df-enviar { display: flex; flex-direction: column; gap: 14px; }
.df-costo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.df-costo > div { display: flex; flex-direction: column; }
.df-costo .o-etiqueta { margin-bottom: 2px; }
.df-costo-val { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.df-costo small { font-size: 12px; color: var(--ink-3t); }
.df-costo p { max-width: 280px; text-align: right; }
.df-enviar-fila { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.df-enviar-fila .o-esp { flex: 1; }
.df-enviar-caja { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.df-enviar-caja small { font-size: 12px; color: var(--arena-t); font-weight: 500; text-align: right; }
.df-guardado { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.df-guardado .o-ico { color: var(--ok); }
.df-mal { display: inline-flex; align-items: center; gap: 4px; color: var(--rojo); }
.df-mal .o-ico { color: var(--rojo); }

/* vista previa tipo WhatsApp */
.df-lado { position: sticky; top: 0; }
.df-lado-in { display: flex; flex-direction: column; gap: 10px; }
.df-lado-tit { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.df-tel { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #EFEAE2; box-shadow: var(--sombra); }
.df-tel-cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #F6F5F0; border-bottom: 1px solid #E4E0D3; }
.df-tel-cab b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.df-tel-cab small { font-size: 12px; color: var(--ink-3t); }
.df-tel-chat { min-height: 360px; padding: 14px 12px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background-color: #EFEAE2;
  background-image: radial-gradient(rgba(35,42,28,.035) 1px, transparent 1.2px);
  background-size: 14px 14px; }
.df-tel-dia { align-self: center; padding: 3px 10px; border-radius: 7px; background: #FFFFFFD9; font-size: 12px; color: var(--ink-2); box-shadow: 0 1px 1px rgba(35,42,28,.06); }
.df-burbuja { position: relative; max-width: 88%; padding: 7px 9px 18px; border-radius: 0 10px 10px 10px; background: #fff; color: #1F2418; font-size: 14px; line-height: 1.42; box-shadow: 0 1px 1px rgba(35,42,28,.1); overflow-wrap: anywhere; min-width: 120px; }
.df-burbuja::before { content: ''; position: absolute; left: -7px; top: 0; border: 7px solid transparent; border-top-color: #fff; border-right-color: #fff; border-width: 0 7px 9px 0; }
.df-burbuja-txt code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.df-burbuja-vacia { color: var(--ink-3t); font-style: italic; }
.df-burbuja-pie { display: block; margin-top: 6px; font-size: 13px; color: #6B6E5D; }
.df-burbuja-hora { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: #8C8F80; }
.df-lado-nota { font-size: 12px; color: var(--ink-3t); }

/* ================= tablet y celular ================= */
@media (max-width: 1099px) {
  .rp-dos { grid-template-columns: minmax(0, 1fr); }
  .df-hero { grid-template-columns: minmax(0, 1fr); }
  .df-editor { grid-template-columns: minmax(0, 1fr); }
  .df-lado { position: static; order: -1; }
  .df-lado-in { max-width: 420px; }
  .df-tel-chat { min-height: 0; }
}
@media (max-width: 759px) {
  .rp-csv-txt { display: none; }
  .rp-filtros { padding: 8px 12px; gap: 8px; }
  .rp-periodo { flex: 1; min-width: 0; justify-content: flex-start; height: 44px; }
  .rp-periodo .o-ico:last-child { margin-left: auto; }
  .rp-per-rango { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .rp-vs { order: 3; flex-basis: 100%; }
  .rp-filtros .o-esp { display: none; }
  .rp-act { order: 4; flex: 1; justify-content: space-between; font-size: 12px; }
  #rpRefrescar { order: 2; width: 44px; height: 44px; }
  .rp-pagina { padding: 12px 12px 28px; }
  .rp-in { gap: 12px; }
  .rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rp-tile { min-height: 108px; padding: 12px 12px 10px; }
  .rp-tile-val { font-size: 25px; }
  .rp-tile-ir { height: 32px; }
  .rp-spark { display: none; }
  .rp-card { padding: 14px 12px 14px; }
  .rp-card-cab { margin-bottom: 10px; }
  .rp-leyenda { order: 3; flex-basis: 100%; margin-top: 0; }
  .rp-card-tit { min-width: 0; }
  .rp-card-acc { margin-left: auto; }
  .rp-calor { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 8px; }
  .rp-celda { height: 30px; }
  .rp-fila, .rp-emb .rp-fila, .rp-eq .rp-fila, .rp-emb.compacto .rp-fila, .rp-can.compacto .rp-fila { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'nom val' 'barra barra'; gap: 4px 10px; padding: 8px 2px; }
  .rp-fila-nom { grid-area: nom; }
  .rp-fila-val { grid-area: val; }
  .rp-fila-barra { grid-area: barra; }
  .rp-fila-pista { height: 14px; }
  .rp-emb-cab { display: none; }
  .rp-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 14px; }
  .rp-hero-val { font-size: 46px; }
  .rp-hero-datos { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .rp-mini-cab { display: none; }
  .rp-mini-eq li { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .rp-mini-eq li .rp-mini-val:last-child { display: none; }
  .rp-td-barra { min-width: 0; }
  .rp-mini-barra { display: none; }
  .rp-largo { display: none; }
  .rp-corto { display: inline; }
  .rp-tabla-eq th, .rp-tabla-eq td, .rp-tabla-eq th.rp-th-fila { padding: 10px 8px; }
  .rp-tabla-eq .rp-persona .o-av { display: none; }
  .rp-tiles-can { grid-template-columns: minmax(0, 1fr); }
  .rp-can-datos { gap: 12px; }

  .df-pagina { padding: 12px 12px 32px; }
  .df-hero { padding: 18px 16px; gap: 18px; }
  .df-hero h2 { font-size: 19px; }
  .df-tipos { grid-template-columns: minmax(0, 1fr); }
  .df-paso { padding: 16px 14px; }
  .df-lista, .df-ejemplos { grid-template-columns: minmax(0, 1fr); }
  .df-cab .df-guardado { display: none; }
  .df-cab #dfNuevo span { display: none; }
  .df-cab #dfNuevo { width: 40px; padding: 0; }
  .df-costo p { text-align: left; }
  .df-enviar-fila { align-items: flex-start; }
  .df-enviar-caja { flex: 1; align-items: stretch; }
  .df-enviar-caja .o-btn { width: 100%; }
  .df-enviar-caja small { text-align: center; }
  .df-barra .o-btn { min-height: 40px; }
  .df-barra .o-btn.ico { width: 40px; min-width: 40px; }
  .df-barra-sep { display: none; }
  .df-paso .o-fila { flex-direction: column; align-items: stretch; gap: 12px; }
  .df-paso .o-fila > * { min-width: 0; }
  .df-lado-in { max-width: none; }
}
@media print {
  .rp-filtros .o-btn, .rp-csv, .rp-ver-tabla { display: none !important; }
  .rp-pagina { overflow: visible; }
}
