/* ============ Sobres · envíos (pago, links, bote) ============ */
.ev-root{display:none}
.ev-root.ev-open{display:block;position:fixed;inset:0;z-index:45;background:var(--paper,#f7f3ee);color:var(--ink,#1e1917);overflow:auto;-webkit-overflow-scrolling:touch;font-family:"Nunito",system-ui,sans-serif}
.ev-panel{min-height:100%;padding-bottom:40px}
.ev-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1.5px solid var(--hair,#e6ddd2);background:#fff;position:sticky;top:0;z-index:2}
.ev-back{border:1.5px solid var(--hair,#e6ddd2);background:#fff;border-radius:999px;min-height:44px;padding:0 14px;font:inherit;font-weight:800;cursor:pointer}
.ev-brand{font-family:"Fraunces",Georgia,serif;font-size:20px;color:#e0485f}
.ev-brand{color:var(--ink,#1e1917)}
.ev-title{margin-left:auto;font-weight:800;color:#6f655d;font-size:14px}
.ev-grid{display:grid;grid-template-columns:1fr;gap:20px;max-width:980px;margin:0 auto;padding:18px 16px}
@media (min-width:860px){.ev-grid{grid-template-columns:340px 1fr;gap:32px;padding-top:30px}}
.ev-wrap{max-width:640px;margin:0 auto;padding:22px 16px}
.ev-center{text-align:center}
.ev-side{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center}
.ev-side-to{margin:0;font-size:15px}.ev-side-title,.ev-side-h{margin:0}
.ev-side-title{color:#6f655d;font-size:14px;line-height:1.45}
.ev-side-h{font-family:"Fraunces",Georgia,serif;font-size:24px;font-weight:600}
/* mini sobre */
.ev-env{position:relative;width:min(100%,300px);aspect-ratio:1.45;border-radius:7%/10%;overflow:hidden;isolation:isolate;box-shadow:0 24px 50px -24px rgba(0,0,0,.45)}
.ev-env>i,.ev-env>b{position:absolute}
.ev-env-body{inset:0;background:var(--o2)}
.ev-env-pocket{inset:0;background:linear-gradient(180deg,var(--o),var(--o2));clip-path:polygon(0 0,50% 48%,100% 0,100% 100%,0 100%)}
.ev-env-flap{left:0;right:0;top:0;height:54%;background:var(--f);clip-path:polygon(0 0,100% 0,50% 100%)}
.ev-env-seal{left:50%;top:54%;transform:translate(-50%,-50%);width:15%;aspect-ratio:1;border-radius:50%;background:var(--s);display:grid;place-items:center;font-size:26px;line-height:1;box-shadow:0 5px 14px rgba(0,0,0,.22)}
/* formulario */
.ev-form{display:flex;flex-direction:column;gap:14px;background:#fff;border:1.5px solid var(--hair,#e6ddd2);border-radius:18px;padding:18px}
.ev-form h3{margin:0;font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:22px}
.ev-field{display:block}
.ev-field>span{display:block;font-size:13px;font-weight:800;color:#6f655d;margin:0 0 6px}
.ev-field input{width:100%;min-height:46px;border:1.5px solid var(--hair,#e6ddd2);border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;background:#fff;color:inherit}
.ev-field input:focus{outline:none;border-color:var(--ink,#1e1917)}
.ev-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:480px){.ev-two{grid-template-columns:1fr}}
.ev-seg{display:flex;gap:4px;background:#efe9e1;border-radius:14px;padding:4px}
.ev-seg button{flex:1;min-height:44px;border:0;background:transparent;border-radius:11px;font:inherit;font-weight:800;color:#6f655d;cursor:pointer}
.ev-seg button.on{background:#fff;color:var(--ink,#1e1917);box-shadow:0 2px 6px rgba(0,0,0,.08)}
.ev-sub{margin:6px 0 0;font-size:13px;color:#6f655d;line-height:1.45}
.ev-legal{text-align:center}
.ev-breakdown{display:grid;gap:6px;padding:12px 14px;border-radius:14px;background:#f6f2ec}
.ev-breakdown div{display:flex;justify-content:space-between;font-size:15px}
.ev-breakdown .ev-total{border-top:1.5px solid var(--hair,#e6ddd2);padding-top:8px;margin-top:4px;font-size:18px}
.ev-breakdown .ev-total b{font-family:"Fraunces",Georgia,serif;font-size:24px;font-weight:600}
.ev-breakdown small{color:#6f655d}
.ev-err{margin:0;padding:10px 12px;border-radius:12px;background:#fff0ee;color:#b3261e;font-weight:700;font-size:14px}
.ev-err[hidden]{display:none}
.ev-primary{border:0;border-radius:14px;min-height:54px;padding:14px 20px;background:var(--accent,#c42a44);color:#fff;font:inherit;font-size:17px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.ev-primary:disabled{opacity:.7;cursor:wait}
.ev-pay{background:#1e1917}
.ev-spin{width:18px;height:18px;border-radius:50%;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;animation:ev-spin .8s linear infinite}
@keyframes ev-spin{to{transform:rotate(360deg)}}
.ev-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1.5px solid var(--hair,#e6ddd2);border-radius:999px;background:#fff;color:inherit;font:inherit;font-weight:800;font-size:14px;text-decoration:none;cursor:pointer}
.ev-btn:hover{background:#f6f2ec}
.ev-wa{background:#25d366;border-color:#25d366;color:#fff}
.ev-link{border:0;background:none;color:#6f655d;text-decoration:underline;font:inherit;font-weight:700;min-height:44px;cursor:pointer}
.ev-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}
/* resultado */
.ev-check{width:64px;height:64px;border-radius:50%;background:#2fb36b;color:#fff;display:grid;place-items:center;font-size:34px;font-weight:800;margin:10px auto 14px}
.ev-wrap h2{font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:clamp(24px,4vw,34px);margin:0 0 10px;line-height:1.15}
.ev-lead{color:#6f655d;font-size:16px;line-height:1.5;margin:0 0 18px}
.ev-linkbox{display:flex;gap:8px;max-width:560px;margin:0 auto}
.ev-linkbox input{flex:1;min-width:0;min-height:44px;border:1.5px solid var(--hair,#e6ddd2);border-radius:12px;padding:8px 12px;font:inherit;font-size:14px;background:#fff}
.ev-qr{margin:16px auto;width:236px;padding:8px;background:#fff;border-radius:16px;border:1.5px solid var(--hair,#e6ddd2)}
.ev-qr img{display:block;width:220px;height:220px}
/* sellado */
.ev-sealed .ev-env{margin:10px auto 18px}
.ev-cd{display:flex;gap:10px;justify-content:center;margin:12px 0 18px}
.ev-cd div{min-width:64px;padding:10px 6px;border-radius:14px;background:#fff;border:1.5px solid var(--hair,#e6ddd2)}
.ev-cd b{display:block;font-family:"Fraunces",Georgia,serif;font-size:30px;font-weight:600;line-height:1}
.ev-cd span{font-size:11px;font-weight:800;color:#6f655d;text-transform:uppercase;letter-spacing:.04em}
/* modal de código */
.ev-modal{position:fixed;inset:0;z-index:70;background:rgba(30,25,23,.55);display:grid;place-items:center;padding:16px}
.ev-modal-card{width:min(100%,420px);background:#fff;border-radius:20px;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.35);text-align:center}
.ev-modal-card h3{margin:0 0 6px;font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:22px}
.ev-modal-card>p{margin:0 0 12px;font-size:18px;font-weight:800;letter-spacing:.08em}
.ev-codebox{display:grid;gap:4px;padding:12px;border-radius:14px;background:#fff7dc;margin:0 0 14px}
.ev-codebox b{font-family:"Fraunces",Georgia,serif;font-size:34px;letter-spacing:.3em;font-weight:600}
.ev-codebox small{font-size:12px;color:#6f655d}
.ev-modal-card .ev-field input{text-align:center;font-size:24px;letter-spacing:.3em}
.ev-shake{animation:ev-shake .4s}
@keyframes ev-shake{0%,100%{transform:none}25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
/* estado */
.ev-timeline{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:8px}
.ev-timeline li{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:12px;background:#fff;border:1.5px solid var(--hair,#e6ddd2);color:#6f655d}
.ev-timeline li.on{border-color:#2fb36b;color:var(--ink,#1e1917)}
.ev-timeline li.on b::before{content:"✓ ";color:#2fb36b}
.ev-thanks{padding:12px 14px;border-radius:12px;background:#fff7dc;margin:0 0 18px;font-weight:700}
/* bote */
.ev-progress{width:100%;display:grid;gap:6px}
.ev-progress b{font-family:"Fraunces",Georgia,serif;font-size:24px;font-weight:600}
.ev-progress i{display:block;height:12px;border-radius:999px;background:#efe9e1;overflow:hidden;position:relative}
.ev-progress i::after{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--p,0%);background:#2fb36b;border-radius:999px;transition:width .5s}
.ev-wall{margin:0;font-weight:700}
.ev-aportes{list-style:none;margin:0;padding:0;width:100%;display:grid;gap:4px;text-align:left}
.ev-aportes li{display:flex;justify-content:space-between;padding:6px 10px;border-radius:10px;background:#fff;border:1.5px solid var(--hair,#e6ddd2);font-size:14px}
/* Mis envíos (portada) */
.ev-mine-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ev-mine-it{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;padding:12px 14px;border-radius:14px;background:#fff;border:1.5px solid var(--hair,#e6ddd2)}
.ev-mine-txt b{display:block;font-size:15px}.ev-mine-txt span{font-size:13px;color:#6f655d}
.ev-badge{font-size:12px;font-weight:800;padding:6px 10px;border-radius:999px;background:#efe9e1;white-space:nowrap}
.ev-b-prog{background:#e4f1ff}.ev-b-ent{background:#fff7dc}.ev-b-cob{background:#dff5e8}.ev-b-dev{background:#fde7e4}
.ev-mine-act{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}
.ev-mine-act .ev-btn{min-height:40px;padding:6px 12px;font-size:13px}
@media (prefers-reduced-motion:reduce){.ev-spin,.ev-shake{animation:none}}
/* servidor */
.ev-spin-dark{display:inline-block;border-color:rgba(0,0,0,.15);border-top-color:#1e1917;width:26px;height:26px;margin:20px auto 6px}
/* ---- fase 1: Yape directo ---- */
.ev-how{width:100%;text-align:left;padding:14px 16px;border-radius:16px;background:#fff;border:1.5px solid var(--hair,#e6ddd2);font-size:14px}
.ev-how b{display:block;margin-bottom:6px}
.ev-how ol{margin:0;padding-left:18px;display:grid;gap:4px;color:#6f655d}
.ev-field small{font-weight:600;opacity:.8}
.ev-steps{list-style:none;margin:18px 0;padding:0;display:grid;gap:12px}
.ev-step{padding:16px;border-radius:16px;background:#fff;border:1.5px solid var(--hair,#e6ddd2)}
.ev-step>b{display:block;font-family:"Fraunces",Georgia,serif;font-size:20px;font-weight:600;margin-bottom:4px}
.ev-step>p{margin:0 0 10px;color:#6f655d;line-height:1.5}
.ev-step .ev-linkbox{margin:0}
.ev-step .ev-actions{margin-top:10px}
.ev-actions.ev-left{justify-content:flex-start}
.ev-yap{min-height:50px;font-size:16px;background:#2fb36b}
.ev-btn-strong{background:#2fb36b;border-color:#2fb36b;color:#fff}
.ev-more{margin:6px 0 10px;text-align:center}
.ev-more summary{cursor:pointer;font-weight:800;color:#6f655d;min-height:44px;display:inline-flex;align-items:center}
.ev-h3{font-family:"Fraunces",Georgia,serif;font-weight:600;margin:18px 0 8px}
.ev-yapebox{display:grid;gap:8px;padding:12px 14px;border-radius:14px;background:#fff7dc}
.ev-yapebox small{color:#6f655d}
.ev-yapebox .ev-btn{justify-self:start}
.ev-check-row{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:800}
.ev-check-row input{width:22px;height:22px}
html[data-theme="dark"] .ev-how,html[data-theme="dark"] .ev-step{background:#221d18;border-color:#3a332b}
html[data-theme="dark"] .ev-how ol,html[data-theme="dark"] .ev-step>p,html[data-theme="dark"] .ev-yapebox small{color:#b7ab9c}
html[data-theme="dark"] .ev-yapebox{background:#2b2416}

/* ---- planes en el envío ---- */
.ev-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (max-width:560px){.ev-plans{grid-template-columns:1fr}}
.ev-plan{display:grid;gap:4px;text-align:left;padding:12px;border-radius:14px;border:1.5px solid var(--hair,#e6ddd2);background:#fff;font:inherit;color:inherit;cursor:pointer;min-height:44px}
.ev-plan b{font-size:15px}
.ev-plan-price{font-family:"Fraunces",Georgia,serif;font-size:20px;font-weight:600}
.ev-plan-price small{font-family:"Nunito",system-ui,sans-serif;font-size:12px;color:#6f655d;font-weight:700}
.ev-plan>small{font-size:12px;color:#6f655d;line-height:1.35}
.ev-plan.on{border-color:#1e1917;box-shadow:inset 0 0 0 1px #1e1917}
.ev-plan.top{background:linear-gradient(180deg,#fff9ea,#fff)}
.ev-plan:disabled{opacity:.5;cursor:default}
html[data-theme="dark"] .ev-plan{background:#221d18;border-color:#3a332b}
html[data-theme="dark"] .ev-plan.top{background:linear-gradient(180deg,#2b2416,#221d18)}
html[data-theme="dark"] .ev-plan.on{border-color:#f3ece2;box-shadow:inset 0 0 0 1px #f3ece2}
html[data-theme="dark"] .ev-plan>small,html[data-theme="dark"] .ev-plan-price small{color:#b7ab9c}
