/* Memora identity: blue, readable case summaries and optional work settings. */
.memora1532 { --m1532-border:#dde5ec; --m1532-muted:#5c6e7e; }
.memora1532 .main-content { padding:22px 18px; max-width:680px; }
.memora1532 .app-header { min-height:76px; padding:13px 18px; box-shadow:none; }
.memora1532 .brand-title { font-size:1.25rem; letter-spacing:.7px; }
.memora1532 #relojHeader { font-size:.72rem !important; line-height:1.5; }
.memora1532 .welcome-section { margin-bottom:20px; }
.m1532-business { color:var(--text-secondary); font-size:.9rem; margin-bottom:9px; overflow-wrap:anywhere; }
.memora1532 .welcome-text h2 { font-size:1.65rem; line-height:1.25; letter-spacing:-.6px; }
.memora1532 .welcome-text > p:last-child { margin-top:8px; font-size:.95rem; }
.m1532-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 26px; border:1px solid var(--m1532-border); border-radius:13px; overflow:hidden; background:var(--card-white); }
.m1532-overview .memora152-metric { display:flex; flex-direction:column; justify-content:center; gap:4px; border:0; border-radius:0 !important; padding:15px 5px !important; min-height:90px; background:transparent !important; min-width:0; }
.m1532-overview .memora152-metric + .memora152-metric { border-left:1px solid var(--m1532-border); }
.m1532-overview .memora152-metric > span:first-child { font-size:.8rem !important; }
.m1532-overview .memora152-metric h4,.m1532-overview #revisiones1532 { font-size:1.75rem !important; font-weight:750; line-height:1.2; }
.m1532-overview #dash-activos-btn > span,.m1532-overview #dash-mes-btn > span { order:2; }
.m1532-overview .m1532-review-metric { background:#fff7e9 !important; color:#995b08; }
.m1532-overview .m1532-review-metric > span:last-child { font-size:.8rem; }
.memora1532 .section-header { gap:12px; align-items:flex-start; }
.memora1532 .section-header h3 { font-size:1.12rem; line-height:1.4; }
.memora1532 .link-more { white-space:nowrap; font-size:.84rem; min-height:32px; display:flex; align-items:center; }
.memora1532 .card { border:1px solid var(--m1532-border); border-radius:13px; box-shadow:0 3px 12px #18334d05; }
.m1532-case { padding:17px !important; margin-bottom:12px !important; min-width:0; }
.m1532-case-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.m1532-case-identity { min-width:0; flex:1; }
.m1532-case-identity h4 { font-size:1.06rem; line-height:1.35; overflow-wrap:anywhere; }
.m1532-case-identity p { margin-top:5px; color:var(--text-secondary); font-size:.85rem; line-height:1.4; overflow-wrap:anywhere; }
.m1532-tags { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:10px; }
.m1532-tags .tag { font-size:.75rem; line-height:1.3; white-space:normal; max-width:100%; }
.m1532-tags .memora151-priority { margin-left:0; }
.m1532-timing { display:flex; gap:6px; align-items:flex-start; color:var(--primary-blue); flex-shrink:0; max-width:44%; font-size:.76rem; line-height:1.35; }
.m1532-timing > .material-symbols-outlined { font-size:22px; }
.m1532-timing strong,.m1532-timing span:not(.material-symbols-outlined) { display:block; }
.m1532-timing.is-due { color:#a73b2a; }
.m1532-timing div > span { margin-top:3px; font-size:.74rem; }
.m1532-rule { display:flex; gap:8px; align-items:center; font-size:.82rem; color:var(--text-secondary); line-height:1.5; margin-top:14px; border-top:1px solid var(--m1532-border); padding-top:12px; }
.m1532-rule .material-symbols-outlined { font-size:19px; flex-shrink:0; }
.m1532-comment-preview { display:flex; align-items:flex-start; gap:8px; margin-top:9px; font-size:.84rem; line-height:1.5; color:var(--text-secondary); }
.m1532-comment-preview > .material-symbols-outlined { font-size:19px; padding-top:1px; flex-shrink:0; }
.m1532-comment-preview > div { overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow-wrap:anywhere; }
.m1532-card-contact { margin-top:11px; display:flex; flex-wrap:wrap; gap:6px; }
.m1532-card-contact:empty { display:none; }
.m1532-case-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:13px; }
.m1532-case-actions > .m1532-button { flex:1; }
.m1532-utilities { display:flex; flex-shrink:0; gap:4px; }
.m1532-button { display:inline-flex; gap:7px; align-items:center; justify-content:center; min-height:44px; padding:10px 13px; border:1px solid var(--m1532-border); background:var(--card-white); color:var(--primary-blue); font-family:inherit; font-size:.86rem; font-weight:650; line-height:1.35; border-radius:9px; cursor:pointer; overflow-wrap:anywhere; }
.m1532-button .material-symbols-outlined { font-size:20px; flex-shrink:0; }
.m1532-button.primary { background:var(--primary-blue); border-color:var(--primary-blue); color:white; }
.m1532-button.full { width:100%; margin-top:16px; }
.m1532-button.danger { color:#b42323; }
.m1532-button:hover { filter:brightness(.97); }
.memora1532 button:focus-visible,.memora1532 summary:focus-visible,.memora1532 select:focus-visible,.memora1532 input:focus-visible,.memora1532 textarea:focus-visible { outline:3px solid #70b8e3; outline-offset:3px; }
.m1532-tools-title { font-size:1.05rem; margin:7px 0 12px; }
.memora1532 .biblioteca151-home { padding:0; border:0; background:transparent; box-shadow:none; margin:23px 0; }
.memora1532 .biblioteca151-home-actions { margin:0; }
.memora1532 .biblioteca151-home-tile { border-radius:12px; padding:13px; min-width:0; background:var(--card-white); border:1px solid var(--m1532-border); }
.memora1532 .biblioteca151-home-tile-icon { font-size:25px; background:transparent; width:32px; height:32px; }
.memora1532 .biblioteca151-home-tile-text strong { font-size:.88rem; }
.memora1532 .biblioteca151-home-tile-text small { font-size:.73rem; line-height:1.4; }
.m1532-activity { margin:22px 0; border-top:1px solid var(--m1532-border); padding-top:15px; }
.m1532-activity > summary { cursor:pointer; color:var(--primary-blue); font-size:.92rem; font-weight:650; min-height:40px; }
.m1532-activity .kpi-carousel-wrapper { margin:10px 0 16px; padding:0; }
.m1532-activity .kpi-card { box-shadow:none; border:1px solid var(--m1532-border); }
.m1532-top-channel { grid-template-columns:1fr !important; }
.m1532-top-channel > button { text-align:left; display:flex; justify-content:space-between; align-items:center; gap:12px; background:transparent !important; }
.m1532-top-channel > button > span { font-size:.85rem !important; }
.m1532-sheet-heading,.m1532-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }
.m1532-sheet-heading h2 { font-size:1.35rem; letter-spacing:-.4px; }
.m1532-identity { padding:20px; }
.m1532-identity h3 { font-size:1.5rem; overflow-wrap:anywhere; }
.m1532-identity > p { margin-top:8px; color:var(--text-secondary); font-size:.96rem; line-height:1.5; overflow-wrap:anywhere; }
.m1532-section { padding:20px; margin-bottom:15px; }
.m1532-section h3 { display:flex; align-items:center; gap:9px; margin-bottom:16px; font-size:1.1rem; }
.m1532-section-heading h3 { margin:0; }
.m1532-data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 22px; }
.m1532-data-grid > div { min-width:0; }
.m1532-data-grid dt { font-size:.84rem; color:var(--text-secondary); line-height:1.5; overflow-wrap:anywhere; }
.m1532-data-grid dd { margin-top:4px; font-size:.97rem; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.m1532-contact-details { padding-top:13px; margin-top:16px; border-top:1px solid var(--m1532-border); }
.m1532-contact-details p { display:flex; flex-direction:column; gap:4px; margin-bottom:9px; font-size:.9rem; overflow-wrap:anywhere; }
.m1532-contact-details strong { font-size:.8rem; color:var(--text-secondary); }
.m1532-channel-actions { display:flex; flex-wrap:wrap; gap:8px; }
.m1532-follow-panel { background:#f3f8fc !important; }
.m1532-follow-panel.is-due { background:#fff9ef !important; border-color:#f3dba8; }
.m1532-follow-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.m1532-follow-grid span { display:block; color:var(--text-secondary); font-size:.79rem; line-height:1.5; }
.m1532-follow-grid strong { display:block; font-size:.92rem; margin-top:5px; line-height:1.5; }
.m1532-follow-time { margin:16px 0 8px; font-size:.88rem; font-weight:700; color:var(--primary-blue); line-height:1.5; }
.m1532-follow-panel.is-due .m1532-follow-time { color:#9b5f12; }
.m1532-help { font-size:.82rem; color:var(--text-secondary); line-height:1.6; margin:9px 0; overflow-wrap:anywhere; }
.m1532-comment { padding:14px 0; border-bottom:1px solid var(--m1532-border); }
.m1532-comment:last-child { border-bottom:0; }
.m1532-comment time { color:var(--text-secondary); font-size:.78rem; }
.m1532-comment p { font-size:.94rem; line-height:1.55; margin-top:7px; white-space:pre-wrap; overflow-wrap:anywhere; }
.m1532-sheet-utilities { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:18px 0; }
.m1532-form-heading { font-size:1rem; padding-top:18px; margin-top:4px; border-top:1px solid var(--m1532-border); color:var(--primary-blue); }
.m1532-form-heading:first-child { padding-top:0; margin-top:0; border-top:0; }
.m1532-form-data { padding:14px; background:var(--bg-light); border:1px solid var(--m1532-border); border-radius:10px; }
.m1532-field { display:flex; flex-direction:column; gap:7px; font-size:.86rem; color:var(--text-secondary); margin:12px 0; line-height:1.5; font-weight:550; min-width:0; overflow-wrap:anywhere; }
.m1532-field input,.m1532-field select,.m1532-field textarea { border:1px solid var(--m1532-border); background:var(--card-white); color:var(--text-primary); border-radius:8px; padding:11px; min-height:45px; min-width:0; width:100%; font-family:inherit; font-size:16px; line-height:1.5; }
.m1532-field textarea { resize:vertical; min-height:76px; }
.m1532-field small { font-size:.75rem; font-weight:400; }
.m1532-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.m1532-config { margin-top:18px; padding:16px; }
.m1532-config > summary { display:flex; align-items:center; gap:9px; cursor:pointer; font-size:1rem; font-weight:700; min-height:44px; color:var(--primary-blue); list-style:none; }
.m1532-config > summary > .material-symbols-outlined:last-child { margin-left:auto; }
.m1532-config[open] > summary > .material-symbols-outlined:last-child { transform:rotate(180deg); }
.m1532-config-section { border-top:1px solid var(--m1532-border); padding-top:18px; margin-top:18px; }
.m1532-config-section h3 { font-size:1.02rem; line-height:1.4; margin-bottom:9px; }
.m1532-config-row { display:flex; align-items:center; gap:6px; border:1px solid var(--m1532-border); padding:6px 8px 6px 13px; border-radius:9px; margin:9px 0; min-width:0; }
.m1532-config-row > span { flex:1; min-width:0; overflow-wrap:anywhere; font-size:.94rem; }
.m1532-config-row > button { padding:8px; width:40px; flex-shrink:0; border:0; }
.m1532-config-preview { border:1px solid var(--m1532-border); background:var(--bg-light); border-radius:10px; padding:15px; margin:18px 0; overflow-wrap:anywhere; }
.m1532-config-preview > strong { font-size:.8rem; color:var(--text-secondary); }
.m1532-config-preview h4 { margin:12px 0; }
.m1532-config-preview p { display:flex; gap:12px; justify-content:space-between; font-size:.88rem; margin:7px 0; }
.m1532-config-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.m1532-config-actions > button { flex:1; }
.m1532-profile-heading { flex-wrap:wrap; gap:12px; }
.m1532-profile-heading > div { min-width:0; flex:1 1 150px; }
.m1532-profile-heading > div > div:last-child { min-width:0; overflow-wrap:anywhere; }
.m1532-profile-heading > button { flex-shrink:0; min-height:40px; }
.memora1532 #contenedorBotonesInicio { flex-wrap:wrap; }
.memora1532 #contenedorBotonesInicio > button { min-width:0; flex-basis:100px !important; }
.m1532-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.memora1532 .bottom-nav { padding-top:9px; padding-bottom:max(9px,env(safe-area-inset-bottom)); }
.memora1532 .nav-item { font-size:.73rem; }
.memora1532 .nav-item .material-symbols-outlined { font-size:26px; }
.memora1532 .memora-modal-overlay { height:100dvh; padding:16px; }
.memora1532 .memora-modal-card { max-height:100%; overflow:auto; overscroll-behavior:contain; }
.memora1532 [hidden] { display:none !important; }
html[data-theme="dark"] .memora1532 { --m1532-border:#314457; }
html[data-theme="dark"] .memora1532 .biblioteca151-home { background:transparent; border:0; }
html[data-theme="dark"] .memora1532 .biblioteca151-home-tile { border-color:var(--m1532-border); box-shadow:none; }
html[data-theme="dark"] .m1532-button:not(.primary):not(.danger),
html[data-theme="dark"] .m1532-config > summary,
html[data-theme="dark"] .m1532-activity > summary,
html[data-theme="dark"] .m1532-form-heading,
html[data-theme="dark"] .m1532-follow-time,
html[data-theme="dark"] .memora1532 .link-more { color:#9bd0ff; }
html[data-theme="dark"] .m1532-button.danger { color:#f6a5a5; }
html[data-theme="dark"] .m1532-overview .m1532-review-metric { background:#342b1a !important; color:#f4c77a; }
html[data-theme="dark"] .m1532-follow-panel { background:#172c3f !important; }
html[data-theme="dark"] .m1532-follow-panel.is-due { background:#30281d !important; border-color:#775b2b; }
html[data-theme="dark"] .m1532-timing.is-due { color:#f2a398; }
html[data-theme="dark"] .m1532-follow-panel.is-due .m1532-follow-time { color:#f4c77a; }
@media(max-width:420px) {
  .memora1532 .main-content { padding:18px 13px; }
  .memora1532 .welcome-text h2 { font-size:1.45rem; }
  .m1532-case-top { flex-direction:column; gap:10px; }
  .m1532-timing { max-width:100%; font-size:.8rem; }
  .m1532-timing div { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
  .m1532-timing div > span { margin:0; }
  .m1532-case { padding:15px !important; }
  .m1532-section { padding:17px; }
  .m1532-section-heading { flex-wrap:wrap; }
  .m1532-fields,.m1532-follow-grid { grid-template-columns:1fr; }
  .m1532-sheet-heading { align-items:flex-start; }
  .m1532-sheet-heading h2 { font-size:1.2rem; }
  .m1532-utilities { flex-basis:100%; }
  .memora1532 .biblioteca151-home-actions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .memora1532 .biblioteca151-home-tile { padding:12px; gap:7px; }
  .memora1532 .biblioteca151-home-tile-icon { display:none; }
  .memora1532 .biblioteca151-tile-arrow { font-size:20px; }
}
@media(max-width:350px) {
  .m1532-data-grid { grid-template-columns:1fr; }
  .m1532-config-actions { flex-direction:column; }
  .memora1532 .header-center { font-size:.8rem; }
  .memora1532 .status-pill { padding:4px 7px; }
  .memora1532 .brand-title { font-size:1.1rem; }
  .memora1532 .nav-item { font-size:.65rem; }
}
@media(min-width:800px) {
  .memora1532 .main-content { max-width:1100px; padding:28px; }
  .memora1532 #sec-inicio { display:grid !important; grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr); gap:0 28px; align-items:start; }
  .memora1532 #sec-inicio > * { min-width:0; }
  .memora1532:not(.tab-inicio) #sec-inicio { display:none !important; }
  .memora1532 #sec-inicio > .welcome-section,.memora1532 #sec-inicio > .m1532-overview { grid-column:1/-1; }
  .memora1532 #sec-inicio > .section-container,.memora1532 #sec-inicio > .biblioteca151-home,.memora1532 #sec-inicio > .m1532-activity { grid-column:1; }
  .memora1532 #focoFormularioInicio { grid-column:2; grid-row:3/span 4; min-width:0; }
  .memora1532 #sec-ficha { max-width:760px; margin:auto; }
  .memora1532 #sec-perfil { max-width:760px; margin:auto; }
  .memora1532 .m1532-overview { max-width:680px; }
}
@media(min-width:800px) and (max-width:1050px) {
  .memora1532 #focoFormularioInicio .m1532-fields { grid-template-columns:1fr; }
}
