/* Editor de invitaciones y pago de complementos (compartido por /editor/ y /en/editor/). */
:root{--bg:#F3EEE9;--paper:#FCFAF7;--ink:#352432;--ink-2:#50454C;--mute:#71616B;--line:#DDD3D6;--line-2:#C5B7BF;--sand:#E9E0E3;--sand-2:#E0D5DA;--cream:#E8DDE3;--gold:#563D4D;--ok:#3F7A55;--accent:#463340;--lacre:#674A60;--lacre-2:#563D4D;--rubor:#E8DDE3}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none !important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Geist',system-ui,sans-serif;font-size:15px}
body.ed-locked{overflow:hidden}
a{color:var(--ink)}a:hover{color:#000000}
button{font-family:inherit;cursor:pointer;color:inherit}
button:disabled{cursor:not-allowed;opacity:.4}
input,textarea,select{font-family:inherit;color:var(--ink)}
input:focus,textarea:focus,select:focus{outline:2px solid var(--ink);outline-offset:1px}
button:focus-visible,a:focus-visible,label:focus-within>.ed-drop{outline:2px solid var(--ink);outline-offset:2px}
img{max-width:100%}
.serif{font-family:var(--iv-serif)}
.vh{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ph{background-color:var(--sand-2);background-image:repeating-linear-gradient(135deg,rgba(23,21,28,.05) 0 10px,transparent 10px 20px)}

/* ---------- Botones ---------- */
.ed-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line-2);background:var(--paper);color:var(--ink);font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap}
.ed-btn:hover{border-color:var(--ink);color:var(--ink)}
.ed-btn-dark{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.ed-btn-dark:hover{background:#463340;color:var(--bg)}
.ed-btn-line{border-color:var(--ink);background:transparent}
.ed-btn-dash{border:1px dashed #9C9483;background:var(--paper);font-weight:400}
.ed-btn-sm{min-height:40px;padding:0 14px;font-size:13px}
.ed-btn-lg{min-height:52px;padding:0 26px;font-size:15px}
.ed-link{border:0;background:none;padding:4px;font-size:13px;text-decoration:underline}
.ed-icon-btn{width:44px;height:44px;flex:0 0 auto;border-radius:50%;border:1px solid var(--line);background:var(--paper);display:inline-flex;align-items:center;justify-content:center;padding:0}
.ed-count{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--ink);color:var(--bg);font-size:12px;display:inline-flex;align-items:center;justify-content:center}
.ed-btn-dark .ed-count{background:var(--bg);color:var(--ink)}

/* ---------- Marco ---------- */
.ed{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.ed-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;padding:12px 24px;background:var(--paper);border-bottom:1px solid var(--line)}
.ed-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.ed-logo-mark{width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--bg);display:flex;align-items:center;justify-content:center;font-family:var(--iv-serif);font-style:italic;font-size:20px;line-height:1}
.ed-logo-word{font-family:var(--iv-serif);font-style:italic;font-size:24px;line-height:1}
.ed-sep{width:1px;height:28px;background:var(--line)}
.ed-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.ed-title strong{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-title small{font-size:13px;color:var(--mute)}
.ed-title small a{font-size:13px}
.ed-save{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--mute);white-space:nowrap}
.ed-save.err{color:#9A3B2E}
.ed-spacer{flex:1 1 0}
.ed-menu,.ed-mtitle,.ed-tabs,.ed-bottom,.ed-only-m{display:none}
.ed-seg.ed-tabs{display:none}
.ed-body{flex:1 1 auto;display:flex;align-items:stretch;min-height:0}

/* ---------- Barra lateral ---------- */
.ed-nav{flex:0 0 272px;padding:24px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:22px}
.ed-kicker{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.ed-kicker-gold{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.ed-progress{padding:0 8px;display:flex;flex-direction:column;gap:8px}
.ed-bar{height:4px;border-radius:4px;background:var(--line)}
.ed-bar>span{display:block;height:4px;border-radius:4px;background:var(--ink);transition:width .3s ease}
.ed-progress small{font-size:13px;color:var(--mute)}
.ed-list{display:flex;flex-direction:column;gap:2px}
.ed-list-head{padding:0 8px 8px;display:flex;justify-content:space-between;align-items:baseline}
.ed-row{width:100%;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;border:0;background:transparent;font-size:14px;text-align:left}
.ed-row:hover{background:rgba(251,250,246,.7)}
.ed-row[aria-current="page"]{background:var(--paper);box-shadow:0 0 0 1px var(--line);font-weight:500}
.ed-row-n{font-family:var(--iv-serif);font-size:17px;width:22px;color:var(--mute)}
.ed-row-name{flex:1 1 auto}
.ed-pill{font-size:11px;padding:3px 8px;border-radius:999px;background:var(--sand-2);color:var(--ink-2);white-space:nowrap}
.ed-pill-dark{background:var(--ink);color:var(--bg)}
.ed-row-price{font-size:12px;color:var(--mute)}
.ed-promo{margin:0 4px;padding:16px;border-radius:14px;background:var(--ink);color:var(--bg);display:flex;flex-direction:column;gap:10px}
.ed-promo .ed-kicker{font-size:11px;color:#C9D3C6}
.ed-promo-title{font-family:var(--iv-serif);font-size:22px;line-height:1.15}
.ed-chips{display:flex;flex-wrap:wrap;gap:6px}
.ed-chip{font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid #6E7C73;color:#E4E9E1}
.ed-promo .ed-btn{align-self:flex-start;min-height:40px;font-size:13px;border:0;background:var(--bg);color:var(--ink)}

/* ---------- Formulario ---------- */
.ed-main{flex:1 1 auto;min-width:0;padding:32px 40px 64px}
.ed-sec{display:flex;flex-direction:column;gap:28px;max-width:680px}
.ed-head{display:flex;flex-direction:column;gap:6px}
.ed-head h1{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:44px;line-height:1.05}
.ed-head p{margin:0;color:var(--mute);line-height:1.5}
.ed-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ed-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;min-width:0}
/* iOS da a fecha/hora un ancho propio que ignora width:100% y se sale de la columna. */
.ed-field input[type=date],.ed-field input[type=time]{-webkit-appearance:none;appearance:none;display:block;max-width:100%}
.ed-field input::-webkit-date-and-time-value{text-align:left;margin:0;min-height:1.2em}
.ed-field input::-webkit-calendar-picker-indicator{margin-left:auto}
.ed-field input,.ed-field textarea,.ed-field select{min-height:46px;min-width:0;width:100%;padding:0 14px;border-radius:10px;border:1px solid var(--line-2);background:var(--paper);font-size:16px}
.ed-field textarea{padding:12px 14px;line-height:1.5;resize:vertical}
.ed-field input::placeholder,.ed-field textarea::placeholder{color:#8C8F86}
.ed-hint{font-size:13px;font-weight:400;color:var(--mute)}
.ed-label{font-size:13px;font-weight:500}
.ed-stack{display:flex;flex-direction:column;gap:10px}
.ed-photo{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.ed-photo-img{position:relative;width:200px;height:140px;border-radius:12px;overflow:hidden;flex:0 0 auto}
.ed-photo-img img{width:100%;height:100%;object-fit:cover;display:block}
.ed-drop{flex:1 1 220px;min-height:140px;border-radius:12px;border:1.5px dashed #B9B1A0;background:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px;text-align:center;cursor:pointer}
.ed-stack>.ed-drop{flex:none;min-height:96px}
.ed-drop.over{border-color:var(--ink);background:#F1EFE6}
.ed-drop b{font-size:14px;font-weight:500}
.ed-drop small{font-size:12px;color:var(--mute)}
.ed-drop input{position:absolute;opacity:0;width:1px;height:1px}
.ed-palettes{display:flex;flex-wrap:wrap;gap:10px}
.ed-pal{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 10px;border-radius:999px;background:var(--paper);border:1px solid var(--line-2);font-size:13px}
.ed-pal[aria-checked="true"]{border:2px solid var(--ink);padding:0 13px 0 9px}
.ed-pal i{width:18px;height:18px;border-radius:50%}
.ed-upsell{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:16px 18px;border-radius:14px;background:var(--cream)}
.ed-upsell.light{background:var(--paper);border:1px solid var(--line)}
.ed-upsell-text{flex:1 1 260px;display:flex;flex-direction:column;gap:4px}
.ed-upsell-text b{font-weight:500}
.ed-upsell-text span{font-size:14px;color:var(--ink-2);line-height:1.45}
.ed-upsell-pics{display:flex}
.ed-upsell-pics img{width:56px;height:56px;border-radius:10px;object-fit:cover;transform:rotate(-6deg)}
.ed-upsell-pics img+img{margin-left:-18px;transform:rotate(5deg);border:2px solid var(--cream)}
.ed-info{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;background:var(--sand)}
.ed-info div{flex:1 1 auto;display:flex;flex-direction:column;gap:2px}
.ed-info b{font-weight:500}
.ed-info span{font-size:13px;color:var(--ink-2)}
.ed-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px;border-radius:999px;background:var(--sand-2)}
.ed-seg button{min-height:40px;border-radius:999px;border:0;background:transparent;color:var(--ink-2);font-size:14px}
.ed-seg button[aria-checked="true"],.ed-seg button[aria-selected="true"]{background:var(--paper);color:var(--ink);font-weight:500}
.ed-monos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ed-mono{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border-radius:12px;background:var(--paper);border:1px solid var(--line);font-size:13px}
.ed-mono[aria-checked="true"]{border:2px solid var(--ink);padding:15px 7px}
.ed-mono-custom{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:12px;border:2px solid var(--ink);background:var(--paper)}
.ed-mono-custom img{width:56px;height:56px;object-fit:contain;border-radius:50%;background:var(--accent)}
.ed-mono-custom span{flex:1 1 auto;font-size:14px}
.ed-card{display:flex;gap:12px;padding:16px;border-radius:14px;border:1px solid var(--line);background:var(--paper)}
.ed-card .ed-field{font-size:12px;gap:4px}
.ed-card .ed-field input,.ed-card .ed-field textarea{min-height:42px;border-radius:8px;background:#fff;font-size:15px;padding:0 12px}
.ed-card .ed-field textarea{padding:10px 12px}
.ed-card-n{font-family:var(--iv-serif);font-size:22px;width:22px;flex:0 0 auto}
.ed-card-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:8px}
.ed-ev-grid{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ed-ev-grid .wide{grid-column:span 2}.ed-ev-grid .full{grid-column:span 3}
.ed-move{display:flex;flex-direction:column;align-items:center;gap:4px}
.ed-move button{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);background:var(--bg);display:flex;align-items:center;justify-content:center;padding:0}
.ed-move span{font-family:var(--iv-serif);font-size:20px}
.ed-del{align-self:flex-start;width:40px;height:40px;flex:0 0 auto;border-radius:50%;border:0;background:transparent;color:var(--mute);display:flex;align-items:center;justify-content:center;padding:0}
.ed-del:hover{background:var(--sand);color:var(--ink)}
.ed-ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.ed-presets{display:flex;flex-wrap:wrap;gap:8px}
.ed-empty{padding:20px;border-radius:14px;border:1px dashed var(--line-2);color:var(--mute);text-align:center;font-size:14px}
.ed-limit{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.ed-limit small{font-size:13px;color:var(--mute)}
.ed-limit .warn{color:var(--gold)}
.ed-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ed-thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--sand-2)}
.ed-thumb img{width:100%;height:100%;object-fit:cover;display:block;cursor:grab}
.ed-thumb.dragging{opacity:.4}
.ed-thumb.target{outline:2px solid var(--ink);outline-offset:2px}
.ed-thumb-tools{position:absolute;inset:auto 6px 6px 6px;display:flex;justify-content:space-between;gap:4px}
.ed-thumb-tools button{width:32px;height:32px;border-radius:50%;border:0;background:rgba(251,250,246,.92);display:flex;align-items:center;justify-content:center;padding:0;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.ed-thumb .ed-drop{position:absolute;inset:0;min-height:0;border-radius:10px;font-size:13px;gap:4px}
.ed-gallery .ed-drop{aspect-ratio:1;min-height:0;font-size:13px;gap:4px}
.ed-switch-row{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:14px;border:1px solid var(--line);background:var(--paper)}
.ed-switch-row>div{flex:1 1 auto;display:flex;flex-direction:column;gap:2px}
.ed-switch-row b{font-weight:500}
.ed-switch-row span{font-size:13px;color:var(--mute)}
.ed-switch{position:relative;width:52px;height:30px;flex:0 0 auto;border-radius:999px;border:0;padding:0;background:#B9B1A0;transition:background .2s}
.ed-switch::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--paper);transition:left .2s}
.ed-switch[aria-checked="true"]{background:var(--ink)}
.ed-switch[aria-checked="true"]::after{left:25px}
.ed-audio{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;background:var(--sand)}
.ed-audio div{flex:1 1 auto;display:flex;flex-direction:column;gap:2px}
.ed-audio b{font-weight:500}.ed-audio span{font-size:13px;color:var(--ink-2)}

/* ---------- Página de complemento ---------- */
.ed-badge{align-self:flex-start;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);background:#EFE6D3;padding:5px 10px;border-radius:999px}
.ed-lead{margin:0;font-size:17px;color:var(--ink-2);line-height:1.5}
.ed-points{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ed-points li{padding:14px;border-radius:12px;border:1px solid var(--line);background:var(--paper);font-size:14px;line-height:1.45}
.ed-packnote{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:14px 16px;border-radius:12px;border:1px dashed #9C9483}
.ed-packnote span{flex:1 1 260px;font-size:14px;line-height:1.4}
.ed-packnote strong{font-weight:600}
.ed-buy{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding-top:20px;border-top:1px solid var(--line)}
.ed-buy-price{display:flex;flex-direction:column}
.ed-buy-price b{font-family:var(--iv-serif);font-size:32px;font-weight:400}
.ed-buy-price small{font-size:13px;color:var(--mute)}
.ed-demo{padding:24px;border-radius:16px;background:var(--sand);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ed-demo-card{padding:18px;border-radius:14px;background:var(--paper);display:flex;flex-direction:column;gap:12px;min-width:0}
.ed-demo-card .t{font-family:var(--iv-serif);font-size:22px;line-height:1.15}
.ed-demo-card .s{font-size:14px;line-height:1.4}
.ed-vote{display:flex;flex-direction:column;gap:4px}
.ed-vote div:first-child{display:flex;justify-content:space-between;font-size:13px}
.ed-vote .bar{height:8px;border-radius:8px;background:var(--line)}
.ed-vote .bar span{display:block;height:8px;border-radius:8px;background:var(--ink)}
.ed-song{display:flex;align-items:center;gap:12px;font-size:14px}
.ed-song i{width:38px;height:38px;border-radius:8px;flex:0 0 auto;background:var(--accent);display:flex;align-items:center;justify-content:center;color:var(--bg);font-style:normal}
.ed-song div{display:flex;flex-direction:column;min-width:0}.ed-song small{color:var(--mute);font-size:12px}
.ed-qr{width:132px;height:132px;padding:8px;background:#fff;border-radius:10px;border:1px solid var(--line)}
.ed-browser{grid-column:1/-1;border-radius:12px;overflow:hidden;background:var(--paper);border:1px solid var(--line)}
.ed-browser-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--sand-2);font-size:13px}
.ed-browser-bar i{width:9px;height:9px;border-radius:50%;background:#CFC8B8;font-style:normal}
.ed-browser-bar span{flex:1 1 auto;padding:5px 12px;border-radius:999px;background:var(--paper);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-browser-body{padding:26px 20px;text-align:center;color:var(--bg);background:var(--accent)}
.ed-browser-body b{display:block;font-family:var(--iv-serif);font-weight:400;font-size:34px;line-height:1}
.ed-photos3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ed-photos3 img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}

/* ---------- Vista previa ---------- */
.ed-pv{flex:0 0 400px;padding:24px;background:var(--sand);border-left:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:16px}
.ed-pv-sticky{position:sticky;top:92px;display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}
.ed-pv-head{align-self:stretch;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ed-device{display:flex;padding:3px;border-radius:999px;background:#E0DACB}
.ed-device button{min-height:34px;padding:0 14px;border-radius:999px;border:0;background:transparent;color:var(--ink-2);font-size:13px}
.ed-device button[aria-pressed="true"]{background:var(--paper);color:var(--ink)}
.ed-phone{width:300px;height:620px;max-height:calc(100vh - 200px);min-height:480px;border-radius:40px;background:#1E2622;padding:10px;transition:width .25s ease,border-radius .25s ease}
.ed-phone.desk{width:100%;border-radius:14px;padding:8px}
.ed-screen{width:100%;height:100%;border-radius:31px;overflow:hidden auto;background:var(--bg);scroll-behavior:smooth;scrollbar-width:none}
.ed-screen::-webkit-scrollbar{display:none}
.ed-phone.desk .ed-screen{border-radius:8px}
.ed-pv-cap{font-size:13px;color:var(--mute);text-align:center}

/* La invitación (vista previa y "ver como invitado") */
.iv{--a:var(--accent);color:var(--ink);font-family:'Geist',system-ui,sans-serif;font-size:13px;line-height:1.45}
.iv .serif{font-family:var(--iv-serif)}
.iv-empty{opacity:.45;font-style:italic}
.iv-hero{background:var(--a);color:var(--bg);padding:34px 20px 26px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.iv-hero .k{font-size:10px;letter-spacing:.2em;text-transform:uppercase;opacity:.85}
.iv-hero .s{font-size:12px;opacity:.9}
.iv-hero .n{font-family:var(--iv-serif);font-size:42px;line-height:1;margin-top:6px;word-break:break-word}
.iv-hero .n+.amp{font-family:var(--iv-serif);font-style:italic;font-size:26px;line-height:1}
.iv-hero .n2{margin-top:0}
.iv-hero .d{font-size:11px;letter-spacing:.16em;text-transform:uppercase;margin-top:10px}
.iv-cover{display:block;width:calc(100% - 32px);height:180px;margin:16px 16px 0;border-radius:6px;object-fit:cover}
.iv-msg{margin:14px 20px 0;font-family:var(--iv-serif);font-style:italic;font-size:17px;line-height:1.3;text-align:center;white-space:pre-line}
.iv-cd{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:16px 16px 0}
.iv-cd div{display:flex;flex-direction:column;align-items:center;padding:6px 0;border:1px solid var(--line);border-radius:6px}
.iv-cd b{font-family:var(--iv-serif);font-size:20px;font-weight:400}
.iv-cd span{font-size:9px;color:var(--mute)}
.iv-sec{padding:30px 20px 6px;display:flex;flex-direction:column;gap:6px}
.iv-sec .k{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--mute);text-align:center}
.iv-sec h2{margin:0 0 8px;font-family:var(--iv-serif);font-weight:400;font-size:30px;text-align:center;line-height:1.05}
.iv-sec p{margin:0;white-space:pre-line}
.iv-gal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:10px}
.iv-gal img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px;display:block}
.iv-ev{display:flex;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.iv-ev .t{width:46px;flex:0 0 auto;font-size:13px;font-weight:500;color:var(--a)}
.iv-ev div{display:flex;flex-direction:column;gap:2px;min-width:0}
.iv-ev b{font-family:var(--iv-serif);font-size:19px;font-weight:400;line-height:1.1}
.iv-ev span,.iv-ev a{font-size:11px;color:var(--mute)}
.iv-ev a{color:var(--ink)}
.iv-faq{padding:10px 0;border-top:1px solid var(--line)}
.iv-faq b{display:block;font-weight:500}
.iv-faq p{color:var(--ink-2)}
.iv-song{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:999px;border:1px solid var(--line);align-self:center;max-width:100%}
.iv-song i{width:26px;height:26px;border-radius:50%;background:var(--a);color:var(--bg);display:flex;align-items:center;justify-content:center;font-style:normal;flex:0 0 auto}
.iv-song span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iv-rsvp{margin:16px;min-height:42px;border-radius:999px;background:var(--a);color:var(--bg);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;border:0;width:calc(100% - 32px)}
.iv-small{font-size:11px;color:var(--mute);text-align:center}
.iv-foot{padding:20px 20px 30px;text-align:center;font-family:var(--iv-serif);font-style:italic;font-size:20px}
.iv-open{min-height:100%;background:var(--a);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:30px 0;color:var(--bg)}
.iv-open .k{font-size:10px;letter-spacing:.2em;text-transform:uppercase;opacity:.9}
.iv-env{position:relative;width:240px;height:160px;background:var(--bg);border-radius:4px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.iv-env>svg{position:absolute;top:0;left:0}
.iv-env .iv-seal{position:absolute;left:84px;top:58px}
.iv-doors{position:relative;width:220px;height:300px;display:flex;gap:2px}
.iv-doors span{flex:1 1 0;background:var(--bg);border-radius:110px 0 0 0;box-shadow:inset -1px 0 0 var(--line)}
.iv-doors span+span{border-radius:0 110px 0 0}
.iv-doors .iv-seal{position:absolute;left:74px;top:120px}
.iv-seal{width:72px;height:72px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 4px rgba(43,58,51,.25);color:var(--bg);display:flex;align-items:center;justify-content:center;font-family:var(--iv-serif);border:0;padding:0;overflow:hidden}
.iv-seal img{width:100%;height:100%;object-fit:contain}
button.iv-seal{cursor:pointer}
.seal-txt{font-size:20px;font-style:italic;white-space:nowrap}
.seal-amp{font-size:28px;white-space:nowrap}.seal-amp i{font-size:.7em;margin:0 .04em}
.seal-stack{display:flex;flex-direction:column;align-items:center;font-size:22px;line-height:.95}
.seal-stack hr{width:24px;height:1px;border:0;background:currentColor;margin:2px 0}
.seal-ring{width:56px;height:56px;border-radius:50%;border:1px solid currentColor;display:flex;align-items:center;justify-content:center;font-style:italic;font-size:22px}
.ed-mono .iv-seal{width:64px;height:64px;box-shadow:none}

/* ---------- Panel de complementos / diálogos ---------- */
.ed-overlay{position:fixed;inset:0;z-index:50;background:rgba(30,38,34,.42);display:flex;justify-content:flex-end}
.ed-overlay>.scrim{flex:1 1 auto;border:0;background:transparent;cursor:default}
.ed-drawer{width:480px;max-width:100%;background:var(--paper);display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(30,38,34,.18);animation:edIn .25s ease}
@keyframes edIn{from{transform:translateX(30px);opacity:0}}
.ed-drawer-head{padding:24px 24px 16px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid var(--line)}
.ed-drawer-head h2{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:34px;line-height:1.05}
.ed-drawer-head p{margin:4px 0 0;font-size:14px;color:var(--mute)}
.ed-grab{display:none}
.ed-drawer-body{flex:1 1 auto;overflow-y:auto;padding:16px 24px;display:flex;flex-direction:column;gap:10px}
.ed-drawer-body>*{flex-shrink:0}
.ed-packs{display:flex;flex-direction:column;gap:10px}
.ed-pack{display:flex;align-items:center;gap:14px;padding:16px;border-radius:14px;border:1px solid var(--line);background:var(--paper)}
.ed-pack.full{border-color:var(--ink);background:#F1EFE6}
.ed-pack.feat{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.ed-pack>div{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0}
.ed-pack .nm{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ed-pack .nm b{font-family:var(--iv-serif);font-size:22px;line-height:1.1;font-weight:400}
.ed-pack .save{font-size:11px;padding:2px 8px;border-radius:999px;background:#EFE6D3;color:var(--gold)}
.ed-pack.feat .save{background:#45564C;color:var(--bg)}
.ed-pack .it{font-size:13px;line-height:1.4;color:var(--mute)}
.ed-pack.feat .it{color:#D9DFD5}
.ed-pack .pr{font-size:14px;font-weight:500}
.ed-pack .ed-btn{min-width:96px}
.ed-pack.feat .ed-btn{background:var(--bg);color:var(--ink);border-color:var(--bg)}
.ed-item{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--paper)}
.ed-item.on{border-color:var(--ink);background:#F1EFE6}
.ed-item>div{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.ed-item b{font-weight:500}
.ed-item>div>span{font-size:13px;color:var(--mute)}
.ed-item .pr{font-family:var(--iv-serif);font-size:20px}
.ed-item .ed-btn{min-width:84px}
.ed-item-link{border:0;background:none;padding:0;text-align:left;font-weight:500;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.ed-drawer-foot{padding:18px 24px 24px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.ed-total{display:flex;justify-content:space-between;align-items:baseline}
.ed-total span{color:var(--ink-2)}
.ed-total b{font-family:var(--iv-serif);font-size:28px;font-weight:400}
.ed-drawer-foot .ed-btn{min-height:50px;font-size:15px}
.ed-drawer-foot small{text-align:center;font-size:12px;color:var(--mute)}
a.ed-btn[aria-disabled="true"]{opacity:.4;pointer-events:none}
.ed-modal{position:fixed;inset:0;z-index:60;background:rgba(30,38,34,.42);display:flex;align-items:center;justify-content:center;padding:16px}
.ed-modal-box{width:440px;max-width:100%;background:var(--paper);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 60px rgba(30,38,34,.25)}
.ed-modal-box h2{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:30px;line-height:1.05}
.ed-modal-box p{margin:0;line-height:1.5;color:var(--ink-2)}
.ed-modal-box ul{margin:0;padding-left:18px;color:var(--ink-2);line-height:1.6}
.ed-modal-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:6px}
.ed-guest{position:fixed;inset:0;z-index:55;background:#1E2622;display:flex;flex-direction:column;align-items:center}
.ed-guest-bar{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;color:var(--bg);font-size:13px}
.ed-guest-bar .ed-btn{min-height:40px;border-color:#55625A;background:transparent;color:var(--bg)}
.ed-guest-screen{flex:1 1 auto;width:100%;max-width:440px;overflow-y:auto;background:var(--bg)}
.ed-guest-screen .iv-open{min-height:100%}
.ed-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:70;background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:999px;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:calc(100% - 32px);text-align:center}
.ed-noscript{max-width:560px;margin:80px auto;padding:0 24px;text-align:center;line-height:1.6}

/* ---------- Pantallas medianas ---------- */
@media (max-width:1240px){
  .ed-nav{flex-basis:236px}
  .ed-pv{flex-basis:340px;padding:20px}
  .ed-phone{width:280px}
  .ed-main{padding:28px 28px 64px}
  .ed-top .ed-sep{display:none}
  .ed-ev-grid{grid-template-columns:minmax(0,1fr) 128px}
  .ed-ev-grid .wide{grid-column:auto}.ed-ev-grid .full{grid-column:span 2}
}

/* ---------- Móvil y tableta ---------- */
@media (max-width:960px){
  /* Solo el editor ocupa la pantalla fija; cuenta, compra y pago se desplazan normal. */
  #ed{height:100vh;height:100dvh;min-height:0;overflow:hidden}
  .ed-top{position:static;padding:12px 16px 10px;gap:10px}
  .ed-menu,.ed-mtitle{display:flex}
  .ed-only-m{display:flex}
  .ed-logo,.ed-sep,.ed-title,.ed-save,.ed-top .ed-spacer,.ed-top .ed-cartbtn,.ed-top .ed-guestbtn{display:none}
  .ed-mtitle{flex:1 1 auto;flex-direction:column;min-width:0}
  .ed-mtitle strong{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ed-mtitle small{font-size:12px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ed-top .ed-btn-dark{min-height:40px;padding:0 16px;font-size:13px}
  .ed-seg.ed-tabs{display:grid;margin:12px 16px 0}
  .ed-body{display:block;position:relative;overflow:hidden;flex:1 1 auto}
  .ed-main{height:100%;overflow-y:auto;padding:20px 16px 32px;-webkit-overflow-scrolling:touch}
  .ed-head h1{font-size:36px;line-height:1}
  .ed-head p{font-size:14px}
  .ed-sec{gap:22px}
  .ed-pv{height:100%;overflow:hidden;padding:12px 16px 16px;border:0;background:var(--sand)}
  .ed-pv-sticky{position:static;height:100%}
  .ed-pv-head{display:none}
  .ed-phone{flex:1 1 auto;height:auto;max-height:none;min-height:0;width:min(330px,100%)}
  .ed-phone.desk{width:min(330px,100%);border-radius:40px;padding:10px}
  .ed[data-mode="edit"] .ed-pv,.ed[data-mode="preview"] .ed-main{display:none}
  .ed-nav{position:fixed;z-index:45;top:0;left:0;bottom:0;width:min(320px,86vw);background:var(--bg);border-right:1px solid var(--line);overflow-y:auto;transform:translateX(-105%);transition:transform .25s ease;padding:16px 12px 32px;box-shadow:12px 0 40px rgba(30,38,34,.18)}
  .ed-nav.open{transform:none}
  .ed-nav-scrim{position:fixed;inset:0;z-index:44;background:rgba(30,38,34,.42);border:0}
  .ed-nav-top{display:flex;justify-content:space-between;align-items:center;padding:0 4px}
  .ed-nav .ed-logo{display:flex}
  .ed-bottom{display:flex;align-items:center;gap:10px;padding:10px 16px calc(14px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}
  .ed-bottom{gap:8px}
  .ed-bottom .ed-btn{padding:0 14px;gap:6px}
  .ed-bottom .ed-btn:nth-child(2){flex:1 1 auto;min-width:0}
  .ed-bottom .ed-count{min-width:20px;height:20px;font-size:11px}
  .ed-photo-img{width:96px;height:96px;border-radius:10px}
  .ed-photo .ed-drop{min-height:96px;flex-basis:160px}
  .ed-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .ed-points{grid-template-columns:1fr}
  .ed-demo{grid-template-columns:1fr;padding:16px}
  .ed-ev-grid{grid-template-columns:minmax(0,1fr) 128px}
  .ed-ev-grid .full{grid-column:span 2}
  .ed-move button{width:32px;height:32px}
  .ed-card{padding:12px;gap:8px}
  .ed-buy .ed-btn{width:100%}
  .ed-buy .ed-spacer{display:none}
  .ed-overlay{align-items:flex-end;flex-direction:column;justify-content:flex-end}
  .ed-overlay>.scrim{flex:1 1 auto;width:100%}
  .ed-drawer{width:100%;max-height:92vh;max-height:92dvh;border-radius:24px 24px 0 0;animation:edUp .25s ease;box-shadow:0 -12px 40px rgba(30,38,34,.18)}
  @keyframes edUp{from{transform:translateY(40px);opacity:0}}
  .ed-grab{display:flex;justify-content:center;padding-top:10px}
  .ed-grab span{width:40px;height:4px;border-radius:4px;background:var(--line-2)}
  .ed-drawer-head{padding:10px 20px 14px;border-bottom:0}
  .ed-drawer-head h2{font-size:32px;line-height:1}
  .ed-drawer-head p{font-size:13px}
  .ed-drawer-body{padding:0 16px 16px;gap:8px}
  .ed-packs{flex-direction:row;overflow-x:auto;gap:8px;margin-right:-16px;padding-right:16px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .ed-packs::-webkit-scrollbar{display:none}
  .ed-pack{flex:0 0 160px;flex-direction:column;align-items:stretch;gap:6px;padding:12px;scroll-snap-align:start}
  .ed-pack .nm b{font-size:19px;line-height:1.05}
  .ed-pack .save{display:none}
  .ed-pack .it{font-size:11px}
  .ed-pack .pr{font-size:12px}
  .ed-pack .ed-btn{min-width:0;min-height:36px;font-size:12px;margin-top:auto}
  .ed-item{padding:12px 14px;gap:12px}
  .ed-item .pr{display:none}
  .ed-item .ed-btn{min-width:80px}
  .ed-drawer-foot{padding:14px 20px calc(20px + env(safe-area-inset-bottom))}
}
@media (max-width:520px){
  .ed-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ed-thumb-tools{inset:auto 8px 8px 8px}
  .ed-thumb-tools button{width:36px;height:36px}
  .ed-guest-bar>span:first-child{display:none}
  .ed-guest-bar>span:last-child{width:100%;justify-content:space-between}
  .ed-guest-bar .ed-btn{padding:0 14px;font-size:13px}
  .ed-ev-grid{grid-template-columns:minmax(0,1fr)}
  .ed-ev-grid .wide,.ed-ev-grid .full{grid-column:auto}
  .ed-bottom .ed-btn:nth-child(2) svg{display:none}
  .ed-grid2{grid-template-columns:1fr}
  .ed-grid2.keep{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .ed-monos{gap:8px}
  .ed-mono{padding:12px 4px}
  .ed-mono[aria-checked="true"]{padding:11px 3px}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;scroll-behavior:auto !important}}

/* ---------- Pago ---------- */
.co-top{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:12px 24px;background:var(--paper);border-bottom:1px solid var(--line)}
.co-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-decoration:none;font-size:14px;font-weight:500}
.co-secure{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--mute)}
.co-wrap{width:100%;max-width:1080px;margin:0 auto;padding:48px 24px 64px;display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start}
.co-main{flex:999 1 480px;min-width:0;display:flex;flex-direction:column;gap:28px}
.co-main h1{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:52px;line-height:1.02}
.co-main .ed-head p{color:var(--ink-2);max-width:520px}
.co-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.co-methods button{min-height:56px;border-radius:12px;border:1px solid var(--line-2);background:var(--paper);display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:500}
.co-methods button[aria-pressed="true"]{border:2px solid var(--ink)}
.co-grid .full{grid-column:span 2}
.co-paypal{padding:20px;border-radius:14px;background:var(--sand);line-height:1.5;color:var(--ink-2)}
.co-sum{flex:1 1 360px;padding:28px;border-radius:20px;background:var(--paper);border:1px solid var(--line);display:flex;flex-direction:column;gap:18px}
.co-sum h2{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:28px}
.co-line{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.co-line>div{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.co-line b{font-weight:500}
.co-line>div>span{font-size:13px;color:var(--mute)}
.co-line .pr{font-family:var(--iv-serif);font-size:20px;white-space:nowrap}
.co-line .ed-del{width:36px;height:36px;align-self:center}
.co-up{padding:14px 16px;border-radius:12px;background:var(--cream);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.co-up span{flex:1 1 200px;font-size:14px;line-height:1.4}
.co-up strong{font-weight:600}
.co-total{display:flex;justify-content:space-between;align-items:baseline;padding-top:4px}
.co-total span{font-weight:500}
.co-total b{font-family:var(--iv-serif);font-size:36px;font-weight:400}
.co-total small{font-family:'Geist',system-ui,sans-serif;font-size:13px;color:var(--mute)}
.co-pay{min-height:54px;font-size:16px}
.co-note{font-size:12px;color:var(--mute);text-align:center;line-height:1.5}
.co-notice{padding:14px 16px;border-radius:12px;background:#F3E7D7;color:#5C4322;font-size:14px;line-height:1.45}
.co-empty{display:flex;flex-direction:column;gap:12px;align-items:flex-start;color:var(--ink-2)}
@media (max-width:720px){
  .co-top{padding:10px 16px}
  .co-top .ed-logo{display:none}
  .co-wrap{padding:28px 16px 48px;gap:28px}
  .co-main h1{font-size:40px}
  .co-sum{padding:20px}
  .co-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

/* ---------- Cuenta y compra del diseño ---------- */
.ac-user{display:flex;align-items:center;gap:12px;font-size:14px}
.ac-wrap{flex-direction:column;align-items:stretch}
.ac-narrow{width:100%;max-width:440px;margin:0 auto;display:flex;flex-direction:column;gap:22px}
.ac-wide{width:100%;display:flex;flex-direction:column;gap:24px}
.ac-narrow h1,.ac-wide h1{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:48px;line-height:1.02}
.ac-h2{margin:24px 0 0;font-family:var(--iv-serif);font-weight:500;font-size:30px}
.ac-form{display:flex;flex-direction:column;gap:16px}
.ac-pass{position:relative;display:block}
.ac-pass input{padding-right:84px !important}
.ac-pass .ed-link{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-weight:400}
.ac-error{margin:0;padding:12px 14px;border-radius:10px;background:#F6E3DE;color:#7A2E22;font-size:14px;font-weight:400}
.ac-note{margin:0;font-size:12px;line-height:1.5;color:var(--mute);font-weight:400}
.ac-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:18px}
.ac-card{display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:var(--paper);border:1px solid var(--line)}
.ac-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--sand-2)}
.ac-card-body{padding:18px;display:flex;flex-direction:column;gap:6px;flex:1 1 auto}
.ac-card h3{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:30px;line-height:1.05}
.ac-card p{margin:0;color:var(--ink-2);font-size:14px}
.ac-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px}
.ac-empty{display:flex;flex-direction:column;align-items:center;gap:12px}
.ac-empty p{margin:0}
.ac-step{display:flex;flex-direction:column;gap:16px;padding:22px;border-radius:18px;border:1px solid var(--line);background:var(--paper)}
.ac-step h2{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:28px}
.ac-step.is-off{opacity:.6}
.ac-signed{margin:0;font-size:14px;color:var(--ink-2)}
.ac-signed b{font-weight:500;color:var(--ink)}
.ac-done{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.ac-done b{font-weight:500}.ac-done span{color:var(--ink-2);font-size:14px}
.ac-sum-img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}
.ac-includes{margin:0;padding-left:18px;color:var(--ink-2);font-size:14px;line-height:1.7}
.co-sum .ed-btn-dash{min-height:46px}
.ed-gate{max-width:560px;margin:80px auto;padding:0 24px;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.ed-gate h1{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:44px;line-height:1.05}
.ed-gate p{margin:0;color:var(--ink-2);line-height:1.5}
.ed-gate div{display:flex;flex-wrap:wrap;gap:10px}
.ed-frame{display:block;width:100%;height:100%;border:0;border-radius:31px;background:var(--bg)}
/* En "Escritorio" el iframe mide 1280 px y se escala; va en position:absolute para no ensanchar la columna. */
.ed-pv{min-width:0}
.ed-phone{position:relative;overflow:hidden}
.ed-phone.desk .ed-frame{position:absolute;top:8px;left:8px;border-radius:0;transform-origin:0 0}
.ed-guest-frame{flex:1 1 auto;width:100%;border:0;background:#fff}
@media (max-width:720px){.ac-narrow h1,.ac-wide h1{font-size:40px}.ac-user a{display:none}}

/* Configuración de complementos (encuestas, cápsula) */
.ed-setup{padding:22px;border-radius:16px;border:1px solid var(--line);background:#FBFAF6;display:flex;flex-direction:column;gap:20px}
.ed-setup h2{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:28px;line-height:1.1}
.ed-setup .ed-card{background:#fff}
.ed-demo{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}
@media (max-width:960px){.ed-setup{padding:16px}}

/* Subgrupos dentro de una sección (vestimenta, hotel, cómo llegar…) */
.ed-group{gap:14px;padding-top:22px;border-top:1px solid var(--line)}
.ed-sub{margin:0;font-family:var(--iv-serif);font-weight:500;font-size:26px;line-height:1.1}
.ed-grid2 .span2{grid-column:span 2}
@media (max-width:520px){.ed-grid2 .span2{grid-column:auto}}

/* Itinerario: cuenta regresiva y mapa por evento */
.ed-ev-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:10px}
.ed-ev-body .ed-ev-grid{flex:none}
.ed-ev-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.ed-ev-tools .ed-link{padding:6px 0;min-height:32px}
.ed-check{display:inline-flex;align-items:center;gap:8px;min-height:36px;font-size:13px;font-weight:500;cursor:pointer}
.ed-check input{width:18px;height:18px;margin:0;accent-color:var(--ink)}
.ed-map{width:100%;height:200px;border:0;border-radius:10px;background:var(--sand)}
.ed-maphint{color:var(--gold)}

/* Música: biblioteca y MP3 propio */
.ed-track{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 6px;border-radius:14px;border:1px solid var(--line);background:var(--paper)}
.ed-track.on{border-color:var(--ink);background:#F1EFE6}
.ed-track-pick{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:12px;padding:6px 8px;border:0;background:none;text-align:left;border-radius:10px}
.ed-track-pick>span{display:flex;flex-direction:column;min-width:0}
.ed-track-pick b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-track-pick small{font-size:12px;color:var(--mute)}
/* Paleta: color propio */
.ed-pal-custom{cursor:pointer;position:relative}
.ed-pal-custom.is-on{border:2px solid var(--ink);padding:0 13px 0 9px}
.ed-pal-custom input{width:22px;height:22px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.ed-pal-custom input::-webkit-color-swatch-wrapper{padding:0}
.ed-pal-custom input::-webkit-color-swatch{border:1px solid rgba(0,0,0,.15);border-radius:50%}
.ed-pal-custom input::-moz-color-swatch{border:1px solid rgba(0,0,0,.15);border-radius:50%}
.ed-sec>.ed-drop{flex:none;min-height:110px}

/* Los sellos del formulario usan la fuente de su plantilla (la pone sealLook en editor.js) */
.ed-mono .iv-seal *{font-family:inherit}

/* 09 · Invitados */
.ed-howto{padding:18px;border-radius:14px;background:var(--sand);gap:12px}
.ed-howto>b{font-weight:500}
.ed-howto ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.ed-howto .ed-btn{align-self:flex-start}
.ed-csv{display:flex;flex-direction:column;border-radius:10px;overflow:auto;border:1px solid var(--line);background:#fff;font-size:12px}
.ed-csv>div{display:grid;grid-template-columns:1.2fr 1.1fr 1fr 1.2fr;min-width:480px}
.ed-csv span{padding:7px 10px;border-top:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-csv>div:first-child span{border-top:0;font-weight:600;background:var(--paper)}
.ed-csv span+span{border-left:1px solid var(--line)}
.ed-list-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.ed-invs{gap:12px}
.ed-inv .ed-card-body{gap:12px}
.ed-inv-head{display:flex;align-items:flex-end;gap:12px}
.ed-inv-head .ed-field{flex:1 1 auto;min-width:0}
.ed-inv-head .ed-pill{margin-bottom:12px}
.ed-inv-people{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.ed-inv-person{display:flex;align-items:center;gap:4px;width:100%}
.ed-inv-person input{flex:1 1 auto;min-width:0;min-height:40px;padding:0 12px;border-radius:8px;border:1px solid var(--line-2);background:#fff;font-size:15px}
.ed-inv-person .ed-del{width:36px;height:36px;align-self:center}
.ed-inv .ed-grid2{gap:10px}
.ed-inv .ed-field input{min-height:42px;border-radius:8px;background:#fff;font-size:15px}

/* ---------- Vista previa al compartir (Apertura) ---------- */
.ed-share-pick{display:flex;flex-wrap:wrap;gap:8px}
.ed-share-pick button{width:64px;height:64px;padding:0;border-radius:10px;overflow:hidden;border:2px solid transparent;background:var(--sand-2)}
.ed-share-pick button[aria-checked="true"]{border-color:var(--ink);box-shadow:0 0 0 2px var(--bg) inset}
.ed-share-pick img{width:100%;height:100%;object-fit:cover;display:block}
.ed-share{padding:16px;border-radius:14px;background:#E7DED3}
.ed-share-card{max-width:340px;margin-left:auto;padding:4px;border-radius:12px;background:#DCF8C6;box-shadow:0 1px 1px rgba(0,0,0,.12)}
.ed-share-img{position:relative;width:100%;aspect-ratio:1200/630;border-radius:9px 9px 0 0;overflow:hidden;background:var(--sand-2)}
.ed-share-img img{width:100%;height:100%;object-fit:cover;display:block}
.ed-share-img iframe{position:absolute;top:0;left:0;width:1200px;height:630px;border:0;transform-origin:0 0;pointer-events:none}
.ed-share-meta{display:flex;flex-direction:column;gap:2px;padding:8px 10px 9px;border-radius:0 0 9px 9px;background:#CFEDB8;font-size:13px;line-height:1.35;color:#111B21}
.ed-share-meta b{font-weight:500}
.ed-share-meta span{color:#3B4A54;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ed-share-meta small{font-size:12px;color:#667781}

/* ---------- Invitesse: logo, guía de cinco pasos y cambio de diseño ---------- */
.ed-logo .iv-mark{font-size:40px}
.ed-logo-full .iv-wm{font-size:30px}
.ed-gate .ed-logo-full .iv-wm{font-size:34px}
.ed-title small{display:flex;align-items:center;gap:6px;white-space:nowrap}
.ed-chg{display:inline-flex;align-items:center;gap:5px;padding:2px 0;border:0;background:none;font:600 13px 'Geist',system-ui,sans-serif;color:var(--lacre)}
.ed-chg:hover{text-decoration:underline;text-underline-offset:3px}
.ed-save{color:var(--ok)}
.ed-guidebtn small{font-size:12px;font-weight:500;color:var(--mute)}
.ed-top .ed-btn{gap:7px}
@media (max-width:1240px){.ed-top .ed-dsgbtn,.ed-guidebtn .ed-guide-word{display:none}}
@media (max-width:1100px){.ed-top .ed-guestbtn svg{display:none}}
@media (max-width:960px){
  .ed-top .ed-guidebtn{min-height:40px;padding:0 10px;gap:5px}
  .ed-top .ed-guidebtn small{color:var(--ink)}
}
/* bienvenida */
.ed-modal-box.ed-welcome-box{width:620px;padding:0;overflow:hidden;gap:0;max-height:calc(100vh - 32px);overflow-y:auto}
.ed-welcome-top{padding:30px 34px 24px;background:var(--ink);color:var(--bg);display:flex;flex-direction:column;gap:12px}
.ed-welcome-top .iv-wm{font-size:28px}
.ed-modal-box .ed-welcome-top h2{font-size:40px;letter-spacing:-.02em;color:var(--bg)}
.ed-welcome-top h2 i{color:#D0BBC7}
.ed-modal-box .ed-welcome-top p{color:#CFC8D2}
.ed-welcome-steps{margin:0;padding:24px 34px 8px;list-style:none;display:flex;flex-direction:column;gap:14px}
.ed-welcome-steps li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start}
.ed-wn{width:34px;height:34px;border-radius:50%;background:var(--rubor);color:var(--lacre-2);display:flex;align-items:center;justify-content:center;font:italic 600 17px var(--iv-serif)}
.ed-welcome-steps b{display:block;font-weight:600;font-size:15px;margin-bottom:2px}
.ed-welcome-steps span{font-size:14px;line-height:1.45;color:var(--ink-2)}
.ed-welcome-actions{padding:16px 34px 26px;align-items:center;justify-content:flex-end}
.ed-welcome-time{margin-right:auto;font-size:13px;color:var(--mute)}
/* recorrido */
.ed-tour{position:fixed;inset:0;z-index:70}
.ed-tour-dim{position:absolute;inset:0;background:rgba(23,21,28,.55)}
.ed-tour-spot{position:absolute;border-radius:16px;box-shadow:0 0 0 4px #D0BBC7,0 0 0 9999px rgba(23,21,28,.55);pointer-events:none;transition:all .3s ease}
.ed-tour-pop{position:absolute;max-width:calc(100vw - 24px);padding:20px;border-radius:20px;background:#FFFFFF;box-shadow:0 30px 60px -24px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:10px;animation:edPop .25s ease}
@keyframes edPop{from{opacity:0;transform:translateY(8px)}}
.ed-tour-top{display:flex;justify-content:space-between;align-items:center}
.ed-tour-n{font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--lacre)}
.ed-tour-pop h2{margin:0;font:500 26px/1.1 var(--iv-serif)}
.ed-tour-pop p{margin:0;font-size:15px;line-height:1.55;color:var(--ink-2)}
.ed-tour-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}
.ed-dots{display:flex;gap:6px}
.ed-dots span{width:8px;height:8px;border-radius:50%;background:rgba(23,21,28,.14)}
.ed-dots span.on{width:22px;border-radius:4px;background:var(--lacre)}
/* panel «Su guía» */
.ed-gscrim{position:fixed;inset:0;z-index:64}
.ed-gpanel{position:fixed;z-index:65;width:380px;max-width:calc(100vw - 24px);padding:20px 20px 10px;border-radius:20px;background:#FFFFFF;box-shadow:0 0 0 1px rgba(23,21,28,.08),0 30px 60px -24px rgba(23,21,28,.6);display:flex;flex-direction:column;gap:12px;animation:edPop .2s ease}
.ed-gpanel.sheet{left:12px;right:12px;bottom:12px;width:auto}
.ed-gpanel-head{display:flex;justify-content:space-between;align-items:baseline}
.ed-gpanel h2{margin:0;font:500 24px var(--iv-serif)}
.ed-gpanel-head span{font-size:13px;color:var(--mute)}
.ed-gpanel .ed-bar>span{background:var(--lacre)}
.ed-gpanel ol{margin:0;padding:0;list-style:none}
.ed-gpanel li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:58px;border-top:1px solid var(--line)}
.ed-gpanel li b{display:block;font-weight:500;font-size:15px}
.ed-gpanel li small{display:block;margin-top:2px;font-size:13px;color:var(--mute)}
.ed-gbox{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(23,21,28,.25);display:flex;align-items:center;justify-content:center;color:#fff}
.ed-gpanel li.ok .ed-gbox{background:var(--ok);box-shadow:none}
.ed-gogo{display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:0 6px;border:0;background:none;font:600 13px 'Geist',system-ui,sans-serif;color:var(--lacre)}
.ed-gpanel-foot{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid var(--line)}
.ed-gpanel-foot .ed-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:14px;font-weight:500}
.ed-gpanel-foot .ed-icon-btn{width:36px;height:36px}
/* cambiar diseño */
.ed-dz{width:880px;max-width:100%;background:var(--bg);display:flex;flex-direction:column;box-shadow:-30px 0 60px -30px rgba(23,21,28,.6);animation:edIn .25s ease}
.ed-dz-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:26px 30px 0}
.ed-dz-head h2{margin:6px 0 0;font:500 38px/1.05 var(--iv-serif);letter-spacing:-.02em}
.ed-dz-head h2 i{color:var(--lacre)}
.ed-dz-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:18px 30px 0}
.ed-dz-tab{min-height:38px;padding:0 14px;border-radius:999px;border:0;background:#fff;box-shadow:0 0 0 1px rgba(23,21,28,.08);font-size:14px;font-weight:500;white-space:nowrap;flex:none}
.ed-dz-tab small{font-size:12px;color:var(--mute)}
.ed-dz-tab[aria-selected="true"]{background:var(--ink);color:var(--bg);box-shadow:none}
.ed-dz-tab[aria-selected="true"] small{color:#CFC8D2}
.ed-dz-grid{flex:1 1 auto;overflow-y:auto;padding:20px 30px 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px;align-content:start}
.ed-dz-card{display:flex;flex-direction:column;gap:10px;min-width:0}
.ed-dz-art{position:relative;height:240px;border-radius:18px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ed-dz-card.cur .ed-dz-art{box-shadow:0 0 0 2px var(--ink)}
.ed-dz-ph{display:block;width:100px;aspect-ratio:554/1200;border-radius:18px;padding:4px;background:var(--ink);box-shadow:0 16px 26px -16px rgba(23,21,28,.7)}
.ed-dz-ph img{width:100%;height:100%;object-fit:cover;border-radius:14px;display:block}
.ed-dz-own{position:absolute;left:10px;top:10px;min-height:24px;padding:0 10px;border-radius:999px;background:var(--ok);color:#fff;font-size:12px;font-weight:500;display:flex;align-items:center}
.ed-dz-play{position:absolute;right:10px;bottom:10px;width:36px;height:36px;border-radius:50%;background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px -8px rgba(23,21,28,.6)}
.ed-dz-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.ed-dz-meta>div>b{display:block;font:500 19px/1.1 var(--iv-serif)}
.ed-dz-meta>div>span{display:block;margin-top:4px;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.ed-dz-meta>div>em{display:block;margin-top:5px;font-style:normal;font-size:13px;font-weight:600}
.ed-dz-meta .ed-pill{display:inline-flex;align-items:center;gap:4px}
.ed-dz-foot{padding:14px 30px;border-top:1px solid var(--line);background:#fff}
.ed-dz-foot p{margin:0;font-size:14px;line-height:1.5;color:var(--ink-2)}
.ed-dz-foot b{font-weight:600;color:var(--ink)}
@media (max-width:960px){
  .ed-dz{width:100%;max-height:92vh;max-height:92dvh;border-radius:24px 24px 0 0;animation:edUp .25s ease}
  .ed-dz-head{padding:20px 18px 0}
  .ed-dz-head h2{font-size:28px}
  .ed-dz-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:14px 18px 0}
  .ed-dz-tabs::-webkit-scrollbar{display:none}
  .ed-dz-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 18px 20px;gap:18px 12px}
  .ed-dz-foot{padding:12px 18px calc(14px + env(safe-area-inset-bottom))}
  .ed-modal-box.ed-welcome-box{align-self:flex-end;border-radius:24px 24px 0 0}
  .ed-modal:has(.ed-welcome-box){padding:0;align-items:flex-end}
  .ed-welcome-top{padding:24px 22px 20px}
  .ed-modal-box .ed-welcome-top h2{font-size:32px}
  .ed-welcome-steps{padding:20px 22px 6px}
  .ed-welcome-actions{flex-direction:column;align-items:stretch;padding:14px 22px calc(20px + env(safe-area-inset-bottom))}
  .ed-welcome-time{display:none}
}

/* Ciruela y seda: functional controls retain their clear states and generous touch targets. */
.ed-btn,.co-pay,.ac-card .ed-btn{border-radius:3px;font-weight:500}
.ed-head h1,.ac-narrow h1,.ac-wide h1,.co-main h1{font-weight:400;line-height:1.15}
.ed-card,.ac-card,.co-sum,.ed-modal-box{border-radius:6px}
.ed-logo-mark,.ed-mark{border-radius:4px}
.ed-btn,.co-pay,.ac-card .ed-btn{border-radius:999px}
.ed-card,.ac-card,.co-sum,.ed-modal-box{border-radius:18px}

/* Cloud write errors must remain actionable on mobile too. */
.ed-cloud-error{position:fixed;z-index:90;bottom:20px;left:20px;right:20px;max-width:520px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#F8F3EC;color:#7C3029;border:1px solid #B58C83;border-radius:12px;box-shadow:0 8px 32px #35243226;font:500 14px/1.4 var(--iv-sans)}
.ed-cloud-error .ed-btn{flex:none;min-height:44px}

.ac-google{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:12px 20px;border:1px solid #9A8C96;border-radius:8px;background:#fff;color:#352432;font:500 15px/1.4 var(--iv-sans);cursor:pointer}
.ac-google:hover{background:#F8F3EC}.ac-google:disabled{opacity:.65;cursor:wait}.ac-google svg{flex:none;width:20px;height:20px;stroke:none}
.ac-auth-divider{display:flex;align-items:center;gap:14px;margin:18px 0;color:#655560;font:400 12px var(--iv-sans)}
.ac-auth-divider:before,.ac-auth-divider:after{content:"";height:1px;background:#35243226;flex:1}
.ac-wrap .ed-seg button[aria-pressed="true"]{background:#fff;color:#352432;box-shadow:0 1px 4px #35243218}
