/* Home "Visual" (2-nov-2026).
   Traslada a nuestra home el diseno de la propuesta que paso VisualNACert
   (visualnacert-propuesta-web-visual): hero de video con burbujas, cifras,
   el problema, carrusel de areas con cards sobre degradado con grano,
   "Como funciona" en cinco pasos, banda oscura con video, "Asi se aplica" y
   cierre. Todo cuelga de .vx para no pisar styles.css. */

.vx {
  --vx-ink: #16140F;
  --vx-mut: #5F5E5A;
  --vx-cream: #F6F4F0;
  --vx-cream2: #E9E4D9;
  --vx-line: #E3DED3;
  --vx-or: #FD801D;
  --vx-r: 32px;
  --vx-sh: 0 10px 30px rgba(22, 20, 15, .07);
  color: var(--vx-ink);
  background: #fff;
}
.vx h1, .vx h2, .vx h3 { font-weight: 400; letter-spacing: -.025em; line-height: 1.08; color: var(--vx-ink); margin: 0; }
.vx h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 16px; }
.vx h3 { font-size: 22px; letter-spacing: -.015em; line-height: 1.2; font-weight: 500; }
.vx p { margin: 0; }
.vx img { display: block; max-width: 100%; height: auto; }
.vx a { color: inherit; text-decoration: none; }
.vx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.vx-center { text-align: center; }
.vx-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--vx-mut); max-width: 60ch; margin-top: 16px !important; line-height: 1.5; }
.vx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .02em; color: var(--vx-mut); margin-bottom: 18px; }
.vx-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--vx-or); display: block; }
.vx-eyebrow.on-d { color: #cfcac0; }
.vx-chip { display: inline-block; font-size: 12px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--vx-line); background: rgba(255,255,255,.92); color: var(--vx-ink); margin: 0 0 10px; }
.vx-ar { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vx-lnk { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.vx-lnk .vx-ar, .vx-more .vx-ar { color: var(--vx-or); }
.vx-lnk:hover { text-decoration: underline; }
.vx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: 16px; background: var(--vx-or); color: var(--vx-ink) !important; transition: transform .15s, background .15s; }
.vx-btn:hover { background: #ec7410; transform: translateY(-1px); }
.vx-btn--xl { padding: 18px 38px; font-size: 18px; }
.vx-btns { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 28px; }
.vx-aviso { font-size: 13px; color: var(--vx-mut); margin-top: 22px !important; }
.vx-sec { padding: 96px 0; }
.vx-sec.soft { background: var(--vx-cream); }
.vx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.vx-ctl { display: flex; align-items: center; gap: 24px; }
.vx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Grano y degradados */
.vx-grain { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .32; mix-blend-mode: overlay; border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.vx-gp .vx-grain { filter: invert(1); opacity: .07; mix-blend-mode: multiply; }
/* Todos los fondos en claro; el grano va detras de la card para no velarla */
.vx-gp > :not(.vx-grain) { position: relative; z-index: 3; }
.vx-gp { position: relative; overflow: hidden; border-radius: var(--vx-r); display: grid; place-items: center; isolation: isolate; }
.vx-g1 { background: radial-gradient(90% 70% at 85% 100%, #fff, transparent 60%), linear-gradient(165deg, #F6F4F0, #E9E4D9); }
.vx-g2 { background: radial-gradient(90% 70% at 15% 0%, #fff, transparent 60%), linear-gradient(165deg, #F6F4F0, #E9E4D9); }
.vx-g3 { background: radial-gradient(90% 70% at 10% 100%, #fff, transparent 60%), linear-gradient(165deg, #F6F4F0, #E9E4D9); }
.vx-g4 { background: radial-gradient(90% 70% at 90% 0%, #fff, transparent 60%), linear-gradient(165deg, #F6F4F0, #E9E4D9); }
.vx-fc { width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(8,10,14,.28)); transition: transform .35s; }
.vx-fc-col { display: flex; flex-direction: column; align-items: center; width: 100%; }
@keyframes vx-flo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.vx-fl { width: 100%; animation: vx-flo 7s ease-in-out infinite; }

/* Hero: video a sangre + burbujas de cristal */
.vx-hero { position: relative; overflow: hidden; isolation: isolate; color: #F7F0E4; background: #16140F;
  min-height: min(84vh, 740px); display: flex; flex-direction: column; justify-content: flex-end; border-radius: 0 0 44px 44px; }
.vx-hero__bg { position: absolute; inset: 0; z-index: 0; }
.vx-hero__bg video, .vx-dark__bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-halo { position: absolute; inset: 0; z-index: 1; background: radial-gradient(48% 56% at 74% 24%, rgba(255,174,110,.2), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.vx-nd { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,14,10,.78), rgba(16,14,10,.25) 55%, rgba(16,14,10,0)), linear-gradient(0deg, rgba(16,14,10,.6), transparent 45%), linear-gradient(180deg, rgba(16,14,10,.45), transparent 26%); }
/* En pantallas anchas el texto se alinea con el contenedor de 1200px del
   resto de la home, en vez de quedarse pegado al borde izquierdo. */
.vx-hero { --vx-hero-x: max(40px, calc((100vw - 1200px) / 2 + 20px)); }
.vx-hero__in { position: relative; z-index: 3; padding: 160px 24px 84px var(--vx-hero-x); max-width: calc(var(--vx-hero-x) + 700px); }
.vx-hero h1 { color: #F7F0E4; font-size: clamp(36px, 4.5vw, 62px); letter-spacing: -.035em; }
.vx-hero h1 em { font-style: normal; color: var(--vx-or); }
.vx-tagline { font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.02em; line-height: 1.2; color: #F7F0E4; margin-top: 18px !important; }
.vx-hero .vx-lead { color: rgba(247,240,228,.84); max-width: 46ch; }
.vx-hero .vx-lnk { color: #F7F0E4; }
.vx-hero__aviso { position: absolute; z-index: 3; left: var(--vx-hero-x); bottom: 26px; margin: 0 !important; color: rgba(247,240,228,.6); }
/* Conversacion en columna, igual que en el hero de Asesoria */
.vx-bub-wrap { position: absolute; z-index: 4; right: var(--vx-hero-x); top: 50%; transform: translateY(-54%); width: min(330px, 31vw); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.vx-bub { width: 100%; padding: 14px 18px 15px; border-radius: 22px; font-size: 15px; line-height: 1.38; color: #F7F0E4;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 14px 40px rgba(0,0,0,.18); opacity: 0; }
.vx-bub .bl { display: flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .03em; color: rgba(247,240,228,.68); margin-bottom: 4px; }
.vx-bub svg { width: 15px; height: 15px; fill: none; stroke: #F7F0E4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vx-bub em { display: block; font-style: normal; font-size: 12px; color: rgba(247,240,228,.68); margin-top: 6px; }
.vx-bub.ok { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; }
.vx-bub.ok svg { width: 17px; height: 17px; stroke-width: 2.4; }
.vx-b1 { animation: vx-bubA 15s infinite; }
.vx-b2 { animation: vx-bubB 15s infinite; }
.vx-b3 { animation: vx-bubC 15s infinite; }
@keyframes vx-bubA { 0%, 6% { opacity: 0; transform: translateY(14px); } 12%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes vx-bubB { 0%, 22% { opacity: 0; transform: translateY(14px); } 29%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes vx-bubC { 0%, 48% { opacity: 0; transform: translateY(14px); } 55%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }

/* Cifras */
.vx-band { padding: 56px 0 60px; }
.vx-support { font-size: 18px; color: var(--vx-mut); margin-bottom: 22px !important; }
.vx-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vx-fig { background: #fff; border: 1px solid var(--vx-line); border-radius: 24px; padding: 24px 22px; box-shadow: var(--vx-sh); }
.vx-fig b { display: block; font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.035em; line-height: 1; }
.vx-fig span { display: block; margin-top: 8px; color: var(--vx-mut); font-size: 16px; }

/* Foto */
.vx-photo { position: relative; margin: 0; border-radius: var(--vx-r); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--vx-sh); isolation: isolate; }
.vx-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Carrusel de tiles */
.vx-car { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px; scrollbar-width: thin; }
.vx-car:focus-visible { outline: 2px solid var(--vx-ink); outline-offset: 4px; border-radius: 12px; }
.vx-cbtns { display: flex; gap: 10px; }
.vx-cbtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--vx-line); background: #fff; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--vx-ink); }
.vx-cbtn:hover { background: var(--vx-cream); }
.vx-at { display: flex; flex-direction: column; gap: 18px; flex: 0 0 300px; scroll-snap-align: start; }
.vx-at-g { aspect-ratio: 4 / 5; padding: 9%; transition: box-shadow .25s; }
.vx-at:hover .vx-at-g { box-shadow: 0 18px 40px rgba(22,20,15,.18); }
.vx-at:hover .vx-fc { transform: translateY(-4px); }
.vx-at-b h3 { font-size: 20px; margin-bottom: 4px; }
.vx-at-b p { color: var(--vx-mut); font-size: 16px; }
.vx-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; font-weight: 500; }

/* Rejilla fija de cuatro (Así se aplica): caben todas, sin carrusel */
.vx-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.vx-grid4 .vx-at { flex: none; }
/* Solo el PNG, sin fondo detras (pedido 5-nov, repetido 9-nov). Mismo hueco
   para que los textos de debajo arranquen alineados. */
.vx-at-png { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 4%; }
.vx-at-png .vx-fc { filter: drop-shadow(0 12px 24px rgba(22,20,15,.12)); }
@media (max-width: 1020px) { .vx-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; } }
@media (max-width: 620px) { .vx-grid4 { grid-template-columns: 1fr; } }

/* Pasos (texto e imagen cambian juntos) */
.vx-steps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; margin-top: 12px; }
.vx-step { position: relative; cursor: pointer; padding: 22px 0; border-top: 1px solid var(--vx-line); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font: inherit; color: inherit; }
.vx-step:last-child { border-bottom: 1px solid var(--vx-line); }
.vx-step .n { display: inline-block; margin-right: 14px; font-size: 14px; color: var(--vx-mut); vertical-align: middle; }
.vx-step h3 { display: inline; vertical-align: middle; font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; color: var(--vx-mut); transition: color .3s; }
.vx-step.on h3, .vx-step:hover h3 { color: var(--vx-ink); }
.vx-step p { max-height: 0; overflow: hidden; opacity: 0; color: var(--vx-mut); font-size: 18px; max-width: 42ch; transition: max-height .45s ease, opacity .4s ease, margin .4s ease; }
.vx-step.on p { max-height: 120px; opacity: 1; margin-top: 12px; }
.vx-step:focus-visible { outline: 2px solid var(--vx-ink); outline-offset: 4px; border-radius: 8px; }
.vx-bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; overflow: hidden; display: none; }
.vx-step.on .vx-bar { display: block; }
.vx-bar i { display: block; height: 100%; width: 100%; background: var(--vx-or); transform: scaleX(0); transform-origin: left; }
.vx-steps.run:not(.hold) .vx-step.on .vx-bar i { animation: vx-scbar 6s linear forwards; }
@keyframes vx-scbar { to { transform: scaleX(1); } }
.vx-stage { position: relative; aspect-ratio: 1 / 1; max-width: 600px; width: 100%; margin-left: auto; }
.vx-sl { position: absolute; inset: 0 0 28px; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .55s, transform .55s; pointer-events: none; }
.vx-sl.on { opacity: 1; transform: none; }
.vx-sl .vx-gp { width: 100%; height: 100%; padding: 8%; border-radius: 36px; }
.vx-sl .vx-fc { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.vx-stage .vx-aviso { position: absolute; left: 0; bottom: 0; margin: 0 !important; }

/* Banda oscura con video: control y confianza */
.vx-dark { position: relative; overflow: hidden; isolation: isolate; background: #16140F; color: #fff; }
.vx-dark__bg { position: absolute; inset: 0; z-index: 0; }
.vx-dark__bg video { opacity: .9; transform: scaleX(-1); }
.vx-dark__bg::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,14,10,.86), rgba(16,14,10,.45) 60%, rgba(16,14,10,.6)); }
.vx-dark__bg .vx-halo, .vx-dark__bg .vx-grain { z-index: 2; }
.vx-dark__in { position: relative; z-index: 3; padding-top: 110px; padding-bottom: 110px; }
.vx-dark h2 { color: #fff; }
.vx-dark .vx-lead { color: #cfcac0; }
.vx-modes { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.vx-modes li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 14px 18px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.vx-modes .n { grid-row: span 2; font-size: 13px; color: var(--vx-or); padding-top: 3px; }
.vx-modes b { font-weight: 500; font-size: 17px; color: #fff; }
.vx-modes span { color: #cfcac0; font-size: 15px; }
.vx-modes-foot { margin-top: 18px !important; color: #cfcac0; font-size: 15px; max-width: 52ch; }
.vx-dk-card { position: relative; padding-bottom: 36px; max-width: 520px; width: 100%; margin-left: auto; }
.vx-dk-card .vx-aviso { position: absolute; left: 0; bottom: 0; margin: 0 !important; color: rgba(247,240,228,.6); }
.vx-ctrlx { display: grid; }
.vx-ctrlx img { grid-area: 1 / 1; width: 100%; height: auto; }
.vx-ctrlx .ca { animation: vx-ca 7s infinite; }
.vx-ctrlx .cb { animation: vx-cb 7s infinite; }
@keyframes vx-ca { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vx-cb { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Cierre */
.vx-close { position: relative; overflow: hidden; padding: 104px 0 112px; color: #F7F0E4;
  background: radial-gradient(70% 90% at 50% 125%, rgba(253,128,29,.22), transparent 62%), linear-gradient(165deg, #24221C, #16140F); }
.vx-close .vx-wrap { position: relative; z-index: 3; }
.vx-close h2 { color: #F7F0E4; margin-top: 10px; }
.vx-close p { color: rgba(247,240,228,.78); margin: 0 auto 30px !important; font-size: 19px; max-width: 46ch; }
.vx-mark { width: 86px; height: 86px; margin: 0 auto 10px; display: block; overflow: visible; }
.vx-mark .hx { fill: #F7F0E4; transform-box: fill-box; transform-origin: center; }
.vx-js .vx-mark:not(.play) .hx { opacity: 0; }
.vx-mark .hx.last { fill: var(--vx-or); }
.vx-mark.play .hx { animation: vx-hxin .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) * .16s); }
@keyframes vx-hxin { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 1020px) {
  .vx-split, .vx-steps { grid-template-columns: 1fr; gap: 32px; }
  .vx-figs { grid-template-columns: repeat(2, 1fr); }
  .vx-hero { min-height: 0; border-radius: 0 0 32px 32px; }
  .vx-hero__in { padding: 400px 24px 72px; }
  .vx-bub-wrap { left: 24px; right: 24px; top: 98px; width: auto; max-width: 340px; margin-left: auto; transform: none; }
  .vx-bub { font-size: 13.5px; padding: 11px 14px; }
  .vx-hero__aviso { left: 24px; bottom: 22px; }
  .vx-stage { order: -1; margin: 0 auto; max-width: 520px; }
  .vx-dark__in { padding-top: 72px; padding-bottom: 72px; }
  .vx-dk-card { margin: 0; }
}
@media (max-width: 620px) {
  .vx-sec { padding: 64px 0; }
  .vx-close { padding: 72px 0 80px; }
  .vx-figs { gap: 10px; }
  .vx-fig { padding: 18px 16px; }
  .vx-at { flex-basis: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .vx-fl, .vx-bub, .vx-ctrlx .ca, .vx-ctrlx .cb, .vx-mark .hx, .vx-steps .vx-bar i { animation: none !important; }
  .vx-bub { opacity: 1; }
  .vx-ctrlx .cb { display: none; }
  .vx-sl { transition: none; }
}

/* Como funciona: solo las pantallas, sin el degradado ni el grano detras (9-nov) */
.vx-stage .vx-gp { background: none; }
.vx-stage .vx-gp .vx-grain { display: none; }
.vx-stage .vx-fc { filter: drop-shadow(0 14px 28px rgba(22,20,15,.14)); }
/* Paso 01: la captura de los moviles viene cortada por abajo; se funde para que
   la sombra no dibuje el corte (9-nov) */
.vx-stage .vx-fc-col .vx-fc { -webkit-mask-image: linear-gradient(#000 90%, transparent 100%); mask-image: linear-gradient(#000 90%, transparent 100%); }
/* Enlace a Seguridad y datos en la banda Control y confianza (10-nov-2026) */
.vx-seglnk { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 500; color: #F7F0E4; }
.vx-seglnk:hover { text-decoration: underline; }
.vx-seglnk svg { width: 18px; height: 18px; fill: none; stroke: #FD801D; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
