:root{--green:#529e40;--dark:#173b2b;--light:#eff7ec;--purple:#046ce4;--text:#1c3429;--muted:#71817b;--line:#e4ece2;--shadow:0 12px 30px rgba(28,52,41,.10)}
*{box-sizing:border-box}body{margin:0;background:#dfe8e3;font-family:Inter,system-ui,sans-serif;color:var(--text)}button{font:inherit;color:inherit}.app{width:min(100%,430px);min-height:100vh;margin:auto;background:#fff;position:relative;box-shadow:0 0 45px #91a49a55}.topbar{height:72px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:#fff;border-bottom:1px solid #f2f4f3}.brand{display:flex;align-items:center;gap:8px;font-weight:800}.brand img{display:block;width:auto;height:46px;max-width:205px;object-fit:contain}.brand-mark{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:var(--green);color:white;font-size:20px}.icon-btn{border:0;background:#f3f7f5;width:38px;height:38px;border-radius:12px;font-size:24px}.notification{font-size:20px;position:relative}.notification b{position:absolute;right:-2px;top:-3px;background:#ff635e;color:white;border-radius:20px;font-size:9px;padding:3px 5px}.screen{display:none;padding:22px 18px 104px;min-height:calc(100vh - 72px);animation:in .3s ease}.screen.active{display:block}@keyframes in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#edf7e9,#f8fcf6);padding:24px 20px;border-radius:24px;margin-bottom:14px}.hero small,.title small{font-weight:700;color:var(--green);letter-spacing:.08em}.hero h1,.title h1{font-size:27px;margin:4px 0}.hero p,.title p{margin:0;color:var(--muted)}.avatar,.big-avatar,.card-photo{border:4px solid white;box-shadow:0 5px 18px #2f6f2638;background:linear-gradient(135deg,var(--green),#2f7627);color:white;display:grid;place-items:center;border-radius:50%;font-weight:800}.avatar{width:62px;height:62px}.status-card{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-radius:18px;background:linear-gradient(135deg,var(--dark),#255a3c);color:white}.status-card div{display:grid;gap:3px}.status-card .eyebrow{font-size:10px;letter-spacing:.12em;color:#bceba9}.status-card small{color:#d5e3d8}.status-dot{width:36px;height:36px;border-radius:50%;background:var(--green);display:grid;place-items:center}h2{font-size:18px;margin:25px 0 13px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid button{border:1px solid var(--line);background:#fff;border-radius:17px;padding:17px 10px;text-align:left;font-weight:700;display:flex;align-items:center;gap:10px}.quick-grid span{width:36px;height:36px;border-radius:12px;background:var(--light);color:var(--green);display:grid;place-items:center;font-size:20px}.section-head{display:flex;align-items:center;justify-content:space-between}.section-head h2{margin-bottom:10px}.section-head button{border:0;background:none;color:var(--green);font-weight:700}.event-card{border:1px solid var(--line);border-radius:21px;overflow:hidden;box-shadow:var(--shadow)}.event-image{height:128px;background:linear-gradient(135deg,#194a34,#529e40 62%,#046ce4);position:relative;display:grid;place-items:center;color:white;text-align:center}.date-chip{position:absolute;top:12px;left:12px;background:white;color:var(--dark);padding:7px 10px;border-radius:11px;font-size:10px}.date-chip b{display:block;font-size:20px}.event-logo{letter-spacing:.04em}.event-info{padding:15px}.event-info h3{margin:8px 0;font-size:16px}.event-info p,.wide-card p{font-size:12px;color:var(--muted);margin:0}.pill{display:inline-block;background:#e5f3df;color:#397b2d;padding:5px 8px;border-radius:20px;font-weight:800;font-size:9px;letter-spacing:.06em}.pill.soft{background:#e5f0ff;color:var(--purple)}.pill.white{background:#ffffff2b;color:white}.news-row{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.news-thumb{flex:0 0 64px;height:64px;border-radius:15px;background:#edf7e9;color:var(--green);font-weight:800;display:grid;place-items:center;font-size:20px}.news-row span{font-size:9px;color:var(--green);font-weight:800}.news-row h3{font-size:13px;margin:5px 0}.news-row small{color:var(--muted);font-size:10px}.title{margin:8px 0 22px}.tabs,.event-actions,.day-selector{display:flex;background:#f1f5f3;border-radius:14px;padding:4px;gap:3px;margin-bottom:18px}.tabs button,.event-actions button,.day-selector button{flex:1;border:0;background:transparent;padding:10px 5px;border-radius:11px;font-size:12px;font-weight:700}.tabs .active,.event-actions .active,.day-selector .active{background:white;color:var(--green);box-shadow:0 3px 12px #18332b16}.wide-card{display:flex;gap:14px;border:1px solid var(--line);border-radius:19px;padding:12px;margin-bottom:11px}.wide-art{flex:0 0 80px;height:100px;border-radius:14px;background:var(--green);display:grid;place-content:center;text-align:center;color:white;font-size:30px;font-weight:800}.wide-art small{font-size:10px}.wide-art.purple,.purple{background:var(--purple);color:white}.wide-card h3{font-size:14px;margin:7px 0}.wide-card b{display:block;font-size:11px;color:var(--green);margin-top:8px}.certificate-banner{display:flex;align-items:center;gap:10px;background:var(--dark);color:#fff;padding:15px;border-radius:18px;margin-top:20px}.certificate-banner span{font-size:25px}.certificate-banner h3{font-size:13px;margin:0}.certificate-banner p{font-size:10px;margin:4px 0;color:#b8cbc4}.certificate-banner button{margin-left:auto;border:0;background:var(--green);color:white;border-radius:10px;padding:8px}.cover{margin:-22px -18px 16px;padding:64px 23px 27px;color:white;background:linear-gradient(145deg,#173b2b,#529e40 68%,#046ce4)}.cover h1{font-size:27px;line-height:1.05;margin:10px 0}.cover p{font-size:12px}.timeline article{display:grid;grid-template-columns:54px 1fr;gap:8px;margin-bottom:13px}.timeline time{font-weight:800;font-size:13px;color:var(--green);padding-top:13px}.timeline article>div{position:relative;border:1px solid var(--line);border-radius:16px;padding:13px 42px 13px 13px}.timeline span{font-size:9px;color:var(--green);font-weight:800}.timeline h3{font-size:14px;margin:5px 0}.timeline p{font-size:11px;color:var(--muted);margin:0}.save{position:absolute;right:9px;top:9px;border:0;background:var(--light);color:var(--green);width:30px;height:30px;border-radius:10px}.participation{border:1px solid var(--line);border-radius:21px;padding:19px;margin-bottom:13px}.participation.featured{background:linear-gradient(145deg,#173b2b,#0f2c20);color:white}.type{font-size:9px;font-weight:800;color:#bceba9;letter-spacing:.08em}.participation h2{font-size:18px;margin:10px 0}.participation p{font-size:12px;color:#c4d2c8}.participation button,.primary{border:0;background:var(--green);color:white;border-radius:12px;padding:12px 16px;font-weight:800}.outline{background:white!important;color:var(--green)!important;border:1px solid #cce4c5!important}.progress{height:5px;background:#ffffff30;border-radius:8px;margin:15px 0 7px}.progress i{display:block;height:100%;background:var(--green);border-radius:8px}.button-row{display:flex;gap:8px}.green-text{color:var(--green)}.orange-text{color:#ed8a29}.balance{background:linear-gradient(145deg,#173b2b,#255a3c);color:#fff;padding:25px;border-radius:24px;display:grid;gap:7px}.balance span{font-size:12px;color:#d1dfd4}.balance strong{font-size:36px}.balance small{color:#d1dfd4}.balance button{margin-top:15px;border:0;border-radius:13px;background:var(--green);color:white;padding:13px;font-weight:800}.reminder{display:flex;align-items:center;gap:10px;padding:14px;margin:14px 0;border-radius:17px;background:#fff8ea}.reminder>span{font-size:24px;color:#ed9a27}.reminder h3{font-size:12px;margin:0}.reminder p{font-size:10px;margin:4px 0;color:var(--muted)}.switch{margin-left:auto}.switch input{display:none}.switch i{display:block;width:40px;height:23px;border-radius:20px;background:var(--green);position:relative}.switch i:after{content:"";position:absolute;width:17px;height:17px;border-radius:50%;background:#fff;right:3px;top:3px}.movement{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.movement>span{width:36px;height:36px;border-radius:12px;display:grid;place-items:center}.paid{background:var(--light);color:var(--green)}.pending{background:#fff1e5;color:#ed8728}.movement div{flex:1}.movement h3{font-size:13px;margin:0}.movement p{font-size:10px;color:var(--muted);margin:4px 0}.movement b{font-size:12px}.profile-head{text-align:center;background:linear-gradient(145deg,#edf7e9,#f8fcf6);margin:-22px -18px 18px;padding:30px 20px}.big-avatar{width:88px;height:88px;margin:auto;font-size:25px}.profile-head h1{font-size:21px;margin:12px 0 5px}.profile-head p{font-size:12px;color:var(--muted)}.profile-head>span{display:inline-block;background:#e0f0db;color:#397b2d;border-radius:20px;padding:6px 10px;font-size:9px;font-weight:800}.profile-menu button{width:100%;border:0;border-bottom:1px solid var(--line);background:white;padding:15px 4px;display:flex;align-items:center;gap:12px;text-align:left}.profile-menu button>span{width:38px;height:38px;background:var(--light);color:var(--green);border-radius:12px;display:grid;place-items:center;font-size:20px}.profile-menu div{flex:1}.profile-menu b{display:block;font-size:13px}.profile-menu small{color:var(--muted);font-size:10px}.member-card{background:linear-gradient(150deg,#173b2b,#0f291e 72%,#046ce4);color:white;border-radius:28px;padding:22px;box-shadow:0 18px 35px #092f2470;min-height:430px;position:relative;overflow:hidden}.member-card:after{content:"";position:absolute;width:240px;height:240px;border:35px solid #529e4038;border-radius:50%;right:-130px;top:-100px}.card-brand{display:flex;align-items:center;gap:10px;position:relative;z-index:1}.card-brand img{width:98px;height:40px;object-fit:contain;background:#fff;border-radius:9px;padding:5px}.card-brand b{font-size:9px;line-height:1.25;max-width:150px}.white-mark{background:white;color:var(--green)}.card-person{display:flex;gap:14px;align-items:center;margin:32px 0}.card-photo{width:76px;height:76px}.card-person small{color:#bceba9;font-size:9px}.card-person h2{margin:4px 0;font-size:20px}.card-person p{font-size:10px;color:#c0d0c4}.qr{width:130px;height:130px;margin:15px auto;background:#fff;color:#102d24;border-radius:16px;display:grid;place-items:center;font-size:78px;line-height:.5}.qr small{font-size:8px}.card-valid{display:flex;justify-content:space-between;align-items:flex-end;margin-top:22px;font-size:9px;color:#c0d0c4}.card-valid strong{background:var(--green);color:white;padding:8px 10px;border-radius:14px}.full{width:100%;margin-top:20px}.security{text-align:center;color:var(--muted);font-size:10px;padding:0 18px}.headline{border:1px solid var(--line);border-radius:22px;overflow:hidden;padding-bottom:15px}.headline-art{height:145px;background:linear-gradient(135deg,#046ce4,#529e40);display:grid;place-content:center;text-align:center;color:#fff;font-size:19px}.headline>span,.headline h2,.headline p{margin-left:15px;margin-right:15px}.headline>span{display:block;margin-top:13px;font-size:9px;color:var(--green);font-weight:800}.headline h2{font-size:17px;margin-top:7px;margin-bottom:6px}.headline p{font-size:11px;color:var(--muted)}.news-thumb.green{background:var(--green)}.cert{display:flex;gap:14px;border:1px solid var(--line);border-radius:19px;padding:15px;margin-bottom:12px}.cert-icon{flex:0 0 58px;height:72px;background:var(--green);color:white;display:grid;place-items:center;border-radius:13px;font-size:25px}.cert span{font-size:9px;color:var(--green);font-weight:800}.cert h3{font-size:14px;margin:6px 0}.cert p{font-size:10px;color:var(--muted)}.cert button{border:0;background:var(--light);color:var(--green);font-weight:800;padding:8px 11px;border-radius:10px;font-size:10px}.bottom-nav{position:fixed;z-index:30;bottom:0;width:min(100%,430px);height:76px;background:#fff;border-top:1px solid var(--line);display:flex;padding:7px 8px calc(7px + env(safe-area-inset-bottom))}.bottom-nav button{flex:1;border:0;background:white;color:#8a9792;font-size:9px;font-weight:700;display:grid;place-items:center}.bottom-nav span{font-size:20px}.bottom-nav .active{color:var(--green)}.modal{position:fixed;z-index:50;inset:0;background:#09271fc7;display:none;align-items:flex-end;justify-content:center}.modal.open{display:flex}.modal-card{width:min(100%,430px);background:white;border-radius:26px 26px 0 0;padding:26px 22px 35px;position:relative;animation:up .3s ease}@keyframes up{from{transform:translateY(100%)}to{transform:none}}.close{position:absolute;right:18px;top:17px;border:0;background:#f1f5f3;border-radius:50%;width:32px;height:32px;font-size:20px}.modal-icon{width:48px;height:48px;background:var(--light);color:var(--green);border-radius:15px;display:grid;place-items:center;font-size:23px}.modal-card h2{font-size:22px;margin:15px 0 5px}.modal-card p{color:var(--muted);font-size:12px}.modal-card label{display:block;border:1px solid var(--line);border-radius:13px;padding:14px;margin:9px 0;font-size:13px}.toast{position:fixed;z-index:80;left:50%;bottom:92px;transform:translate(-50%,20px);width:max-content;max-width:88%;background:#102e25;color:white;padding:12px 17px;border-radius:13px;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:.3s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){body{padding:25px 0}.app{min-height:calc(100vh - 50px);border-radius:28px;overflow:hidden}.bottom-nav{bottom:25px;border-radius:0 0 28px 28px}}
/* Home simulado para iniciar y repetir la secuencia promocional */
.phone-home{position:fixed;inset:0;z-index:1000;max-width:430px;margin:auto;min-height:100dvh;padding:18px 22px;color:#fff;overflow:hidden;background:
radial-gradient(circle at 75% 16%,rgba(70,190,137,.75),transparent 25%),
linear-gradient(145deg,#063b58 0%,#08787d 48%,#3aa963 100%);transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .42s}
.phone-home:before,.phone-home:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.16)}
.phone-home:before{width:360px;height:360px;right:-190px;top:170px}.phone-home:after{width:500px;height:500px;left:-330px;bottom:-100px}
.phone-home.leaving{transform:scale(1.12);opacity:0;pointer-events:none}
.phone-status{display:flex;justify-content:space-between;align-items:center;font-size:12px;position:relative;z-index:2}
.phone-status b{font-size:14px}.phone-date{margin-top:54px;display:flex;flex-direction:column;position:relative;z-index:2}
.phone-date small{font-size:11px;letter-spacing:1.7px;font-weight:700}.phone-date strong{font-size:58px;line-height:1.06;margin-top:8px}.phone-date span{font-size:13px;opacity:.85}
.launcher{position:absolute;left:30px;top:310px;width:78px;border:0;background:transparent;color:#fff;display:flex;flex-direction:column;gap:8px;align-items:center;cursor:pointer;z-index:3}
.launcher-icon{width:66px;height:66px;border-radius:17px;background:#fff;box-shadow:0 10px 26px rgba(0,0,0,.25);display:grid;place-items:center;overflow:hidden;transition:transform .18s}
.launcher:active .launcher-icon{transform:scale(.9)}.launcher-icon img{width:57px;height:57px;object-fit:contain}.launcher b{font-size:11px;text-shadow:0 1px 5px rgba(0,0,0,.45)}
.phone-dock{position:absolute;left:18px;right:18px;bottom:26px;height:82px;padding:0 16px;border-radius:25px;background:rgba(255,255,255,.2);backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:space-around;font-size:28px;z-index:2}
.phone-dock span{width:48px;height:48px;border-radius:13px;background:rgba(255,255,255,.86);color:#07695f;display:grid;place-items:center;font-size:22px}
.home-indicator,.return-home{position:fixed;z-index:50;bottom:7px;left:50%;transform:translateX(-50%);width:125px;height:5px;border:0;border-radius:9px;background:rgba(255,255,255,.9)}
.return-home{background:#173843;cursor:pointer}
.app{transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .35s}.app-hidden{opacity:0;transform:scale(.82);pointer-events:none}.app-visible{opacity:1;transform:scale(1)}

/* Carné horizontal y módulo de beneficios */
.clickable{cursor:pointer}.member-card{background:linear-gradient(145deg,#fff 0 67%,#eef7eb 67%);color:var(--text);border:1px solid #dce8d8;border-radius:25px;padding:20px;box-shadow:0 18px 35px #092f2428;min-height:325px}.member-card:after{border-color:#529e4018}.card-ribbon{position:absolute;right:-35px;top:25px;width:145px;transform:rotate(40deg);padding:6px;text-align:center;background:var(--green);color:#fff;font-size:8px;font-weight:800;letter-spacing:.12em;z-index:2}.card-brand{padding-bottom:13px;border-bottom:1px solid #e3ece1}.card-brand img{width:110px;height:44px;background:transparent;padding:0}.card-brand b{font-size:8px;line-height:1.35;max-width:135px;color:#537066}.credential-body{display:grid;grid-template-columns:68px 1fr 70px;gap:11px;align-items:center;padding:22px 0 18px;position:relative;z-index:1}.credential-body .card-photo{width:68px;height:68px;border-width:3px}.credential-data small{font-size:7px;color:var(--green);font-weight:800;letter-spacing:.08em}.credential-data h2{font-size:16px;line-height:1.1;margin:4px 0 7px}.credential-data p{font-size:8px;margin:3px 0;color:#60736b}.credential-body .qr{width:68px;height:68px;margin:0;border:5px solid white;box-shadow:0 2px 12px #173b2b20;border-radius:8px}.member-card .card-valid{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;border-top:1px solid #dce8d8;padding-top:13px;margin-top:0;font-size:7px;color:#72837c}.member-card .card-valid b{color:var(--dark);font-size:8px}.member-card .card-valid strong{font-size:8px}.benefit-link{width:100%;border:0;background:none;color:var(--green);font-weight:800;padding:15px 0 0}.benefit-summary{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,var(--dark),#2e6946);color:#fff;padding:18px;border-radius:20px}.benefit-summary small{font-size:8px;color:#bceba9;font-weight:800}.benefit-summary h2{font-size:17px;margin:5px 0}.benefit-summary p{font-size:10px;color:#c8d7cd;margin:0}.benefit-summary button{border:0;background:var(--green);color:#fff;padding:10px;border-radius:12px;font-size:10px;font-weight:800}.benefit-filters{display:flex;gap:7px;overflow-x:auto;margin:18px -18px 16px;padding:0 18px 5px;scrollbar-width:none}.benefit-filters button{white-space:nowrap;border:1px solid var(--line);background:#fff;padding:8px 12px;border-radius:20px;font-size:10px;font-weight:700}.benefit-filters button.active{background:var(--green);color:#fff;border-color:var(--green)}.benefit-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.benefit-card{border:1px solid var(--line);border-radius:18px;padding:13px;position:relative;min-height:225px;cursor:pointer;box-shadow:0 5px 16px #173b2b0a}.benefit-card[hidden]{display:none}.partner-logo{width:100%;height:64px;border-radius:13px;overflow:hidden;margin-bottom:11px;background:#f5f8f6;border:1px solid #edf1ef}.partner-logo img{width:100%;height:100%;object-fit:cover;display:block}.benefit-card>span{display:block;font-size:8px;text-transform:uppercase;color:var(--green);font-weight:800}.discount{position:absolute;right:10px;top:88px;background:#eaf5e7;color:#397b2d;border-radius:12px;padding:6px 7px;font-size:8px}.benefit-card h3{font-size:13px;margin:6px 0}.benefit-card p{font-size:9px;color:var(--muted);margin:0 0 12px}.benefit-card button{position:absolute;bottom:11px;left:12px;border:0;background:none;color:var(--green);font-size:9px;font-weight:800;padding:0}.demo-note{font-size:9px;color:var(--muted);line-height:1.45;background:#f5f8f6;padding:12px;border-radius:12px}.benefit-modal-card>small{display:block;color:var(--green);font-size:11px;font-weight:900;margin-top:15px}.terms{background:#f5f8f6;border-radius:14px;padding:13px;margin-top:15px}.terms b{font-size:11px}.terms p{margin-bottom:0}

/* Recursos visuales demostrativos */
.avatar,.big-avatar,.card-photo{overflow:hidden;padding:0}
.avatar img,.big-avatar img,.card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.qr{padding:4px;background:#fff;overflow:hidden}.qr img{width:100%;height:100%;object-fit:contain;display:block;border-radius:4px}
.photo-event{background:linear-gradient(0deg,#102e25aa,#102e2511),url('assets/congreso.png') center 45%/cover no-repeat}
.photo-event .event-logo{background:#102e25c9;padding:10px 14px;border-radius:12px;backdrop-filter:blur(4px)}
.photo-benefits{background:linear-gradient(0deg,#102e25b8,#102e2510),url('assets/beneficios.png') center/cover no-repeat;align-content:end;justify-content:start;padding:16px;text-align:left}
.photo-benefits strong{background:#fff;color:var(--dark);padding:8px 10px;border-radius:9px;font-size:11px;letter-spacing:.06em}

/* Credencial vertical ampliada: conserva todos los recursos visuales de v3. */
.member-card{min-height:610px;padding:24px 22px;display:flex;flex-direction:column}
.card-brand{padding-bottom:17px}
.card-brand img{width:132px;height:52px}
.card-brand b{font-size:9px;max-width:160px}
.credential-body{flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:22px 0 18px;text-align:center}
.credential-body .card-photo{width:108px;height:108px;border-width:4px}
.credential-data small{font-size:8px}
.credential-data h2{font-size:23px;margin:6px 0 8px}
.credential-data p{font-size:10px;margin:4px 0}
.credential-body .qr{width:220px;height:220px;margin:12px auto 0;border-width:8px;border-radius:17px}
.member-card .card-valid{grid-template-columns:1fr 1fr auto;padding-top:16px;font-size:8px}
.member-card .card-valid b{font-size:9px}
@media(max-width:360px){.member-card{min-height:575px}.credential-body .qr{width:195px;height:195px}.credential-body .card-photo{width:94px;height:94px}}
