/* ============ Adviento Regalo ============ */
:root {
  --cream: #fbf6ee;
  --paper: #fffdf9;
  --ink: #2a1c19;
  --muted: #6e5d56;
  --line: #ecdfcd;
  --red: #b8243a;
  --red-d: #8c1729;
  --green: #1f5c45;
  --green-l: #e3efe7;
  --gold: #d9a441;
  --gold-l: #f7ead0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 30, 20, .06), 0 8px 24px rgba(60, 30, 20, .08);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem var(--sans); padding: .9em 1.5em; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; min-height: 48px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(184, 36, 58, .3); }
.btn-primary:hover { background: var(--red-d); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-green { background: #1fa855; color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, .3); }
.btn-green:hover { background: #178a45; }
.btn-block { width: 100%; }
.btn-sm { padding: .55em 1em; min-height: 38px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(251, 246, 238, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem var(--display); color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--red); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* hero */
.hero { padding: 48px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero { padding: 72px 0 64px; } }
.hero h1 em { font-style: italic; color: var(--red); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); }
.hero-proof span::before { content: '✓ '; color: var(--green); font-weight: 700; }
.phone { position: relative; margin: 0 auto; width: min(100%, 370px); border-radius: 40px; padding: 12px; background: #1d1412; box-shadow: 0 30px 60px rgba(60, 20, 10, .25); transform: rotate(2deg); }
.phone-screen { border-radius: 30px; overflow: hidden; }
.phone-tag { position: absolute; left: -14px; bottom: 60px; background: var(--paper); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; transform: rotate(-4deg); }
.phone-tag small { display: block; color: var(--muted); font-weight: 400; }

.strip { background: var(--green); color: #fff; padding: 14px 0; font-weight: 500; text-align: center; }
.strip b { color: var(--gold-l); }

section.block { padding: 72px 0; }
.block-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.block-head p { color: var(--muted); font-size: 1.08rem; }

/* para quién */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.who-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.who-card .e { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.who-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.who-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* pasos */
.steps { display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--paper); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-l); color: var(--red-d); font: 700 1.2rem var(--display); margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* incluye */
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-l); font-size: 1.3rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: .2em; font-family: var(--sans); font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* demo */
.demo-box { background: #7c1626; border-radius: 28px; padding: 28px 16px; max-width: 760px; margin: 0 auto; }
.demo-box .advent-grid { max-width: 640px; margin: 0 auto; }

/* precio */
.price-card { max-width: 480px; margin: 0 auto; background: var(--paper); border-radius: 28px; padding: 36px 28px; border: 2px solid var(--gold); box-shadow: var(--shadow); text-align: center; position: relative; }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #3b2604; font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.price { font: 700 3.6rem/1 var(--display); color: var(--red); margin: 10px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; }
.checklist li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.pay-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.final-cta { background: var(--red); color: #fff; border-radius: 32px; padding: 56px 24px; text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { color: #fff; }
.final-cta p { opacity: .9; font-size: 1.1rem; }
.final-cta .btn { background: #fff; color: var(--red); }

footer.site { padding: 40px 0 100px; color: var(--muted); font-size: .9rem; text-align: center; }
footer.site a { color: var(--muted); }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 200; background: #2a1c19; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .95rem; max-width: calc(100% - 32px); width: max-content; text-align: center; transition: .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ grilla del calendario ============ */
.advent-grid { --gap: 8px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: var(--gap); }
@media (min-width: 640px) { .advent-grid { grid-template-columns: repeat(6, 1fr); --gap: 10px; } }
.advent-grid .deco2, .advent-grid .deco3 { display: none; }
@media (min-width: 640px) { .advent-grid .deco2, .advent-grid .deco3 { display: grid; } }
.deco-tile { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.8rem; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1.5px dashed rgba(255, 255, 255, .25); }

.door { --door: #f4e7d3; --door2: #e9d5b7; --num: #8c1729; position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; perspective: 600px; font: inherit; }
.door-24 { grid-column: span 2; grid-row: span 2; }
.door.v1 { --door: #f6dfe0; --door2: #ecc4c7; }
.door.v2 { --door: #e2efe6; --door2: #c8dfcf; --num: #1f5c45; }
.door.v3 { --door: #f8ecd2; --door2: #efd9a9; --num: #8a5b10; }
.door-inside { position: absolute; inset: 0; border-radius: inherit; background: #2b1714 center/cover no-repeat; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), inset 0 6px 14px rgba(0, 0, 0, .45); display: grid; place-items: center; }
.door-inside-emoji { font-size: 1.6rem; }
.door-flap { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, var(--door), var(--door2)); box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .18), inset 0 0 0 1.5px rgba(255, 255, 255, .5); transform-origin: left center; transition: transform .75s cubic-bezier(.3, 1.3, .5, 1), box-shadow .3s; display: grid; place-items: center; backface-visibility: hidden; }
.door-flap::after { content: ''; position: absolute; right: 9%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .15); transform: translateY(-50%); }
.door-num { font: 700 clamp(1.3rem, 5vw, 1.9rem)/1 var(--display); color: var(--num); }
.door-24 .door-num { font-size: clamp(2.6rem, 10vw, 3.8rem); }
.door-24 .door-flap { background: linear-gradient(145deg, #e7c068, #c8902c); --num: #5a1010; }
.door-24 .door-flap::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; transform: translateX(-50%); background: #b8243a; opacity: .9; }
.door-24 .door-num { position: relative; z-index: 1; background: rgba(255, 248, 230, .92); padding: .15em .3em; border-radius: 10px; }
.door-bow { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 46px; height: 22px; z-index: 2; }
.door-bow::before, .door-bow::after { content: ''; position: absolute; top: 0; width: 22px; height: 18px; border: 5px solid #b8243a; border-radius: 50% 50% 50% 50%; }
.door-bow::before { left: 0; transform: rotate(-20deg); }
.door-bow::after { right: 0; transform: rotate(20deg); }
.door-lock { position: absolute; bottom: 6px; right: 7px; font-size: .7rem; opacity: .55; }
.door.locked .door-flap { filter: saturate(.75); }
.door.available:not(.open):hover .door-flap { transform: rotateY(-14deg); }
.door.open .door-flap { transform: rotateY(-108deg); box-shadow: -4px 4px 10px rgba(0, 0, 0, .2); }
.door.today:not(.open) .door-flap { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(231, 180, 83, .0), 0 6px 14px rgba(0, 0, 0, .18); } 50% { box-shadow: 0 0 0 5px rgba(231, 180, 83, .75), 0 6px 14px rgba(0, 0, 0, .18); } }
.door.today:not(.open)::after { content: 'HOY'; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #3b2604; font: 800 .6rem var(--sans); letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; z-index: 3; }
.door.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .door-flap { transition: none; } .door.today .door-flap, .door.shake { animation: none; } }

/* ============ modal ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; visibility: hidden; }
@media (min-width: 640px) { .modal { place-items: center; } }
.modal.show { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 8, 6, .6); opacity: 0; transition: opacity .25s; }
.modal.show .modal-backdrop { opacity: 1; }
.modal-card { color: var(--ink); position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 26px 26px 0 0; padding: 26px 20px 28px; transform: translateY(40px); opacity: 0; transition: .3s cubic-bezier(.2, .9, .3, 1.1); }
@media (min-width: 640px) { .modal-card { border-radius: 26px; padding: 32px 30px; } }
.modal.show .modal-card { transform: none; opacity: 1; }
.modal-x { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-kicker { padding: 0 40px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.modal-num { text-align: center; font-size: 3rem; color: var(--red); margin: 0 0 14px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -4px 6px; padding: 0 4px; border-radius: 16px; }
.gallery img { flex: 0 0 100%; scroll-snap-align: center; border-radius: 16px; max-height: 58vh; object-fit: cover; background: var(--cream); }
.gallery.multi img { flex-basis: 88%; }
.gallery-hint { text-align: center; font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.door-msg { font-size: 1.12rem; line-height: 1.6; white-space: pre-wrap; margin: 16px 0; text-align: center; }
.door-msg.letter { text-align: left; font-family: var(--display); font-size: 1.15rem; background: #fdf8ec; border: 1px solid var(--gold-l); padding: 20px; border-radius: 14px; }
.embed { width: 100%; border-radius: 14px; overflow: hidden; margin: 10px 0 14px; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }

/* ============ página del calendario (quien recibe) ============ */
.cal-page { min-height: 100vh; min-height: 100dvh; --bg: #7a1424; --bg2: #5c0f1b; --fg: #fff7ec; --accent: #e7b453; background: radial-gradient(circle at 20% 0%, var(--bg) 0%, var(--bg2) 70%); color: var(--fg); }
.cal-page[data-theme="noche"] { --bg: #1b2d4f; --bg2: #0b1428; --accent: #e7c56b; }
.cal-page[data-theme="verano"] { --bg: #fff2df; --bg2: #ffd9c2; --fg: #3a2018; --accent: #e3643f; }
.cal-page::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.5px), radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.5px); background-size: 46px 46px, 73px 73px; background-position: 0 0, 20px 30px; }
.cal-page[data-theme="verano"]::before { background-image: radial-gradient(rgba(227, 100, 63, .25) 1.5px, transparent 2px); background-size: 38px 38px; }
.cal-page[data-theme="noche"] .door { --door: #233d6b; --door2: #172a4d; --num: #f2d58c; }
.cal-page[data-theme="noche"] .door.v1 { --door: #2b4a7e; --door2: #1c335c; }
.cal-page[data-theme="noche"] .door.v2 { --door: #1f4a5a; --door2: #123441; --num: #f2d58c; }
.cal-page[data-theme="noche"] .door.v3 { --door: #f2e6c8; --door2: #dcc996; --num: #1b2d4f; }
.cal-page[data-theme="verano"] .door { --door: #fff; --door2: #fdeee2; --num: #e3643f; }
.cal-page[data-theme="verano"] .door.v1 { --door: #d6f0ea; --door2: #b5e2d7; --num: #1d7a69; }
.cal-page[data-theme="verano"] .door.v2 { --door: #ffe3b3; --door2: #fdd08a; --num: #a4570b; }
.cal-page[data-theme="verano"] .door.v3 { --door: #ffd6d6; --door2: #f8b8b8; --num: #b8243a; }
.cal-page[data-theme="verano"] .deco-tile { background: rgba(255, 255, 255, .5); border-color: rgba(227, 100, 63, .3); }
.cal-main { position: relative; max-width: 720px; margin: 0 auto; padding: 22px 16px 60px; }
.cal-head { text-align: center; margin: 8px 0 22px; }
.cal-head .kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.cal-head h1 { font-size: clamp(2rem, 8vw, 3rem); margin: 6px 0 6px; color: var(--fg); }
.cal-head p { opacity: .88; margin: 0 auto; max-width: 30em; }
.countdown { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .9rem; font-weight: 600; }
.cal-page[data-theme="verano"] .countdown { background: rgba(255, 255, 255, .6); }
.cal-foot { text-align: center; margin-top: 34px; font-size: .85rem; opacity: .8; }
.cal-foot a { color: inherit; }
.banner { position: relative; z-index: 2; background: var(--gold); color: #3b2604; text-align: center; padding: 10px 16px; font-size: .9rem; font-weight: 600; }
.banner a { color: inherit; }

/* portada / sobre */
.cover { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: inherit; transition: opacity .6s, visibility .6s; }
.cover.gone { opacity: 0; visibility: hidden; }
.envelope { position: relative; width: min(340px, 88vw); aspect-ratio: 1.45; background: #f3e4cb; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); margin-bottom: 30px; }
.envelope::before { content: ''; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(to top right, #ead6b4 50%, transparent 50.5%) left/50% 100% no-repeat, linear-gradient(to top left, #ead6b4 50%, transparent 50.5%) right/50% 100% no-repeat; }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; transform-origin: top; transition: transform .7s .1s; z-index: 2; }
.env-flap::before { content: ''; position: absolute; inset: 0; background: #e2c99d; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0; }
.env-seal { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -60%); width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d4374f, #8c1729); display: grid; place-items: center; color: #f6d9a0; font: 700 1rem var(--display); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); z-index: 3; }
.env-name { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; color: #5c2a1a; font: italic 600 1.5rem var(--display); z-index: 1; padding: 0 16px; overflow-wrap: anywhere; }
.cover.opening .env-flap { transform: rotateX(180deg); }
.cover.opening .env-seal { opacity: 0; transition: opacity .2s; }
.cover-text { text-align: center; max-width: 340px; }
.cover-text p { opacity: .85; }
.cover .btn { background: var(--accent); color: #2a1406; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }

.center-screen { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 24px 16px; position: relative; }
.pin-form { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pin-form input { width: 150px; text-align: center; font-size: 1.4rem; letter-spacing: .3em; padding: 10px; border-radius: 12px; border: 0; }

/* ============ editor ============ */
.editor { max-width: 760px; margin: 0 auto; padding: 24px 16px 140px; }
.ed-section { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .ed-section { padding: 28px; } }
.ed-section > h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.ed-section > h2 .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1rem; font-family: var(--sans); }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.input, textarea.input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-l); }
textarea.input { resize: vertical; min-height: 110px; }
.row2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 500 .92rem var(--sans); cursor: pointer; color: var(--ink); min-height: 40px; }
.chip[aria-pressed="true"] { border-color: var(--red); background: #fbe9eb; color: var(--red-d); font-weight: 700; }
.themes { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.theme-opt { border: 2px solid var(--line); border-radius: 16px; padding: 8px; background: #fff; cursor: pointer; text-align: center; font: inherit; color: inherit; }
.theme-opt[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 3px #fbe9eb; }
.theme-swatch { height: 64px; border-radius: 10px; margin-bottom: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; }
.theme-swatch i { border-radius: 4px; }
.theme-opt b { display: block; font-size: .85rem; }
.theme-opt small { color: var(--muted); font-size: .72rem; display: none; }
@media (min-width: 560px) { .theme-opt small { display: block; } }

.ed-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 560px) { .ed-doors { grid-template-columns: repeat(6, 1fr); } }
.ed-door { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed #d6c4ab; background: #fff center/cover no-repeat; cursor: pointer; font: 700 1.2rem var(--display); color: var(--muted); display: grid; place-items: center; padding: 0; }
.ed-door.filled { border: 2px solid var(--green); color: var(--green); }
.ed-door.has-photo { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.ed-door.has-photo::before { content: ''; position: absolute; inset: 0; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.ed-door span { position: relative; }
.ed-door .ok { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: .7rem; display: grid; place-items: center; font-family: var(--sans); text-shadow: none; }
.ed-progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 14px; }
.ed-progress i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .3s; }
.ed-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumb { position: relative; width: 88px; height: 88px; border-radius: 12px; background: center/cover no-repeat var(--cream); }
.photo-thumb button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.photo-add { width: 88px; height: 88px; border-radius: 12px; border: 1.5px dashed #c9b597; display: grid; place-items: center; text-align: center; font-size: .75rem; color: var(--muted); cursor: pointer; background: #fff; }
.photo-add b { display: block; font-size: 1.5rem; color: var(--red); }

.sheet-nav { display: flex; gap: 8px; margin-top: 18px; }
.sheet-nav .btn { flex: 1; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 253, 249, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.bottom-bar .wrap { max-width: 760px; display: flex; align-items: center; gap: 12px; padding: 0; }
.bottom-bar .info { flex: 1; font-size: .85rem; color: var(--muted); line-height: 1.3; min-width: 0; }
.bottom-bar .info b { color: var(--ink); font-size: 1rem; display: block; }
.summary { background: var(--cream); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .95rem; }
.summary div span:first-child { color: var(--muted); }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.notice { background: var(--gold-l); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; }
.demo-notice { background: #fff3cd; border: 1px solid #f0d78a; }
.done-card { text-align: center; }
.done-card .code { font: 700 2rem var(--display); letter-spacing: .12em; color: var(--red); background: var(--cream); display: inline-block; padding: 8px 18px; border-radius: 12px; margin: 6px 0 16px; }
.bank { text-align: left; background: var(--cream); border-radius: 14px; padding: 14px 16px; margin: 14px 0; font-size: .95rem; }
.bank div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bank div span:first-child { color: var(--muted); }
.copy-row { display: flex; gap: 8px; margin: 8px 0; }
.copy-row input { flex: 1; min-width: 0; }
.progress-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(251, 246, 238, .94); display: none; place-items: center; text-align: center; padding: 16px; }
.progress-overlay.show { display: grid; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--red); animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ admin ============ */
.admin { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.admin table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; font-size: .9rem; }
.admin th, .admin td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin th { background: var(--cream); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.pill.pendiente { background: #fff3cd; color: #7a5a00; }
.pill.activo { background: var(--green-l); color: var(--green); }
.pill.cancelado { background: #eee; color: #666; }
.admin .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; min-width: 140px; }
.stat b { display: block; font: 700 1.6rem var(--display); }
.stat span { font-size: .85rem; color: var(--muted); }

/* tarjeta imprimible */
.card-print { max-width: 420px; margin: 30px auto; background: #fff; border-radius: 20px; padding: 32px 26px; text-align: center; border: 2px solid var(--gold); box-shadow: var(--shadow); }
.card-print h1 { font-size: 2rem; color: var(--red); }
.card-print #qr { display: inline-block; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); margin: 14px 0; }
@media print { .no-print { display: none !important; } body { background: #fff; } .card-print { box-shadow: none; margin: 0 auto; } }

/* calendario dentro del teléfono del hero */
.phone-screen.cal-page { min-height: 0; position: relative; }
.phone-screen.cal-page::before { position: absolute; }
