/* =========================================================
   VISIBILIDAD EN IA — CSS del tema hijo (Divi 5)
   visibilidadenia.es
   ---------------------------------------------------------
   Pegar en: wp-content/themes/<tema-hijo>/css/custom.css
   (o Divi > Opciones del tema > General > CSS personalizado)

   Todas las reglas van bajo la clase .vi, que el JSON pone
   en cada sección. No afecta a otras páginas.

   ÍNDICE
   0. Fuentes
   1. Variables (enlazadas con las variables globales de Divi)
   2. Base y resets de Divi
   3. Utilidades de marca (gradient-text, eyebrow, botones)
   4. Fondo aurora
   5. Hero + pantalla de chat
   6. Marquesina
   7. Historia fijada (sticky)
   8. Frase que se ilumina
   9. Qué recibes (tarjetas)
   10. Vídeo que se expande
   11. Cómo funciona
   12. Dos palancas + Por qué Digitus
   13. FAQ (acordeón)
   14. Formulario
   15. Pie
   16. Menú flotante (Theme Builder)
   17. Movimiento reducido
   ========================================================= */

/* ---------- 0. FUENTES ---------- */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* Subir Salty-Ages.ttf con el cargador de fuentes de Divi (queda en /wp-content/uploads/et-fonts/) */
@font-face {
  font-family: "Salty Ages";
  src: url("/wp-content/uploads/et-fonts/Salty-Ages.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. VARIABLES ---------- */
:root {
  --vi-violeta: var(--gcid-vi-violeta, #A373FF);
  --vi-magenta: var(--gcid-vi-magenta, #E81F76);
  --vi-coral:   var(--gcid-vi-coral,   #FF6A6A);
  --vi-tinta:   var(--gcid-vi-tinta,   #15121C);
  --vi-texto:   var(--gcid-vi-texto,   #4A4556);
  --vi-gris:    var(--gcid-vi-gris,    #8A8595);
  --vi-linea:   var(--gcid-vi-linea,   #ECE9F1);
  --vi-fondo:   var(--gcid-vi-fondo,   #FAF8FC);

  --vi-h1: var(--gvid-vi-h1, clamp(44px, 7.4vw, 108px));
  --vi-h2: var(--gvid-vi-h2, clamp(38px, 5vw, 72px));
  --vi-h3: var(--gvid-vi-h3, clamp(22px, 2vw, 26px));

  --vi-grad: linear-gradient(100deg, #A373FF 0%, #E81F76 52%, #FF6A6A 100%);
  --vi-grad-soft: linear-gradient(135deg, rgba(163,115,255,.14), rgba(232,31,118,.10) 50%, rgba(255,106,106,.14));
  --vi-shadow: 0 1px 2px rgba(21,18,28,.04), 0 12px 40px -12px rgba(76,40,120,.18);
  --vi-shadow-lg: 0 2px 4px rgba(21,18,28,.04), 0 40px 90px -30px rgba(120,40,110,.35);
  --vi-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --vi-hl: "Salty Ages", Georgia, serif;
  --vi-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --vi-ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- 2. BASE Y RESETS DE DIVI ---------- */
/* Evita scroll horizontal SIN romper position:sticky (overflow:hidden lo rompe) */
html, body, #page-container, #et-main-area, #main-content, .et_builder_inner_content {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
.vi, .vi p, .vi li, .vi span, .vi input, .vi select, .vi textarea, .vi button {
  font-family: var(--vi-body);
}
.vi { color: var(--vi-tinta); -webkit-font-smoothing: antialiased; }
.vi .et_pb_module { margin-bottom: 0; }
.vi .et_pb_column { row-gap: 0; }
.vi h1, .vi h2, .vi h3 { padding-bottom: 0; color: var(--vi-tinta); font-family: var(--vi-body); }
.vi .et_pb_text_inner > p:last-child { padding-bottom: 0; }
.vi .et_pb_text p { padding-bottom: 0; }

.vi .vi-h1 { font-size: var(--vi-h1); font-weight: 600; letter-spacing: -.04em; line-height: .98; margin: 26px 0 28px; }
.vi .vi-h2 { font-size: var(--vi-h2); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.vi .vi-h3 { font-size: var(--vi-h3); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.vi .vi-p  { font-size: 19px; line-height: 1.6; color: var(--vi-texto); margin-top: 20px; }
.vi .vi-p-sm { font-size: 16px; line-height: 1.6; color: var(--vi-texto); }
.vi .vi-center, .vi .vi-center p, .vi .vi-center h1 { text-align: center; }
.vi .vi-sec-head { margin-bottom: 60px; }
.vi .vi-head-p .vi-p { margin-top: 0; max-width: 380px; margin-left: auto; }
@media (max-width: 980px) { .vi .vi-head-p .vi-p { margin-left: 0; } }

/* reveals (JS añade .in) */
.vi .vi-rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--vi-ease), transform 1s var(--vi-ease); }
.vi .vi-rv.in { opacity: 1; transform: none; }
.et-fb .vi .vi-rv { opacity: 1; transform: none; } /* visible dentro del constructor */

/* ---------- 3. UTILIDADES DE MARCA ---------- */
.vi .gradient-text {
  background: linear-gradient(90deg, var(--vi-magenta), var(--vi-violeta), var(--vi-coral), var(--vi-magenta));
  background-size: 300% 300%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: viGradientMove 8s ease infinite;
  font-family: var(--vi-hl) !important; font-weight: normal !important; letter-spacing: 0; padding-right: .04em;
}
@keyframes viGradientMove { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

.vi .vi-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--vi-mono) !important; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--vi-texto); }
.vi .vi-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vi-coral); box-shadow: 0 0 0 4px rgba(255,106,106,.18); flex: none; }
.vi .vi-center .vi-eyebrow { justify-content: center; }
.vi .vi-k { display: block; font-family: var(--vi-mono) !important; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--vi-gris); margin-bottom: 18px; }

/* botones
   En Divi 5 la clase del módulo va en el propio <a class="et_pb_button">,
   por eso se apunta a ".et_pb_button.vi-btn" (y a la variante anidada por compatibilidad). */
body #page-container .vi .et_pb_button.vi-btn, body #page-container .vi .vi-btn .et_pb_button {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 28px !important; min-height: 54px; line-height: 1 !important;
  font-family: var(--vi-body) !important; font-size: 16px !important; font-weight: 600 !important;
  border-radius: 999px !important; white-space: nowrap;
  transition: transform .35s var(--vi-ease), box-shadow .35s var(--vi-ease), background-position .6s var(--vi-ease) !important;
}
body #page-container .vi .et_pb_button.vi-btn::after, body #page-container .vi .vi-btn .et_pb_button::after { display: none !important; } /* sin flecha de Divi */
body #page-container .vi .et_pb_button.vi-btn:hover, body #page-container .vi .vi-btn .et_pb_button:hover { padding: 18px 28px !important; transform: translateY(-2px); }
body #page-container .vi .et_pb_button.vi-btn-primary, body #page-container .vi .vi-btn-primary .et_pb_button {
  color: #fff !important; border: 0 !important;
  background: linear-gradient(100deg, #A373FF 0%, #E81F76 52%, #FF6A6A 100%) !important; background-size: 160% 100% !important;
  box-shadow: 0 10px 30px -10px rgba(232,31,118,.6);
}
body #page-container .vi .et_pb_button.vi-btn-primary:hover, body #page-container .vi .vi-btn-primary .et_pb_button:hover { background-position: 100% 0 !important; box-shadow: 0 18px 40px -12px rgba(232,31,118,.7); }
body #page-container .vi .et_pb_button.vi-btn-ghost, body #page-container .vi .vi-btn-ghost .et_pb_button {
  color: var(--vi-tinta) !important; background: #fff !important; border: 1.5px solid var(--vi-linea) !important;
}
body #page-container .vi .et_pb_button.vi-btn-ghost:hover, body #page-container .vi .vi-btn-ghost .et_pb_button:hover { border-color: var(--vi-tinta) !important; }
@media (max-width: 520px) {
  .vi-hero .et_pb_button.vi-btn, .vi-hero .vi-btn .et_pb_button { white-space: normal; text-align: center; }
}

/* ---------- 4. FONDO AURORA ---------- */
.vi-aurora { position: relative !important; overflow: hidden !important; isolation: isolate; background: #fff; }
.vi-aurora::before, .vi-aurora::after { content: ""; position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.vi-aurora::before {
  inset: -40% -30% 10% -30%;
  background:
    radial-gradient(circle at 22% 38%, rgba(232,31,118,.34), transparent 26%),
    radial-gradient(circle at 76% 34%, rgba(163,115,255,.42), transparent 30%),
    radial-gradient(circle at 52% 70%, rgba(255,106,106,.32), transparent 26%);
  filter: blur(80px); animation: viAurora 18s ease-in-out infinite alternate;
}
.vi-aurora::after {
  inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
}
.vi-aurora-bottom::before { inset: -10% -30% -40% -30%; }
.vi-aurora-bottom::after { inset: 0 0 auto 0; height: 40%; background: linear-gradient(to top, rgba(255,255,255,0), #fff 90%); }
.vi-aurora > .et_pb_row { position: relative; z-index: 2; }
@keyframes viAurora {
  0%   { transform: translate3d(-12%,-8%,0) rotate(0) scale(1); }
  50%  { transform: translate3d(12%,8%,0) rotate(-6deg) scale(1.2); }
  100% { transform: translate3d(-14%,6%,0) rotate(-8deg) scale(1.25); }
}

/* ---------- 5. HERO ---------- */
.vi-hero { min-height: 100svh; }
.vi-hero .vi-h1 .gradient-text { font-size: 1.08em; }
.vi-hero .vi-line { display: block; overflow: hidden; padding-bottom: .06em; }
.vi-hero .vi-line > span { display: inline-block; transform: translateY(105%); animation: viLineUp 1.2s var(--vi-ease) forwards; }
.vi-hero .vi-line:nth-child(2) > span { animation-delay: .12s; }
.vi-hero .vi-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes viLineUp { to { transform: none; } }
.vi-hero .vi-lead { font-size: clamp(18px,1.6vw,21px); line-height: 1.6; color: var(--vi-texto); max-width: 680px; margin: 0 auto 38px !important; }
.vi-hero .vi-hero-lead, .vi-hero .vi-ctas, .vi-hero .vi-hero-micro { opacity: 0; animation: viFadeIn 1s var(--vi-ease) forwards; }
.vi-hero .vi-hero-lead { animation-delay: .6s; }
.vi-hero .vi-ctas { animation-delay: .75s; }
.vi-hero .vi-hero-micro { animation-delay: .9s; }
@keyframes viFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.vi-hero .vi-micro { margin-top: 18px; font-size: 14px; color: var(--vi-gris); }
.vi-hero .vi-micro span + span::before { content: "·"; margin: 0 10px; color: var(--vi-coral); }

.vi .vi-stage { perspective: 1600px; margin-top: 80px; padding-bottom: 40px; }
.vi .vi-device {
  --p: 0; width: min(1080px, 100%); margin: 0 auto; border-radius: 34px; background: #fff; overflow: hidden;
  box-shadow: var(--vi-shadow-lg), 0 0 0 1px rgba(21,18,28,.06);
  transform: rotateX(calc(28deg - var(--p)*28deg)) scale(calc(.86 + var(--p)*.14)) translateY(calc(60px - var(--p)*60px));
  transform-origin: 50% 0; will-change: transform;
}
.vi .vi-dtop { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--vi-linea); background: var(--vi-fondo); }
.vi .vi-dtop i { width: 11px; height: 11px; border-radius: 50%; background: #e4e0ea; }
.vi .vi-url { margin-left: 14px; font: 13px var(--vi-mono); color: var(--vi-gris); background: #fff; border: 1px solid var(--vi-linea); padding: 6px 14px; border-radius: 999px; }
.vi .vi-dbody { display: grid; grid-template-columns: 230px 1fr; min-height: 430px; }
.vi .vi-dside { border-right: 1px solid var(--vi-linea); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.vi .vi-pill { height: 12px; border-radius: 6px; background: #f1eef5; }
.vi .vi-pill.w6 { width: 60%; } .vi .vi-pill.w8 { width: 80%; } .vi .vi-pill.w4 { width: 45%; }
.vi .vi-new { height: 38px; border-radius: 12px; border: 1px solid var(--vi-linea); margin-bottom: 10px; }
.vi .vi-chat { padding: 34px clamp(18px,4vw,56px); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 760px) { .vi .vi-dbody { grid-template-columns: 1fr; } .vi .vi-dside { display: none; } }

.vi .vi-msg { max-width: 88%; font-size: 16px; line-height: 1.55; color: var(--vi-tinta); }
.vi .vi-user { align-self: flex-end; background: #f3f0f7; padding: 14px 18px; border-radius: 20px 20px 6px 20px; min-height: 1.55em; }
.vi .vi-ai { align-self: flex-start; display: flex; gap: 14px; }
.vi #vi-heroAns { opacity: 0; transition: opacity .8s; }
.vi .vi-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--vi-grad); display: grid; place-items: center; color: #fff; font: 600 13px var(--vi-mono); }
.vi .vi-ai ol { margin: 8px 0 0; padding-left: 20px; list-style: decimal; }
.vi .vi-ai li { margin: 6px 0; }
.vi .vi-ai p { margin-top: 12px; }
.vi .vi-caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; vertical-align: -3px; margin-left: 2px; background: var(--vi-tinta); animation: viBlink 1s steps(1) infinite; }
@keyframes viBlink { 50% { opacity: 0; } }
.vi .vi-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--vi-mono); padding: 4px 10px; border-radius: 999px; }
.vi .vi-no { background: rgba(255,106,106,.12); color: #d84545; }
.vi .vi-yes { background: rgba(163,115,255,.14); color: #7a4fe0; }
.vi .vi-you { font-weight: 600; background: var(--vi-grad-soft); padding: 1px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(232,31,118,.22); }

/* ---------- 6. MARQUESINA ---------- */
.vi-marquee-sec .et_pb_row { width: 100% !important; max-width: none !important; }
.vi .vi-marquee { border-block: 1px solid var(--vi-linea); padding: 26px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.vi .vi-track { display: flex; gap: 64px; width: max-content; animation: viScrollX 38s linear infinite; }
.vi .vi-track span { font-family: var(--vi-hl) !important; font-size: clamp(28px,3.4vw,46px); line-height: 1.2; color: #d9d4e2; white-space: nowrap; display: flex; align-items: center; gap: 64px; }
.vi .vi-track span::after { content: "✦"; font-size: .5em; color: var(--vi-coral); font-family: var(--vi-body); }
@keyframes viScrollX { to { transform: translateX(-50%); } }

/* ---------- 7. HISTORIA FIJADA ---------- */
.vi-story { height: 420vh; overflow: visible !important; }
.vi-story > .vi-story-row { position: sticky !important; top: 0; min-height: 100vh; align-items: center !important; }
.vi .vi-steps { position: relative; min-height: 380px; justify-content: center; }
.vi .vi-step { position: absolute !important; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + 30px)); opacity: 0; transition: opacity .7s var(--vi-ease), transform .7s var(--vi-ease); pointer-events: none; }
.vi .vi-step.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.vi .vi-num { font: 500 13px var(--vi-mono) !important; color: var(--vi-coral); letter-spacing: .1em; }
.vi .vi-story-h2 { font-size: clamp(34px,4.4vw,62px) !important; margin: 14px 0 0; }
.vi .vi-step .vi-p { max-width: 470px; }
.vi .vi-steps > .et_pb_code { position: absolute !important; left: 0; bottom: 0; }
.vi .vi-sbar { position: relative; width: 220px; height: 3px; border-radius: 3px; background: var(--vi-linea); overflow: hidden; }
.vi .vi-sbar i { position: absolute; inset: 0; background: var(--vi-grad); transform-origin: 0 50%; transform: scaleX(0); }
.vi .vi-panel { position: relative; border-radius: 34px; background: #fff; box-shadow: var(--vi-shadow-lg), 0 0 0 1px rgba(21,18,28,.06); padding: 30px; min-height: 520px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; transition: box-shadow .8s; }
.vi .vi-panel.win { box-shadow: 0 0 0 2px transparent, 0 40px 100px -30px rgba(232,31,118,.55); }
.vi .vi-phdr { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--vi-mono); color: var(--vi-gris); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 14px; border-bottom: 1px solid var(--vi-linea); }
.vi .vi-phdr b { color: var(--vi-tinta); font-weight: 500; }
.vi .vi-ans { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--vi-ease), transform .6s var(--vi-ease); }
.vi .vi-ans.on { opacity: 1; transform: none; }
.vi .vi-ans li { opacity: 0; transform: translateX(-8px); transition: all .5s var(--vi-ease); }
.vi .vi-ans.on li { opacity: 1; transform: none; }
.vi .vi-ans.on li:nth-child(2) { transition-delay: .12s; } .vi .vi-ans.on li:nth-child(3) { transition-delay: .24s; }
.vi .vi-verdict { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--vi-fondo); font-size: 15px; opacity: 0; transition: opacity .6s; }
.vi .vi-verdict.on { opacity: 1; }
.vi .vi-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--vi-coral); }
.vi .vi-alt { display: none; }
.vi .vi-panel.after .vi-alt { display: block; }
.vi .vi-panel.after .vi-orig { display: none; }
@media (max-width: 980px) {
  .vi-story { height: auto; padding: 100px 0 !important; }
  .vi-story > .vi-story-row { position: relative !important; min-height: 0; }
  .vi .vi-steps { min-height: 0; }
  .vi .vi-step { position: relative !important; opacity: 1; transform: none; top: auto; margin-bottom: 40px; }
  .vi .vi-step.on { transform: none; }
  .vi .vi-sbar { display: none; }
}
.et-fb .vi-story { height: auto; } .et-fb .vi .vi-step { position: relative !important; opacity: 1; transform: none; top: auto; }

/* ---------- 8. FRASE QUE SE ILUMINA ---------- */
.vi .vi-big { font-size: clamp(34px,5.4vw,80px) !important; font-weight: 600; letter-spacing: -.04em; line-height: 1.08 !important; color: var(--vi-tinta); }
.vi .vi-big .w { color: #e6e2ec; transition: color .4s; }
.vi .vi-big .w.lit { color: var(--vi-tinta); }
.vi .vi-big .gradient-text.w { color: #e6e2ec; }
.vi .vi-big .gradient-text.w.lit { color: transparent; }

/* ---------- 9. QUÉ RECIBES ---------- */
.vi .vi-bento { margin-bottom: 18px; }
.vi .vi-card { transition: transform .5s var(--vi-ease), box-shadow .5s var(--vi-ease); }
.vi .vi-card:hover { transform: translateY(-4px); box-shadow: var(--vi-shadow); }
.vi .vi-ring { position: relative; width: 210px; height: 210px; margin: 10px auto 22px; }
.vi .vi-ring svg { transform: rotate(-90deg); }
.vi #vi-ringArc { transition: stroke-dashoffset 1.8s var(--vi-ease); }
.vi .vi-val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.vi .vi-val b { font-family: var(--vi-hl); font-weight: normal; font-size: 64px; line-height: 1; }
.vi .vi-val small { display: block; font: 500 12px var(--vi-mono); color: var(--vi-gris); margin-top: 4px; }
.vi .vi-bars { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.vi .vi-brow { display: grid; grid-template-columns: 130px 1fr 44px; gap: 14px; align-items: center; font-size: 15px; }
.vi .vi-tr { height: 14px; border-radius: 7px; background: #f3f0f7; overflow: hidden; }
.vi .vi-fl { height: 100%; border-radius: 7px; background: #d6d0df; width: 0; transition: width 1.4s var(--vi-ease); }
.vi .vi-brow.me { font-weight: 600; } .vi .vi-brow.me .vi-fl { background: var(--vi-grad); }
.vi .vi-n { font: 500 14px var(--vi-mono); text-align: right; }
.vi .vi-src { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
.vi .vi-src span { font-size: 14px; padding: 9px 14px; border-radius: 12px; background: var(--vi-fondo); box-shadow: inset 0 0 0 1px var(--vi-linea); }
.vi .vi-src span.miss { background: rgba(255,106,106,.08); box-shadow: inset 0 0 0 1px rgba(255,106,106,.35); color: #c63d3d; }
.vi .vi-dark h3, .vi .vi-dark li { color: #fff; }
.vi .vi-dark .vi-k { color: rgba(255,255,255,.62); }
.vi .vi-acts { list-style: none !important; padding: 0 !important; margin: 8px 0 0; counter-reset: a; display: flex; flex-direction: column; gap: 12px; }
.vi .vi-acts li { counter-increment: a; display: flex; gap: 14px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.9); }
.vi .vi-acts li::before { content: counter(a); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--vi-grad); display: grid; place-items: center; font: 600 12px var(--vi-mono); color: #fff; }
.vi .vi-note { margin-top: 10px; font: 500 12px var(--vi-mono); color: var(--vi-gris); }

/* ---------- 10. VÍDEO QUE SE EXPANDE ---------- */
.vi-film { height: 240vh; overflow: visible !important; }
.vi-film > .vi-film-row { position: sticky !important; top: 0; height: 100vh; width: 100% !important; max-width: none !important; display: grid !important; place-items: center; overflow: hidden; }
.vi-film .et_pb_column { width: 100% !important; height: 100vh; display: grid !important; place-items: center; }
.vi-film .et_pb_code, .vi-film .et_pb_code_inner { width: 100%; height: 100%; display: grid; place-items: center; }
.vi .vi-frame { --p: 0; position: relative; width: calc(62vw + var(--p)*38vw); height: calc(56vh + var(--p)*44vh); border-radius: calc(34px - var(--p)*34px); overflow: hidden; background: #0d0a14; will-change: width, height; }
.vi .vi-frame canvas, .vi .vi-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vi .vi-over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(13,10,20,calc(var(--o,0)*.82)) 0%, rgba(13,10,20,calc(var(--o,0)*.55)) 60%, rgba(13,10,20,calc(var(--o,0)*.25)) 100%); }
.vi .vi-over h2 { color: #fff; font-size: clamp(38px,6vw,96px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; opacity: var(--o,0); transform: translateY(calc((1 - var(--o,0))*30px)); }
.vi .vi-over .vi-hl { display: block; font-family: var(--vi-hl); font-weight: normal; letter-spacing: 0; font-size: 1.1em; background: linear-gradient(90deg,#fff,#ffd0e2,#fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vi .vi-over p { margin-top: 18px; font-size: 19px; color: rgba(255,255,255,.8); opacity: var(--o,0); }
.vi .vi-cap { position: absolute; left: 24px; bottom: 22px; font: 500 11px var(--vi-mono); color: rgba(255,255,255,.45); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 700px) { .vi .vi-frame { width: calc(88vw + var(--p)*12vw); height: calc(64vh + var(--p)*36vh); } }
.et-fb .vi-film { height: auto; } .et-fb .vi-film > .vi-film-row { position: relative !important; }

/* ---------- 11. CÓMO FUNCIONA ---------- */
.vi .vi-how { position: relative; counter-reset: paso; }
.vi .vi-how::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--vi-linea); }
.vi .vi-how::after { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--vi-grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--vi-ease); }
.vi .vi-how.in::after { transform: scaleX(1); }
.vi .vi-howstep { counter-increment: paso; position: relative; z-index: 1; text-align: left; }
.vi .vi-howstep .et_pb_blurb_content { max-width: none; text-align: left; }
.vi .vi-howstep .et_pb_blurb_content::before { content: counter(paso); display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--vi-linea), var(--vi-shadow); font-family: var(--vi-hl); font-size: 30px; margin-bottom: 28px; }
.vi .vi-howstep .et_pb_module_header { padding-bottom: 10px; }
@media (max-width: 980px) { .vi .vi-how::before, .vi .vi-how::after { display: none; } }

/* ---------- 12. DOS PALANCAS + POR QUÉ DIGITUS ---------- */
.vi .vi-lever { min-height: 380px; position: relative; overflow: hidden; }
.vi .vi-lever-h { font-size: clamp(30px,3.4vw,46px) !important; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 14px; }
.vi .vi-lever .vi-p-sm { font-size: 17px; max-width: 420px; }
.vi .vi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px !important; }
.vi .vi-chips span { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(21,18,28,.08); }
.vi .vi-on-grad, .vi .vi-on-grad h3, .vi .vi-on-grad p, .vi .vi-on-grad .vi-k { color: #fff !important; }
.vi .vi-on-grad .vi-k { opacity: .75; }
.vi .vi-on-grad .vi-chips span { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.vi .vi-lever-ads::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); animation: viFloat 9s ease-in-out infinite; pointer-events: none; }
@keyframes viFloat { 50% { transform: translate(-30px,30px); } }

.vi-why .vi-h2 { margin-top: 20px; }
.vi .vi-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--vi-linea); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--vi-linea); }
.vi .vi-fact { background: #fff; padding: 28px; }
.vi .vi-fact b { display: block; font-family: var(--vi-hl); font-weight: normal; font-size: clamp(36px,4vw,54px); line-height: 1; margin-bottom: 10px; color: var(--vi-tinta); }
.vi .vi-fact span { font-size: 15px; color: var(--vi-texto); }

/* ---------- 13. FAQ (acordeón nativo) ---------- */
.vi .vi-faq .et_pb_toggle { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--vi-linea) !important; padding: 0 !important; margin: 0 !important; }
.vi .vi-faq .et_pb_toggle_title { padding: 28px 60px 28px 0 !important; font-size: clamp(19px,2vw,24px) !important; font-weight: 500 !important; letter-spacing: -.015em; color: var(--vi-tinta) !important; line-height: 1.3 !important; }
.vi .vi-faq .et_pb_toggle_title::before { content: "" !important; right: 0 !important; width: 38px; height: 38px; margin-top: -19px !important; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--vi-linea);
  background: linear-gradient(var(--vi-tinta),var(--vi-tinta)) center/14px 1.5px no-repeat, linear-gradient(var(--vi-tinta),var(--vi-tinta)) center/1.5px 14px no-repeat; transition: all .3s; }
.vi .vi-faq .et_pb_toggle_open .et_pb_toggle_title::before { background: var(--vi-coral) linear-gradient(#fff,#fff) center/14px 1.5px no-repeat; box-shadow: none; }
.vi .vi-faq .et_pb_toggle_content { padding: 0 60px 30px 0 !important; font-size: 17px; color: var(--vi-texto); line-height: 1.6; }

/* ---------- 14. FORMULARIO ---------- */
.vi .vi-form { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--vi-shadow-lg); }
.vi .vi-form .et_pb_contact_field label, .vi .vi-form .et_pb_contact_form_label { font: 500 12px var(--vi-mono) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--vi-gris); }
.vi .vi-form input.input, .vi .vi-form select, .vi .vi-form textarea { font: 16px var(--vi-body) !important; color: var(--vi-tinta) !important; padding: 15px 16px !important; border-radius: 14px !important; border: 1px solid var(--vi-linea) !important; background: #fff !important; transition: border-color .2s, box-shadow .2s; }
.vi .vi-form input.input:focus, .vi .vi-form select:focus, .vi .vi-form textarea:focus { border-color: var(--vi-coral) !important; box-shadow: 0 0 0 4px rgba(255,106,106,.16); outline: none; }
.vi .vi-form .et_contact_bottom_container { width: 100%; float: none; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.vi .vi-form .et_pb_contact_submit { width: 100%; padding: 18px 28px !important; min-height: 58px; line-height: 1 !important; border: 0 !important; border-radius: 999px !important; box-shadow: 0 10px 30px -10px rgba(232,31,118,.6); transition: transform .35s var(--vi-ease) !important; }
.vi .vi-form .et_pb_contact_submit:hover { transform: translateY(-2px); }
.vi .vi-form .et_pb_contact_submit::after { display: none !important; }
.vi .vi-form .et_pb_contact_field_checkbox label { font: 400 13px/1.45 var(--vi-body) !important; text-transform: none; letter-spacing: 0; color: var(--vi-texto); }

/* ---------- 15. PIE ---------- */
.vi-foot { border-top: 1px solid var(--vi-linea); }
.vi .vi-footp { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--vi-gris); }
.vi .vi-footp a { color: inherit; text-decoration: none; } .vi .vi-footp a:hover { color: var(--vi-tinta); }
.vi .vi-legal { display: flex; gap: 22px; }

/* ---------- 16. MENÚ FLOTANTE (Theme Builder) ----------
   Se importa con visibilidadenia-cabecera-divi5.json en la plantilla de Cabecera global.
   La sección lleva "vi vi-nav" y la fila "vi-nav-bar". */
.vi-nav { position: fixed !important; top: 14px; left: 0; right: 0; z-index: 999; background: transparent !important; padding: 0 !important; pointer-events: none; }
.admin-bar .vi-nav { top: 46px; }
@media (max-width: 782px) { .admin-bar .vi-nav { top: 60px; } }
.vi-nav .vi-nav-bar { pointer-events: auto; width: min(1200px, 100% - 32px) !important; max-width: none !important; border-radius: 999px; padding: 10px 10px 10px 24px !important;
  background: rgba(255,255,255,.72) !important; backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0 0 1px rgba(21,18,28,.06), 0 10px 30px -15px rgba(21,18,28,.25); align-items: center !important; transition: box-shadow .4s var(--vi-ease), background .4s; }
.vi-nav.vi-scrolled .vi-nav-bar { background: rgba(255,255,255,.9) !important; box-shadow: 0 0 0 1px rgba(21,18,28,.08), 0 14px 40px -18px rgba(21,18,28,.35); }
.vi .vi-logo a { display: inline-flex; align-items: center; line-height: 0; }
.vi .vi-logo img { display: block; height: 40px; width: auto; max-width: none; }
.vi .vi-nav-mid { align-items: center; }
.vi .vi-nav-links { display: flex; justify-content: center; gap: 28px; }
.vi .vi-nav-links a { font-size: 15px; color: var(--vi-texto); text-decoration: none; transition: color .2s; }
.vi .vi-nav-links a:hover { color: var(--vi-tinta); }
.vi .vi-nav-right { align-items: flex-end; }
body #page-container .vi-nav .et_pb_button.vi-btn.vi-nav-cta, body #page-container .vi-nav .vi-nav-cta .et_pb_button,
body #page-container .vi-nav .et_pb_button.vi-btn.vi-nav-cta:hover, body #page-container .vi-nav .vi-nav-cta .et_pb_button:hover { padding: 13px 22px !important; min-height: 46px; font-size: 15px !important; }
@media (max-width: 980px) {
  .vi-nav .vi-nav-mid { display: none !important; }
  .vi-nav .vi-nav-bar { flex-wrap: nowrap !important; }
  .vi-nav .vi-nav-logo, .vi-nav .vi-nav-right { flex: 1 1 auto !important; width: auto !important; max-width: none !important; }
}
@media (max-width: 520px) {
  .vi-nav .vi-nav-bar { padding: 8px 8px 8px 18px !important; }
  .vi .vi-logo img { height: 32px; }
  body #page-container .vi-nav .et_pb_button.vi-btn.vi-nav-cta, body #page-container .vi-nav .vi-nav-cta .et_pb_button,
  body #page-container .vi-nav .et_pb_button.vi-btn.vi-nav-cta:hover, body #page-container .vi-nav .vi-nav-cta .et_pb_button:hover { padding: 11px 16px !important; min-height: 40px; font-size: 13px !important; }
}
/* Aire interior de la píldora (Divi fija el padding de la fila a 0; esto lo sobrescribe) */
body #page-container .vi-nav .et_pb_row.vi-nav-bar { padding: 12px 12px 12px 30px !important; min-height: 72px; column-gap: 32px !important; }
body #page-container .vi-nav .vi-nav-bar > .et_pb_column { justify-content: center; }
.vi .vi-logo img { height: 38px; }
@media (max-width: 980px) {
  body #page-container .vi-nav .et_pb_row.vi-nav-bar { padding: 10px 10px 10px 24px !important; min-height: 64px; column-gap: 16px !important; }
}
@media (max-width: 520px) {
  body #page-container .vi-nav .et_pb_row.vi-nav-bar { padding: 8px 8px 8px 18px !important; min-height: 56px; }
  .vi .vi-logo img { height: 30px; }
}

/* Oculta la cabecera clásica de Divi si aún estuviera activa */
body:has(.vi-nav) #main-header, body:has(.vi-nav) #top-header { display: none !important; }
body:has(.vi-nav) #page-container { padding-top: 0 !important; }

/* ---------- 17. MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  .vi *, .vi *::before, .vi *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .vi .vi-rv { opacity: 1; transform: none; }
  .vi .vi-device { transform: none; }
  .vi-hero .vi-line > span { transform: none; }
}