:root {
  --bg: #0b0b0c;
  --panel: #151517;
  --panel2: #0e0e10;
  --linea: #26262a;
  --texto: #f5f5f4;
  --suave: #c9c9cd;
  --gris: #8d8d93;
  --rojo: #e10600;
  --verde: #1a8f3a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--texto); font-family: 'Archivo', system-ui, sans-serif; }
a { color: #ff3b30; }
a:hover { color: #ff6a61; }
button, input, textarea, select { font: inherit; }
h1 { margin: 0 0 6px; font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--gris); letter-spacing: .08em; }
p { line-height: 1.5; }
.muted { color: var(--gris); }
.oculto { display: none !important; }

/* Marca */
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texto); }
.marca b { font-weight: 900; font-size: 22px; letter-spacing: .02em; display: block; line-height: 1; }
.marca small { font-size: 11px; color: var(--gris); letter-spacing: .08em; }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--rojo); color: #fff; border: 0; border-radius: 12px; padding: 13px 20px; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: #ff1a0d; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sec { background: transparent; color: var(--suave); border: 1px solid #333338; }
.btn.sec:hover { border-color: #55555b; color: #fff; }
.btn.chico { padding: 8px 12px; font-size: 13px; min-height: 36px; }
label.campo, div.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #a1a1a8; font-weight: 600; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], textarea, select {
  background: var(--panel); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; color: var(--texto); font-size: 15px; width: 100%; min-width: 0;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--rojo); outline-offset: -1px; }
.tarjeta { background: var(--panel); border: 1px solid var(--linea); border-radius: 16px; padding: 18px; }
.aviso { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.aviso.error { background: #2a0b0a; border: 1px solid #5c1512; color: #ffb4ae; }
.aviso.info { background: #141418; border: 1px solid #2c2c33; color: var(--suave); }
.pill { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 3px 9px; border: 1px solid #333338; color: var(--suave); white-space: nowrap; }
.pill.roja { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.pill.verde { background: var(--verde); border-color: var(--verde); color: #fff; }

/* Entrar */
.entrar { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.entrar form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }

/* Panel */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.lateral { flex: 1 1 240px; max-width: 260px; padding: 28px 20px; border-right: 1px solid #1f1f22; background: var(--panel2); display: flex; flex-direction: column; gap: 28px; }
.lateral nav { display: flex; flex-direction: column; gap: 4px; }
.lateral nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--suave); text-decoration: none; font-weight: 500; font-size: 14px; }
.lateral nav a.activo { background: #1a1a1d; color: #fff; font-weight: 600; }
.lateral nav a.off { color: #6f6f75; cursor: default; }
.lateral nav a.campanas { flex-wrap: wrap; row-gap: 2px; }
.lateral nav a.campanas small { flex-basis: 100%; font-size: 12px; color: #5f5f65; }
.principal { flex: 999 1 560px; min-width: 0; padding: 36px clamp(16px, 4vw, 56px) 64px; display: flex; flex-direction: column; gap: 36px; max-width: 1180px; }
@media (max-width: 760px) {
  .lateral { max-width: none; border-right: 0; border-bottom: 1px solid #1f1f22; padding: 18px 16px; gap: 14px; }
  .lateral nav { flex-direction: row; flex-wrap: wrap; }
}
.tabla { overflow-x: auto; background: var(--panel); border: 1px solid var(--linea); border-radius: 16px; }
.tabla table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.tabla th { padding: 14px 18px; font-weight: 600; color: var(--gris); text-align: left; }
.tabla td { padding: 14px 18px; border-top: 1px solid var(--linea); }

/* Asistente */
.pasos { list-style: none; margin: 0 auto; padding: 16px 24px; display: flex; gap: 8px; overflow-x: auto; max-width: 1100px; }
.pasos li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gris); white-space: nowrap; padding: 6px 10px; border-radius: 99px; }
.pasos li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #232327; font-size: 11px; font-weight: 800; }
.pasos li.hecho span { background: var(--verde); color: #fff; }
.pasos li.actual { background: #1a1a1d; color: #fff; font-weight: 700; }
.pasos li.actual span { background: var(--rojo); color: #fff; }
.cuerpo { max-width: 1100px; margin: 0 auto; padding: 24px 24px 140px; display: flex; flex-direction: column; gap: 24px; }
.barra { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(11, 11, 12, .94); backdrop-filter: blur(8px); border-top: 1px solid #1f1f22; }
.barra div { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.miniaturas { display: flex; gap: 10px; flex-wrap: wrap; }
.miniaturas figure { margin: 0; position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--linea); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
.subir { border: 1px dashed #3a3a40; border-radius: 12px; padding: 11px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--suave); font-size: 13px; font-weight: 600; }
.bloque { display: flex; flex-direction: column; gap: 10px; }
.bloque-tit { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.subir:hover { border-color: var(--rojo); }
.subir input { display: none; }
.video { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.video span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.colores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.colores label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--gris); }
.colores input[type=color] { width: 100%; height: 48px; border: 1px solid var(--linea); border-radius: 10px; background: none; padding: 2px; cursor: pointer; }
.contador { font-size: 12px; text-align: right; color: var(--gris); }
.contador.mal { color: #ff8a80; font-weight: 700; }
.oferta.destacada { border-color: var(--rojo); }
.oferta h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; color: var(--gris); }
.oferta.destacada h3 { color: var(--rojo); }
.boceto { background: #f4efe7; border-radius: 16px; overflow: hidden; color: #1f2328; }
.boceto header { background: #151517; color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.boceto .campos { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.boceto label { display: flex; flex-direction: column; gap: 3px; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #9a9184; text-transform: uppercase; }
.boceto textarea { background: #fff; color: #1f2328; border: 1px dashed #d8d1c4; border-radius: 6px; padding: 6px 8px; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.boceto textarea.titulo { font-size: 17px; font-weight: 900; text-transform: uppercase; text-align: center; line-height: 1.1; }
.boceto textarea.desc { text-align: center; color: #4a4f56; }
.boceto textarea.escena { background: #ebe6de; color: #6b6458; border-color: #c9c3b8; font-size: 12px; text-align: center; }
.boceto textarea.lista { font-weight: 800; text-transform: uppercase; font-size: 12px; }
.boceto textarea.sticker { background: var(--principal, #F26A1B); color: #fff; font-weight: 900; text-align: center; text-transform: uppercase; border-radius: 30px; border: 0; }
.boceto textarea.franja { background: #1f2328; color: #fff; font-weight: 800; text-align: center; text-transform: uppercase; border: 0; }
.boceto textarea.chip { background: var(--rojo); color: #fff; font-weight: 800; text-align: center; text-transform: uppercase; font-size: 11px; border: 0; }
.cargando { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 60px 16px; text-align: center; }
.rueda { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #2a2a2e; border-top-color: var(--rojo); animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rueda { animation-duration: 3s; } }
@media (max-width: 600px) {
  .barra div { flex-wrap: nowrap; padding: 12px 16px; }
  #ayuda { display: none; }
  .cuerpo { padding: 20px 16px 120px; }
  .pasos { padding: 12px 16px; }
}

/* ---------- Fondo tecnológico: aura roja que se mueve + cuadrícula tipo código ---------- */
body { position: relative; isolation: isolate; min-height: 100vh; }
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 32% at 22% 18%, rgba(225, 6, 0, .30), transparent 70%),
    radial-gradient(32% 28% at 82% 30%, rgba(184, 0, 0, .26), transparent 72%),
    radial-gradient(40% 34% at 55% 92%, rgba(255, 40, 20, .16), transparent 70%);
  filter: blur(30px);
  animation: aura 22s ease-in-out infinite alternate;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0%, rgba(225, 6, 0, .10) 50%, transparent 100%);
  background-size: 44px 44px, 44px 44px, 100% 220px;
  background-repeat: repeat, repeat, no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
  animation: barrido 9s linear infinite;
}
@keyframes aura {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.02); }
}
@keyframes barrido {
  from { background-position: 0 0, 0 0, 0 -220px; }
  to { background-position: 0 0, 0 0, 0 calc(100vh + 220px); }
}
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

/* Superficies de vidrio sobre el fondo */
.tarjeta, .tabla, .video, .subir { background: rgba(21, 21, 23, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lateral { background: rgba(14, 14, 16, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], textarea, select { background: rgba(14, 14, 16, .85); }
header { background: rgba(11, 11, 12, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- Inicio ---------- */
.hero { position: relative; border-radius: 24px; padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(135deg, rgba(225, 6, 0, .22), rgba(11, 11, 12, .6) 55%); overflow: hidden; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.02em; margin: 8px 0 10px; }
.hero p { margin: 0; color: var(--suave); max-width: 520px; }
.hero .btn { font-size: 17px; padding: 18px 26px; box-shadow: 0 12px 40px rgba(225, 6, 0, .45); }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.cifra { border-radius: 18px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(21, 21, 23, .72); backdrop-filter: blur(10px); }
.cifra b { display: block; font-size: 34px; font-weight: 900; line-height: 1; }
.cifra span { font-size: 13px; color: var(--gris); }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ficha { text-decoration: none; color: var(--texto); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); background: rgba(21, 21, 23, .78); display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.ficha:hover { transform: translateY(-3px); border-color: rgba(225, 6, 0, .6); color: var(--texto); }
.ficha .portada { aspect-ratio: 3 / 4; background: linear-gradient(160deg, #1d1d21, #111113); display: grid; place-items: center; color: #4a4a50; font-size: 13px; overflow: hidden; }
.ficha .portada img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ficha .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.ficha .info b { font-size: 15px; }
.ficha .info small { color: var(--gris); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .ficha { transition: none; } }

/* ---------- Dashboard ---------- */
.filtro { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(21, 21, 23, .8); border: 1px solid rgba(255, 255, 255, .08); }
.filtro button { border: 0; background: transparent; color: var(--suave); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 9px; cursor: pointer; min-height: 36px; }
.filtro button[aria-pressed="true"] { background: var(--rojo); color: #fff; }
.cifra small { display: block; margin-top: 6px; font-size: 12px; color: var(--gris); }
.cifra.destacada { background: linear-gradient(150deg, rgba(225, 6, 0, .35), rgba(21, 21, 23, .8) 70%); border-color: rgba(225, 6, 0, .45); }
.bloque { border-radius: 20px; padding: 20px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(21, 21, 23, .72); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bloque h3 { margin: 0; font-size: 15px; }
.dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.barras { display: flex; align-items: flex-end; gap: 4px; height: 140px; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-top: 8px; }
.barras .b { flex: 1; position: relative; display: flex; align-items: flex-end; height: 100%; }
.barras .b i { display: block; width: 100%; min-height: 2px; background: var(--rojo); border-radius: 4px 4px 0 0; }
.barras .b:hover i { background: #ff3b30; }
.barras .b span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #fff; color: #111; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; }
.barras .b:hover span { opacity: 1; }
.eje { display: flex; justify-content: space-between; font-size: 11px; color: var(--gris); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpis div { border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.kpis b { display: block; font-size: 20px; font-weight: 800; }
.kpis span { font-size: 12px; color: var(--gris); }
.demo { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #f0b429; border: 1px solid rgba(240, 180, 41, .4); border-radius: 99px; padding: 2px 8px; }
.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ranking li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ranking .medidor { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ranking .medidor i { display: block; height: 100%; background: var(--rojo); border-radius: 99px; }
.buscador { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buscador input { flex: 1 1 240px; }
.ficha .acciones { display: flex; gap: 6px; margin-top: 4px; }
.ficha .acciones button, .ficha .acciones a { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1px solid #333338; background: transparent; color: var(--suave); text-decoration: none; cursor: pointer; }
.ficha .acciones button:hover, .ficha .acciones a:hover { border-color: var(--rojo); color: #fff; }
.cifra b { font-size: clamp(24px, 2.2vw, 32px); white-space: nowrap; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.kpis b { font-size: 18px; }

.marca small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .02em; color: var(--suave); }

.hero h1 { font-size: clamp(28px, 3.4vw, 44px); max-width: 760px; }
.hero p { max-width: 640px; }

.marca-compacta img { width: 110px !important; }
.marca-compacta small { display: none; }
@media (max-width: 760px) { .marca-compacta { display: none; } }

/* Clave inicial: campo + Ver / Generar / Copiar */
/* La clave ocupa todo el ancho arriba; los botones van debajo, en fila. */
.clave-ini { display: flex; flex-wrap: wrap; gap: 6px; }
.clave-ini input { flex: 1 1 100%; min-width: 0; font-family: ui-monospace, monospace; letter-spacing: .04em; }
.clave-ini .btn { flex: 1 1 0; padding: 8px 10px; }

/* Créditos */
.pill.azul { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* Corrector: partes de la landing numeradas en el orden de la página */
.piezas { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pieza { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 8px; border-radius: 12px; border: 1px solid var(--linea); background: var(--panel2); color: var(--texto); text-align: left; cursor: pointer; font: inherit; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.pieza:hover { border-color: #55555b; }
.pieza:active { transform: scale(.98); }
.pieza[aria-pressed="true"] { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.pieza img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #000; display: block; }
.pieza .num { position: absolute; top: 10px; left: 10px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--rojo); color: #fff; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.pieza b { font-size: 12.5px; line-height: 1.25; }
.pieza small { color: var(--gris); font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ventanas emergentes */
.velo { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); display: grid; place-items: center; padding: 16px; z-index: 50; overflow-y: auto; }
.velo .caja { max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.velo .caja.ancha { max-width: 760px; }
.velo h2 { margin: 0; font-size: 20px; color: var(--texto); letter-spacing: normal; }
.velo p { margin: 0; line-height: 1.5; }
.velo .acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; justify-content: flex-end; }
.versiones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.versiones figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.versiones figcaption { font-weight: 800; font-size: 13px; color: var(--suave); }
.versiones img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; background: #000; }
.versiones .texto { font-size: 13px; color: var(--suave); line-height: 1.45; }

/* Guía de primer uso: un marco sobre el elemento que hay que tocar; su sombra gigante oscurece todo lo demás */
.foco-marco { position: fixed; z-index: 60; border-radius: 12px; cursor: pointer; outline: 3px solid var(--rojo); outline-offset: 2px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72), 0 0 26px 6px rgba(225, 6, 0, .55); animation: aparecer .25s ease-out, brillo 1.6s ease-in-out infinite; }
@keyframes brillo { 0%, 100% { outline-color: var(--rojo); } 50% { outline-color: #ff6b63; } }
.globo { position: fixed; z-index: 62; max-width: min(320px, calc(100vw - 32px)); background: #fff; color: #111; border-radius: 14px; padding: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 10px; animation: aparecer .3s ease-out; }
.globo b { font-size: 16px; }
.globo p { margin: 0; font-size: 14px; line-height: 1.45; color: #333; }
.globo .acciones { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.globo .btn.sec { color: #333; border-color: #ccc; }
.globo::before { content: ''; position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.globo.izq::before { left: -7px; top: 22px; }
.globo.arriba::before { top: -7px; left: 26px; }
.flecha { position: fixed; z-index: 62; font-size: 30px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: empujar 1s ease-in-out infinite; pointer-events: none; }
.latiendo { animation: latido 1.6s ease-in-out infinite; border-color: var(--rojo) !important; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, .55); } 50% { box-shadow: 0 0 0 8px rgba(225, 6, 0, 0); } }
@keyframes aparecer { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes empujar { 0%, 100% { translate: 0 0; } 50% { translate: -8px 0; } }
@media (prefers-reduced-motion: reduce) { .foco-marco, .latiendo, .flecha, .globo { animation: none; } }

.anuncio-campo { display: flex; flex-direction: column; gap: 4px; }
.anuncio-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.anuncio-texto { white-space: pre-line; font-size: 14px; line-height: 1.5; background: rgba(0,0,0,.25); border: 1px solid var(--linea); border-radius: 10px; padding: 10px 12px; }
.microfono.grabando { border-color: var(--rojo); color: #fff; background: rgba(225, 6, 0, .18); animation: latido-mic 1.2s ease-in-out infinite; }
@keyframes latido-mic { 50% { box-shadow: 0 0 0 6px rgba(225, 6, 0, .15); } }
@media (prefers-reduced-motion: reduce) { .microfono.grabando { animation: none; } }
/* Crear página: mismo marco que el resto (menú a la izquierda); la barra de Continuar va pegada abajo de la columna. */
.crear-principal { gap: 0; padding-top: 20px; padding-bottom: 0; }
.crear-top { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #1f1f22; padding-bottom: 12px; }
.crear-top .pasos { flex: 1; margin: 0; padding: 0; max-width: none; }
.guardar-salir { font-size: 13px; font-weight: 700; color: var(--suave); text-decoration: none; white-space: nowrap; }
.crear-principal .cuerpo { max-width: none; width: 100%; margin: 0; padding: 24px 0 32px; }
.crear-principal .barra { position: sticky; bottom: 0; margin: auto calc(-1 * clamp(16px, 4vw, 56px)) 0; }
.crear-principal .barra div { max-width: none; }
/* Selector de fragmento/cuadro del video (corregir GIF y foto de reseña): tira de cuadros + ventanita roja */
.selector-video { display: flex; flex-direction: column; gap: 8px; }
.sv-marco { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; touch-action: none; }
.selector-video video { display: block; max-width: 100%; max-height: 380px; }
.sv-recorte { position: absolute; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: grab; touch-action: none; }
.sv-recorte:active { cursor: grabbing; }
.sv-pestanas { display: flex; gap: 6px; }
.sv-pestanas .activo { border-color: var(--rojo); color: #fff; }
.sv-pista { position: relative; height: 60px; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; touch-action: none; user-select: none; }
.sv-pista canvas { width: 100%; height: 100%; display: block; opacity: .55; }
.sv-ventana { position: absolute; top: 0; bottom: 0; left: 0; }
.sv-ventana.tramo { border: 3px solid var(--rojo); border-radius: 8px; background: rgba(225, 6, 0, .12); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); cursor: grab; }
.sv-ventana.cuadro { width: 4px; margin-left: -2px; background: var(--rojo); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .3); }
.sv-pista:focus-visible { outline: 2px solid var(--rojo); outline-offset: 2px; }
.sv-ayuda { font-size: 13px; }
/* Regalo: campo + botón "Otra idea" + nota */
.fila-regalo { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.fila-regalo input { flex: 1 1 260px; min-width: 0; }
.fila-regalo .btn { white-space: nowrap; flex-shrink: 0; }
.nota-regalo { font-size: 12px; font-weight: 500; }
/* Ventana de términos y privacidad (una sola vez) */
.legal-fondo { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.legal-caja { width: min(520px, 100%); background: #141416; border: 1px solid #2a2a2e; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.legal-caja h2 { margin: 0; color: #fff; letter-spacing: 0; }
.legal-casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.legal-casilla input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--rojo); flex-shrink: 0; }
.legal-casilla a, .legal-caja a { color: #fff; text-decoration: underline; }
.pie-legal { font-size: 12px; color: var(--suave); display: flex; gap: 10px; flex-wrap: wrap; }
.pie-legal a { color: inherit; }
