/* Portal de vendedores: usa styles.css del panel y encima el estilo de dsmarketing.cl:
   Open Sans en el texto, Fugaz One en logo y titulares, lima #D4FF00 como acento con "destacador",
   tarjetas blancas de borde suave y esquinas muy redondeadas, sin sombras, secciones gris claro. */
:root {
  --fondo: #f2f2f2;
  --borde: #e2e2e2;
  --texto-2: #555555;
  --texto-3: #7a7a7a;
  --radio: 24px;
  --sombra: none;
  --destacador: linear-gradient(transparent 58%, var(--lima) 58%, var(--lima) 92%, transparent 92%);
}
body { font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; }
.top { padding: 12px 20px; border-bottom-color: var(--borde); }
@media (min-width: 860px) { .top { padding: 14px 40px; } }
.logo { font-size: 24px; letter-spacing: 0; }
@media (min-width: 860px) { .logo { font-size: 27px; } }
.logo .ds { background: var(--destacador); padding: 0 .1em; }
.etiqueta-portal { font-size: 12px; font-weight: 700; color: var(--carbon); background: var(--lima); border-radius: 999px; padding: 2px 10px; white-space: nowrap; align-self: center; }
.fecha-top { font-size: 13px; color: var(--texto-2); }
@media (max-width: 520px) { .fecha-top { width: 100%; } }

h1, .titulo-pagina h1 { font-family: 'Fugaz One', sans-serif; font-weight: 400; font-size: 30px; letter-spacing: 0; line-height: 1.15; }
@media (min-width: 860px) { h1, .titulo-pagina h1 { font-size: 40px; } }
h2 { font-weight: 700; font-size: 17px; }
.destacado { background: var(--destacador); padding: 0 .12em; }
.titulo-pagina { align-items: flex-end; margin-bottom: 20px; }

.tarjeta { border-width: 1.2px; padding: 20px; }
@media (min-width: 640px) { .tarjeta { padding: 24px; } }
.cifras > .tarjeta:first-child { border-top: 1.2px solid var(--borde); }
.cifra { font-family: 'Fugaz One', sans-serif; font-weight: 400; font-size: 34px; letter-spacing: 0; display: inline-block; background: var(--destacador); padding: 0 .1em; margin: 8px 0 6px; }
.cifra-etq { font-size: 13px; font-weight: 600; color: var(--texto-2); }

/* Botones como la web: lima con texto carbón (principal) y borde carbón (secundario) */
.btn { border-radius: 12px; border: 1.2px solid var(--carbon); font-weight: 700; padding: 8px 14px; font-size: 14px; background: transparent; }
.btn:hover { background: var(--superficie-2); border-color: var(--carbon); }
.btn.llamar, .btn.principal { background: var(--lima); border-color: var(--lima); color: var(--carbon); }
.btn.llamar:hover, .btn.principal:hover { background: #c8f000; border-color: #c8f000; }

.nav a { font-weight: 600; }
@media (min-width: 860px) { .nav a { border-radius: 999px; padding: 8px 14px; } .nav a.activo { background: var(--lima); } }
.pestanas a.activa { border-bottom: 3px solid var(--lima); }
.pestanas a.activa .chip { background: var(--carbon); color: #fff; border-color: var(--carbon); }
.chip.lima { background: var(--lima); color: var(--carbon); border-color: var(--lima); font-weight: 600; }
.pauta { border-left: 4px solid var(--lima); }
select, input[type="search"] { border-radius: 12px; border-width: 1.2px; }
.volver-panel { display: inline-block; margin-bottom: 12px; font-weight: 700; font-size: 14px; color: var(--carbon); }

.nav { grid-template-columns: repeat(var(--columnas, 3), 1fr); }

.estados { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.estados button { font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--borde); background: var(--superficie); color: var(--texto-2); cursor: pointer; }
.estados button:hover { border-color: #c9ccd2; }
.estados button.activo { background: var(--carbon); border-color: var(--carbon); color: #fff; font-weight: 600; }
.estados button.activo.e-seguimiento { background: var(--lima); border-color: #b9de00; color: var(--carbon); }
.estados button.activo.e-descartado { background: var(--texto-3); border-color: var(--texto-3); }

textarea, input[type="text"], input[type="tel"], input[type="date"], input[type="number"] {
  width: 100%; background: var(--superficie); color: var(--texto); border: 1.2px solid var(--borde); border-radius: 12px;
  padding: 9px 12px; font: inherit; font-size: 15px;
}
textarea { min-height: 70px; resize: vertical; }
textarea:focus, input:focus { outline: 2px solid var(--lima); outline-offset: 1px; border-color: var(--carbon); }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--texto-2); font-weight: 500; margin-top: 10px; }
.campos { display: grid; gap: 0 10px; }
@media (min-width: 640px) { .campos.dos { grid-template-columns: 1fr 1fr; } }

.bloque { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--borde); }
.bloque > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.notas { list-style: none; margin: 8px 0 0; padding: 0; }
.notas li { font-size: 13px; color: var(--texto-2); padding: 6px 0; border-top: 1px dashed var(--borde); }
.notas li:first-child { border-top: 0; }
.notas .cuando { color: var(--texto-3); font-size: 12px; margin-right: 6px; }
.notas li.sistema { color: var(--texto-3); }

.horas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.horas button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--borde); background: var(--superficie); cursor: pointer; font-variant-numeric: tabular-nums; }
.horas button:disabled { color: var(--texto-3); text-decoration: line-through; background: var(--superficie-2); cursor: not-allowed; }
.horas button.activo { background: var(--lima); border-color: #b9de00; font-weight: 600; }

.btn:disabled { opacity: .5; cursor: wait; }
.reunion-tag { margin-top: 10px; font-size: 13px; background: var(--lima-suave); border: 1px solid #e2f58f; color: var(--lima-texto); border-radius: 12px; padding: 8px 12px; }
.vence { font-size: 12px; color: var(--texto-3); margin-top: 6px; }
.vence.pronto { color: var(--alerta); font-weight: 600; }

.aviso-flotante { position: fixed; left: 50%; bottom: calc(var(--nav-alto) + 16px); transform: translateX(-50%); background: var(--carbon); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); z-index: 20; }
.aviso-flotante.visible { opacity: 1; }
.aviso-flotante.error { background: var(--alerta); }
@media (min-width: 860px) { .aviso-flotante { bottom: 24px; } }

.pedir { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.pedir label { flex: 1 1 200px; }
.ok { color: var(--lima-texto); font-weight: 600; }

/* Pauta y packs */
.guia-texto .md h2 { font-family: 'Fugaz One', sans-serif; font-weight: 400; font-size: 22px; margin-top: 26px; }
.guia-texto .md table, .pack .md table { font-size: 14px; }
.guia-texto .md td, .guia-texto .md th { padding: 8px; }
.intro-packs { margin-bottom: 14px; }
.grid-packs { display: grid; gap: 14px; }
@media (min-width: 980px) { .grid-packs { grid-template-columns: repeat(3, 1fr); } .grid-packs .pack-nota { grid-column: 1 / -1; } }
.pack { position: relative; }
.pack.recomendado { border: 2px solid var(--lima); }
.pack .chip.lima { position: absolute; top: -11px; left: 20px; }
.pack-nombre { font-family: 'Fugaz One', sans-serif; font-weight: 400; font-size: 22px; margin: 0; }
.pack-num { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.pack .md { font-size: 14px; margin-top: 10px; }
.pack .md table { display: table; width: 100%; }
.pack .md td:first-child { font-weight: 600; color: var(--texto); width: 38%; }

/* Botón flotante y panel lateral "Pauta y packs" */
.boton-ayuda { position: fixed; right: 16px; bottom: calc(var(--nav-alto) + env(safe-area-inset-bottom) + 14px); z-index: 15;
  background: var(--carbon); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.boton-ayuda::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lima); margin-right: 8px; vertical-align: 1px; }
@media (min-width: 860px) { .boton-ayuda { bottom: 24px; right: 24px; } }
.ayuda-fondo { position: fixed; inset: 0; background: rgba(18,18,18,.35); z-index: 30; }
.ayuda-panel { position: fixed; z-index: 31; background: var(--fondo); display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; height: 88vh; border-radius: 20px 20px 0 0; }
@media (min-width: 860px) { .ayuda-panel { left: auto; top: 0; height: 100vh; width: min(560px, 92vw); border-radius: 0; border-left: 1px solid var(--borde); } }
.ayuda-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px 0; background: var(--superficie); border-bottom: 1px solid var(--borde); border-radius: inherit; }
.ayuda-cab .pestanas { border: 0; margin: 0; }
.ayuda-cuerpo { overflow-y: auto; padding: 16px; flex: 1; }
.ayuda-cuerpo .grid-packs { grid-template-columns: 1fr; }

/* Dueño o encargado en la tarjeta */
.dueno { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--superficie-2); border: 1.2px solid var(--borde); }
.dueno-tit { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); }
.dueno-nombre { font-weight: 700; }
.dueno .botones { margin-top: 6px; }
