:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #15181e;
  --muted: #5d6573;
  --border: #dde1e8;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #fff0ea;
  --ok: #16865a;
  --ok-soft: #e4f5ec;
  --warn: #b56a00;
  --warn-soft: #fff4dd;
  --danger: #c62f2f;
  --danger-soft: #fdeaea;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a21; --surface-2: #20242d; --text: #eef0f4; --muted: #9aa3b2;
    --border: #2b303b; --accent-soft: #3a2116; --ok-soft: #12301f; --warn-soft: #33270f; --danger-soft: #361717;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a21; --surface-2: #20242d; --text: #eef0f4; --muted: #9aa3b2;
  --border: #2b303b; --accent-soft: #3a2116; --ok-soft: #12301f; --warn-soft: #33270f; --danger-soft: #361717;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; font-size: 1.1rem; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; display: block; flex: none; }
.brand .mis { color: var(--accent); }
.topbar .spacer { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
footer.site { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 16px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { color: var(--danger); }
.btn.ok { color: var(--ok); }
.btn.sm { padding: 5px 10px; font-size: .85rem; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

label.field { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card h2 { margin-bottom: .7em; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .86rem; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.notice { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.list th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }

/* ---------- avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }

/* ---------- eventos ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.event-card:hover { transform: translateY(-2px); }
.cover { aspect-ratio: 16/9; background: linear-gradient(135deg, #ff5a1f, #ff9a3d 55%, #ffc65c); position: relative; color: #fff; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; opacity: .9; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.cover .badge { position: absolute; top: 10px; left: 10px; }
.event-card .body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.event-card .date { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.event-card .name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filters > * { flex: 1 1 150px; min-width: 0; width: auto; }
.filters .search { flex: 3 1 280px; }
.filters .dates { display: flex; gap: 8px; flex: 2 1 280px; }
.filters .dates input { flex: 1; min-width: 0; }
@media (max-width: 640px) { .filters > * { flex-basis: calc(50% - 5px); } .filters .search, .filters .dates { flex-basis: 100%; } }

.event-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.event-hero .cover { aspect-ratio: 21/7; }
@media (max-width: 640px) { .event-hero .cover { aspect-ratio: 16/9; } }
.event-hero .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.event-hero .meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
.event-hero .meta h1 { color: #fff; margin: 0 0 4px; }

.people { display: flex; flex-wrap: wrap; gap: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; }

.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }

/* ---------- panel ---------- */
.panel { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.sidenav { display: grid; gap: 4px; align-content: start; position: sticky; top: 70px; }
.sidenav .group { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 14px 10px 4px; }
.sidenav a { padding: 8px 10px; border-radius: 9px; text-decoration: none; font-weight: 600; color: var(--muted); }
.sidenav a:hover { background: var(--surface-2); color: var(--text); }
.sidenav a.on { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 800px) {
  .panel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sidenav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .sidenav .group { display: none; }
  .sidenav a { white-space: nowrap; border: 1px solid var(--border); background: var(--surface); }
}
.auth-box { max-width: 400px; margin: 40px auto; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.item-row:last-child { border-bottom: 0; }
.item-row .grow { flex: 1; min-width: 180px; }

.pack-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }

canvas.wm-preview { width: 100%; max-width: 520px; border-radius: 12px; border: 1px solid var(--border); }

/* ---------- dialog ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; background: var(--surface); color: var(--text); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10, 12, 16, .5); }
dialog .dlg-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
dialog .dlg-head h2 { margin: 0; }
dialog .dlg-body { padding: 18px; display: grid; gap: 12px; }
dialog .dlg-foot { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; animation: pop .2s ease-out; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 640px) {
  .topbar .inner { gap: 8px; }
  .brand { white-space: nowrap; font-size: 1rem; }
  #who { display: none; }
}

/* ---------- subida ---------- */
.dropzone { display: grid; place-items: center; gap: 4px; text-align: center; padding: 34px 16px; border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress.sm { height: 4px; margin: 0; }
.up-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.up-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.up-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .progress { grid-column: 1 / -1; }
.up-item.error { color: var(--danger); }

/* ---------- grilla de fotos (panel) ---------- */
.toolbar { gap: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; outline: 3px solid transparent; outline-offset: -3px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; accent-color: var(--accent); }
.ph.sel { outline-color: var(--accent); }
.ph.is-hidden img { opacity: .35; }
.ph-meta { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.ph-meta .pill { background: rgba(0,0,0,.6); color: #fff; }

/* ---------- galería pública ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.g-item { position: relative; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 0; padding: 0; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.g-item:hover img { transform: scale(1.03); }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }

/* ---------- visor ---------- */
.lightbox { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 90; background: rgba(5, 6, 8, .96); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; }
.lightbox .lb-top, .lightbox .lb-bottom { display: flex; align-items: center; gap: 10px; padding: 10px 14px; position: relative; z-index: 2; background: rgba(5, 6, 8, .96); }
.lightbox .lb-top .spacer { flex: 1; }
.lightbox .lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 8px 64px; touch-action: pan-y; }
@media (max-width: 640px) { .lightbox .lb-stage { padding: 4px 0; } }
.lightbox .lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
@media (max-width: 640px) { .lightbox .lb-nav { display: none; } }
.lightbox .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.lightbox .btn.primary { background: var(--accent); border-color: var(--accent); }
.lightbox .lb-bottom { justify-content: space-between; flex-wrap: wrap; padding-bottom: max(10px, env(safe-area-inset-bottom)); }

/* ---------- carrito ---------- */
.cart-btn { position: relative; }
.cart-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .72rem; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.g-add { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.g-add:hover { background: var(--accent); }
.g-item.in-cart { outline: 3px solid var(--accent); outline-offset: -3px; }
.g-item.in-cart .g-add { background: var(--accent); }
.cart-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.cart-thumb { position: relative; width: 84px; aspect-ratio: 3/2; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; cursor: pointer; }
.breakdown { display: grid; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.bd-row { display: flex; justify-content: space-between; gap: 10px; }
.bd-row.ok { color: var(--ok); }
.bd-row.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 8px; }
.ph-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.ph-actions .btn { padding: 3px 7px; background: rgba(0,0,0,.6); color: #fff; border-color: transparent; }

/* ---------- directorio ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.dir-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.dir-card.pro { border-color: var(--accent); }
@media (max-width: 640px) {
  .topbar .nav-link { padding: 5px 6px; }
  .topbar .btn.sm { padding: 5px 8px; }
}
@media (max-width: 520px) {
  .public .brand-txt { display: none; }
}
footer.site .credit { margin-top: 6px; font-size: .8rem; }
footer.site .credit a { color: var(--accent); text-decoration: none; font-weight: 600; }
footer.site .credit a:hover { text-decoration: underline; }

/* ---------- cuenta del comprador ---------- */
.avatar.xs { width: 22px; height: 22px; font-size: .7rem; }
.acct-btn { gap: 6px; }
.acct-btn .acct-icon { display: none; }
@media (max-width: 520px) {
  .hide-sm { display: none !important; }
  .acct-btn .acct-label { display: none; }
  .acct-btn .acct-icon { display: inline; }
}
.order-row:hover { border-color: var(--accent); }
footer.site .foot-links { margin-top: 8px; font-size: .85rem; }
footer.site .foot-links a { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; }
.stat strong { font-size: 1.4rem; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .order-grid { grid-template-columns: repeat(2, 1fr); } }
.order-item { display: grid; gap: 6px; }
.order-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.gear-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gear-row select { min-width: 140px; }
@media (max-width: 640px) { #public-profile { display: none !important; } }
.sidenav a.mobile-only { display: none; }
@media (max-width: 640px) { .sidenav a.mobile-only { display: inline-block; } }
.set-stats { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--border); }
.stat-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text); background: var(--surface-2); border-radius: 8px; padding: 3px 8px; }
.stat-chip.ok { background: var(--ok-soft); color: var(--ok); }
.stat-chip.warn { background: var(--warn-soft); color: var(--warn); }
.stat-chip.danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: #0b0d11; color: #fff; display: grid; place-items: center; overflow-y: auto; padding: 24px 16px; transition: opacity .45s, transform .45s; }
.intro.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: introFlash .9s ease-out .25s; }
.intro-glow { position: fixed; inset: -20%; pointer-events: none; background:
  radial-gradient(40% 35% at 20% 25%, rgba(255, 90, 31, .35), transparent 70%),
  radial-gradient(35% 30% at 85% 75%, rgba(255, 154, 61, .25), transparent 70%),
  radial-gradient(30% 30% at 70% 15%, rgba(255, 90, 31, .15), transparent 70%);
  animation: introGlow 14s ease-in-out infinite alternate; }
.intro-content { position: relative; width: min(760px, 100%); display: grid; justify-items: center; text-align: center; gap: 14px; }
.intro-viewfinder { position: relative; width: 170px; height: 120px; display: grid; place-items: center; margin-bottom: 6px; }
.intro-viewfinder .c { position: absolute; width: 30px; height: 30px; border: 4px solid #fff; animation: introFocus 1.1s cubic-bezier(.2, .9, .2, 1) .5s both; }
.intro-viewfinder .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; --dx: -40px; --dy: -30px; }
.intro-viewfinder .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; --dx: 40px; --dy: -30px; }
.intro-viewfinder .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; --dx: -40px; --dy: 30px; }
.intro-viewfinder .br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; --dx: 40px; --dy: 30px; }
.intro-logo { width: 64px; height: 64px; border-radius: 16px; animation: introPop .7s cubic-bezier(.3, 1.6, .5, 1) 1.15s both; box-shadow: 0 10px 40px rgba(255, 90, 31, .45); }
.intro-rec { position: absolute; top: -26px; right: -6px; font: 700 .7rem/1 system-ui, sans-serif; letter-spacing: .12em; color: #ff5a1f; display: flex; gap: 5px; align-items: center; animation: introFade .4s ease 1.3s both; }
.intro-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a1f; animation: introBlink 1s steps(2) infinite; }
.intro-title { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; margin: 0; color: #fff; animation: introUp .6s ease 1.35s both; }
.intro-title span { color: #ff5a1f; }
.intro-sub { font-size: clamp(1rem, 3.4vw, 1.25rem); color: rgba(255, 255, 255, .75); margin: 0 0 14px; animation: introUp .6s ease 1.5s both; }
.intro-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
@media (max-width: 600px) { .intro-choices { grid-template-columns: 1fr; } }
.intro-card { display: grid; gap: 6px; text-align: left; padding: 22px 20px; border-radius: 18px; cursor: pointer; font: inherit; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, background .2s; animation: introUp .6s ease both; }
.intro-card:nth-child(1) { animation-delay: 1.7s; }
.intro-card:nth-child(2) { animation-delay: 1.85s; }
.intro-card:hover, .intro-card:focus-visible { transform: translateY(-3px); border-color: #ff5a1f; background: rgba(255, 90, 31, .14); outline: none; }
.intro-card .ic { font-size: 2rem; }
.intro-card strong { font-size: 1.25rem; }
.intro-card span:last-child { color: rgba(255, 255, 255, .7); font-size: .92rem; line-height: 1.4; }
.intro-skip { margin-top: 6px; background: none; border: 0; color: rgba(255, 255, 255, .55); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; animation: introFade .5s ease 2.1s both; }
@keyframes introFlash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }
@keyframes introFocus { 0% { transform: translate(var(--dx), var(--dy)) scale(1.3); opacity: 0; } 60% { opacity: 1; } 80% { transform: translate(calc(var(--dx) * -0.08), calc(var(--dy) * -0.08)); } 100% { transform: none; opacity: 1; } }
@keyframes introPop { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes introUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes introBlink { 50% { opacity: 0; } }
@keyframes introGlow { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(4%, -3%) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .intro *, .intro { animation: none !important; transition: none !important; }
}

/* ---------- compartir ---------- */
.share-btn { gap: 6px; }
.event-card .card-share { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.event-card .card-share:hover { background: var(--accent); }
.event-card { position: relative; }

/* ---------- planes / mi web ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; }
.plan-card.current { border: 2px solid var(--accent); }
.plan-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.plan-card .btn { justify-self: start; }
.plan-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tpl { border: 2px solid var(--border); border-radius: 12px; padding: 10px; cursor: pointer; display: grid; gap: 4px; }
.tpl.on { border-color: var(--accent); }
.tpl-prev { height: 74px; border-radius: 8px; border: 1px solid var(--border); display: grid; gap: 5px; padding: 8px; align-content: end; }
.tpl-prev i { display: block; height: 10px; width: 46%; border-radius: 6px; }
.tpl-prev b { display: block; height: 6px; width: 70%; border-radius: 4px; background: currentColor; opacity: .25; }
.hero-pick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.hp { flex: none; width: 92px; aspect-ratio: 3/2; border-radius: 8px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); }
.hp img { width: 100%; height: 100%; object-fit: cover; }
.hp.on { border-color: var(--accent); }
.svc-row { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr auto; gap: 8px; }
@media (max-width: 640px) { .svc-row { grid-template-columns: 1fr; } }
