@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#292929;--muted:#868686;--blue:#5c5c5c;--blue-dark:#4a4a4a;--line:#ebebeb;--bg:#f8f8f8;--white:#fff;--shadow:0 6px 25px rgba(25,47,79,.045)}*{box-sizing:border-box}html{font-size:15px}body{margin:0;font-family:'DM Sans',Arial,sans-serif;background:var(--bg);color:var(--ink)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,Arial,sans-serif}h1{font-size:2.05rem;line-height:1.2;margin-bottom:.55rem;letter-spacing:-.035em}h2{font-size:1.08rem;letter-spacing:-.02em}a{color:var(--blue);text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}.eyebrow{color:#878787;font-weight:800;font-size:.68rem;letter-spacing:.17em;margin-bottom:.65rem}.sidebar{position:fixed;left:0;top:0;bottom:0;width:226px;background:#454545;color:white;padding:30px 17px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;padding:0 11px;margin-bottom:47px;font-family:Manrope;font-weight:800;letter-spacing:.07em;font-size:.85rem}.brandmark,.login-logo{background:#f4bd65;color:#454545;border-radius:13px;display:grid;place-items:center;font:800 1.5rem Manrope;width:37px;height:37px}.brand small,.sidebar-foot small{display:block;color:#c2c2c2;font-weight:500;letter-spacing:0;margin-top:4px;font-size:.74rem}.sidebar nav{display:grid;gap:4px}.sidebar nav a{display:block;padding:12px 14px;border-radius:9px;color:#cecece;font-weight:600}.sidebar nav a:hover,.sidebar nav a.active{background:#5c5c5c;color:#fff}.sidebar-foot{margin-top:auto;padding:16px 7px 0;border-top:1px solid #626262;display:flex;align-items:center;gap:10px;font-size:.85rem;font-weight:700}.avatar{background:#7a7a7a;border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.logout{margin-left:auto;color:#e6e6e6;font-size:1.5rem}.main{margin-left:226px;padding:38px 40px 80px;max-width:1900px}.top{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:28px}.top .muted{margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:9px;padding:10px 16px;font-weight:700;white-space:nowrap;min-height:41px}.btn.primary{background:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue-dark)}.btn.secondary{background:white;color:var(--blue);border-color:var(--line)}.btn.full{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.stat,.panel{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.stat{padding:22px}.stat span,.stat small{display:block;color:var(--muted);font-size:.82rem}.stat strong{display:block;font:800 1.8rem Manrope;margin:13px 0 5px;color:#363636}.stat small{color:#929292}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.panel{padding:23px;margin-bottom:20px}.panel h2{margin:0 0 19px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.panel-head h2{margin:0}.panel-head a{font-size:.82rem;font-weight:700}.business{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line);color:var(--ink);font-weight:700}.business:first-child{border-top:0}.business-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eaeaea;color:#606060}.business-icon.grafiglas{background:#ededed;color:#7e7e7e}.business-icon.tudtf{background:#fbe7dd;color:#b96838}.business small,.task-mini small,td small,.task-row small{display:block;color:var(--muted);font-size:.75rem;font-weight:400;margin-top:3px}.business b{margin-left:auto;color:#919191}.task-mini{display:flex;gap:12px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}.task-mini:first-of-type{border-top:0}.task-mini div{flex:1}.task-mini b,.task-row b{font-size:.87rem}.task-mini time,.task-row time{color:#969696;font-size:.8rem}.task-dot,.stage-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#a8a8a8}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:.73rem;text-transform:uppercase;letter-spacing:.08em;color:#969696;font-weight:700;padding:12px 10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #f2f2f2;font-size:.87rem}td a{font-weight:700}.pill{display:inline-block;border-radius:999px;background:#f0f0f0;color:#666666;padding:5px 9px;font-size:.74rem;font-weight:700}.pill.ganado{background:#e2f5ec;color:#25835e}.pill.perdido{background:#fce9e7;color:#b95a51}.pill.presupuesto{background:#fff0d9;color:#ad7932}.empty{color:#9a9a9a;padding:20px 0}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow-x:auto}.tabs a{padding:11px 18px;color:#8c8c8c;font-weight:700;white-space:nowrap}.tabs a.active{color:var(--blue);border-bottom:3px solid var(--blue)}.kanban{display:grid;grid-template-columns:repeat(6,minmax(210px,1fr));gap:13px;overflow-x:auto;padding-bottom:22px}.kanban-col{background:#f2f2f2;border-radius:11px;min-height:420px;padding:12px}.kanban-col.drag-over{background:#eaeaea}.col-head{display:flex;align-items:center;gap:8px;padding:8px 5px 15px}.col-head h2{font-size:.82rem;margin:0;flex:1}.col-head b{background:#e7e7e7;border-radius:999px;padding:2px 7px;font-size:.72rem;color:#787878}.stage-dot.contactado{background:#a2a2a2}.stage-dot.presupuesto{background:#e4ad5d}.stage-dot.negociacion{background:#b5b5b5}.stage-dot.ganado{background:#60b893}.stage-dot.perdido{background:#d78986}.cards{min-height:330px}.deal-card{display:block;background:#fff;border:1px solid #ebebeb;border-radius:9px;padding:14px;box-shadow:0 3px 8px rgba(25,48,81,.04);margin-bottom:10px;color:var(--ink)}.deal-card:hover{border-color:#c0c0c0}.deal-card.dragging{opacity:.5}.card-company{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.65rem;font-weight:800;color:#9d9d9d;margin-bottom:10px}.deal-card strong{font-size:.85rem;line-height:1.4;display:block}.card-bottom{display:flex;justify-content:space-between;gap:5px;margin-top:17px;align-items:center}.card-bottom b{font-size:.8rem;color:var(--blue)}.card-bottom small{color:#9a9a9a;font-size:.7rem}.back{display:block;font-size:.78rem;font-weight:700;margin:0 0 14px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.85fr);gap:20px}.detail-side .panel{margin-bottom:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:block;margin-bottom:14px}.form-grid .field{margin-bottom:0}.field span{display:block;font-size:.78rem;font-weight:700;margin-bottom:7px;color:#656565}.field input,.field select,.field textarea{width:100%;border:1px solid #e3e3e3;border-radius:8px;padding:10px 11px;background:#fff;color:var(--ink);outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#9c9c9c;box-shadow:0 0 0 3px #f2f2f2}.field textarea{resize:vertical;min-height:92px}.form-grid .field:has(textarea){grid-column:1/-1}.form-actions{grid-column:1/-1;margin-top:7px}.notes{margin-top:22px}.note{padding:13px 0;border-top:1px solid var(--line)}.note p{line-height:1.5;margin-bottom:8px}.note small{color:#a0a0a0}.callout{background:#f2f2f2}.task-row{display:flex;align-items:center;gap:13px;border-top:1px solid var(--line);padding:14px 0}.task-row:first-of-type{border-top:0}.task-row div{flex:1}.task-row.done b{text-decoration:line-through;color:#a2a2a2}.check{display:grid;place-items:center;width:23px;height:23px;border:1px solid #c8c8c8;border-radius:6px;background:#fff;color:#fff}.done .check{background:#62b494;border-color:#62b494}.objection{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:12px 0;font-size:.85rem}.objection b{color:var(--blue)}.auth-main{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#f0f0f0,#fafafa)}.login-card{width:min(100%,430px);padding:38px;background:#fff;border-radius:17px;box-shadow:0 18px 60px rgba(30,62,111,.11)}.login-logo{width:46px;height:46px;margin-bottom:25px}.login-card h1{font-size:1.8rem}.login-card .muted{line-height:1.5;margin-bottom:25px}.login-card .field{margin-bottom:16px}.error{background:#fff0ef;color:#a3453d;border-radius:8px;padding:10px}.flash{background:#e1f3e9;color:#237352;padding:13px 16px;border-radius:8px;margin-bottom:20px}.invite-link{background:#f6f6f6;padding:14px;border-radius:8px;margin-bottom:17px}.invite-link strong,.invite-link code{display:block}.invite-link code{overflow-wrap:anywhere;margin-top:8px;color:#626262;font-size:.8rem}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.two-col,.detail-grid{grid-template-columns:1fr}.main{padding:30px 25px 70px}}@media(max-width:640px){.sidebar{position:static;width:auto;padding:13px}.brand{margin:0}.sidebar nav{display:flex;overflow:auto;margin-top:11px}.sidebar nav a{white-space:nowrap;padding:9px}.sidebar-foot{display:none}.main{margin:0;padding:23px 14px 60px}.top{display:block}.top .btn{margin-top:18px}.stats{gap:9px}.stat{padding:15px}.stat strong{font-size:1.45rem}.panel{padding:17px}.form-grid{grid-template-columns:1fr}.kanban{grid-template-columns:repeat(6,240px)}}

/* Grupo Ochoa visual theme */
:root{
  --ink:#2c2c2c;
  --muted:#8e8e8e;
  --blue:#989898;
  --blue-dark:#7e7e7e;
  --line:#efefef;
  --bg:#fafafa;
  --white:#fff;
  --shadow:0 5px 20px rgba(34,29,75,.035);
}
body{background:var(--bg);color:var(--ink)}
h1,h2,h3{letter-spacing:-.045em}
h1{font-size:2rem;font-weight:800}
h2{font-weight:800}
.eyebrow{color:#aaaaaa;letter-spacing:.13em;font-size:.69rem}
.sidebar{
  width:242px;
  background:#fff;
  border-right:1px solid #eeeeee;
  color:var(--ink);
  padding:26px 16px 20px;
  box-shadow:4px 0 24px rgba(35,30,88,.015);
}
.brand{margin-bottom:42px;padding:0 10px;font-size:.83rem;letter-spacing:.045em;color:#303030}
.brandmark,.login-logo{
  background:linear-gradient(150deg,#adadad,#8a8a8a);
  color:white;
  border-radius:12px;
  box-shadow:0 7px 15px rgba(111,84,214,.2);
}
.brand small,.sidebar-foot small{color:#9e9e9e}
.sidebar nav{gap:5px}
.sidebar nav::before{
  content:'ESPACIO DE TRABAJO';
  color:#aaaaaa;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.13em;
  padding:0 14px 11px;
}
.sidebar nav a{color:#7e7e7e;padding:11px 13px;display:flex;align-items:center;gap:12px;border-radius:11px;font-size:.86rem}
.sidebar nav a::before{content:'▦';display:inline-grid;place-items:center;width:19px;font:700 1.1rem Manrope;color:#a6a6a6}
.sidebar nav a:nth-child(2)::before{content:'◫'}
.sidebar nav a:nth-child(3)::before{content:'✓'}
.sidebar nav a:nth-child(4)::before{content:'▥'}
.sidebar nav a:hover,.sidebar nav a.active{background:#f6f6f6;color:#8c8c8c}
.sidebar nav a:hover::before,.sidebar nav a.active::before{color:#989898}
.sidebar-foot{border:0;background:#f9f9f9;border-radius:13px;padding:12px;margin-top:auto;color:#343434;font-size:.8rem}
.avatar{background:#eaeaea;color:#828282;font-weight:800;width:32px;height:32px}
.logout{color:#939393}
.main{margin-left:242px;padding:32px 37px 72px;max-width:1700px}
.top{margin-bottom:25px;align-items:center}
.top .muted{font-size:.89rem;color:#959595}
.btn{border-radius:10px;min-height:40px;padding:10px 16px}
.btn.primary{background:#989898;box-shadow:0 6px 13px rgba(113,87,217,.18)}
.btn.primary:hover{background:#828282}
.btn.secondary{background:#fff;color:#8a8a8a;border-color:#ececec}
.stats{gap:14px;margin-bottom:17px}
.stat,.panel{border:1px solid #eeeeee;border-radius:15px;box-shadow:var(--shadow)}
.stat{position:relative;min-height:145px;padding:21px 22px}
.stat::before{content:'○';position:absolute;right:20px;top:18px;background:#f5f5f5;color:#989898;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:1.25rem}
.stat:nth-child(2)::before{content:'▣';background:#fff4e6;color:#db9c4b;font-size:1rem}
.stat:nth-child(3)::before{content:'✓';background:#e8f7f1;color:#3da681;font-size:1.1rem}
.stat:nth-child(4)::before{content:'↗';background:#f4f4f4;color:#989898;font-size:1.1rem}
.stat span{font-weight:700;color:#838383;font-size:.78rem}
.stat strong{font-size:1.9rem;margin:18px 0 4px;color:#323232}
.stat small{font-size:.74rem;color:#a8a8a8}
.two-col{gap:17px;margin-bottom:17px}
.panel{padding:22px;margin-bottom:17px}
.panel-head a{font-size:.75rem}
.business{padding:14px 0;font-size:.87rem}
.business-icon{background:#f3f3f3;color:#989898}
.business-icon.grafiglas{background:#f2f2f2;color:#4aafca}
.business-icon.tudtf{background:#fff0e8;color:#e18a63}
.business b{color:#bababa}
.task-dot{background:#a8a8a8}
.task-mini{padding:14px 0}
.task-mini time,.task-row time{font-weight:700;color:#949494}
th{background:#fcfcfc;color:#a8a8a8;font-size:.68rem}
td{color:#616161}
td b{color:#313131}
.pill{background:#f4f4f4;color:#909090}
.pill.ganado{background:#e2f6ef;color:#2d9a71}
.pill.presupuesto{background:#fff2e1;color:#c8893a}
.pill.perdido{background:#fdebea;color:#be625f}
.tabs{border-bottom:1px solid #ebebeb}
.tabs a.active{color:#909090;border-bottom-color:#989898}
.kanban-col{background:#f3f3f3;border:1px solid #ececec;border-radius:13px}
.col-head h2{color:#747474}
.col-head b{background:#fff;color:#888888}
.deal-card{border-color:#ededed;border-radius:11px;box-shadow:0 3px 11px rgba(34,29,75,.035)}
.deal-card:hover{border-color:#c2c2c2;box-shadow:0 7px 16px rgba(111,84,214,.1)}
.card-company{color:#ababab}
.card-bottom b{color:#8e8e8e}
.stage-dot{background:#aeaeae}
.stage-dot.contactado{background:#62bad4}
.stage-dot.presupuesto{background:#f0b465}
.stage-dot.negociacion{background:#b2b2b2}
.stage-dot.ganado{background:#57c399}
.stage-dot.perdido{background:#df8586}
.login-card{border:1px solid #eeeeee}
.auth-main{display:grid;grid-template-columns:minmax(390px,48%) minmax(0,1fr);place-items:stretch;padding:0;background:#fff}
.auth-showcase{min-height:100vh;padding:42px 54px;color:#fff;background:radial-gradient(circle at 85% 80%,rgba(189,164,255,.42),transparent 30%),radial-gradient(circle at 4% 5%,rgba(185,177,255,.27),transparent 28%),linear-gradient(145deg,#6b6b6b 0%,#929292 60%,#a5a5a5 100%);position:relative;overflow:hidden}
.auth-showcase::after{content:'';position:absolute;width:430px;height:430px;border:1px solid rgba(255,255,255,.15);border-radius:50%;right:-165px;bottom:-155px;box-shadow:0 0 0 82px rgba(255,255,255,.035),0 0 0 165px rgba(255,255,255,.025)}
.auth-showcase-inner{min-height:calc(100vh - 84px);display:flex;flex-direction:column;position:relative;z-index:1}
.auth-showcase-brand{display:flex;gap:13px;align-items:center;font:800 .92rem Manrope,Arial,sans-serif;letter-spacing:.07em}
.auth-showcase-brand .brandmark{background:#fff;color:#8a8a8a;box-shadow:0 10px 25px rgba(28,21,94,.18)}
.auth-showcase-brand small{display:block;color:#e9e9e9;font:.75rem 'DM Sans',Arial,sans-serif;letter-spacing:0;margin-top:3px}
.auth-showcase-copy{margin:auto 0;max-width:530px;padding:45px 0 30px}
.auth-kicker{color:#e3e3e3;letter-spacing:.18em;font-size:.74rem;font-weight:800;margin-bottom:23px}
.auth-showcase-copy h2{font-size:clamp(2.6rem,4vw,4.5rem);line-height:1.08;letter-spacing:-.065em;margin:0 0 23px;max-width:490px}
.auth-showcase-copy>p:not(.auth-kicker){font-size:1.05rem;line-height:1.7;color:#eeeeee;max-width:450px}
.auth-businesses{display:flex;gap:8px;flex-wrap:wrap;margin-top:38px}
.auth-businesses span{font-size:.78rem;font-weight:700;border:1px solid rgba(255,255,255,.27);border-radius:999px;padding:9px 13px;background:rgba(255,255,255,.09)}
.auth-showcase-foot{color:#dfdfdf;font-size:.76rem;margin:0}
.auth-main>.login-card{align-self:center;justify-self:center;width:min(440px,calc(100% - 70px));padding:15px 0;border:0;box-shadow:none;border-radius:0}
.auth-main>.login-card .login-logo{display:none}
.auth-main>.login-card h1{font-size:2.2rem;line-height:1.17;max-width:390px;margin-bottom:12px}
.auth-main>.login-card .muted{font-size:.96rem;margin-bottom:30px}
.auth-main>.login-card .field span{font-size:.83rem;margin-bottom:9px;color:#515151}
.auth-main>.login-card .field input{min-height:46px;border-color:#e2e2e2;border-radius:10px}
.auth-main>.login-card .btn{min-height:48px;margin-top:9px}
.auth-help{text-align:center;color:#a1a1a1;font-size:.78rem;margin:25px 0 0}
.setup-main{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#f9f9f9,#fafafa);padding:35px 20px}
.setup-card{width:min(100%,590px);padding:38px 42px;border:1px solid #eeeeee;box-shadow:0 18px 55px rgba(70,50,143,.08)}
.setup-card hr{border:0;border-top:1px solid #efefef;margin:22px 0}
.setup-card .muted{margin-bottom:25px}
.inline-form{display:inline}
.text-button{border:0;background:transparent;color:#959595;font-weight:700;padding:5px}
.text-button:hover{text-decoration:underline}
.invite-link{background:#f6f6f6;border:1px solid #e8e8e8;color:#585858}
.invite-link p{margin:6px 0;font-size:.85rem}
.invite-link code{color:#7a7a7a}
@media(max-width:1050px){.main{padding:30px 25px 70px}}
@media(max-width:800px){.auth-main{display:block}.auth-showcase{min-height:260px;padding:25px 25px 30px}.auth-showcase-inner{min-height:205px}.auth-showcase-copy{padding:28px 0 12px;margin:0}.auth-showcase-copy h2{font-size:2rem;margin-bottom:9px}.auth-showcase-copy>p:not(.auth-kicker),.auth-businesses,.auth-showcase-foot{display:none}.auth-kicker{margin-bottom:9px}.auth-main>.login-card{width:min(440px,calc(100% - 40px));padding:36px 0 50px}}
@media(max-width:640px){.sidebar{width:auto;padding:13px;border-right:0;border-bottom:1px solid #eeeeee}.brand{margin:0}.sidebar nav::before{display:none}.sidebar nav{margin-top:11px}.sidebar nav a{padding:8px 10px}.main{margin:0;padding:20px 14px 55px}.stat{min-height:135px;padding:16px}.stat strong{font-size:1.5rem}.stat::before{right:13px;top:13px;width:25px;height:25px}.panel{padding:17px}.setup-card{padding:26px 22px}.auth-main>.login-card h1{font-size:1.8rem}}

/* Tarjetas y seguimiento comercial */
.feature-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.85fr);gap:20px;margin-top:20px;align-items:start}.feature-grid .panel{margin-bottom:18px}.feature-grid h3{font-size:.95rem;margin:0}.feature-grid h3 small{color:#a2a2a2;margin-left:8px}.quick-contact{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.script-box{background:#f8f8f8;border:1px solid #eeeeee;border-radius:11px;padding:14px 17px;margin-bottom:20px}.script-box p{margin:8px 0 0;white-space:normal;line-height:1.55}.form-grid.compact{grid-template-columns:1fr 1fr;margin-bottom:18px}.feature-row{border-top:1px solid var(--line);padding:12px 0;font-size:.86rem}.feature-row b,.feature-row small{display:block}.feature-row small,.hint{color:#a2a2a2;font-size:.74rem;margin-top:4px}.feature-row p{margin:6px 0;line-height:1.5}.feature-row .inline-form{margin-left:8px}.checklist{border:1px solid #f0f0f0;border-radius:12px;padding:15px;margin-bottom:16px}.checklist .panel-head{margin-bottom:9px}.progress{height:6px;background:#f0f0f0;border-radius:99px;overflow:hidden;margin:9px 0 12px}.progress span{display:block;height:100%;background:#979797;border-radius:99px}.checklist-item{display:flex;align-items:center;gap:9px;border-top:1px solid #f2f2f2;padding:8px 0}.checklist-item>span{flex:1;font-size:.86rem}.checklist-item small{display:block;color:#a2a2a2;font-size:.72rem}.checklist-item.done>span{text-decoration:line-through;color:#acacac}.inline-add{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:15px}.inline-add input,.inline-add select{min-width:90px;flex:1;border:1px solid #e6e6e6;border-radius:8px;background:#fff;padding:9px;color:#505050}.inline-add input[type=file]{min-width:180px}.label-choice{display:flex;align-items:center;gap:8px;padding:5px 0}.label-choice .card-label{flex:1}.card-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.card-label,.card-badge{display:inline-block;border-radius:5px;padding:4px 7px;font-size:.68rem;font-weight:800;line-height:1.2}.card-label{background:var(--label);color:#fff}.card-badge{background:#f4f4f4;color:#808080}.card-badge.urgent,.card-badge.late{background:#fff0e8;color:#c46c4f}.card-cover{display:block;height:9px;border-radius:8px 8px 0 0;margin:-14px -14px 13px}.custom-field{padding:10px 0;border-bottom:1px solid #f2f2f2}.custom-field .field{margin-bottom:5px}.custom-field .btn{font-size:.74rem;min-height:30px;padding:5px 10px}.activity-list{margin-top:16px}.late-text{color:#c06048;font-weight:800}.narrow{max-width:650px}@media(max-width:1050px){.feature-grid{grid-template-columns:1fr}}@media(max-width:640px){.form-grid.compact{grid-template-columns:1fr}.inline-add{display:grid;grid-template-columns:1fr 1fr}.inline-add input:first-of-type{grid-column:1/-1}}

/* Integraciones y tarjetas importadas */
.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.integration-card{border:1px solid #ececec;border-radius:12px;padding:20px;background:#fff}.integration-card h3{margin:8px 0;font-size:1rem}.integration-card p{font-size:.84rem}.integration-card .btn{margin-top:7px}.import-progress{min-height:20px;margin-top:10px;color:#959595;font-size:.77rem;font-weight:700}.trello-filters{display:flex;gap:9px;margin-bottom:20px}.trello-filters input,.trello-filters select{border:1px solid #e3e3e3;border-radius:9px;padding:10px 12px;background:#fff;color:#404040}.trello-filters input{flex:1}.trello-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.trello-card{display:flex;flex-direction:column;gap:8px;min-height:112px;padding:15px;text-decoration:none;color:#323232;background:#fff;border:1px solid #ececec;border-radius:11px}.trello-card:hover{border-color:#aeaeae;box-shadow:0 5px 16px rgba(111,84,214,.09)}.trello-card small{color:#868686;font-size:.7rem;font-weight:800;text-transform:uppercase}.trello-card b{font-size:.86rem;line-height:1.4}.trello-card span{color:#a0a0a0;font-size:.72rem;margin-top:auto}.trello-pages{display:flex;align-items:center;justify-content:center;gap:15px;margin:22px 0 3px;font-size:.79rem}.trello-description{white-space:normal;overflow-wrap:anywhere;line-height:1.6;font-size:.88rem}.trello-checklist>div,.trello-comment{padding:10px 0;border-bottom:1px solid #f0f0f0}.trello-comment small{color:#a9a9a9;margin-left:8px}.trello-comment p{margin:7px 0}.integration-card .pill{display:inline-block}@media(max-width:900px){.trello-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.integration-grid,.trello-cards{grid-template-columns:1fr}.trello-filters{flex-wrap:wrap}.trello-filters input{flex-basis:100%}}

/* Tableros Trello */
.board-source-tabs{display:flex;gap:8px;margin:18px 0 20px}.board-source-tabs a{border:1px solid #eaeaea;border-radius:999px;background:#fff;color:#727272;text-decoration:none;font-size:.82rem;font-weight:800;padding:9px 15px}.board-source-tabs a.active{background:#979797;border-color:#979797;color:#fff}.trello-view-switch{text-align:right;margin:-10px 0 13px;font-size:.79rem;font-weight:700}.trello-view-switch a{color:#959595}.trello-kanban{display:flex;gap:14px;overflow-x:auto;align-items:flex-start;padding:3px 2px 18px;min-height:220px}.trello-column{flex:0 0 285px;width:285px;background:#f3f3f3;border:1px solid #ececec;border-radius:13px;padding:12px;max-height:min(75vh,830px);display:flex;flex-direction:column}.trello-column-head{display:flex;gap:7px;align-items:start;padding:2px 3px 12px}.trello-column-head h2{font-size:.82rem;line-height:1.3;margin:0;flex:1;color:#696969}.trello-column-head b{background:#fff;color:#888888;border-radius:999px;padding:3px 7px;font-size:.69rem}.trello-column-cards{overflow-y:auto;min-height:0;padding:1px 2px 2px;display:flex;flex-direction:column;gap:8px}.trello-column .trello-card{min-height:76px;padding:11px 12px;gap:7px;box-shadow:0 3px 11px rgba(34,29,75,.035)}.trello-column .trello-card b{font-size:.8rem;font-weight:700}.trello-column .trello-card span{font-size:.68rem}.trello-more{margin-top:10px;border:1px solid #e4e4e4;background:#fff;color:#909090;border-radius:9px;font-size:.75rem;font-weight:800;padding:10px;cursor:pointer}.trello-more:hover{background:#f8f8f8}.trello-more:disabled{opacity:.55;cursor:wait}.trello-list-item>small{display:block;color:#929292;font-size:.7rem;font-weight:800;margin:0 0 5px}.trello-list-item .trello-card{height:calc(100% - 20px)}@media(max-width:640px){.trello-column{flex-basis:260px;width:260px}.board-source-tabs{flex-wrap:wrap}.trello-filters select,.trello-filters button{flex:1}}

/* Tarjetas de Trello en el tablero principal */
.kanban{align-items:start}.kanban-col{display:flex;flex-direction:column;max-height:min(78vh,850px)}.kanban-col>.cards{min-height:300px;overflow-y:auto;flex:1;padding:2px 2px 0}.trello-deal-card{border-left:3px solid #a6a6a6;cursor:grab}.trello-deal-card:active{cursor:grabbing}.trello-deal-meta{display:block;margin-top:12px;color:#979797;font-size:.7rem}.trello-board-more{border:1px solid #e5e5e5;background:#fff;color:#909090;border-radius:9px;font-size:.75rem;font-weight:800;padding:10px;margin-top:8px;cursor:pointer}.trello-board-more:disabled{opacity:.6;cursor:wait}.trello-board-more:hover{background:#f8f8f8}
.trello-stage-form{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.trello-stage-form select{flex:1;min-width:125px;border:1px solid #e3e3e3;border-radius:9px;padding:9px 11px;background:#fff}.trello-stage-form+.muted{font-size:.76rem;line-height:1.45;margin-bottom:22px}

/* Contacto directo desde las tarjetas */
.board-card-main{display:block;color:inherit}.board-card-main:hover{color:inherit}.wa-card-action{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;padding:6px 10px;border-radius:7px;background:#e2f5e9;color:#197b4b;font-size:.72rem;font-weight:800;text-decoration:none}.wa-card-action:hover{background:#c9eed9;color:#12653d}.wa-card-action.missing{background:#f4f4f4;color:#7c7c7c}.trello-detail-actions{display:flex;gap:8px;flex-wrap:wrap}.btn.whatsapp{background:#dff5e8;color:#147746;border:1px solid #b8e6ca}.btn.whatsapp:hover{background:#caedd9}.trello-phone-form{border-top:1px solid #f1f1f1;padding-top:16px;margin:17px 0 10px}.trello-phone-form .field{margin-bottom:9px}.trello-phone-form+.muted{font-size:.75rem;line-height:1.45;margin-bottom:23px}

/* Iconos, conversación y aspecto */
.icon{display:inline-block;flex:none;vertical-align:-3px}.sidebar nav a::before{display:none}.sidebar nav a .icon{width:18px;height:18px;color:#a1a1a1}.sidebar nav a.active .icon,.sidebar nav a:hover .icon{color:#989898}.panel h2 .icon,.card-badge .icon{width:17px;height:17px;vertical-align:-3px;margin-right:5px}.card-badge .icon{width:13px;height:13px;margin:0 2px 0 0;vertical-align:-2px}.theme-picker{display:grid;gap:7px;margin:18px 12px 14px;font-size:.73rem;font-weight:800;color:#989898}.theme-picker select{width:100%;border:1px solid #e4e4e4;background:#fff;color:#404040;border-radius:9px;padding:9px 11px;font-size:.77rem}.trello-workspace{margin-top:18px;max-width:1020px}.trello-workspace .panel{margin-bottom:16px}.assignment-pill{margin:0 5px 7px 0}.card-chat{border:1px solid var(--line);background:#fcfcfc;border-radius:11px;min-height:100px;max-height:360px;overflow-y:auto;padding:10px 15px;margin-bottom:13px}.chat-message{padding:10px 2px;border-bottom:1px solid var(--line)}.chat-message:last-child{border-bottom:0}.chat-message-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.chat-message-head strong{font-size:.82rem}.chat-message-head time{font-size:.7rem;color:var(--muted)}.chat-message p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.87rem;line-height:1.45}.card-chat-form{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.card-chat-form textarea{width:100%;border:1px solid #e1e1e1;border-radius:9px;padding:11px 12px;resize:vertical;background:#fff;color:var(--ink)}.card-chat-form .btn{align-self:flex-end}.trello-workspace .label-choice{max-width:480px}.trello-workspace .feature-row .inline-form{float:right}
.card-tools{display:flex;flex-wrap:wrap;gap:8px;margin:-5px 0 20px}.card-tools a{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #e8e8e8;border-radius:9px;background:#fff;color:#7a7a7a;font-size:.76rem;font-weight:800}.card-tools a:hover{background:#f8f8f8}.card-tools .icon{width:15px;height:15px}
.detail-grid{align-items:start}.chat-remove{border:0;background:transparent;color:#949494;font-size:.69rem;padding:2px 5px;margin-left:auto}.chat-remove:hover{color:#ba5b5b;text-decoration:underline}
.work-detail-form .field{max-width:750px}.work-detail-form .field textarea{width:100%;border:1px solid #e3e3e3;border-radius:8px;padding:10px 11px;background:#fff;color:var(--ink);resize:vertical}.work-detail-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.work-detail-row .field{min-width:210px}.work-checkbox{font-size:.82rem;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:7px}.work-checkbox input{accent-color:#979797}

:root[data-effective-theme="dark"]{color-scheme:dark;--ink:#f2f2f2;--muted:#bcbcbc;--line:#3f3f3f;--bg:#1a1a1a;--white:#2b2b2b;--shadow:0 6px 25px rgba(0,0,0,.16)}
[data-effective-theme="dark"] body{background:#1a1a1a;color:#f2f2f2}
[data-effective-theme="dark"] .sidebar{background:#252525;border-right-color:#404040;color:#f2f2f2}
[data-effective-theme="dark"] .brand,[data-effective-theme="dark"] .sidebar-foot{color:#f2f2f2}
[data-effective-theme="dark"] .sidebar nav a{color:#c0c0c0}
[data-effective-theme="dark"] .sidebar nav a:hover,[data-effective-theme="dark"] .sidebar nav a.active{background:#3c3c3c;color:#f0f0f0}
[data-effective-theme="dark"] .sidebar nav a .icon{color:#ababab}
[data-effective-theme="dark"] .sidebar nav a.active .icon{color:#d3d3d3}
[data-effective-theme="dark"] .sidebar-foot,[data-effective-theme="dark"] .theme-picker select{background:#303030;border-color:#444444;color:#ececec}
[data-effective-theme="dark"] .stat,[data-effective-theme="dark"] .panel,[data-effective-theme="dark"] .deal-card,[data-effective-theme="dark"] .trello-card,[data-effective-theme="dark"] .integration-card,[data-effective-theme="dark"] .login-card{background:#2b2b2b;border-color:#424242;color:#f2f2f2}
[data-effective-theme="dark"] .kanban-col,[data-effective-theme="dark"] .trello-column{background:#262626;border-color:#404040}
[data-effective-theme="dark"] .col-head h2,[data-effective-theme="dark"] .trello-column-head h2,[data-effective-theme="dark"] .top .muted,[data-effective-theme="dark"] .muted{color:#bbbbbb}
[data-effective-theme="dark"] .col-head b,[data-effective-theme="dark"] .trello-column-head b,[data-effective-theme="dark"] .pill,[data-effective-theme="dark"] .card-badge{background:#3d3d3d;color:#dcdcdc}
[data-effective-theme="dark"] .deal-card .board-card-main,[data-effective-theme="dark"] .trello-card,[data-effective-theme="dark"] .business{color:#f2f2f2}
[data-effective-theme="dark"] .btn.secondary,[data-effective-theme="dark"] .board-source-tabs a:not(.active),[data-effective-theme="dark"] .trello-more,[data-effective-theme="dark"] .trello-board-more{background:#363636;border-color:#525252;color:#e4e4e4}
.kanban{display:flex;align-items:flex-start;grid-template-columns:none;overflow-x:auto;gap:13px}.kanban-col{flex:0 0 214px;width:214px;min-width:214px}.column-edit{position:relative;margin-left:2px}.column-edit summary{list-style:none;cursor:pointer;border:1px solid transparent;border-radius:7px;padding:1px 5px;color:var(--muted);font-weight:800;line-height:1}.column-edit summary::-webkit-details-marker{display:none}.column-edit summary:hover,.column-edit[open] summary{border-color:var(--line);background:var(--white)}.column-edit form{position:absolute;z-index:5;top:27px;right:0;width:230px;background:var(--white);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 35px rgba(28,24,65,.16);padding:13px}.column-edit label,.add-column label{display:block;font-size:.76rem;font-weight:800;color:var(--muted);margin-bottom:7px}.column-edit input,.add-column input{width:100%;border:1px solid var(--line);border-radius:8px;padding:9px;color:var(--ink);background:var(--white)}.column-edit button,.add-column button{margin-top:10px;width:100%}.add-column{min-height:170px;max-height:none;padding:18px;border:1px dashed #cbcbcb;background:transparent}.add-column p{font-size:.73rem;color:var(--muted);line-height:1.45;margin:16px 0 0}[data-effective-theme="dark"] .column-edit form{background:#303030}@media(min-width:1800px){.kanban-col{flex-basis:255px;width:255px;min-width:255px}}
.board-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}@media(max-width:640px){.board-actions{justify-content:flex-start}}
[data-effective-theme="dark"] .field input,[data-effective-theme="dark"] .field select,[data-effective-theme="dark"] .field textarea,[data-effective-theme="dark"] .inline-add input,[data-effective-theme="dark"] .inline-add select,[data-effective-theme="dark"] .trello-filters input,[data-effective-theme="dark"] .trello-filters select,[data-effective-theme="dark"] .trello-stage-form select,[data-effective-theme="dark"] .card-chat-form textarea{background:#212121;border-color:#4e4e4e;color:#f2f2f2}
[data-effective-theme="dark"] .card-chat,[data-effective-theme="dark"] .script-box,[data-effective-theme="dark"] .callout{background:#303030;border-color:#4a4a4a}
[data-effective-theme="dark"] th{background:#303030;color:#c3c3c3}
[data-effective-theme="dark"] td,[data-effective-theme="dark"] td b,[data-effective-theme="dark"] .stat strong{color:#f2f2f2}
[data-effective-theme="dark"] .tabs,[data-effective-theme="dark"] .feature-row,[data-effective-theme="dark"] .chat-message,[data-effective-theme="dark"] td{border-color:#424242}
[data-effective-theme="dark"] .auth-main{background:#1e1e1e}
[data-effective-theme="dark"] .wa-card-action.missing{background:#3e3e3e;color:#e4e4e4}
[data-effective-theme="dark"] .wa-card-action,[data-effective-theme="dark"] .btn.whatsapp{background:#1e493b;color:#aeefd1;border-color:#316551}
[data-effective-theme="dark"] .card-tools a{background:#363636;border-color:#505050;color:#e3e3e3}
[data-effective-theme="dark"] .work-detail-form .field textarea{background:#212121;border-color:#4e4e4e;color:#f2f2f2}
@media(max-width:640px){.theme-picker{margin:12px 2px 0}.theme-picker select{max-width:220px}.trello-workspace .feature-row .inline-form{float:none}}
.sales-next{margin-bottom:20px;padding:28px;max-width:900px}
.sales-next h2{font-size:clamp(1.35rem,3vw,2.2rem);margin:8px 0}
.sales-next .btn{margin-top:12px}
.sales-contact-panel{margin:20px 0}
.sales-contact-panel .form-grid{margin:16px 0}

/* Identidad oficial Grupo Ochoa */
:root{--ink:#242424;--muted:#727272;--blue:#303030;--blue-dark:#111;--bg:#f4f4f3;--line:#e1e1df;--shadow:0 6px 25px rgba(0,0,0,.04)}
.official-logo{display:block;position:relative;width:190px;aspect-ratio:1208/299;overflow:hidden;flex:none}
.official-logo img{position:absolute;width:129.47%;max-width:none;height:auto;left:-13.245%;top:-210.03%}
.sidebar{background:#202020;color:#fafafa;border-right-color:#303030}
.brand{display:block;margin-bottom:32px;padding:6px 9px}
.brand .official-logo{width:190px;max-width:100%}
.brand small{color:#a9a9a9;margin-top:12px;letter-spacing:.13em;font-size:.65rem;text-transform:uppercase}
.sidebar nav::before{color:#999}
.sidebar nav a,.sidebar nav a .icon{color:#bdbdbd}
.sidebar nav a.active,.sidebar nav a:hover{background:#383838;color:#fff}
.sidebar nav a.active .icon,.sidebar nav a:hover .icon{color:#fff}
.sidebar-foot,.theme-picker select{background:#2d2d2d;color:#eee;border-color:#494949}
.sidebar-foot small,.theme-picker{color:#aaa}
.avatar{background:#464646;color:#fff}
.logout{color:#ccc}
.btn.primary{background:#292929;color:#fff;box-shadow:0 5px 14px rgba(0,0,0,.12)}
.btn.primary:hover{background:#090909}
.btn.secondary,.tabs a.active,.card-bottom b{color:#303030}
.btn.secondary{border-color:#d4d4d4}
.eyebrow{color:#727272}
.auth-showcase{background:radial-gradient(circle at 90% 80%,#393939 0,transparent 45%),linear-gradient(145deg,#151515,#292929)}
.auth-showcase-brand{display:block}
.auth-showcase-brand .official-logo{width:235px}
.auth-showcase-brand small{color:#aaa;margin-top:14px;letter-spacing:.12em}
.auth-kicker,.auth-showcase-copy p,.auth-showcase-foot{color:#bbb}
.login-logo{display:block;width:200px;height:auto;background:#242424;padding:17px 20px;border-radius:12px;box-shadow:none}
.login-logo .official-logo{width:160px}
input[type=checkbox],input[type=radio]{accent-color:#414141}
[data-effective-theme="dark"]{--blue:#e0e0e0;--blue-dark:#fff;--ink:#eee;--muted:#aaa;--line:#393939;--bg:#171717;--white:#242424}
[data-effective-theme="dark"] .sidebar{background:#1d1d1d}
[data-effective-theme="dark"] .sidebar nav a.active,[data-effective-theme="dark"] .sidebar nav a:hover{background:#383838;color:#fff}
[data-effective-theme="dark"] .btn.primary{background:#e2e2e2;color:#1b1b1b}
[data-effective-theme="dark"] .btn.primary:hover{background:#fff}
[data-effective-theme="dark"] .btn.secondary,[data-effective-theme="dark"] .tabs a.active,[data-effective-theme="dark"] .card-bottom b{color:#e5e5e5}
@media(max-width:760px){.brand .official-logo{width:145px}.brand{margin-bottom:16px}.auth-showcase-brand .official-logo{width:190px}}

/* Cola de trabajo: un contacto a pantalla completa */
body:has(.queue-focus) .sidebar{display:none}
body:has(.queue-focus) .main{margin:0;max-width:none;padding:0}
.queue-focus{min-height:100dvh;background:var(--bg);padding:22px 38px;display:flex;flex-direction:column}
.focus-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.focus-exit{font-size:.84rem;color:var(--muted);font-weight:700}
.focus-brand{font-weight:800;letter-spacing:.07em;font-size:.8rem}.focus-brand span{font-weight:500;color:var(--muted)}
.focus-header form{display:flex;gap:8px}.focus-header select{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:8px 12px;max-width:230px}
.focus-progress{display:flex;justify-content:space-between;gap:15px;margin:24px auto 17px;width:100%;max-width:1400px;font-size:.72rem;letter-spacing:.08em;color:var(--muted)}.focus-progress b{color:var(--ink)}
.focus-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);gap:24px;width:100%;max-width:1400px;margin:auto;flex:1;align-items:stretch}
.focus-contact,.focus-comments{background:var(--white);border:1px solid var(--line);border-radius:24px;box-shadow:0 14px 45px rgba(0,0,0,.045);overflow:hidden}
.focus-contact{padding:28px 34px;display:flex;flex-direction:column;min-width:0}
.focus-contact-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.focus-identity{text-align:center;margin:auto 0;padding:24px 0;touch-action:pan-y}
.focus-avatar{width:74px;height:74px;display:grid;place-items:center;background:#292929;color:#fff;border-radius:24px;font:800 2rem Manrope;margin:0 auto 22px}
.focus-identity h1{font-size:clamp(1.65rem,2.6vw,3rem);line-height:1.18;overflow-wrap:anywhere;margin:0 auto 18px;max-width:800px}
.focus-identity .eyebrow{font-size:.65rem;margin-bottom:14px}
.focus-subtitle{color:var(--muted)}
.focus-contact-info{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 22px;font-weight:600;font-size:.95rem;overflow-wrap:anywhere}
.focus-context{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-top:1px solid var(--line);padding:20px 0;font-size:.76rem}.focus-context strong{display:block;margin-top:7px;font-weight:600}
.focus-description{border-top:1px solid var(--line);font-size:.82rem;margin-bottom:18px}.focus-description summary{cursor:pointer;padding:12px 0;font-weight:600}.focus-description div{max-height:160px;overflow:auto;white-space:normal;overflow-wrap:anywhere;color:var(--muted);line-height:1.6}
.focus-primary-actions{display:flex;flex-direction:column;gap:14px;text-align:center;margin-top:6px}.focus-whatsapp{background:#196a49;color:#fff;border:1px solid #196a49;min-height:58px;border-radius:14px;gap:12px;font-size:1.05rem}.focus-whatsapp:hover{background:#12553a;color:#fff}
.focus-card-link{font-size:.8rem;font-weight:600;color:var(--muted)}
.focus-comments{display:flex;flex-direction:column;min-height:380px}.focus-comments-heading{padding:26px 25px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.focus-comments-heading h2{margin:0;font-size:1rem}.focus-comments-heading .eyebrow{font-size:.58rem}
.focus-comments-list{flex:1;overflow-y:auto;max-height:60vh;padding:0 25px;min-height:200px}.focus-comment{padding:21px 0;border-bottom:1px solid var(--line)}.focus-comment header{display:flex;justify-content:space-between;gap:12px;font-size:.8rem}.focus-comment header span,.focus-comment time{font-size:.67rem;color:var(--muted)}.focus-comment time{display:block;margin-top:6px}.focus-comment p{font-size:.87rem;line-height:1.65;margin:13px 0 0;overflow-wrap:anywhere}
.focus-no-comments{text-align:center;padding:65px 20px;color:var(--muted)}.focus-no-comments .icon{width:36px;height:36px;margin-bottom:18px}.focus-no-comments h3{font-size:1rem}.focus-no-comments p{line-height:1.6;font-size:.85rem}
.focus-comments-footer{padding:18px;text-align:center;border-top:1px solid var(--line);font-size:.78rem;font-weight:700}
.focus-navigation{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;max-width:1400px;margin:22px auto 0}.focus-navigation p{font-size:.72rem;color:var(--muted);margin:0;text-align:center}.focus-navigation .btn{min-height:46px}
.focus-empty{margin:auto;text-align:center;padding:60px 20px;max-width:700px}.focus-empty h1{font-size:2.5rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.queue-focus{padding:16px}.focus-brand{display:none}.focus-layout{grid-template-columns:1fr}.focus-contact{padding:24px}.focus-comments{min-height:280px}.focus-comments-list{max-height:380px}.focus-navigation{flex-wrap:wrap}.focus-navigation p{order:3;width:100%}.focus-identity h1{font-size:1.8rem}.focus-progress span:last-child{display:none}}
@media(prefers-reduced-motion:no-preference){.focus-contact{animation:focus-arrive .25s ease-out}@keyframes focus-arrive{from{opacity:.5;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}}
.focus-save-form{padding:18px 24px;border-top:1px solid var(--line);display:grid;gap:10px}
.focus-save-form .field{margin:0;display:grid;gap:6px}
.focus-save-form .field>span{font-size:.73rem;font-weight:700;color:var(--muted)}
.focus-save-form textarea,.focus-save-form select,.focus-save-form input{width:100%;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:9px 11px;min-width:0}
.focus-save-form textarea{resize:vertical;min-height:74px}
.focus-save-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.focus-save-hint{font-size:.67rem;line-height:1.5;color:var(--muted);margin:0}
.focus-save-error{font-size:.75rem;color:#bd4949;margin:0}.focus-save-error:empty{display:none}
.focus-save-form .btn{width:100%;min-height:46px}
.focus-comments:has(.focus-save-form) .focus-comments-list{max-height:25vh;min-height:110px}
.focus-comments:has(.focus-save-form) .focus-no-comments{padding:25px 15px}
.focus-comments:has(.focus-save-form) .focus-no-comments .icon{width:24px;height:24px;margin-bottom:10px}
.focus-comments:has(.focus-save-form) .focus-comments-heading{padding-top:18px;padding-bottom:15px}
.focus-comments:has(.focus-save-form) .focus-comments-footer{padding:12px}
.focus-save-form input:disabled{opacity:.45}
@media(max-width:600px){.focus-save-form{padding:18px}.focus-save-row{grid-template-columns:1fr}}
.focus-clock{display:flex;flex-direction:column;align-items:center;gap:3px}.focus-clock time{font-size:25px;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:.03em}.focus-clock small{font-size:11px;color:var(--muted)}.focus-quote{border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:12px}.focus-quote summary{cursor:pointer;font-weight:700;font-size:14px}.focus-quote[open] summary{margin-bottom:14px}.focus-quote .field{margin-bottom:10px}.focus-quote input[type=file]{font-size:12px;padding:9px;width:100%}.focus-save-form{overflow:visible}.focus-comments{overflow:auto}.focus-clock+form{margin-left:auto}@media(max-width:800px){.focus-header{flex-wrap:wrap}.focus-brand{display:none}.focus-clock{margin-left:auto}.focus-clock+form{width:100%;justify-content:flex-end}}
@media(min-width:901px){.focus-layout{align-items:start;flex:0}.focus-contact,.focus-comments{height:calc(100dvh - 210px);min-height:580px}.focus-contact{overflow:auto}.focus-comments{overflow-y:auto}.focus-comments>*{flex-shrink:0}.focus-comments:has(.focus-save-form) .focus-comments-list{flex:0 0 auto;max-height:170px;min-height:90px}.focus-identity{padding:16px 0}.focus-avatar{width:55px;height:55px;margin-bottom:15px}.focus-identity h1{font-size:clamp(1.5rem,2.3vw,2.5rem)}}

.commercial-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;margin:12px 0}.commercial-confirm input{width:18px;height:18px;flex-shrink:0;margin:1px 0}.focus-save-form [data-commercial-won],.focus-save-form [data-commercial-lost]{border:1px solid var(--line);padding:14px;border-radius:12px}.focus-save-form [hidden]{display:none!important}

.weekly-filters form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:16px;align-items:end}.weekly-filters .field{margin:0}.weekly-filters>p{margin-bottom:0;font-size:12px}.weekly-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.weekly-kpi>strong{display:block;font-size:clamp(28px,3vw,42px);letter-spacing:-.04em;margin:15px 0}.weekly-kpi .eyebrow{font-size:11px}.weekly-kpi>p:not(.eyebrow){font-size:13px}.weekly-comparison{border-top:1px solid var(--line);padding-top:15px;font-size:13px;line-height:1.7}.weekly-warning{color:var(--muted);font-size:12px;line-height:1.5}.weekly-method p{font-size:13px;line-height:1.7}.weekly-breakdown summary{font-weight:700;cursor:pointer}.weekly-breakdown[open] summary{margin-bottom:20px}@media(max-width:850px){.weekly-kpis{grid-template-columns:1fr}.weekly-filters form{grid-template-columns:1fr 1fr}}@media(max-width:520px){.weekly-filters form{grid-template-columns:1fr}}

.trello-detail-main{min-width:0;display:flex;flex-direction:column;gap:20px}.trello-detail-main>.panel{margin:0}.trello-detail-layout .sales-contact-panel{margin:0}.trello-detail-layout>.panel{margin:0}

/* Acciones de cola siempre visibles, fuera del panel con desplazamiento. */
.queue-focus{padding-bottom:120px}.focus-navigation{position:fixed;z-index:40;bottom:0;left:0;right:0;max-width:none;width:auto;margin:0;padding:16px max(24px,calc((100vw - 1400px)/2)) calc(16px + env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(0,0,0,.08)}.focus-action-pair{display:flex;align-items:center;gap:12px}.focus-navigation .focus-save-button{min-height:58px;padding:16px 28px;font-size:1.05rem;font-weight:800;box-shadow:0 4px 12px rgba(0,0,0,.18);border:2px solid var(--ink)}.focus-save-button:focus-visible,.focus-skip:focus-visible{outline:3px solid #4389df;outline-offset:3px}.focus-navigation .focus-skip{min-height:50px;font-size:.85rem}.focus-save-button:disabled{opacity:.6;cursor:wait}@media(min-width:901px){.focus-contact,.focus-comments{height:calc(100dvh - 260px);min-height:420px}}@media(max-width:900px){.focus-navigation{gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.focus-navigation p{font-size:.65rem}.queue-focus{padding-bottom:160px}}@media(max-width:560px){.focus-action-pair{width:100%;gap:8px}.focus-navigation .focus-save-button{flex:1;min-height:54px;padding:12px;font-size:.9rem}.focus-navigation .focus-skip{flex:1;padding:10px;font-size:.75rem}.focus-navigation>div:last-child:empty{display:none}}

/* Personal saved activity in the contact queue, following the business filter. */
.focus-activity{display:flex;flex-direction:column;gap:5px}.focus-activity-label{font-size:10px;color:var(--muted);font-weight:650}.focus-activity-counts{display:flex;gap:8px}.focus-activity-counts>div{display:flex;flex-direction:column;gap:2px;min-width:98px;padding:6px 10px;background:var(--white);border:1px solid var(--line);border-radius:10px}.focus-activity-counts span{font-size:10px;color:var(--muted)}.focus-activity-counts strong{font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums}.focus-activity-counts strong small{font-size:10px;font-weight:500}.focus-activity-counts>div>small{font-size:9px;color:var(--muted)}.focus-header:has(.focus-activity){gap:14px}.focus-header:has(.focus-activity) form{margin-left:auto}@media(max-width:1450px){.focus-header:has(.focus-activity) .focus-brand{display:none}}@media(max-width:1000px){.focus-header:has(.focus-activity){flex-wrap:wrap}.focus-activity{order:4;width:100%}.focus-activity-counts>div{flex:1}.focus-activity-counts{width:100%}.focus-header:has(.focus-activity) form{width:auto}.focus-activity-counts>div>small{font-size:10px}}
/* Keep opening a card distinct from dragging it or choosing its destination. */
.deal-card{position:relative;user-select:none}.deal-card .card-company{padding-right:30px;min-height:22px}.board-drag-handle{position:absolute;right:7px;top:7px;z-index:2;width:29px;height:29px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--ink);font-size:23px;line-height:1;cursor:grab;touch-action:none}.board-drag-handle:active{cursor:grabbing}.board-drag-handle:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.kanban-col.drag-over{outline:2px dashed var(--ink);outline-offset:-3px}.board-move-dialog{width:min(700px,94vw);max-height:90vh;overflow-y:auto;border:1px solid var(--line);border-radius:16px;padding:25px;background:var(--white);color:var(--ink);box-shadow:0 20px 80px #0004}.board-move-dialog::backdrop{background:#0007}.board-move-dialog h2{line-height:1.5;margin-right:15px}.board-move-dialog [data-quote-panel],.board-move-dialog [data-commercial-won],.board-move-dialog [data-commercial-lost],.board-move-dialog [data-terms-panel]{grid-column:1/-1}.board-move-dialog [hidden]{display:none!important}.board-move-dialog .field{margin-bottom:15px}.board-move-cancel{margin-top:18px}.board-move-dialog .commercial-confirm{display:flex;gap:10px;align-items:center}[data-effective-theme="dark"] .board-move-dialog{background:#2b2b2b;border-color:#424242;color:#f2f2f2}

/* Creation date stays prominent above the contact identity. */
.card-age{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:14px 18px;margin:0 0 18px;border:1px solid var(--line);border-left:4px solid var(--ink);border-radius:10px;background:var(--bg);color:var(--ink);line-height:1.4;max-width:100%}
.card-age-label{display:block;font-size:.67rem!important;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)!important;margin:0 0 4px!important}
.card-age time{display:block;font-size:1.05rem;font-weight:800;color:var(--ink)}
.card-age .card-age-days{font-size:.87rem;font-weight:800;color:var(--ink);padding:6px 10px;border-radius:7px;background:var(--white)}
.card-age-compact{padding:8px 10px;gap:6px;margin:0 0 12px;border-left-width:3px}
.card-age-compact time{font-size:.85rem}
.card-age-compact .card-age-label{font-size:.57rem!important;margin-bottom:2px!important}
.card-age-compact .card-age-days{font-size:.68rem;padding:4px 6px;line-height:1.35}
.focus-contact>.card-age{margin:16px 0 0;flex-shrink:0;padding:14px 18px}
.focus-contact>.card-age time{font-size:1.15rem}
.focus-contact>.card-age .card-age-days{font-size:1rem}
.top .card-age{margin-bottom:16px}
.deal-card .card-age-compact{margin-right:26px}

/* Card navigation has its own opaque sticky row, outside the content. */
.card-return.back{display:inline-flex;align-items:center;gap:9px;margin:0;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);font-size:.85rem;font-weight:750;width:fit-content;flex-shrink:0}
.card-return:hover{background:var(--bg)}.card-return:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.task-alert-toolbar:has(.card-return){position:sticky;top:0;z-index:96;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px;margin:0 0 22px;padding:12px 0;background:var(--bg);border-bottom:1px solid var(--line)}
.main:has(.card-return) [id]{scroll-margin-top:90px}
@media(max-width:640px){.task-alert-toolbar:has(.card-return){min-height:64px;margin-bottom:16px}.main:has(.card-return) [id]{scroll-margin-top:80px}}
.production-dialog{width:min(820px,95vw);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:28px;background:var(--white);color:var(--ink);box-shadow:0 20px 70px #0004}.production-dialog::backdrop{background:#0007}.production-dialog .form-actions{display:flex;justify-content:flex-end;gap:12px}.production-dialog [hidden]{display:none!important}

/* Board closures keep commercial and production details in one form. */
.board-move-dialog .production-inline{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px;margin-top:8px}.production-inline h2{margin-bottom:10px}.production-inline>p{font-size:.85rem;line-height:1.5}.board-move-dialog .form-actions{position:sticky;bottom:-28px;z-index:2;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;background:var(--white);padding:16px 0;margin-top:5px;border-top:1px solid var(--line)}.board-move-dialog .form-actions .board-move-cancel{margin:0}[data-effective-theme="dark"] .board-move-dialog .form-actions{background:#2b2b2b}
