/* Último Bocado V17 · Mi perfil y notificaciones no leídas */
body.app-on .ub-profile-trigger{text-decoration:none;color:inherit;cursor:pointer;border-radius:14px;padding:4px 6px;transition:background .2s ease}
body.app-on .ub-profile-trigger:hover,body.app-on .ub-profile-trigger:focus-visible{background:rgba(255,255,255,.11)}
body.app-on .ub-profile-trigger .header-user-caption span{color:#fff}
body.app-on .ub-profile-section{scroll-margin-top:105px}
body.app-on .ub-profile-overview{display:flex;align-items:center;gap:14px;margin:14px 0;padding:15px;background:#f3faf4;border:1px solid #e1eee3;border-radius:18px}
body.app-on .ub-profile-letter{width:52px;height:52px;border-radius:50%;background:#087b55;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900;flex:none}
body.app-on .ub-profile-identity{display:flex;flex-direction:column;gap:4px;min-width:0}
body.app-on .ub-profile-identity strong{font-size:17px;color:#06472f;overflow-wrap:anywhere}
body.app-on .ub-profile-identity small{font-size:12px;color:#647d6f}
body.app-on .ub-profile-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px}
body.app-on .ub-profile-info>div{display:flex;flex-direction:column;gap:5px;padding:13px 14px;border-radius:14px;background:#fafcf9;border:1px solid #e4eee7;min-width:0}
body.app-on .ub-profile-info small{font-size:11px;color:#6e8475}
body.app-on .ub-profile-info strong{font-size:13px;color:#193c2b;overflow-wrap:anywhere}
body.app-on .ub-profile-editors{display:grid;gap:10px}
body.app-on .ub-profile-editor{border:1px solid #deeadf;border-radius:16px;background:#fff;overflow:hidden;padding:0}
body.app-on .ub-profile-editor summary{list-style:none;cursor:pointer;font-size:14px;font-weight:900;color:#0b5a3f;padding:15px 17px}
body.app-on .ub-profile-editor summary::-webkit-details-marker{display:none}
body.app-on .ub-profile-editor[open] summary{background:#edf8f0;border-bottom:1px solid #dceade}
body.app-on .ub-profile-editor .security-form{margin:12px;box-shadow:none}
body.app-on .ub-profile-editor .security-form>small{font-size:12px;color:#607b69;line-height:1.4}
body.app-on .ub-profile-editor .security-form input{width:100%;margin-top:6px}
body.app-on .app-header .alert-icon{overflow:visible!important}
body.app-on .app-header .ub-notification-badge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 4px;background:#e33730;color:white;border:2px solid #003f2f;border-radius:99px;display:grid;place-items:center;font-size:10px;font-weight:900;line-height:1;box-sizing:border-box;z-index:5;box-shadow:0 3px 7px #031b1233}
body.app-on [data-unread-badge][hidden]{display:none!important}
body.app-on .bottom-nav a[data-route="notificaciones"]{position:relative!important}
body.app-on .bottom-nav .ub-nav-unread{position:absolute!important;top:1px;right:calc(50% - 26px);min-width:16px;height:16px;padding:0 3px;background:#e33730!important;color:#fff!important;border-radius:99px;display:grid!important;place-items:center!important;font-size:9px!important;font-weight:900!important;line-height:1!important;box-sizing:border-box;z-index:5}
body.app-on #notificaciones .note-item.is-unread{border-color:#b6e3ba;background:#f1f9f0;box-shadow:inset 4px 0 #0a8b57}
@media(max-width:540px){body.app-on .ub-profile-info{grid-template-columns:1fr}body.app-on .ub-profile-trigger{padding:0}body.app-on .ub-profile-letter{width:44px;height:44px}body.app-on .app-header .ub-notification-badge{top:-5px;right:-5px}}

/* V18 · acceso visible a Mi perfil para la cuenta de empresa */
body.app-on .ub-business-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.app-on .ub-business-title>div{min-width:0;display:grid;gap:4px}
body.app-on .ub-business-title h2{margin:0}
body.app-on .ub-business-title>div>span{font-size:12px;color:#688071;font-weight:650}
body.app-on .ub-business-profile-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border-radius:13px;border:1px solid #bfe3cc;background:#e8f7ed;color:#07563d!important;font-size:13px;font-weight:900;text-decoration:none;white-space:nowrap;box-shadow:0 4px 12px rgba(4,75,39,.06);transition:background .2s ease,transform .2s ease}
body.app-on .ub-business-profile-link:hover{background:#d9f2e3;transform:translateY(-1px)}
body.app-on .ub-business-profile-link:focus-visible,body.app-on .ub-back-local:focus-visible{outline:3px solid #e6b53c;outline-offset:2px}
body.app-on .ub-profile-title-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
body.app-on .ub-back-local{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border-radius:11px;border:1px solid #cfe6d3;color:#076544;background:#f0faf1;font-size:12px;font-weight:800;text-decoration:none}
body.app-on .ub-back-local:hover{background:#dff2e6}
@media(max-width:540px){
 body.app-on .ub-business-title{gap:8px}
 body.app-on .ub-business-title>div>span{font-size:11px}
 body.app-on .ub-business-profile-link{padding:9px 11px;min-height:38px;font-size:12px}
 body.app-on .ub-profile-heading{align-items:flex-start}
 body.app-on .ub-profile-title-actions{gap:7px}
}

/* V19: ambos paneles del perfil comienzan recogidos y se despliegan desde su flecha. */
body.app-on .ub-profile-editor > summary {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:52px;padding:14px 17px;background:#fff;
  border-bottom:0;user-select:none;
}
body.app-on .ub-profile-editor > summary::after {
  content:"" !important;display:block;flex:0 0 auto;
  width:10px;height:10px;margin-right:5px;
  border:solid #0b704b;border-width:0 2px 2px 0;
  border-radius:1px;transform:rotate(45deg);
  background:transparent !important;box-shadow:none !important;
  transition:transform .24s ease;
}
body.app-on .ub-profile-editor[open] > summary::after {transform:rotate(225deg);}
body.app-on .ub-profile-editor[open] > summary {background:#edf8f0;border-bottom:1px solid #dceade;}
body.app-on .ub-profile-editor[open] > .security-form {
  animation:ubProfileReveal .28s ease both;
}
@keyframes ubProfileReveal {
  from {opacity:0;transform:translateY(-9px)}
  to {opacity:1;transform:translateY(0)}
}
body.app-on .ub-profile-editor > summary:focus-visible {
  outline:3px solid #edc74d;outline-offset:-3px;border-radius:15px;
}
@media(prefers-reduced-motion:reduce){
  body.app-on .ub-profile-editor > summary::after {transition:none !important;}
  body.app-on .ub-profile-editor[open] > .security-form {animation:none !important;}
}

/* V20: el perfil COMPLETO se presenta cerrado, igual a Confianza de la comunidad. */
body.app-on .ub-profile-section {
  padding:0 !important;overflow:hidden !important;
  scroll-margin-top:104px;
  border-radius:19px !important;
}
body.app-on .ub-profile-accordion {margin:0 !important;padding:0 !important;border:0 !important;}
body.app-on .ub-profile-accordion > summary.ub-profile-accordion-summary {
  display:flex !important;align-items:center !important;gap:12px !important;
  width:100% !important;min-height:57px !important;padding:15px 19px !important;
  box-sizing:border-box !important;
  list-style:none !important;cursor:pointer !important;user-select:none !important;
  color:#0a573d !important;background:linear-gradient(105deg,#f8fbef,#fff7dc) !important;
  border:0 !important;font-size:16px !important;font-weight:900 !important;
}
body.app-on .ub-profile-accordion > summary.ub-profile-accordion-summary::-webkit-details-marker{display:none !important;}
body.app-on .ub-profile-accordion > summary.ub-profile-accordion-summary::marker{content:"";}
body.app-on .ub-profile-accordion .ub-profile-disclosure {
  display:block !important;flex:0 0 auto !important;width:0 !important;height:0 !important;
  border-left:9px solid #0d6046 !important;border-top:6px solid transparent !important;border-bottom:6px solid transparent !important;
  transform:rotate(0deg);transform-origin:43% 50%;transition:transform .25s ease;
}
body.app-on .ub-profile-accordion[open] .ub-profile-disclosure {transform:rotate(90deg);}
body.app-on .ub-profile-accordion .ub-profile-summary-title{font-size:16px !important;color:#064c35 !important;font-weight:900 !important;}
body.app-on .ub-profile-accordion .ub-profile-summary-info{font-size:12px !important;font-weight:750 !important;color:#617d6d !important;margin-left:auto;}
body.app-on .ub-profile-accordion > summary:focus-visible {outline:3px solid #e5bd48 !important;outline-offset:-3px !important;border-radius:15px;}
body.app-on .ub-profile-accordion > .ub-profile-content{padding:12px 16px 17px !important;border-top:1px solid #e5eee6;}
body.app-on .ub-profile-accordion[open] > .ub-profile-content{animation:ubProfileReveal .27s ease both;}
body.app-on .ub-profile-toolbar{display:flex;justify-content:flex-end;margin:0 0 8px;}
body.app-on .ub-profile-accordion .ub-profile-overview{margin-top:4px !important;}
@media(max-width:540px){
 body.app-on .ub-profile-accordion > summary.ub-profile-accordion-summary{gap:9px !important;min-height:54px !important;padding:13px 14px !important;}
 body.app-on .ub-profile-accordion .ub-profile-summary-info{font-size:10px !important;}
 body.app-on .ub-profile-accordion .ub-profile-summary-title{font-size:15px !important;}
 body.app-on .ub-profile-accordion > .ub-profile-content{padding:10px 11px 14px !important;}
}
@media(prefers-reduced-motion:reduce){
 body.app-on .ub-profile-accordion .ub-profile-disclosure{transition:none !important;}
 body.app-on .ub-profile-accordion[open] > .ub-profile-content{animation:none !important;}
}
