/* Compact widgets: one number, one message and one destination per surface. */
/* Portal del socio · verde salvia, relieve y acciones con jerarquía visible. */
.fadelam-brand img{display:block;width:112px;height:auto}
.sidebar .fadelam-brand{justify-content:center}
.shell:not(.admin) .sidebar .fadelam-brand{margin-bottom:27px}
.access .fadelam-brand img{width:clamp(72px,11vw,110px)}
.fadelam-brand.compact img{width:30px}
.fadelam-brand.compact strong{color:#23352f;font-family:Palatino,Georgia,serif;font-size:19px;letter-spacing:.045em}
.shell:not(.admin),.access{
  --paper:#e3eee8;--surface:#edf5ef;--surface-raised:#f7fbf7;
  --forest:#23352f;--forest-soft:#d4e5da;--ink:#23352f;--cream:#23352f;
  --cream-muted:#47595a;--line:#aec4b6;--socio-lime:#a6d257;
  --socio-shadow:5px 6px 16px #3b5c4a1a,-4px -4px 12px #ffffffba
}
.shell:not(.admin) aside.sidebar{background:#dbe9e1}
.shell:not(.admin) .sidebar .sidebar-story{background:#e3eee8;border-color:#a5bbaa}
.shell:not(.admin) main.main{background:var(--paper)}
.shell:not(.admin) nav.bottom-nav{background:#edf5ef;border-color:var(--line)}
.shell:not(.admin) .sidebar .nav a.active{background:#cbe0d3;color:var(--ink);border-color:#9bb4a4;box-shadow:inset 2px 2px 5px #4566551a}
:is(.shell:not(.admin),.access) .btn.primary{background:var(--socio-lime);border-color:#6a913a;color:var(--ink);box-shadow:0 2px 4px #344c2b25}
:is(.shell:not(.admin),.access) .btn.primary:not(:disabled):hover{background:#b4da78}
:is(.shell:not(.admin),.access) .btn.secondary{background:var(--surface);border-color:#819d8b;color:var(--ink)}
.access .login-card{background:var(--surface);border-color:#9fb6a7;box-shadow:var(--socio-shadow)}
.shell:not(.admin) :is(.btn,.home-pantry,.home-account-notice,.home-shortcuts a,.withdrawal-option,.nav a):focus-visible{
  outline:2px solid #254d3c;outline-offset:3px
}
.shell:not(.admin) .approved-welcome h1{font-family:Palatino,Georgia,serif;font-weight:500;letter-spacing:-.03em}
.shell:not(.admin) .dashboard-grid{
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-rows:auto;
  grid-template-areas:"community activity" "pantry price" "account shortcuts";
  align-items:start;gap:18px
}
.shell:not(.admin) .home-pantry{
  grid-area:pantry;min-height:0;gap:10px;padding:26px;
  color:var(--ink);background:#d4e7da linear-gradient(130deg,#f0f7ee,#d4e7da);
  border:1px solid #afc8b9;box-shadow:var(--socio-shadow)
}
.shell:not(.admin) .home-pantry>.eyebrow{margin:8px 0 0;color:var(--cream-muted)!important}
.shell:not(.admin) .home-pantry>p{color:var(--cream-muted);margin:0}
.shell:not(.admin) .home-pantry>.btn{margin-top:6px}
.shell:not(.admin) .home-cycle-state{font:500 clamp(28px,3.8vw,42px)/1.08 Palatino,Georgia,serif;letter-spacing:-.035em;margin:0}
.shell:not(.admin) .home-event{grid-area:activity}
.shell:not(.admin) .home-agenda-empty{display:block;padding:20px}
.shell:not(.admin) .home-agenda-empty .btn{margin-top:12px}
.shell:not(.admin) .home-community{grid-area:community;padding:20px;background:var(--surface);border:1px solid #b9ccbf}
.shell:not(.admin) .home-community .home-news-photo{margin-top:12px}
.shell:not(.admin) .home-membership{grid-area:account}
.shell:not(.admin) .home-shortcuts{grid-area:shortcuts}
.shell:not(.admin) :is(.home-event,.home-community,.home-membership,.home-shortcuts,.pantry-intro,.pantry-current,.pantry-history,.withdrawal-summary,.withdrawal-selected,.variety-picker){
  border-color:#b9ccbf;box-shadow:var(--socio-shadow)
}
.shell:not(.admin) .home-account-notice{
  min-height:52px;padding:9px;border:1px solid #9bb4a4;border-radius:10px;
  background:#f3f8f3;color:var(--ink)
}
.shell:not(.admin) .home-shortcuts a{background:#dcebe0;border:1px solid #b5caba}
.shell:not(.admin) .home-shortcuts a>.icon:first-child{background:#c8dfd0}
.shell:not(.admin) .cycle-summary>div{border-color:#adbfaf}
.shell:not(.admin) .withdrawal-option{border-color:#92ad9b}
.shell:not(.admin) .withdrawal-option.selected{
  background:#dcebc8;border-color:#658741;box-shadow:inset 0 0 0 1px #658741
}
.shell:not(.admin) .pantry-featured{min-width:0}
@media(max-width:760px){
  .shell:not(.admin) .dashboard-grid{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"community" "activity" "pantry" "price" "account" "shortcuts"
  }
  .shell:not(.admin) .home-pantry{padding:20px}
  .shell:not(.admin) .home-pantry>.btn{width:100%}
}

.member-home{min-width:0;max-width:1180px;margin:auto}
.shell:has(.member-home) .sidebar-story{display:none}
.member-home-header{margin:18px 0 27px}
.member-home-header .eyebrow{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:var(--cream-muted)}
.member-home-header h1{font-size:38px;letter-spacing:-1.3px;font-weight:500;line-height:1.15;margin-top:9px}
.home-widgets{display:grid;grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.widget{border:0;border-radius:28px;padding:24px;min-width:0;display:flex;flex-direction:column;text-decoration:none;overflow:hidden;color:var(--ink);background:var(--surface);position:relative}
.widget-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.widget-top>.icon{width:20px;height:20px;flex-shrink:0}
.widget-label{font-size:10px;letter-spacing:.8px;font-weight:550;line-height:1.5}
.widget h2{font-size:24px;font-weight:550;line-height:1.18;letter-spacing:-.7px;margin:23px 0;overflow-wrap:anywhere}
.widget-action{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;font-size:12px;font-weight:500;margin-top:auto}
.widget-action>.icon{width:18px;height:18px;flex-shrink:0}
.member-home .wallet-card{grid-row:span 2;min-height:350px;background:var(--forest);color:var(--paper);padding:30px}
.wallet-card .widget-top h2{font-size:17px;margin:0;letter-spacing:-.3px}
.member-home .home-balance{margin:32px 0 15px;display:block}
.member-home .home-balance strong{font-size:85px;letter-spacing:-3px;font-weight:550;line-height:1.1}
.member-home .home-balance>span{font-size:15px;margin:10px 0 0;max-width:none;color:var(--paper)}
.wallet-state{display:flex;align-items:center;gap:7px;font-size:12px;margin:12px 0 20px;color:var(--paper);line-height:1.5}
.wallet-state .icon{width:16px;height:16px;flex-shrink:0}
.wallet-card .widget-action{padding-top:16px;border-top:1px solid #f1e8d730;font-size:13px;min-height:60px}
.widget-arrow{width:40px;height:40px;background:var(--paper);color:var(--forest);border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.widget-arrow .icon{width:19px;height:19px}
.wallet-card:focus-visible{outline-color:var(--forest);outline-offset:5px}
.widget-task{background:#e8ddc6;min-height:172px}
.widget-task .member-observation{font-size:12px;line-height:1.6;color:var(--ink);margin:-8px 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.widget-message{background:#dce5d5;min-height:172px}
.widget-dot{width:8px;height:8px;border-radius:50%;background:var(--forest);flex-shrink:0}
.widget-message h2{font-size:22px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.member-home .widget-activity{grid-column:2 / 4;display:grid;grid-template-columns:120px minmax(0,1fr);padding:0;min-height:183px;background:var(--surface);border:0;border-radius:28px}
.widget-activity-photo{position:relative;overflow:hidden;min-width:0}
.widget-activity-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.widget-date{position:absolute;top:14px;left:14px;background:var(--paper);color:var(--ink);border-radius:15px;text-align:center;padding:10px 12px;min-width:47px}
.widget-date strong{display:block;font-size:27px;line-height:1;font-weight:550}
.widget-date small{font-size:9px;letter-spacing:1px}
.widget-activity-info{display:flex;flex-direction:column;padding:23px 26px;min-width:0}
.member-home .widget-activity h2{font-size:24px;margin:10px 0 9px;line-height:1.2;letter-spacing:-.6px}
.widget-activity-info>p{font-size:12px;color:var(--cream-muted);line-height:1.7;margin:0}
.widget-activity-info .widget-action{padding-top:8px}
.notice-count-1 :is(.widget-task,.widget-message){grid-column:2 / 4}
.notice-count-0 .wallet-card{grid-row:auto;min-height:270px}
.notice-count-0 .widget-activity{grid-row:1}
.no-encounter .wallet-card{grid-row:auto}
.no-encounter :is(.widget-task,.widget-message){min-height:270px}
.home-agenda-link{display:flex;align-items:center;gap:9px;min-height:48px;font-size:12px;color:var(--forest);margin-top:19px}
.home-agenda-link .icon{width:17px;height:17px}.home-agenda-link .icon:last-child{margin-left:auto}
.notification-link{color:var(--ink);min-height:64px}.notification-link>div{flex:1;min-width:0}.notification-link>.icon{flex-shrink:0}.notification-link>.icon:last-child{width:17px}
.profile-data-panel{max-width:820px;border:0;border-radius:28px;margin:0 auto}
.profile-data-panel,.membership-panel{box-shadow:none}
.membership-panel{max-width:820px;margin:0 auto;border:0;border-radius:28px}
.membership-panel .checklist-item{border-radius:14px;padding:17px;background:var(--forest-soft)}
@media(max-width:1100px){.widget{padding:22px}.widget h2{font-size:22px}.widget-message h2{font-size:20px}.member-home .wallet-card{padding:26px}.member-home .home-balance strong{font-size:70px}.widget-activity-info{padding:20px}.member-home .widget-activity h2{font-size:22px}}
@media(max-width:760px){
  .member-home-header{margin:12px 0 20px}.member-home-header .eyebrow{font-size:9px;letter-spacing:1px}.member-home-header h1{font-size:29px;margin-top:7px;letter-spacing:-.8px}
  .home-widgets{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .widget{padding:18px;border-radius:25px}.widget h2{font-size:21px;letter-spacing:-.5px;line-height:1.2;margin:16px 0 12px}
  .widget-label{font-size:8px;letter-spacing:.6px}.widget-top>.icon{width:17px;height:17px}.widget-action{font-size:11px;gap:6px}
  .member-home .wallet-card{grid-column:1 / -1;grid-row:auto;min-height:219px;padding:22px 24px;border-radius:27px}
  .wallet-card .widget-top h2{font-size:16px}.member-home .home-balance{margin:13px 0 16px;display:flex;align-items:baseline;gap:15px}.member-home .home-balance strong{font-size:66px;letter-spacing:-2.3px}.member-home .home-balance>span{font-size:13px;margin:0}
  .wallet-card .widget-action{padding-top:10px;min-height:51px;font-size:12px}.widget-arrow{width:35px;height:35px}.wallet-state{margin:0 0 12px;font-size:11px}
  .widget-task,.widget-message{min-height:164px;grid-column:auto}.widget-message h2{font-size:19px;margin:12px 0 8px}.widget-task .member-observation{font-size:11px;margin:0 0 7px;-webkit-line-clamp:2}
  .notice-count-1 :is(.widget-task,.widget-message){grid-column:1 / -1;min-height:137px}.notice-count-1 .widget h2{margin:13px 0 8px}
  .member-home .widget-activity{grid-column:1 / -1;grid-row:auto;grid-template-columns:92px minmax(0,1fr);min-height:167px;border-radius:25px}
  .widget-activity-info{padding:17px 18px}.member-home .widget-activity h2{font-size:20px;margin:9px 0 7px}.widget-activity-info>p{font-size:10px;line-height:1.7}.widget-activity-info .widget-action{font-size:11px;padding-top:6px}
  .widget-date{top:12px;left:12px;min-width:43px;border-radius:13px;padding:8px 9px}.widget-date strong{font-size:25px}.widget-date small{font-size:8px}
  .notice-count-0 .wallet-card,.no-encounter :is(.widget-task,.widget-message){min-height:219px}.profile-data-panel,.membership-panel{border-radius:25px}
}
@media(max-width:360px){.widget{padding:16px}.widget h2{font-size:19px}.widget-message h2{font-size:17px}.member-home .wallet-card{padding:21px}.member-home .home-balance strong{font-size:59px}.member-home .widget-activity{grid-template-columns:80px minmax(0,1fr)}.widget-activity-info{padding:16px}.member-home .widget-activity h2{font-size:18px}.widget-date{left:10px;top:10px}}

/* Fases del ciclo: despensa bloqueada por fecha, precio por gramo, carnet. La Comunidad va primero en Inicio. */
.shell:not(.admin) .home-price{grid-area:price;padding:20px;background:var(--surface);border:1px solid #b9ccbf}
.shell:not(.admin) .home-price .home-price-value{font:500 clamp(30px,3.4vw,42px)/1.1 Palatino,Georgia,serif;letter-spacing:-.03em;margin:10px 0 2px;color:var(--ink)}
.shell:not(.admin) .home-price .home-price-value small{font:500 14px system-ui,sans-serif;letter-spacing:0;color:#5f7268}
.price-lines{margin:8px 0 0;padding-left:18px;font-size:13px;display:grid;gap:3px}
.phase-note,.phase-banner{display:flex;align-items:center;gap:8px;font-size:13px;margin:8px 0 0}
.phase-banner{margin:0 0 18px;padding:12px 16px;border-radius:14px;background:#dcebc8;border:1px solid #b7cf9a}
.shell:not(.admin) .home-pantry.is-locked{background:#e8ece9 linear-gradient(130deg,#f3f5f4,#e3e9e5);border:1px dashed #98a89f}
.home-announcement{display:flex;gap:10px;align-items:center;margin-top:12px;padding:10px 12px;border-radius:12px;background:#dcebc8;color:inherit;text-decoration:none}
.home-announcement small{display:block;color:#5f7268}
.pantry-locked{display:flex;gap:18px;align-items:flex-start;padding:24px}
.lock-mark{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#e3e9e5}
.lock-mark .icon{width:22px;height:22px}
.btn.is-disabled{opacity:.55;pointer-events:none}
.price-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #d3e0d7}
.price-row small{display:block;color:#5f7268}
.price-row.price-total{font-weight:700;font-size:18px;border-bottom:0}
.demo-phase .inline-actions{flex-wrap:wrap}
.member-carnet{display:grid;gap:12px}
.carnet{max-width:420px;box-sizing:border-box;padding:20px;border:1px solid #98c4af;border-radius:18px;background:#fff;color:#23352f;display:grid;gap:14px}
.carnet-head{display:flex;align-items:center;justify-content:space-between;font-weight:700;letter-spacing:.12em;font-size:13px}
.carnet-body{display:flex;align-items:center;justify-content:space-between;gap:16px}
.carnet-data{display:grid;gap:4px;min-width:0}
.carnet-data h2{margin:0;font-size:20px;line-height:1.15;overflow-wrap:anywhere}
.carnet-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#5f7268}
.carnet-id{font:700 20px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.05em}
.carnet-state{padding:2px 10px;border-radius:99px;font-size:11px;letter-spacing:.04em}
.carnet-state.is-ok{background:#8fbf3f;color:#23352f}.carnet-state.is-off{background:#e8d7d7;color:#9a3a3a}
.carnet-qr{flex:none;width:120px;height:120px}.carnet-qr svg{width:100%;height:100%;display:block}
.carnet-foot{font-size:11px;color:#5f7268;border-top:1px solid #dbe6df;padding-top:10px}
@media(max-width:760px){.pantry-locked{flex-direction:column}.carnet-qr{width:104px;height:104px}}
