/* ===== Fondos animados (canvas) ===== */
[data-bg] { position: relative; overflow: hidden; }
.pay .bgfx { opacity: .9; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.final.bg-host .orb { opacity: .14; }
.final.bg-host { min-height: min(92vh, 760px); display: grid; align-content: center; }
.mf.bg-host .bgfx { opacity: .9; }

/* ===== Galería de ejemplos ===== */
.gal { background: var(--night); color: #F5F5F7; overflow: hidden; }
.gal-block { margin-top: clamp(56px, 8vw, 110px); }
.gal-block:first-of-type { margin-top: 0; }
.gal-head { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.gal-head h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #fff; }
.gal-head p { color: rgba(245,245,247,.62); max-width: 46ch; font-weight: 500; }
.car-hint { text-align: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 6px; }

/* ===== Modal de creación ===== */
.rm-lock { overflow: hidden; }
.rm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .22s ease; }
.rm[hidden] { display: none; }
.rm.in { opacity: 1; }
.rm-bg { position: absolute; inset: 0; background: rgba(7,7,12,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rm-card { position: relative; width: min(460px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--bg); color: var(--text); border-radius: 28px; padding: 30px 28px 26px; display: grid; gap: 14px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.05); transform: translateY(14px) scale(.98); transition: transform .35s var(--ease); }
.rm.in .rm-card { transform: none; }
.rm-card h3 { font-size: 1.7rem; }
.rm-sub { color: var(--muted); font-size: .95rem; margin-top: -6px; }
.rm-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--bg-2); color: var(--text); font-size: 1.3rem; line-height: 1; }
.rm-card label { display: grid; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.rm-card input, .rm-card select { font: inherit; font-weight: 500; font-size: 1rem; color: var(--text); background: #fff; border: 0; border-radius: 14px; padding: 13px 14px; box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow .2s; width: 100%; }
.rm-card input:focus, .rm-card select:focus { box-shadow: inset 0 0 0 2px var(--indigo); }
.rm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rm-err { min-height: 1.2em; color: #C0264F; font-size: .88rem; font-weight: 600; }
.rm-card .btn.busy { opacity: .6; pointer-events: none; }
.rm-ok { display: grid; gap: 14px; text-align: center; justify-items: center; }
.rm-ok h3 { font-size: 1.7rem; }
.rm-ok .lead { font-size: 1rem; }
.rm-ok a.url { font-weight: 700; color: var(--indigo); word-break: break-all; }
.rm-ok .rm-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 480px) { .rm-row { grid-template-columns: 1fr; } .rm-card { padding: 26px 20px 22px; } }
#rmForm { display: grid; gap: 14px; }

/* ===== Footer completo ===== */
.ft { background: var(--night); color: #9A9AA6; font-size: .9rem; font-weight: 500; padding-top: clamp(56px, 7vw, 90px); }
.ft a { color: inherit; text-decoration: none; transition: color .25s; }
.ft a:hover { color: #fff; }
.ft-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px 32px; padding-bottom: 48px; }
.ft .brand-foot { font-size: 2.6rem; letter-spacing: -.06em; line-height: 1; margin-bottom: 18px; display: inline-flex; }
.ft-about p { max-width: 34ch; line-height: 1.6; }
.ft-soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: transform .3s var(--ease), background .3s; }
.soc svg { width: 18px; height: 18px; fill: #E9E9EF; }
.soc:hover { transform: translateY(-3px); background: linear-gradient(135deg, #E8452C, #F58A30); }
.ft-col { display: grid; align-content: start; gap: 11px; }
.ft-col h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #F5F5F7; margin-bottom: 6px; font-weight: 700; }
.ft-col span { line-height: 1.55; }
.ft-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid #1C1C26; font-size: .82rem; }
.ft-links { display: flex; gap: 18px; flex-wrap: wrap; }
.ft-note { padding-bottom: 36px; font-size: .78rem; color: #6B6B78; }
@media (max-width: 980px) { .ft-top { grid-template-columns: 1fr 1fr 1fr; } .ft-about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ft-top { grid-template-columns: 1fr 1fr; } }

/* «Crea tu página»: todo cabe en la pantalla, sin tener que bajar */
.rm-card { padding: 24px 24px 20px; gap: 10px; }
#rmForm { display: grid; gap: 10px; }
.rm-card h3 { font-size: 1.5rem; }
.rm-card .eyebrow { margin: 0; }
.rm-sub { margin-top: -4px; font-size: .88rem; }
.rm-card label { gap: 4px; }
.rm-card input, .rm-card select { padding: 10px 12px; border-radius: 12px; font-size: .95rem; }
.rm-row { gap: 10px; }
.rm-err { min-height: 0; }
.rm-err:empty { display: none; }
@media (max-height: 700px) { .rm-card { padding: 20px 22px 18px; gap: 8px; } #rmForm { gap: 8px; } .rm-sub { display: none; } }
@media (max-width: 340px) { .rm-row { grid-template-columns: 1fr; } }

/* ingresar con una cuenta existente */
.nav-acts { display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 700; font-size: .92rem; color: inherit; text-decoration: none; padding: 8px 4px; }
.nav-login:hover { color: var(--indigo); }
#rmLogin { display: grid; gap: 10px; }
#rmLogin[hidden] { display: none; }
.rm-switch { margin: 2px 0 0; text-align: center; font-size: .9rem; color: var(--muted); font-weight: 500; }
.rm-switch button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--indigo); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .nav-login { font-size: .85rem; } .nav-acts { gap: 8px; } }
#rmForm[hidden], .rm-ok[hidden] { display: none; }
