/* CRM Agentes Prime — Tipografía Inter 1.1 — escala ampliada
   Capa final, reversible y no invasiva.
   Mejora legibilidad y jerarquía sin cambiar la estructura aprobada. */

:root{
  --ap5-font:"Inter",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ap-type-body:16px;
  --ap-type-small:14px;
  --ap-type-micro:12px;
  --ap-type-leading:1.52;
}

html,
body.ap5-app-body{
  font-family:var(--ap5-font)!important;
}

body.ap5-app-body{
  font-size:var(--ap-type-body);
  font-weight:400;
  line-height:var(--ap-type-leading);
  letter-spacing:-.006em;
  font-optical-sizing:auto;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

body.ap5-app-body button,
body.ap5-app-body input,
body.ap5-app-body select,
body.ap5-app-body textarea{
  font-family:var(--ap5-font)!important;
}

body.ap5-app-body input:not([type="checkbox"]):not([type="radio"]),
body.ap5-app-body select,
body.ap5-app-body textarea{
  font-size:16px!important;
  line-height:1.45!important;
}

body.ap5-app-body .crm-btn,
body.ap5-app-body .ap-btn,
body.ap5-app-body button.crm-btn,
body.ap5-app-body button.ap-btn,
body.ap5-app-body .btn-mini,
body.ap5-app-body .button{
  font-size:15px!important;
  font-weight:700!important;
  letter-spacing:-.008em;
}

/* Shell y navegación. */
.ap5-brand-copy strong{font-size:20px;line-height:1.08;font-weight:750;}
.ap5-brand-copy small{font-size:12px;line-height:1.3;}
.ap5-user-trigger{font-size:15px;font-weight:700;}
.ap5-user-dropdown-head strong{font-size:16px;}
.ap5-user-dropdown-head small{font-size:13px;}
.ap5-user-dropdown a,
.ap5-user-dropdown button{font-size:15px;line-height:1.35;}
.ap5-nav-heading,
.ap5-sidebar-title{font-size:12px;}
.ap5-nav-home,
.ap5-nav-trigger{font-size:15px;font-weight:700;line-height:1.25;}
.ap5-nav-flyout-title{font-size:12px;}
.ap5-nav-flyout a{font-size:15px;line-height:1.35;}
.ap5-tools-area .ap-coordination-sidebar{font-size:13.5px;line-height:1.48;}
.ap5-tools-area .crm-btn,
.ap5-tools-area .ap-btn,
.ap5-tools-area .button{font-size:13px!important;}

/* Encabezados y contexto del Panel. */
.ap-home-eyebrow,
.ap-planificacion-eyebrow{font-size:12px;}
.ap-home-title{font-size:clamp(36px,4.2cqi,52px);font-weight:750;line-height:1;}
.ap-home-subtitle{font-size:17px;line-height:1.58;}
body.ap5-app-body .ap-context-tabs .btn-mini{font-size:14px!important;}
.ap-panel-section-heading h2{font-size:clamp(27px,3cqi,35px);}
.ap-panel-section-heading p{font-size:15px;line-height:1.55;}

/* Cronograma y foco diario. */
.ap-mi-foco-kicker,
.ap-cronograma-kicker{font-size:11px;}
.ap-mi-foco-title,
.ap-cronograma-title{font-size:clamp(26px,2.8cqi,35px);font-weight:750;}
.ap-mi-foco-subtitle,
.ap-cronograma-subtitle{font-size:15px;line-height:1.55;}
.ap-mi-foco-count,
.ap-cronograma-count{font-size:13px;}
.ap-mi-foco-task-title{font-size:15.5px;font-weight:700;line-height:1.38;}
.ap-mi-foco-letter,
.ap-mi-foco-impact,
.ap-mi-foco-meta span{font-size:11px;line-height:1.25;}
.ap-mi-foco-visible-summary{font-size:13px;}
.ap-mi-foco-toggle{font-size:14px;}
.ap-mi-foco-empty{font-size:15px;line-height:1.55;}

/* Buscador, contactos, radar e histórico. */
.ap-command-search-field input{font-size:16px!important;}
.ap-command-search-help{font-size:12px;line-height:1.45;}
.crm-contactos-panel>.box-header h2,
.ap-radar-head h2{font-size:24px!important;}
.crm-contactos-panel .mini-box h2{font-size:17px!important;}
.ap-contact-work-help,
.ap-contact-section-label,
.ap-contact-plan-summary,
.ap-radar-threshold{font-size:13px;line-height:1.5;}
.ap-radar-card h3{font-size:16px;}
.ap-ha-title{font-size:27px;}
.ap-ha-subtitle,
.ap-ha-count{font-size:14px;line-height:1.5;}
.ap-ha-item{font-size:15px;line-height:1.55;}

/* Perspectiva y matriz compacta. */
.ap-productividad-kicker{font-size:11px;}
.ap-productividad-hero h2{font-size:26px!important;}
.ap-productividad-hero p{font-size:14px;line-height:1.55;}
.ap-productividad-next span,
.ap-productividad-metric span{font-size:11px;}
.ap-productividad-next strong{font-size:14px;}
.ap-productividad-details-title{font-size:15px;}
.ap-productividad-details-counts span{font-size:11px;}
.ap-productividad-details-counts strong{font-size:13px;}
.ap-productividad-details>summary::after{font-size:12px;}

/* Planificación y Agenda. */
.ap-planificacion-hero h1{font-size:clamp(36px,4cqi,50px);font-weight:750;}
.ap-planificacion-hero p{font-size:16px;line-height:1.58;}
.ap-planificacion-section-title{font-size:28px;}
.ap-planificacion-section-sub{font-size:15px;line-height:1.55;}
.ap-agenda-main-head h2{font-size:24px;}
.ap-agenda-main-help{font-size:14px;line-height:1.55;}
.ap-agenda-legend{font-size:12px;}
.ap-agenda-viewport .fc .fc-toolbar-title{font-size:clamp(20px,2.1cqi,26px)!important;font-weight:750;}
.ap-agenda-viewport .fc .fc-button{font-size:14px!important;}
.ap-agenda-viewport .fc-col-header-cell-cushion{font-size:14px;}
.ap-agenda-viewport .fc-timegrid-axis-cushion,
.ap-agenda-viewport .fc-timegrid-slot-label-cushion{font-size:12px;}
.ap-agenda-viewport .fc-event-main{font-size:12px;line-height:1.25;}

/* Kanban: claridad sin perder densidad. */
.ap-kanban-title h2{font-size:26px;font-weight:750;}
.ap-kanban-subtitle{font-size:15px;line-height:1.5;}
.ap-kanban-btn{font-size:15px;}
.ap-kanban-color-filter-label{font-size:14px;}
.ap-kanban-column-title{font-size:15px;font-weight:750;line-height:1.3;}
.ap-kanban-count{font-size:13.5px;}
.ap-kanban-card-title{font-size:15.5px;font-weight:700;line-height:1.42;}
.ap-kanban-card-meta{font-size:13.5px;line-height:1.35;}
.ap-kanban .ap-pill{font-size:12px;line-height:1.2;}
.ap-kanban .ap-indicator{font-size:11px;line-height:1.2;}
.ap-card-action{font-size:13.5px;}
.ap-kanban-add-card{font-size:14px;}
.ap-kanban-field label{font-size:14px;}
.ap-kanban-field input,
.ap-kanban-field select,
.ap-kanban-field textarea{font-size:16px;}
.ap-kanban-assignment-help,
.ap-kanban-reminder-title,
.ap-archived-meta{font-size:14px;}

/* Fechas, horas, contadores y cifras se leen mejor alineadas. */
.ap-mi-foco-count,
.ap-cronograma-count,
.ap-mi-foco-meta,
.ap-productividad-metric strong,
.ap-kanban-count,
.fc-timegrid-slot-label-cushion{
  font-variant-numeric:tabular-nums;
}

@media(max-width:1240px){
  .ap5-nav-home,
  .ap5-nav-trigger{font-size:14.5px;}
}

@media(max-width:1024px){
  body.ap5-app-body{font-size:16px;}
  .ap5-nav-flyout a{font-size:16px;}
  .ap-home-subtitle{font-size:16px;}
  .ap-kanban-card-title{font-size:15px;}
}

@media(max-width:700px){
  body.ap5-app-body{font-size:16px;line-height:1.52;}
  .ap5-brand-copy strong{font-size:17px;}
  .ap5-brand-copy small{font-size:11px;}
  .ap5-user-trigger{font-size:14px;}
  .ap-home-title{font-size:34px;}
  .ap-home-subtitle{font-size:15px;line-height:1.55;}
  .ap-mi-foco-title,
  .ap-cronograma-title{font-size:27px;}
  .ap-mi-foco-subtitle,
  .ap-cronograma-subtitle{font-size:14.5px;}
  .ap-mi-foco-task-title{font-size:15px;}
  .ap-planificacion-hero h1{font-size:34px;}
  .ap-planificacion-hero p{font-size:15px;}
  .ap-planificacion-section-title{font-size:25px;}
  .ap-agenda-viewport .fc-event-main{font-size:11.5px;}
  .ap-kanban-title h2{font-size:22px;}
  .ap-kanban-subtitle{font-size:14px;}
  .ap-kanban-column-title{font-size:13.5px;}
  .ap-kanban-card-title{font-size:14px;line-height:1.42;}
  .ap-kanban-card-meta{font-size:12px;}
  .ap-kanban .ap-pill{font-size:11px;}
  .ap-kanban .ap-indicator{font-size:10.5px;}
}

@media(max-width:430px){
  .ap-home-title{font-size:32px;}
  .ap-mi-foco-title,
  .ap-cronograma-title{font-size:26px;}
  .ap-mi-foco-task-title{font-size:14.5px;}
}
