/* =====================================================================
   "Video" animado del creador (index.html, seccion #demo).
   Un celular 9:16 que muestra en bucle como se arma el asistente en
   /crear. Es HTML/CSS (no un MP4): pesa nada, se ve nitido en cualquier
   pantalla y se pausa solo fuera de la vista (video-creador.js).
   ===================================================================== */
.vc { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 40px; }

/* ---------- Escenario con grilla de neon ---------- */
.vc-escena { position: relative; display: grid; place-items: center; padding: 26px 0; }
.vc-escena::before {
    content: ""; position: absolute; inset: -10% -20%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(62, 240, 166, .22), transparent 70%),
        linear-gradient(rgba(62, 240, 166, .07) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(56, 189, 248, .07) 1px, transparent 1px) 0 0 / 28px 28px;
    -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
            mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.vc-orbita { position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(62, 240, 166, .18); animation: vc-girar 40s linear infinite; z-index: 0; }
.vc-orbita::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 16px var(--acento); }
@keyframes vc-girar { to { transform: rotate(360deg); } }

/* ---------- Telefono ---------- */
.vc-tel {
    position: relative; z-index: 1; width: 100%; max-width: 330px; aspect-ratio: 9 / 19;
    border-radius: 42px; padding: 11px; background: linear-gradient(160deg, #1b2230, #0a0d12 60%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -18px rgba(62, 240, 166, .55);
}
.vc-pantalla {
    position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #070a0f;
    display: flex; flex-direction: column; font-size: 13px;
}
.vc-isla { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 92px; height: 24px; border-radius: 20px; background: #000; z-index: 5; }
/* Esquinas HUD y barrido */
.vc-hud { position: absolute; inset: 10px; pointer-events: none; z-index: 4;
    background:
        linear-gradient(var(--acento), var(--acento)) 0 0 / 14px 2px no-repeat, linear-gradient(var(--acento), var(--acento)) 0 0 / 2px 14px no-repeat,
        linear-gradient(var(--acento), var(--acento)) 100% 0 / 14px 2px no-repeat, linear-gradient(var(--acento), var(--acento)) 100% 0 / 2px 14px no-repeat,
        linear-gradient(var(--acento), var(--acento)) 0 100% / 14px 2px no-repeat, linear-gradient(var(--acento), var(--acento)) 0 100% / 2px 14px no-repeat,
        linear-gradient(var(--acento), var(--acento)) 100% 100% / 14px 2px no-repeat, linear-gradient(var(--acento), var(--acento)) 100% 100% / 2px 14px no-repeat;
    opacity: .55; }
.vc-barrido { position: absolute; left: 0; right: 0; height: 90px; z-index: 3; pointer-events: none;
    background: linear-gradient(transparent, rgba(62, 240, 166, .08), transparent); animation: vc-barrer 5s linear infinite; }
@keyframes vc-barrer { from { top: -90px; } to { top: 100%; } }

/* Barra superior: paso y progreso */
.vc-top { padding: 44px 18px 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-tenue); display: flex; justify-content: space-between; }
.vc-top b { color: var(--acento); font-weight: 600; }
.vc-progreso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0 18px 14px; }
.vc-progreso span { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.vc-progreso span::after { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acento), var(--acento-2)); box-shadow: 0 0 8px var(--acento); }
.vc-progreso span.hecho::after { width: 100%; }
.vc-progreso span.activo::after { animation: vc-llenar var(--vc-dur, 5s) linear forwards; }
@keyframes vc-llenar { to { width: 100%; } }

/* ---------- Escenas ---------- */
.vc-capas { position: relative; flex: 1; }
.vc-capa { position: absolute; inset: 0; padding: 4px 18px 18px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s, transform .45s; pointer-events: none; }
.vc-capa.on { opacity: 1; transform: none; }
.vc-tit { font-family: var(--display); font-size: 19px; line-height: 1.15; color: var(--tinta); margin: 2px 0 4px; }
.vc-sub { color: var(--tinta-tenue); font-size: 12px; margin-bottom: 14px; }

/* 1. Nichos */
.vc-nichos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-nicho { border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 10px; background: rgba(255, 255, 255, .03); color: var(--tinta-suave); font-size: 12.5px; transition: all .3s; }
.vc-nicho i { font-style: normal; font-size: 18px; display: block; margin-bottom: 4px; }
.vc-nicho.sel { border-color: var(--acento); background: var(--acento-tenue); color: var(--tinta); box-shadow: 0 0 22px -6px var(--acento); }

/* 2. Servicios */
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.vc-chip { border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 10px; font-size: 11.5px; color: var(--tinta-suave); transition: all .3s; }
.vc-chip.sel { background: var(--acento); border-color: var(--acento); color: #03140c; font-weight: 600; }
.vc-lista { border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 12px; background: rgba(255, 255, 255, .02); font-family: var(--mono); font-size: 12px; min-height: 92px; }
.vc-linea { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); opacity: 0; transform: translateX(-8px); transition: all .35s; }
.vc-linea.on { opacity: 1; transform: none; }
.vc-linea b { color: var(--acento); font-weight: 600; }
.vc-cursor::after { content: "▍"; color: var(--acento); animation: vc-parpadeo .8s steps(1) infinite; }
@keyframes vc-parpadeo { 50% { opacity: 0; } }

/* 3. Horario */
.vc-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 16px; }
.vc-dia { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid rgba(255, 255, 255, .1); color: var(--tinta-tenue); transition: all .25s; }
.vc-dia.sel { border-color: var(--acento); color: var(--acento); background: var(--acento-tenue); box-shadow: 0 0 14px -5px var(--acento); }
.vc-reloj { border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px; }
.vc-reloj small { font-family: var(--mono); font-size: 10.5px; color: var(--tinta-tenue); letter-spacing: .08em; }
.vc-franja { position: relative; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); margin: 10px 0 8px; overflow: hidden; }
.vc-franja span { position: absolute; left: 12%; top: 0; bottom: 0; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--acento), var(--acento-2)); box-shadow: 0 0 12px var(--acento); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.vc-capa.on .vc-franja span.on { width: 64%; }
.vc-horas { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--tinta-suave); }

/* 4. Chat de WhatsApp */
.vc-capa.chat { padding: 0; display: flex; flex-direction: column; }
.vc-wa-cab { display: flex; align-items: center; gap: 9px; padding: 8px 14px; background: #0f1a17; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.vc-wa-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--acento), var(--acento-2)); display: grid; place-items: center; font-size: 15px; }
.vc-wa-cab b { display: block; font-size: 12.5px; color: var(--tinta); }
.vc-wa-cab small { font-size: 10.5px; color: var(--acento); }
.vc-wa { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 14px 14px; }
.vc-burbuja { max-width: 82%; padding: 8px 10px; border-radius: 12px; font-size: 12px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: all .35s; }
.vc-burbuja.on { opacity: 1; transform: none; }
.vc-burbuja.cli { align-self: flex-end; background: #005c4b; color: #e9edef; border-bottom-right-radius: 3px; }
.vc-burbuja.bot { align-self: flex-start; background: #1f2c33; color: #e9edef; border-bottom-left-radius: 3px; }
.vc-escribiendo { display: inline-flex; gap: 4px; }
.vc-escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: vc-punto 1s infinite; }
.vc-escribiendo i:nth-child(2) { animation-delay: .15s; } .vc-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes vc-punto { 50% { transform: translateY(-4px); opacity: .5; } }
.vc-wa-bots { display: flex; gap: 6px; margin-top: 7px; }
.vc-wa-bots span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #53bdeb; font-size: 11px; }

/* Final: listo */
.vc-capa.fin { display: grid; place-content: center; text-align: center; gap: 10px; }
.vc-check { width: 86px; height: 86px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; color: #03140c;
    background: radial-gradient(circle, var(--acento), #1fc98a); box-shadow: 0 0 0 10px var(--acento-tenue), 0 0 50px var(--acento); }
.vc-capa.fin.on .vc-check { animation: vc-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes vc-pop { from { transform: scale(.3); opacity: 0; } }
.vc-fin-btn { margin-top: 8px; padding: 11px 16px; border-radius: 999px; font-family: var(--display); font-size: 12.5px; color: #03140c;
    background: linear-gradient(90deg, var(--acento), var(--acento-2)); box-shadow: 0 0 26px -4px var(--acento); }

/* Dedo que toca */
.vc-dedo { position: absolute; z-index: 6; width: 34px; height: 34px; border-radius: 50%; pointer-events: none; opacity: 0;
    border: 2px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .18); box-shadow: 0 0 18px rgba(62, 240, 166, .6);
    transition: left .55s cubic-bezier(.3, .8, .3, 1), top .55s cubic-bezier(.3, .8, .3, 1), opacity .3s; translate: -50% -50%; }
.vc-dedo.on { opacity: 1; }
.vc-dedo.toque { animation: vc-toque .35s; }
@keyframes vc-toque { 50% { transform: scale(.7); background: rgba(62, 240, 166, .5); } }

/* ---------- Texto de la derecha ---------- */
.vc-texto h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.vc-texto > p { color: var(--tinta-suave); font-size: 1.04rem; margin-bottom: 22px; }
.vc-pasos { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.vc-pasos button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; cursor: pointer;
    padding: 12px 16px; border-radius: 14px; border: 1px solid var(--borde); background: transparent; color: var(--tinta-suave); transition: all .3s; }
.vc-pasos button:hover { border-color: var(--borde-fuerte); color: var(--tinta); }
.vc-pasos .n { font-family: var(--mono); font-size: .78rem; color: var(--tinta-tenue); letter-spacing: .1em; }
.vc-pasos b { display: block; color: inherit; font-weight: 600; }
.vc-pasos small { color: var(--tinta-tenue); font-size: .84rem; }
.vc-pasos button.activo { border-color: var(--acento); color: var(--tinta); background: var(--acento-tenue); box-shadow: 0 0 30px -12px var(--acento); }
.vc-pasos button.activo .n { color: var(--acento); }
.vc-cta { display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
    color: #03140c; background: linear-gradient(90deg, var(--acento), var(--acento-2)); position: relative; text-decoration: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 14px 40px -12px var(--acento); transition: transform .2s, box-shadow .2s; }
.vc-cta::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid var(--acento); opacity: .6; animation: vc-pulso 2.2s infinite; }
@keyframes vc-pulso { from { transform: scale(.96); opacity: .7; } to { transform: scale(1.12); opacity: 0; } }
.vc-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 18px 50px -10px var(--acento); text-decoration: none; }
.vc-garantias { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--tinta-tenue); }
.vc-garantias span::before { content: "✓ "; color: var(--acento); }
.vc-alt { margin-top: 14px; font-size: .9rem; color: var(--tinta-tenue); }

@media (max-width: 860px) {
    .vc { grid-template-columns: 1fr; gap: 26px; }
    .vc-tel { max-width: 290px; }
    .vc-pasos { display: none; }
    .vc-texto { text-align: center; }
    .vc-garantias { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .vc-orbita, .vc-barrido, .vc-cta::after { animation: none; }
}
.vc-escribiendo[hidden], [data-vc="resp"][hidden] { display: none; }
