/* Estudio de reels v3 · The AI Business.
   Interfaz de app inspirada en la referencia de Pinterest (tarjetas oscuras redondeadas apiladas, píldoras,
   barra inferior con botón central, filas con avatar y número grande sobre la imagen), con la paleta de la marca:
   casi negro, blanco, lavanda y el rojo como acento. Tipografía Inter. */
@font-face { font-family: "Inter"; src: url("fuentes/Inter.ttf"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fuentes/Inter-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Pixel"; src: url("fuentes/Silkscreen.ttf"); font-weight: 400; }
@font-face { font-family: "Pixel"; src: url("fuentes/Silkscreen-Bold.ttf"); font-weight: 700; }

:root {
  --k: #0B0B0F; --w: #FFFFFF; --l: #D7D9E6; --r: #FA4D4D; --b: #5A70FA;
  --c1: #17171D; --c2: #202028; --c3: #2B2B35; --linea: rgba(215, 217, 230, .09); --linea2: rgba(215, 217, 230, .18);
  --tenue: rgba(215, 217, 230, .62); --muy: rgba(215, 217, 230, .4); --r-suave: rgba(250, 77, 77, .14);
  --rad: 28px; --rad2: 20px; --et: 500 11px/1.2 Inter, system-ui, sans-serif; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--k); color: var(--w); font: 400 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--r); outline-offset: 2px; }
svg { flex: none; }
.et { font: var(--et); letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
.tenue { color: var(--muy); font-size: 12.5px; }

/* ---------- composición de escritorio ---------- */
.escenario { min-height: 100svh; position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 28px max(40px, env(safe-area-inset-right)) 30px max(40px, env(safe-area-inset-left));
  background: radial-gradient(70% 60% at 50% 40%, #1a1a20 0%, var(--k) 70%); }
.marca-gigante { font-weight: 200; font-size: clamp(64px, 11.4vw, 176px); line-height: .9; letter-spacing: -.045em; margin: 0; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .06) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.esquinas { display: flex; justify-content: space-between; margin-top: 18px; }
.esquinas p { margin: 0; font: var(--et); letter-spacing: .14em; text-transform: uppercase; color: rgba(215, 217, 230, .78); line-height: 1.6; }
.esquinas p:last-child { text-align: right; }
.esquinas img { height: 15px; display: block; margin-bottom: 8px; }
.instalar { display: block; margin: 14px 0 0 auto; background: var(--r); color: #fff; border-radius: 999px; padding: 10px 16px; font: 600 12px/1 Inter; letter-spacing: .06em; text-transform: none; transition: filter .2s; }
.instalar:hover { filter: brightness(1.08); }
.mesa { display: flex; justify-content: center; align-items: center; gap: 56px; margin-top: -10px; padding-bottom: 40px; }
.pie-esc { display: flex; justify-content: space-between; font: var(--et); letter-spacing: .14em; text-transform: uppercase; color: rgba(215, 217, 230, .55); }

/* teléfonos */
.tel { position: relative; width: 392px; height: min(840px, calc(100svh - 310px)); min-height: 620px; border-radius: 60px; padding: 11px; background: #1d1d24;
  box-shadow: 0 0 0 1.5px #3a3a44 inset, 0 0 0 4px #0e0e12, 0 50px 120px -40px rgba(0, 0, 0, .9); flex: none; }
.tel::before { content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 110px; height: 32px; border-radius: 20px; background: #000; z-index: 40; }
.tel-pant { position: relative; width: 100%; height: 100%; border-radius: 49px; overflow: hidden; background: var(--k); display: flex; flex-direction: column; }
.tel-video .tel-pant canvas, .tel-video .tel-pant video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tel-video .tel-pant video { position: absolute; inset: 0; background: var(--k); }
.barra-estado { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0 36px; font-weight: 600; font-size: 15px; position: relative; z-index: 20; flex: none; }
.barra-estado i { display: flex; gap: 6px; align-items: center; }
.barra-estado i b { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid #fff; position: relative; }
.barra-estado i b::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1px; }
.barra-estado i s { width: 17px; height: 11px; background: linear-gradient(to top, #fff 35%, transparent 35%) 0 0/3px 100% no-repeat, linear-gradient(to top, #fff 60%, transparent 60%) 4.5px 0/3px 100% no-repeat, linear-gradient(to top, #fff 82%, transparent 82%) 9px 0/3px 100% no-repeat, linear-gradient(#fff, #fff) 13.5px 0/3px 100% no-repeat; }
.vista-et { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; }

/* ---------- la app ---------- */
.app { display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; --gx: 16px; }
.pantallas { position: relative; flex: 1; min-height: 0; }
.pantalla { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px var(--gx) 128px; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateX(22px); pointer-events: none; transition: opacity .3s, transform .42s cubic-bezier(.2, .8, .2, 1); scrollbar-width: none; }
.pantalla::-webkit-scrollbar { display: none; }
.pantalla > * { flex: none; }
.pantalla.act { opacity: 1; transform: none; pointer-events: auto; }
.pantalla.atras { transform: translateX(-22px); }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.025em; }
h2 { font-weight: 600; font-size: 28px; line-height: 1.08; padding: 6px 6px 0; }
h3 { font-weight: 600; font-size: 18px; line-height: 1.2; }
.txt { color: var(--tenue); margin: -2px 6px 6px; font-size: 14px; max-width: 40ch; text-wrap: pretty; }
p, small { text-wrap: pretty; }
.titulo-tab { text-align: center; font-size: 19px; padding: 8px 0 6px; }

/* superficies */
.tarjeta { background: var(--c1); border-radius: var(--rad); padding: 20px; position: relative; }
.tarjeta.roja { background: var(--r); color: #fff; }
.t-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ver { color: var(--r); font-weight: 600; font-size: 13px; padding: 4px 0; }
.redondo { width: 40px; height: 40px; border-radius: 50%; background: var(--c2); display: grid; place-items: center; color: #fff; flex: none; transition: background .2s; }
.redondo svg { width: 18px; height: 18px; }
.redondo:hover { background: var(--c3); }
.redondo.rojo-t { color: var(--r); }

/* píldoras (botones) */
.pildora { height: 52px; border-radius: 999px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; color: #fff; transition: filter .2s, transform .15s, opacity .2s; }
.pildora svg { width: 18px; height: 18px; }
.pildora:active:not(:disabled) { transform: scale(.97); }
.pildora:disabled { opacity: .35; }
.pildora.roja { background: var(--r); }
.pildora.roja:hover:not(:disabled) { filter: brightness(1.07); }
.pildora.blanca { background: #fff; color: var(--k); }
.pildora.oscura { background: var(--c2); color: var(--r); }
.pildora.oscura:hover:not(:disabled) { background: var(--c3); }
.pildora.ancha { width: 100%; }
.pildora.grande { height: 58px; font-size: 16px; }

/* cabecera y progreso de los pasos */
.cab { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; padding: 6px var(--gx) 0; flex: none; }
.cab-t { text-align: center; line-height: 1.25; }
.cab-t b { display: block; font-weight: 600; font-size: 16px; }
.cab-t small { color: var(--muy); font-size: 12px; }
.progreso { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 14px calc(var(--gx) + 6px) 4px; flex: none; }
.progreso i { height: 5px; border-radius: 3px; background: var(--c3); transition: background .4s; }
.progreso i.on { background: var(--r); }

/* barras inferiores */
.barra-pasos, .tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; }
.barra-pasos { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 26px var(--gx) calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--k) 66%, rgba(11, 11, 15, 0)); }
.barra-pasos #atras { padding: 0 20px 0 16px; }
.tabbar { margin: 0 10px calc(12px + env(safe-area-inset-bottom)); height: 68px; border-radius: 34px; background: rgba(32, 32, 40, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; box-shadow: 0 -10px 30px -6px rgba(0, 0, 0, .6), 0 0 0 1px var(--linea) inset; }
.tabbar button { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; color: var(--muy); transition: color .2s; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.on, .tabbar button:hover { color: #fff; }
.tabbar button.on svg { color: var(--r); }
.mas-tab span { width: 60px; height: 60px; border-radius: 50%; background: var(--r); color: #fff; display: grid; place-items: center; margin-top: -30px; box-shadow: 0 0 0 6px var(--k), 0 10px 26px -6px rgba(250, 77, 77, .7); transition: transform .2s; }
.mas-tab:hover span { transform: scale(1.05); }
.mas-tab svg { width: 26px !important; height: 26px !important; }

/* ---------- inicio ---------- */
.saludo { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 12px; padding: 4px 4px 6px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--c2); position: relative; display: grid; place-items: center; }
.avatar img { width: 34px; height: 34px; border-radius: 50%; }
.avatar i { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--r); box-shadow: 0 0 0 3px var(--k); }
.saludo b { display: block; font-weight: 600; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.saludo small { color: var(--tenue); font-size: 13.5px; }

.nuevo { overflow: hidden; min-height: 268px; padding: 22px 22px 22px; }
.chip-claro { display: inline-block; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 5px 11px; font-weight: 600; font-size: 12px; }
.nuevo h1 { font-weight: 600; font-size: 25px; line-height: 1.08; margin: 14px 0 8px; max-width: 8.6em; position: relative; z-index: 2; }
.nuevo p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); max-width: 15.5em; position: relative; z-index: 2; }
.nuevo .pildora { position: relative; z-index: 2; height: 46px; padding: 0 18px 0 20px; }
.nuevo canvas { position: absolute; right: -18px; top: 32px; width: 112px; height: 199px; border-radius: 16px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .55); transform: rotate(7deg); }

.actividad { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 10px; }
.cifras { display: grid; gap: 10px; }
.cifras small { display: block; color: var(--tenue); font-size: 12.5px; }
.cifras b { font-weight: 600; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; color: var(--r); }
.anillo { position: relative; width: 120px; height: 120px; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.anillo > span b { font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.anillo > span small { color: var(--tenue); font-size: 11.5px; }
.leyenda { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: 13px; color: var(--tenue); }
.leyenda i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.leyenda b { color: #fff; font-weight: 600; margin-left: 4px; }
.l-app { background: var(--r); } .l-pix { background: var(--l); } .l-noc { background: var(--b); }

/* filas de vídeos */
.filas-v { display: grid; gap: 8px; }
.fila-v { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--c2); border-radius: var(--rad2); padding: 8px 14px 8px 8px; transition: background .2s; }
.fila-v:hover { background: var(--c3); }
.fila-v img { width: 44px; height: 56px; object-fit: cover; border-radius: 12px; background: var(--c3); display: block; }
.fila-v b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-v span:nth-child(2) { min-width: 0; }
.fila-v small { color: var(--tenue); font-size: 12px; }
.fila-v em { font-style: normal; font-size: 11.5px; color: var(--muy); display: flex; align-items: center; gap: 3px; }
.fila-v em svg { width: 13px; height: 13px; }
.vacio { color: var(--tenue); font-size: 13.5px; background: var(--c2); border-radius: var(--rad2); padding: 18px; line-height: 1.45; }

/* rejilla de mis vídeos */
.pildoras { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--c1); border-radius: 999px; padding: 5px; }
.pildoras button { height: 38px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--tenue); transition: background .2s, color .2s; }
.pildoras button.on { background: var(--r); color: #fff; }
.rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carta-v { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--c2); text-align: left; display: block; width: 100%; }
.carta-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.carta-v::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(11, 11, 15, .92), rgba(11, 11, 15, 0)); }
.carta-v div { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
.carta-v b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carta-v small { display: flex; gap: 10px; margin-top: 6px; color: var(--l); font-size: 11.5px; white-space: nowrap; }
.carta-v small span:last-child { overflow: hidden; text-overflow: ellipsis; }
.rejilla .vacio { grid-column: 1 / -1; }

/* ---------- pasos ---------- */
.estilos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.estilo { text-align: left; border-radius: 24px; overflow: hidden; position: relative; background: var(--c1); aspect-ratio: 9 / 16; transition: box-shadow .2s, transform .2s; }
.estilo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.estilo::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(to top, rgba(11, 11, 15, .95) 20%, rgba(11, 11, 15, 0)); }
.estilo div { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; }
.estilo b { font-weight: 600; font-size: 19px; display: block; }
.estilo small { color: var(--l); font-size: 12px; line-height: 1.35; display: block; margin-top: 4px; }
.estilo.sel { box-shadow: 0 0 0 2.5px var(--r); }
.marca-sel { position: absolute; top: 12px; right: 12px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(11, 11, 15, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5) inset; transition: background .2s; }
.marca-sel svg { width: 15px; height: 15px; opacity: 0; transition: opacity .2s; }
.sel > .marca-sel { background: var(--r); box-shadow: none; }
.sel > .marca-sel svg { opacity: 1; }

.chip-nuevo { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--r); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 11.5px; }

/* cuarta tarjeta: pegar referencia */
.ref-op { background: radial-gradient(90% 60% at 50% 34%, rgba(250, 77, 77, .22), rgba(250, 77, 77, 0) 70%), var(--c1); box-shadow: 0 0 0 1.5px var(--linea2) inset; }
.ref-op::after { inset: 56% 0 0; }
.ref-op img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-op.con-ref { box-shadow: 0 0 0 2.5px var(--r); }
.ref-op.con-ref .marca-sel { background: var(--r); box-shadow: none; }
.ref-op.con-ref .marca-sel svg { opacity: 1; }
.ref-fondo { position: absolute; left: 50%; top: 34%; width: 44%; aspect-ratio: 9 / 16; translate: -50% -50%; }
.ref-fondo i { position: absolute; inset: 0; border-radius: 14px; background: var(--c3); box-shadow: 0 0 0 1px var(--linea2) inset, 0 20px 40px -16px rgba(0, 0, 0, .8); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ref-fondo i:nth-child(1) { transform: rotate(-12deg) translateX(-26%); opacity: .55; }
.ref-fondo i:nth-child(2) { transform: rotate(10deg) translateX(26%); opacity: .7; }
.ref-fondo i:nth-child(3) { background: linear-gradient(160deg, #2B2B35, #17171D); }
.ref-op:hover .ref-fondo i:nth-child(1) { transform: rotate(-17deg) translateX(-38%); }
.ref-op:hover .ref-fondo i:nth-child(2) { transform: rotate(15deg) translateX(38%); }
.ref-ico { position: absolute; left: 50%; top: 34%; translate: -50% -50%; width: 62px; height: 62px; border-radius: 50%; background: var(--r); color: #fff; display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 8px rgba(250, 77, 77, .18), 0 14px 30px -8px rgba(250, 77, 77, .8); animation: pulso 2.6s ease-in-out infinite; }
.ref-ico svg { width: 28px; height: 28px; }
@keyframes pulso { 50% { box-shadow: 0 0 0 16px rgba(250, 77, 77, 0), 0 14px 30px -8px rgba(250, 77, 77, .8); } }
.ref-c.aviso { animation: avisa 1.2s ease-out; }
@keyframes avisa { 0% { box-shadow: 0 0 0 2px var(--r); } 100% { box-shadow: 0 0 0 2px rgba(250, 77, 77, 0); } }

/* referencia por enlace */
.ref-c h3 { font-size: 17px; }
.nota-c { color: var(--tenue); font-size: 13px; margin: 6px 0 14px; line-height: 1.45; }
.ref-campo { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ref-campo input { min-width: 0; height: 50px; border: 0; border-radius: 999px; background: var(--c2); color: #fff; font-size: 15px; padding: 0 18px; outline: none; }
.ref-campo input:focus { box-shadow: 0 0 0 2px var(--r) inset; }
.ref-campo .pildora { height: 50px; padding: 0 18px; }
#ref-res:empty { display: none; }
#ref-res { margin-top: 12px; }
.ref-ficha { display: grid; grid-template-columns: 64px 1fr; gap: 12px; background: var(--c2); border-radius: var(--rad2); padding: 10px; align-items: start; }
.ref-ficha img, .ref-ficha .sin { width: 64px; height: 86px; border-radius: 12px; object-fit: cover; background: var(--c3); display: block; }
.ref-ficha b { display: block; font-weight: 600; font-size: 13.5px; }
.ref-ficha p { margin: 3px 0 0; color: var(--tenue); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ref-ficha > span { min-width: 0; }
.ref-ia { margin-top: 10px; background: var(--r-suave); border-radius: var(--rad2); padding: 12px 14px; font-size: 13px; line-height: 1.45; color: var(--l); }
.ref-ia b { color: var(--r); }
.ref-quitar { margin-top: 8px; color: var(--muy); font-size: 12.5px; font-weight: 600; padding: 4px 2px; }

/* listas de tarjetas: servicios y voces */
.lista-c { display: grid; gap: 8px; }
.op { display: grid; grid-template-columns: 50px 1fr 30px; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--c1); border-radius: 24px; padding: 14px 14px 14px 14px; transition: background .2s, box-shadow .2s, opacity .2s; position: relative; }
.op:hover:not(:disabled) { background: var(--c2); }
.op.sel { box-shadow: 0 0 0 2px var(--r) inset; }
.op:disabled { opacity: .45; }
.op .ico { width: 50px; height: 50px; border-radius: 50%; background: var(--r-suave); color: var(--r); display: grid; place-items: center; position: relative; }
.op .ico svg { width: 22px; height: 22px; }
.op > span:nth-child(2) { min-width: 0; }
.op b { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.25; }
.op small { display: block; color: var(--tenue); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.op .acento { color: var(--r); font-weight: 500; margin-top: 5px; }
.op .marca-sel { position: static; width: 28px; height: 28px; background: transparent; box-shadow: 0 0 0 1.5px var(--linea2) inset; backdrop-filter: none; }
.op.sel .marca-sel { background: var(--r); box-shadow: none; }
.op.sel .marca-sel svg { opacity: 1; }

/* nuestros trabajos, ya grabados */
.nuestros { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; }
.nuestros-mini { display: flex; }
.nuestros-mini img { width: 40px; height: 72px; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 0 0 2px var(--c1); }
.nuestros-mini img + img { margin-left: -12px; transform: rotate(6deg); }
.nuestros b { display: block; font-weight: 600; font-size: 15px; }
.nuestros small { display: block; color: var(--tenue); font-size: 12.5px; line-height: 1.4; }
.nuestros span { min-width: 0; }
.nuestros .pildora { height: 44px; padding: 0 18px; }
.nuestros .pildora:disabled { opacity: 1; background: var(--c2); color: var(--tenue); }

/* «Tu tema» */
.chip-ia { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--r); border-radius: 999px; padding: 3px 8px; margin-left: 6px; vertical-align: 2px; }
.op-tema .ico { background: var(--r); color: #fff; }
.tema-panel { display: grid; gap: 12px; padding: 18px; margin-top: -2px; box-shadow: 0 0 0 1px var(--linea2) inset; }
.tema-panel textarea { min-height: 92px; background: var(--c2); border-radius: 18px; font-size: 16px; }
.tema-panel textarea:focus { box-shadow: 0 0 0 2px var(--r) inset; outline: none; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.ideas button { background: var(--c2); color: var(--l); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; text-align: left; transition: background .2s, color .2s; }
.ideas button:hover { background: var(--c3); color: #fff; }
#tema-ia { justify-self: start; height: 46px; }
#tema-sug { display: grid; gap: 8px; }
#tema-sug:empty { display: none; }
.sug { display: grid; gap: 3px; text-align: left; background: var(--c2); border-radius: 18px; padding: 12px 14px; transition: background .2s, box-shadow .2s; }
.sug:hover { background: var(--c3); }
.sug.sel { box-shadow: 0 0 0 2px var(--r) inset; }
.sug b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.sug small { color: var(--tenue); font-size: 12.5px; line-height: 1.4; }
.sug em { font-style: normal; color: var(--r); font-size: 12px; font-weight: 500; }
.tema-base { margin: 0; color: var(--tenue); font-size: 12.5px; }
.tema-base:empty { display: none; }
.tema-base b { color: #fff; font-weight: 600; }
.tema-nota { margin: 0 6px; background: var(--r-suave); color: var(--l); border-radius: 16px; padding: 10px 14px; font-size: 13.5px; }
.tema-nota b { color: #fff; font-weight: 600; }

/* voces: botón de escuchar */
.voz .ico { background: var(--c3); color: #fff; }
.voz .ico svg { width: 18px; height: 18px; margin-left: 2px; }
.voz .ondas { display: none; gap: 3px; align-items: center; height: 18px; }
.voz .ondas i { width: 3px; border-radius: 2px; background: #fff; animation: onda .9s ease-in-out infinite; }
.voz .ondas i:nth-child(2) { animation-delay: -.3s; } .voz .ondas i:nth-child(3) { animation-delay: -.6s; } .voz .ondas i:nth-child(4) { animation-delay: -.15s; }
@keyframes onda { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.voz.sonando .ico { background: var(--r); }
.voz.sonando .ico svg { display: none; }
.voz.sonando .ondas { display: flex; }
.voz .insignia { position: absolute; right: -3px; bottom: -3px; background: var(--k); color: var(--r); border-radius: 999px; padding: 2px 6px; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 1.5px var(--r) inset; }

/* guion */
.pildoras.dos { margin: 4px 0 2px; }
.panel { display: grid; gap: 10px; }
#guiones, #mi-guion { display: grid; gap: 10px; }
.guion { width: 100%; text-align: left; background: var(--c1); border-radius: var(--rad); padding: 20px; position: relative; transition: box-shadow .2s; display: block; }
.guion.sel { box-shadow: 0 0 0 2px var(--r) inset; }
.guion .chip { display: inline-block; background: var(--c2); color: var(--l); border-radius: 999px; padding: 5px 11px; font-weight: 500; font-size: 12px; margin-bottom: 12px; max-width: calc(100% - 40px); }
.guion .chip.ia { color: var(--r); background: var(--r-suave); }
.guion p.g { font-weight: 600; font-size: 20px; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 14px; padding-right: 30px; }
.guion p.g b { color: var(--r); font-weight: 600; }
.guion .dato { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: var(--c2); border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; }
.guion .dato strong { color: var(--r); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.guion .dato span { font-size: 12px; color: var(--tenue); line-height: 1.4; }
.guion ol { margin: 0; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 8px; }
.guion ol li { counter-increment: e; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--l); }
.guion ol li::before { content: counter(e); width: 22px; height: 22px; border-radius: 50%; background: var(--c2); color: var(--tenue); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.guion .marca-sel { top: 18px; right: 18px; }
.campo { padding: 6px; }
textarea { width: 100%; min-height: 210px; resize: vertical; background: transparent; border: 0; border-radius: 22px; padding: 14px; font-size: 15px; line-height: 1.55; color: #fff; outline: none; display: block; }
textarea::placeholder { color: var(--muy); }
.campo:focus-within { box-shadow: 0 0 0 2px var(--r) inset; }
.contador { display: flex; justify-content: space-between; padding: 8px 14px 10px; border-top: 1px solid var(--linea); font-size: 12px; color: var(--muy); }
.carga { height: 150px; border-radius: var(--rad); background: linear-gradient(100deg, var(--c1) 30%, var(--c2) 50%, var(--c1) 70%); background-size: 300% 100%; animation: brillo 1.4s linear infinite; }
@keyframes brillo { to { background-position: -150% 0; } }
.nota { color: var(--tenue); font-size: 13px; margin: 2px 6px 0; }
.error { color: var(--r); font-size: 13.5px; margin: 0 6px; }

/* referencias */
.subir { display: grid; place-items: center; gap: 10px; text-align: center; padding: 30px 16px; background: var(--c1); border-radius: var(--rad); border: 1.5px dashed var(--linea2); cursor: pointer; transition: background .2s, border-color .2s; width: 100%; }
.subir:hover, .subir.encima { background: var(--c2); border-color: var(--r); }
.subir .mas { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--r); color: #fff; box-shadow: 0 10px 26px -8px rgba(250, 77, 77, .7); margin-bottom: 4px; }
.subir .mas svg { width: 24px; height: 24px; }
.subir b { font-weight: 600; font-size: 16px; }
.subir small { color: var(--muy); font-size: 12.5px; }
.miniaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.miniaturas:empty { display: none; }
.mini { position: relative; aspect-ratio: 9 / 13; background: var(--c2); overflow: hidden; border-radius: 18px; }
.mini img, .mini video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini .quitar { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; border-radius: 50%; background: rgba(11, 11, 15, .72); display: grid; place-items: center; }
.mini .quitar svg { width: 11px; height: 11px; }
.mini .tipo { position: absolute; left: 7px; bottom: 7px; font-weight: 600; font-size: 10.5px; background: rgba(11, 11, 15, .72); padding: 4px 8px; border-radius: 999px; }

/* ---------- crear ---------- */
.hero { position: relative; border-radius: var(--rad); overflow: hidden; background: var(--c1); aspect-ratio: 9 / 16; width: 100%; box-shadow: 0 0 0 1px var(--linea) inset; }
.hero canvas { border-radius: inherit; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 62% 0 0; background: linear-gradient(to top, rgba(11, 11, 15, .9), rgba(11, 11, 15, 0)); pointer-events: none; transition: opacity .4s; }
.hero-pie { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; transition: opacity .3s; }
.hero-pie b { display: block; font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { background: #fff; color: var(--k); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.hero-pct { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: 1fr auto auto; align-items: center; padding: 22px; background: rgba(11, 11, 15, .74); }
.hero-pct b { display: flex; justify-content: center; align-items: baseline; font-weight: 700; font-size: 136px; letter-spacing: -.06em; line-height: 1; color: var(--r); text-align: center; font-variant-numeric: tabular-nums; }
.hero-pct b::after { content: "%"; font-size: .34em; letter-spacing: 0; margin-left: .06em; }
.hero-pct small { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.creando .hero-pie { opacity: 0; }
.barra-prog { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.barra-prog i { display: block; height: 100%; width: 0; background: var(--r); border-radius: 3px; transition: width .2s; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 6px; padding: 12px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); text-align: center; }
.tres div + div { border-left: 1px solid var(--linea); }
.tres small { display: block; color: var(--tenue); font-size: 12px; }
.tres b { display: block; color: var(--r); font-weight: 600; font-size: 14.5px; margin-top: 3px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-paso { display: grid; grid-template-columns: 1fr auto 32px; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 15px; font-weight: 500; }
.ir-paso:last-child { border-bottom: 0; padding-bottom: 2px; }
.ir-paso small { color: var(--tenue); font-size: 13px; font-weight: 400; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-paso i { width: 32px; height: 32px; border-radius: 50%; background: var(--c2); display: grid; place-items: center; color: var(--r); }
.ir-paso i svg { width: 14px; height: 14px; }
.pasos-crear { display: grid; gap: 12px; }
.pasos-crear div { display: flex; gap: 12px; align-items: center; color: var(--muy); font-size: 14px; }
.pasos-crear i { width: 22px; height: 22px; border: 2px solid var(--c3); border-radius: 50%; flex: none; display: grid; place-items: center; }
.pasos-crear .act { color: #fff; } .pasos-crear .act i { border-color: var(--r); border-top-color: transparent; animation: gira .8s linear infinite; }
.pasos-crear .ok { color: #fff; } .pasos-crear .ok i { background: var(--r); border-color: var(--r); }
.pasos-crear .ok i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.pasos-crear p { margin: 2px 0 0; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- resultado ---------- */
.listo { text-align: center; padding: 30px 22px 26px; }
.check { width: 92px; height: 92px; border-radius: 50%; background: var(--k); color: var(--r); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .22); }
.check svg { width: 42px; height: 42px; }
.listo h2 { font-size: 30px; padding: 0; }
.listo p { margin: 6px auto 0; font-size: 14px; color: rgba(255, 255, 255, .88); max-width: 26ch; }
.video-c { border-radius: var(--rad); overflow: hidden; background: #000; }
.video-c video { width: 100%; aspect-ratio: 9 / 16; display: block; background: #000; }
.acciones { display: grid; gap: 8px; }
.post p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--l); }
.post .tags { color: var(--b); margin-top: 10px; }

/* ---------- móvil: la app a pantalla completa ---------- */
@media (max-width: 960px) {
  .escenario { display: block; padding: 0; background: var(--k); min-height: 0; }
  .marca-gigante, .esquinas, .pie-esc, .tel-video { display: none; }
  .mesa { display: block; margin: 0; padding: 0; }
  .tel { width: 100%; height: 100svh; min-height: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .tel::before, .barra-estado { display: none; }
  .tel-pant { border-radius: 0; }
  .app { --gx: max(14px, env(safe-area-inset-left)); padding-top: env(safe-area-inset-top); }
  .pantalla { padding-top: 14px; padding-right: max(14px, env(safe-area-inset-right)); }
  .cab { padding-top: 12px; }
}
.solo-esc, .tabbar .solo-esc { display: none; }
.progreso span { display: none; }
@media (max-width: 960px) { .tabbar.fuera { display: none; } }

/* ---------- escritorio: interfaz propia, a ventana completa ----------
   Barra lateral con la marca y el menú, contenido ancho en el centro y la vista previa fija a la derecha. */
@media (min-width: 961px) {
  :root { --lat: 248px; --gx-e: clamp(28px, 3.4vw, 56px); --vp: min(25vw, calc((100svh - 150px) * .5625)); }
  html, body { height: 100%; overflow: clip; }
  .escenario, .mesa, .tel, .tel-pant, .app { overflow: clip; }
  .escenario { display: block; padding: 0; min-height: 0; height: 100svh; background: var(--k); }
  .marca-gigante, .esquinas, .pie-esc { display: none; }
  .mesa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; height: 100svh; margin: 0; padding: 0; align-items: stretch; }
  .tel { width: auto; height: 100svh; min-height: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .tel::before, .barra-estado { display: none; }
  .tel-pant { border-radius: 0; background: var(--k); }

  /* la app: lateral + contenido */
  .app { display: grid; grid-template-columns: var(--lat) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); --gx: var(--gx-e); }
  .app > .tabbar { grid-column: 1; grid-row: 1 / -1; }
  .app > .cab, .app > .progreso, .app > .pantallas { grid-column: 2; }
  .app > .cab { grid-row: 1; } .app > .progreso { grid-row: 2; } .app > .pantallas { grid-row: 3; }

  /* barra lateral */
  .tabbar, .tabbar.fuera { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; height: auto; margin: 0; padding: 26px 16px 22px; border-radius: 0;
    background: #101015; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 1px 0 0 var(--linea); }
  .tabbar .solo-esc { display: flex; }
  .lat-marca { order: 0; flex-direction: column; gap: 8px; padding: 0 10px 26px; }
  .lat-marca img { height: 17px; width: auto; align-self: flex-start; }
  .lat-marca small { font: var(--et); letter-spacing: .14em; text-transform: uppercase; color: var(--muy); }
  .tabbar button { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; font-size: 14.5px; font-weight: 500; color: var(--tenue); transition: background .2s, color .2s; }
  .tabbar button svg { width: 20px; height: 20px; }
  .tabbar button:hover { background: var(--c1); color: #fff; }
  .tabbar button.on { background: var(--c2); color: #fff; }
  .tabbar [data-ir="inicio"] { order: 2; } .tabbar [data-ir="videos"] { order: 3; } .tabbar [data-ir="voces"] { order: 4; }
  .mas-tab { order: 1; height: auto !important; padding: 0 !important; margin-bottom: 18px; }
  .mas-tab:hover { background: none !important; }
  .mas-tab span { width: 100%; height: 50px; border-radius: 999px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 30px -12px rgba(250, 77, 77, .8); font-size: 15px; font-weight: 600; }
  .mas-tab:hover span { transform: none; filter: brightness(1.07); }
  .mas-tab svg { width: 20px !important; height: 20px !important; color: #fff !important; }
  .mas-tab em { font-style: normal; }
  .lat-hueco { order: 8; flex: 1; }
  .lat-instalar { order: 9; color: #fff !important; background: var(--r-suave); font-size: 13.5px !important; }
  .lat-instalar svg { color: var(--r); }
  .lat-instalar[hidden] { display: none !important; }
  #salir { order: 10; }

  /* cabecera y pasos */
  .cab { display: flex; justify-content: space-between; align-items: center; padding: 30px var(--gx-e) 0; }
  #atras-cab { display: none; }
  .cab-t { text-align: left; }
  .cab-t b { font-size: 15px; display: inline; }
  .cab-t small { font-size: 13.5px; margin-left: 10px; }
  .progreso { padding: 18px var(--gx-e) 6px; gap: 8px; }
  .progreso i { height: auto; background: none; display: grid; gap: 8px; font-style: normal; }
  .progreso i::before { content: ""; height: 5px; border-radius: 3px; background: var(--c3); transition: background .4s; }
  .progreso i.on { background: none; }
  .progreso i.on::before { background: var(--r); }
  .progreso span { display: block; font-size: 12.5px; color: var(--muy); font-weight: 500; }
  .progreso i.on span { color: #fff; }
  .barra-pasos { left: var(--lat); display: flex; justify-content: flex-end; gap: 10px; padding: 34px var(--gx-e) 26px; }
  .barra-pasos .pildora { min-width: 150px; }

  /* pantallas */
  .pantalla { padding: 14px var(--gx-e) 130px; gap: 14px; transform: translateY(10px); }
  .pantalla.atras { transform: translateY(-10px); }
  .pantalla.act { transform: none; }
  .pantalla[data-tab] { padding-top: 30px; }
  .pantalla > h2 { font-size: 34px; padding: 4px 0 0; }
  .txt { margin: -4px 0 8px; font-size: 15px; max-width: 60ch; }
  .titulo-tab { text-align: left; font-size: 34px; padding: 0; }

  /* inicio: panel */
  #s-inicio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-content: start; align-items: start; }
  #s-inicio .saludo, #s-inicio .nuevo { grid-column: 1 / -1; }
  .saludo { padding: 0 0 6px; }
  .saludo b { font-size: 26px; }
  #nuevo-cab { display: none; }
  .nuevo { min-height: 350px; padding: 38px 40px; isolation: isolate; }
  .nuevo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 70% at 76% 46%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%), radial-gradient(60% 80% at 100% 100%, rgba(90, 112, 250, .35), rgba(90, 112, 250, 0) 70%); }
  .nuevo h1 { font-size: 42px; line-height: 1.02; letter-spacing: -.035em; max-width: 7.4em; margin-top: 22px; }
  .nuevo p { font-size: 15px; max-width: 19em; margin-bottom: 24px; }
  .nuevo .pildora { height: 52px; padding: 0 24px 0 26px; }
  .abanico { position: absolute; top: 0; bottom: 0; right: 28px; width: 300px; perspective: 1400px; }
  .abanico canvas, .abanico .solo-esc { display: block; position: absolute; top: 44px; left: 50%; width: 150px; height: 267px; margin-left: -75px; right: auto; border-radius: 22px;
    box-shadow: 0 0 0 5px #0B0B0F, 0 0 0 6.5px rgba(255, 255, 255, .14), 0 40px 70px -20px rgba(11, 11, 15, .75); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
  #mini-2 { transform: translate(-96px, 30px) rotate(-10deg); }
  #mini-3 { transform: translate(96px, 30px) rotate(10deg); }
  #mini-inicio { transform: translateY(-4px); z-index: 2; }
  .nuevo:hover #mini-2 { transform: translate(-112px, 22px) rotate(-13deg); }
  .nuevo:hover #mini-3 { transform: translate(112px, 22px) rotate(13deg); }
  .nuevo:hover #mini-inicio { transform: translateY(-14px); }
  #s-inicio .tarjeta { padding: 24px; }
  .actividad { grid-template-columns: 1fr 140px; }
  .anillo { width: 140px; height: 140px; }

  /* mis vídeos y voces */
  #filtro { max-width: 520px; }
  .rejilla { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  #voces-lib, #voces, #servicios { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
  .op-tema, .tema-panel { grid-column: 1 / -1; }
  .tema-panel { max-width: 860px; }

  /* pasos */
  .estilos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1040px; }
  .estilo b { font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ref-op:not(.con-ref) b { white-space: normal; }
  .ref-c { max-width: 1040px; }
  .pildoras.dos { max-width: 380px; }
  .panel > .pildora.ancha { width: auto; justify-self: start; padding: 0 28px; }
  #guiones, #mi-guion { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; }
  #guiones > :not(.guion), #mi-guion > :not(.guion) { grid-column: 1 / -1; }
  #tab-mio .campo { max-width: 760px; }
  .subir { max-width: 900px; padding: 44px 16px; }
  .nuestros { max-width: 900px; }
  .miniaturas { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-width: 900px; }

  /* crear: la vista grande a la izquierda y el resumen a la derecha */
  #s-crear { display: grid; grid-template-columns: var(--vp) minmax(0, 520px); align-content: start; column-gap: 28px; }
  #s-crear > * { grid-column: 2; }
  #s-crear > .hero { grid-column: 1; grid-row: 1 / span 6; width: 100%; margin: 0; align-self: start; }
  .hero-pct b { font-size: 120px; }
  body[data-p="crear"] .tel-video { display: none; }

  /* resultado: el vídeo se ve a la derecha con sonido */
  #s-resultado { max-width: 660px; }
  #s-resultado .video-c { display: none; }
  .acciones { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .acciones .pildora { height: 54px; font-size: 15.5px; }

  /* vista previa fija a la derecha */
  .tel-video { display: flex; flex-direction: column; justify-content: center; gap: 14px; height: 100svh; padding: 26px clamp(22px, 2.4vw, 36px); background: #101015; box-shadow: -1px 0 0 var(--linea); }
  .tel-video::after { content: "Vista previa"; order: -1; font: var(--et); letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
  .tel-video .tel-pant { width: var(--vp); height: auto; aspect-ratio: 9 / 16; flex: none; border-radius: 24px; box-shadow: 0 0 0 1px var(--linea) inset, 0 40px 90px -40px rgba(0, 0, 0, .9); }
  .vista-et { position: static; text-align: left; color: var(--l); max-width: var(--vp); }
  .tel-video { overflow: clip; }
  .tel-video .tel-pant { z-index: 1; }
  .aura { position: absolute; left: 50%; top: 50%; width: calc(var(--vp) * 1.25); height: calc(var(--vp) * 1.78 * 1.12); translate: -50% -50%; border-radius: 40%; filter: blur(70px); opacity: .5; pointer-events: none;
    background: linear-gradient(180deg, var(--a1, #2a2a40), var(--a2, #1a1a24) 50%, var(--a3, #40202a)); transition: --a1 .8s, --a2 .8s, --a3 .8s; animation: respira 6s ease-in-out infinite; }
  @keyframes respira { 50% { opacity: .66; scale: 1.04; } }

  /* estilos: se inclinan hacia el ratón con un brillo */
  .estilos { perspective: 1200px; }
  .estilo { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0)); transition: box-shadow .2s, transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
  .estilo:hover { --ty: -6px; transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); transition: box-shadow .2s, transform .12s linear; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
  .estilo.sel:hover { box-shadow: 0 0 0 2.5px var(--r), 0 30px 60px -24px rgba(250, 77, 77, .45); }
  .brillo { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%); mix-blend-mode: screen; }
  .estilo:hover .brillo { opacity: 1; }

  /* entrada escalonada al cambiar de pantalla */
  .pantalla.act > *, .pantalla.act .estilos > *, .pantalla.act .lista-c > *, .pantalla.act .rejilla > * { animation: entra .6s cubic-bezier(.2, .8, .2, 1) both; }
  .pantalla.act > :nth-child(2), .pantalla.act .estilos > :nth-child(1), .pantalla.act .lista-c > :nth-child(1), .pantalla.act .rejilla > :nth-child(1) { animation-delay: .05s; }
  .pantalla.act > :nth-child(3), .pantalla.act .estilos > :nth-child(2), .pantalla.act .lista-c > :nth-child(2), .pantalla.act .rejilla > :nth-child(2) { animation-delay: .1s; }
  .pantalla.act > :nth-child(4), .pantalla.act .estilos > :nth-child(3), .pantalla.act .lista-c > :nth-child(3), .pantalla.act .rejilla > :nth-child(3) { animation-delay: .15s; }
  .pantalla.act > :nth-child(n+5), .pantalla.act .lista-c > :nth-child(n+4), .pantalla.act .rejilla > :nth-child(n+4) { animation-delay: .2s; }
  @keyframes entra { from { opacity: 0; translate: 0 18px; } }
  .anillo circle { animation: arco 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes arco { from { stroke-dasharray: 0 999; } }
  .check { animation: late 1.8s cubic-bezier(.2, .8, .2, 1) .3s both; }
  @keyframes late { 0% { scale: .6; opacity: 0; } 30% { scale: 1.08; opacity: 1; } 45%, 100% { scale: 1; } }
}
@property --a1 { syntax: "<color>"; inherits: false; initial-value: #2a2a40; }
@property --a2 { syntax: "<color>"; inherits: false; initial-value: #1a1a24; }
@property --a3 { syntax: "<color>"; inherits: false; initial-value: #40202a; }
@media (prefers-reduced-motion: reduce) { .pantalla.act *, .aura, .anillo circle, .check { animation: none !important; } }
@media (min-width: 961px) and (max-width: 1180px) {
  :root { --lat: 212px; --vp: min(23vw, calc((100svh - 150px) * .5625)); }
  #s-inicio { grid-template-columns: minmax(0, 1fr); }
  .nuevo h1 { font-size: 38px; }
  .estilos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estilo { aspect-ratio: 5 / 4; }
  .estilo canvas { object-fit: cover; object-position: 50% 30%; }
  .ref-op img { object-position: 50% 30%; }
  .ref-fondo { width: 22%; top: 40%; }
  .ref-ico { top: 40%; }
  .estilo::after { inset: 36% 0 0; }
  .abanico { width: 170px; }
  .abanico #mini-2, .abanico #mini-3 { display: none; }
  #mini-inicio { transform: translateY(-4px) rotate(6deg); }
  .nuevo:hover #mini-inicio { transform: translateY(-12px) rotate(4deg); }
}

/* acceso */
.acceso { min-height: 100svh; display: grid; place-items: center; padding: 24px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); }
.acceso form { width: min(400px, 100%); display: grid; gap: 12px; background: var(--c1); border-radius: 34px; padding: 30px 22px 22px; }
.acceso .avatar { margin-bottom: 14px; }
.acceso h1 { font-weight: 600; font-size: 30px; line-height: 1.1; }
.acceso h1 em { font-style: normal; color: var(--r); }
.acceso p { color: var(--tenue); margin: 0 0 10px; font-size: 14px; }
.acceso input { height: 56px; border: 0; border-radius: 999px; background: var(--c2); color: #fff; font-size: 16px; padding: 0 22px; outline: none; }
.acceso input:focus { box-shadow: 0 0 0 2px var(--r) inset; }
.acceso .error { margin: 0 6px; }
