/* Virtus — estilos globales del tema (base, header, menú móvil, modales, footer, formulario y blog).
   Reemplaza Bootstrap + el style.css heredado. Los widgets traen su propio CSS. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Red de seguridad: nada provoca scroll lateral (en iPhone, un correo o IBAN largo bastaba para desplazar la página) */
html { overflow-x: clip; }
.elementor-widget-text-editor, .elementor-widget-heading, .va-faq__item { overflow-wrap: break-word; }
body {
  margin: 0;
  background: var(--va-bg);
  color: var(--va-text);
  font-family: var(--va-font);
  font-size: var(--va-fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
svg { width: 1em; height: 1em; }  /* red de seguridad: ningún SVG sin tamaño */
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--va-line); }
:focus-visible { outline: 2px solid var(--va-accent); outline-offset: 3px; }
.screen-reader-text, .va-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.va-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--va-primary); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.va-skip:focus { top: 12px; }
.va-container { width: 100%; max-width: var(--va-container); margin-inline: auto; padding-inline: var(--va-gutter); }

/* ---------- Botones ---------- */
.va-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--va-radius-sm);
  background: var(--va-primary); color: #fff;
  font-size: var(--va-fs-sm); font-weight: 500; letter-spacing: .2px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--va-ease), transform .2s var(--va-ease), box-shadow .2s var(--va-ease);
}
.va-btn:hover { background: var(--va-primary-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47, 71, 215, .35); }
.va-btn--ghost { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--va-line-strong); }
.va-btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.va-btn--block { width: 100%; min-height: 46px; }
.va-btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.va-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  padding: 10px 0;
  transition: background .3s var(--va-ease), box-shadow .3s var(--va-ease), padding .3s var(--va-ease);
}
.va-header.is-scrolled {
  background: var(--va-header);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--va-line), 0 10px 30px rgba(0, 0, 0, .25);
  padding: 4px 0;
}
.admin-bar .va-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .va-header { top: 46px; } }
.va-header__bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.va-header__logo { display: inline-flex; flex: none; }
.va-header__logo img { width: 160px; height: auto; display: block; }
.va-nav { margin-left: auto; }
.va-menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.va-menu > li { position: relative; }
.va-menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 22px 0;
  color: var(--va-text); font-size: 13px; font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 16px) / 0 1px;
  transition: background-size .25s var(--va-ease), opacity .2s;
}
.va-menu > li > a:hover, .va-menu > li.current-menu-item > a, .va-menu > li.current-menu-ancestor > a { background-size: 100% 1px; }
.va-menu > li.menu-item-has-children > a::after {
  content: ""; width: 9px; height: 9px; flex: none;
  background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--va-ease);
}
.va-menu > li.menu-item-has-children:hover > a::after, .va-menu > li.menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }
.va-menu .sub-menu {
  position: absolute; top: calc(100% - 6px); left: -14px; z-index: 5;
  min-width: 264px; margin: 0; padding: 8px; list-style: none;
  background: rgba(30, 30, 33, .97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--va-line); border-radius: var(--va-radius);
  box-shadow: var(--va-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--va-ease), transform .2s var(--va-ease), visibility .2s;
}
.va-menu li:hover > .sub-menu, .va-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.va-menu .sub-menu a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--va-text); font-size: 14px; font-weight: 500; line-height: 1.25; text-decoration: none;
  transition: background .15s, color .15s;
}
.va-menu .sub-menu a:hover, .va-menu .sub-menu .current-menu-item > a { background: rgba(255, 255, 255, .07); }
.va-header__actions { display: flex; gap: 10px; flex: none; }
.va-burger {
  display: none; margin-left: auto; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 12px; background: var(--va-primary); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.va-burger span, .va-burger span::before, .va-burger span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
}
.va-burger span::before, .va-burger span::after { content: ""; position: absolute; left: 0; }
.va-burger span::before { top: -6px; }
.va-burger span::after { top: 6px; }
@media (max-width: 1100px) {
  .va-nav, .va-header__actions { display: none; }
  .va-burger { display: inline-flex; }
  .va-header__logo img { width: 132px; }
  .va-header__bar { min-height: 56px; }
}

/* ---------- Diálogos (menú móvil y modales) ---------- */
.va-dialog { border: 0; padding: 0; color: var(--va-text); background: transparent; max-width: none; max-height: none; }
.va-dialog::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.va-dialog__close {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: var(--va-text); transition: background .2s;
}
.va-dialog__close:hover { background: rgba(255, 255, 255, .12); }
.va-dialog__close svg { width: 18px; height: 18px; }
html.va-lock { overflow: hidden; }

/* Menú móvil (drawer) */
.va-drawer { margin: 0 0 0 auto; height: 100dvh; width: min(420px, 100vw); }
.va-drawer[open] { display: flex; animation: va-slide-in .32s var(--va-ease); }
@keyframes va-slide-in { from { transform: translateX(40px); opacity: 0; } }
.va-drawer__panel {
  display: flex; flex-direction: column; gap: 22px; width: 100%; height: 100%; overflow-y: auto;
  padding: 18px 22px 28px; background: var(--va-surface); border-left: 1px solid var(--va-line);
}
.va-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.va-drawer__top img { width: 120px; height: auto; }
.va-drawer__menu, .va-drawer__menu ul { list-style: none; margin: 0; padding: 0; }
.va-drawer__menu > li { border-bottom: 1px solid var(--va-line); }
.va-drawer__menu li { position: relative; }
.va-drawer__menu a { display: block; padding: 14px 44px 14px 0; color: var(--va-text); font-size: 17px; font-weight: 500; text-decoration: none; }
.va-drawer__menu .sub-menu { display: none; padding: 0 0 10px 12px; }
.va-drawer__menu li.is-open > .sub-menu { display: block; }
.va-drawer__menu .sub-menu a { padding: 9px 0; font-size: 15px; color: var(--va-text-2); }
.va-drawer__toggle {
  position: absolute; right: 0; top: 7px; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .05); color: var(--va-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.va-drawer__toggle svg { width: 16px; height: 16px; transition: transform .25s var(--va-ease); }
li.is-open > .va-drawer__toggle svg { transform: rotate(180deg); }
.va-drawer__ctas { display: grid; gap: 10px; }
.va-social { display: flex; gap: 10px; flex-wrap: wrap; }
.va-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--va-text);
  box-shadow: inset 0 0 0 1px var(--va-line); transition: background .2s, transform .2s;
}
.va-social a:hover { background: var(--va-primary); transform: translateY(-2px); }
.va-social svg { width: 18px; height: 18px; }
.va-drawer__copy { margin-top: auto; color: var(--va-muted); font-size: 12px; }

/* Modal centrado */
.va-modal { margin: auto; width: min(420px, calc(100vw - 32px)); }
.va-modal--wide { width: min(980px, calc(100vw - 32px)); }
.va-modal[open] { animation: va-pop .28s var(--va-ease); }
@keyframes va-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.va-modal__panel {
  position: relative; padding: 26px; border-radius: var(--va-radius-lg);
  background: var(--va-surface); border: 1px solid var(--va-line); box-shadow: var(--va-shadow);
}
.va-modal__panel > .va-dialog__close { position: absolute; top: 14px; right: 14px; }
.va-modal__title { margin: 0 48px 8px 0; font-size: 20px; }
.va-modal__text { color: var(--va-text-2); font-size: 15px; }
.va-modal__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.va-modal__media { border-radius: var(--va-radius); background: var(--va-glow), var(--va-surface-2) center / cover no-repeat; min-height: 280px; }
@media (max-width: 760px) { .va-modal__grid { grid-template-columns: 1fr; } .va-modal__media { display: none; } .va-modal__panel { padding: 22px 18px; } }

/* ---------- Footer ---------- */
.va-footer { position: relative; margin-top: 0; background: #191919; border-top: 1px solid var(--va-line); color: var(--va-text-2); font-size: 14px; }
.va-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 80% at 0% 0%, rgba(91, 59, 255, .10), transparent 70%); pointer-events: none; }
.va-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 40px; }
.va-footer__brand img { width: 150px; height: auto; margin-bottom: 16px; }
.va-footer__brand p { max-width: 320px; color: var(--va-muted); font-size: 13px; line-height: 1.6; }
.va-footer h2 { margin: 0 0 14px; color: var(--va-text); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.va-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.va-footer a { color: var(--va-text-2); text-decoration: none; transition: color .2s; }
.va-footer a:hover { color: #fff; }
.va-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.va-footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--va-lilac); }
.va-footer__bottom { position: relative; border-top: 1px solid var(--va-line); }
.va-footer__bottom .va-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; color: var(--va-muted); font-size: 12.5px; }
.va-footer__bottom p { margin: 0; }
.va-footer__bottom strong a { color: #fff; font-weight: 700; }
@media (max-width: 980px) { .va-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .va-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 28px; } }

/* ---------- Formulario (Contact Form 7, markup .virtus-form) ---------- */
.virtus-form { width: 100%; }
.virtus-form .wpcf7-form, .virtus-form form { margin: 0; }
.virtus-form .wpcf7-form p { margin: 0; padding: 0; }
.virtus-form .wpcf7-form br { display: none; }
.virtus-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.virtus-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.virtus-form__field--full { grid-column: 1 / -1; }
.virtus-form__label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.virtus-form input:not([type="submit"]), .virtus-form select, .virtus-form textarea {
  display: block; width: 100%; height: 44px; padding: 10px 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  color: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.virtus-form select { appearance: none; padding-right: 38px; background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; }
.virtus-form select option { background: #1b1b1b; color: #fff; }
.virtus-form textarea { height: auto; min-height: 140px; resize: vertical; padding-top: 14px; }
.virtus-form input::placeholder, .virtus-form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.virtus-form input:focus, .virtus-form select:focus, .virtus-form textarea:focus {
  border-color: rgba(47, 91, 255, .75); box-shadow: 0 0 0 4px rgba(47, 91, 255, .16); background: rgba(255, 255, 255, .06);
}
.virtus-form__phone { display: flex; align-items: center; gap: 10px; }
.virtus-form__phone .wpcf7-form-control-wrap { flex: 1; }
.virtus-form__actions { margin-top: 12px; display: flex; justify-content: center; }
.virtus-form input[type="submit"], .virtus-form__btn {
  min-width: 160px; height: 46px; padding: 0 28px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--va-primary); color: #fff; font-weight: 600;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.virtus-form input[type="submit"]:hover, .virtus-form__btn:hover { background: var(--va-primary-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47, 71, 215, .35); }
.virtus-form .wpcf7-spinner { margin: 0 0 0 12px; }
.virtus-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #ff9b9b; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid var(--va-line-strong); }
.wpcf7 form.sent .wpcf7-response-output { border-color: rgba(31, 157, 99, .5); background: rgba(31, 157, 99, .12); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .1); }
@media (max-width: 640px) { .virtus-form__grid { grid-template-columns: 1fr; } }

/* ---------- Páginas del tema (blog, búsqueda, 404) ---------- */
.va-main { min-height: 60vh; }
.va-page-hero { position: relative; padding: calc(var(--va-header-h) + 56px) 0 40px; background: var(--va-glow); }
.va-page-hero h1 { font-size: var(--va-fs-3xl); margin: 0 0 10px; }
.va-page-hero p { max-width: 720px; color: var(--va-text-2); }
.va-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(91, 59, 255, .16); color: var(--va-lilac); font-size: 12px; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.va-breadcrumbs { margin-bottom: 16px; color: var(--va-muted); font-size: 13px; }
.va-breadcrumbs a { color: var(--va-text-2); text-decoration: none; }
.va-breadcrumbs a:hover { color: #fff; }

/* Tarjetas de entradas (las comparten el archivo, la búsqueda y el widget de blog) */
.va-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.va-post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--va-surface); border: 1px solid var(--va-line); border-radius: var(--va-radius-lg);
  transition: transform .25s var(--va-ease), border-color .25s, box-shadow .25s;
}
.va-post-card:hover { transform: translateY(-4px); border-color: var(--va-line-strong); box-shadow: var(--va-shadow); }
.va-post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--va-glow), var(--va-surface-2); }
.va-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--va-ease); }
.va-post-card:hover .va-post-card__media img { transform: scale(1.04); }
.va-post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 20px 22px; }
.va-post-card__meta { display: flex; gap: 10px; align-items: center; color: var(--va-muted); font-size: 12.5px; }
.va-post-card__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.va-post-card__title a { color: var(--va-text); text-decoration: none; }
.va-post-card__title a:hover { color: var(--va-lilac); }
.va-post-card__excerpt { margin: 0; color: var(--va-text-2); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.va-post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--va-lilac); font-size: 14px; font-weight: 600; text-decoration: none; }
.va-post-card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.va-post-card__more:hover svg { transform: translateX(3px); }

/* Entrada individual */
.va-article { padding-bottom: 64px; }
.va-article__head { max-width: 820px; }
.va-article__head h1 { font-size: var(--va-fs-3xl); line-height: 1.15; margin: 14px 0 14px; }
.va-article__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--va-muted); font-size: 13.5px; }
.va-article__cover { margin: 32px 0 8px; border-radius: var(--va-radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--va-surface-2); }
.va-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.va-prose { max-width: 760px; margin-top: 36px; color: var(--va-text-2); font-size: 1.0625rem; line-height: 1.8; }
.va-prose > * + * { margin-top: 1.1em; }
.va-prose p, .va-prose ul, .va-prose ol { margin-bottom: 0; }
.va-prose h2 { margin: 2em 0 .2em; color: var(--va-text); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); line-height: 1.25; }
.va-prose h3 { margin: 1.6em 0 .2em; color: var(--va-text); font-size: 1.25rem; }
.va-prose a { color: var(--va-lilac); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.va-prose strong { color: var(--va-text); }
.va-prose li + li { margin-top: .4em; }
.va-prose li::marker { color: var(--va-accent); }
.va-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--va-accent); color: var(--va-text); font-style: italic; }
.va-prose img { border-radius: var(--va-radius); }
.va-cta-card {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; max-width: 760px; margin-top: 48px;
  padding: 24px 26px; border-radius: var(--va-radius-lg);
  background: linear-gradient(135deg, rgba(47, 71, 215, .22), rgba(91, 59, 255, .12)); border: 1px solid rgba(91, 59, 255, .35);
}
.va-cta-card h2 { margin: 0 0 4px; font-size: 19px; }
.va-cta-card p { margin: 0; color: var(--va-text-2); font-size: 14px; }
@media (max-width: 640px) { .va-cta-card { grid-template-columns: 1fr; } }
.va-related { margin-top: 64px; }
.va-related > h2 { font-size: var(--va-fs-xl); margin-bottom: 20px; }
.va-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.va-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; background: var(--va-surface); border: 1px solid var(--va-line); color: var(--va-text); text-decoration: none; }
.va-pagination .page-numbers.current, .va-pagination .page-numbers:hover { background: var(--va-primary); border-color: var(--va-primary); }
.va-404 { text-align: center; padding: calc(var(--va-header-h) + 90px) 0 100px; }
.va-404 strong { display: block; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; background: var(--va-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.va-search { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 0; }
.va-search input { flex: 1; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--va-line-strong); background: rgba(255, 255, 255, .04); color: #fff; }

/* Contenido de Elementor: los títulos que no traen color heredan el blanco del tema */
.elementor-widget-text-editor a:not(.elementor-button) { text-underline-offset: 3px; }

/* ---------- WhatsApp flotante ---------- */
.va-wa {
  position: fixed; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transition: transform .25s var(--va-ease), box-shadow .25s;
}
.va-wa--der { right: 22px; } .va-wa--izq { left: 22px; }
.va-wa:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px rgba(37, 211, 102, .35); }
.va-wa svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .va-wa { width: 52px; height: 52px; bottom: 16px; } .va-wa--der { right: 16px; } .va-wa--izq { left: 16px; } }
/* Ventana de chat (reemplaza la de Joinchat): saludo + botón que abre WhatsApp */
html body button.va-wa { border: 0; padding: 0; cursor: pointer; background: #25d366; color: #fff; }
.va-wa[aria-expanded="true"] { transform: scale(.94); }
.va-wa-box {
  position: fixed; bottom: 94px; z-index: 901; width: min(330px, calc(100vw - 32px));
  border-radius: 18px; overflow: hidden; background: #efeae2; color: #111b21;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform-origin: bottom right;
  animation: va-wa-in .28s var(--va-ease);
}
.va-wa-box[hidden] { display: none; }
.va-wa-box--der { right: 22px; } .va-wa-box--izq { left: 22px; transform-origin: bottom left; }
.va-wa-box__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 18px; background: #075e54; color: #fff; font-weight: 600; font-size: 15px; }
.va-wa-box__head svg { width: 22px; height: 22px; }
html body .va-wa-box__close { margin-left: auto; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; padding: 0; cursor: pointer; }
html body .va-wa-box__close:hover { background: rgba(255, 255, 255, .22); }
.va-wa-box__close svg { width: 16px; height: 16px; }
.va-wa-box__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 18px 8px; }
.va-wa-box__bubble { position: relative; margin: 0; max-width: 88%; padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: #fff; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.va-wa-box__bubble + .va-wa-box__bubble { border-radius: 14px; }
html body .va-wa-box__cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 18px 18px; min-height: 44px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s; }
html body .va-wa-box__cta:hover { background: #1ebe5b; }
.va-wa-box__cta svg { width: 18px; height: 18px; }
@keyframes va-wa-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .va-wa-box { animation: none; } }
@media (max-width: 560px) { .va-wa-box { bottom: 80px; } .va-wa-box--der { right: 16px; } .va-wa-box--izq { left: 16px; } }

/* ---------- Botones del tema frente al estilo global de Elementor ----------
   El kit de Elementor pinta todos los <button> (".elementor-kit-8 button", especificidad 0,1,1).
   "html body" sube la especificidad (0,1,2) para que los botones propios conserven su diseño. */
html body .va-btn { background: var(--va-primary); color: #fff; font-family: var(--va-font); font-size: var(--va-fs-sm); font-weight: 500; }
html body .va-btn:hover { background: var(--va-primary-hover); }
html body .va-btn--ghost { background: rgba(255, 255, 255, .04); }
html body .va-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
html body .va-burger { background: var(--va-primary); color: #fff; }
html body .va-dialog__close { background: rgba(255, 255, 255, .06); color: var(--va-text); }
html body .va-dialog__close:hover { background: rgba(255, 255, 255, .12); }
html body .va-drawer__toggle { background: rgba(255, 255, 255, .05); color: var(--va-text); }
html body .ecbc-chip { background: rgba(255, 255, 255, .04); color: var(--va-text); font-size: 14px; font-weight: 500; }
html body .ecbc-chip.is-active { background: var(--va-accent); }
html body .ecbc-nav, html body .va-carrusel-nav button { background: rgba(255, 255, 255, .04); color: #fff; }
html body .ecbc-nav:hover:not([disabled]), html body .va-carrusel-nav button:hover:not([disabled]) { background: var(--va-primary); }
html body .va-gal__filters button { background: rgba(255, 255, 255, .04); color: var(--va-text); font-size: 13px; font-weight: 500; }
html body .va-gal__filters button.is-active, html body .va-gal__filters button:hover { background: var(--va-primary); }
html body .va-visor button { background: rgba(255, 255, 255, .08); color: #fff; }
html body .va-visor button:hover { background: rgba(255, 255, 255, .16); }
html body .va-video__btn { background: none; color: inherit; }
html body button.ecbc-btn { background: var(--va-primary); color: #fff; }
@media (max-width: 560px) { .va-footer__bottom .va-container { padding-bottom: 86px; } }

/* ---------- Bloque destacado de la home (título + imagen + fechas en una sola tarjeta) ---------- */
.va-feature { overflow: hidden; }
.va-feature .elementor-widget-image { align-self: center; padding: 28px 0; }
.va-feature .elementor-widget-image img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.va-feature .ecbc-date { margin-top: 4px; font-size: 15px; }
.va-feature .ecbc-details { font-size: 13px; }
@media (max-width: 767px) {
  .va-feature .elementor-widget-image { padding: 0 24px; }
}

/* Resumen de próxima edición + modal de calendario (bloque destacado de la home) */
.va-next { display: grid; gap: 6px; margin: 6px 0 4px; padding: 16px 18px; border-radius: 14px; background: rgba(91, 59, 255, .10); border: 1px solid rgba(91, 59, 255, .28); }
.va-next__label { color: var(--va-lilac); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.va-next__date { color: var(--va-text); font-size: 18px; font-weight: 600; line-height: 1.3; }
.va-next__more { color: var(--va-text-2); font-size: 13px; }
html body .va-link-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--va-lilac); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html body .va-link-btn:hover { color: #fff; }
.va-cal-modal .va-modal__title { margin-bottom: 4px; }
.va-cal-modal .ecbc-details { margin-top: 16px; font-size: 14px; gap: 8px; }
.va-cal-modal .ecbc-details li { padding-bottom: 8px; }
.va-cal-modal .va-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Animaciones de entrada (se apagan desde el personalizador y con "reducir movimiento") ----------
   1) Transición entre páginas: View Transitions entre documentos (inline en setup.php).
   2) Hero: el texto entra al cargar (sube y aparece). Las imágenes del hero no se animan, para no retrasar el LCP.
   3) Resto de secciones: aparecen al entrar en pantalla. Lo activa la clase "va-rv" que pone un script en el
      <head>; main.js marca cada elemento con "is-in" al verlo. Si main.js no llega, el script del <head> quita
      "va-rv" a los 2,5 s, así que el contenido nunca queda oculto. Solo opacidad y transform: sin CLS.
   Ojo: estas reglas nombran widgets concretos, nunca "*", para no pisar animaciones propias (galería del hero). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes va-in { from { opacity: 0; transform: translateY(26px); } }
  body.va-anim:not(.elementor-editor-active) .va-main > .elementor > .e-con:first-child :is(
    .elementor-widget-heading, .elementor-widget-text-editor, .elementor-widget-button, .elementor-widget-virtus_titulo
  ) { animation: va-in .7s var(--va-ease) backwards; }
  body.va-anim:not(.elementor-editor-active) .va-main > .elementor > .e-con:first-child :is(.elementor-widget-text-editor, .elementor-widget-heading ~ .elementor-widget-heading) { animation-delay: .1s; }
  body.va-anim:not(.elementor-editor-active) .va-main > .elementor > .e-con:first-child .elementor-widget-button { animation-delay: .2s; }

  .va-rv body.va-anim:not(.elementor-editor-active) :is(
    .elementor-widget-heading, .elementor-widget-text-editor, .elementor-widget-button,
    .elementor-widget-image, .elementor-widget-virtus_video, .elementor-widget-virtus_titulo,
    .elementor-widget-ecbc-courses-by-country, .elementor-widget-n-accordion, .elementor-widget-nested-accordion,
    .va-feature, .va-related, .va-cta-card,
    .va-post-card, .va-team__card, .va-testi__card, .va-gal__item, .va-faq__item
  ):not(.va-main > .elementor > .e-con:first-child *):not(.is-in) { opacity: 0; }
  .va-rv body.va-anim .is-in { animation: va-in .8s var(--va-ease) var(--va-d, 0s) backwards; }
}

/* ---------- Hero en móvil: un solo sistema para todas las páginas ----------
   Los hero son copias del mismo contenedor con ajustes distintos en cada página (títulos de 30 a 44 px, párrafos
   justificados, alto de pantalla completa con el texto centrado). En móvil se normalizan aquí: mismo espacio bajo
   el header, misma escala de título/bajada/párrafo y mismos márgenes. Elementor define el layout con variables
   (--min-height, --padding-*, --gap) y selectores de 3–4 clases; "html body .va-main >" les gana sin !important.
   Escritorio no cambia. */
@media (max-width: 767px) {
  html body .va-main > .elementor > .e-con:first-child {
    --min-height: 0px; min-height: 0;
    --padding-top: calc(var(--va-header-h) + 20px); --padding-bottom: 40px;
    --padding-left: 20px; --padding-right: 20px;
    --justify-content: flex-start;
  }
  html body .va-main > .elementor > .e-con:first-child .e-con {
    --min-height: 0px; min-height: 0;
    --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
    --margin-top: 0px; --margin-bottom: 0px;
    --justify-content: flex-start;
    --gap: 16px 16px; --row-gap: 16px;
  }
  /* imagen arriba, texto debajo, con aire entre ambos */
  html body .va-main > .elementor > .e-con:first-child > .e-con, 
  html body .va-main > .elementor > .e-con:first-child > .e-con-inner > .e-con:has(> .elementor-widget-image, > .e-con > .elementor-widget-image) { --gap: 28px 28px; --row-gap: 28px; }
  html body .va-main > .elementor > .e-con:first-child .elementor-widget > .elementor-widget-container { margin: 0; }
  html body .va-main > .elementor > .e-con:first-child .elementor-widget { margin-block: 0; }
  html body .va-main > .elementor > .e-con:first-child .elementor-widget-image img { width: 100%; height: auto; }

  /* escala tipográfica */
  html body .va-main > .elementor > .e-con:first-child h1.elementor-heading-title,
  html body .va-main > .elementor > .e-con:first-child h1 {
    font-size: 34px; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; margin: 0;
  }
  html body .va-main > .elementor > .e-con:first-child .elementor-widget-heading :is(h2, h3, h4, h5, h6, p, span, div).elementor-heading-title {
    font-size: 18px; line-height: 1.4; font-weight: 500; margin: 0;
  }
  html body .va-main > .elementor > .e-con:first-child .elementor-widget-text-editor,
  html body .va-main > .elementor > .e-con:first-child .elementor-widget-text-editor :is(p, li, span) {
    font-size: 16px; line-height: 1.6; text-align: left;
  }
  html body .va-main > .elementor > .e-con:first-child .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
  html body .va-main > .elementor > .e-con:first-child .elementor-widget-button { margin-top: 8px; }
  /* Speakers: el collage de docentes es el fondo del hero (abajo, proporción 1200×628): se le reserva su alto */
  html body.va-p-speakers-virtus-academy .va-main > .elementor > .e-con:first-child { --padding-bottom: calc(52.4vw + 32px); }
}
