/*
 * Método VICON · páginas con widgets nativos de Elementor (body.vc-native). Escrito a mano, lo mínimo.
 * El diseño va en el Kit y en los widgets; aquí solo lo que Elementor no ofrece o lo que se repite en todas las páginas.
 * Clases para el campo "Clases CSS" de Elementor: vc-kicker, vc-lead, vc-note, vc-center, vc-stat-num, vc-btn-ghost,
 * vc-btn-dark, vc-accent-left, vc-list-center, vc-small-title (+ las vc-lang-* de vicon-lang.css).
 */

/* Texto */
.vc-native .vc-kicker .elementor-heading-title{font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--lang-text)}
.vc-native .vc-lead{font-size:1.07rem;color:var(--muted);max-width:60ch}
.vc-native .vc-center{margin-inline:auto}
.vc-native .vc-note{font-size:.9rem;color:var(--muted);font-weight:700}
.vc-native .vc-small-title .elementor-heading-title{font-size:1rem;color:var(--muted)}
.vc-native .elementor-widget-text-editor p:last-child{margin-bottom:0}
.vc-native .elementor-widget-text-editor a{color:var(--teal-deep);text-decoration:underline;text-underline-offset:3px}

/* Datos */
.vc-native .vc-stat-num .elementor-heading-title{font-size:clamp(1.8rem,4vw,2.4rem);font-weight:900;color:var(--teal-ink);line-height:1}
.vc-native .vc-stat-xl .elementor-heading-title{font-size:clamp(2.6rem,7vw,3.8rem);color:var(--lang-text)}
.vc-native .vc-dl{display:grid;grid-template-columns:auto 1fr;gap:.6rem 1.2rem;margin:0}
.vc-native .vc-dl dt{font-weight:800;color:var(--teal-ink)}
.vc-native .vc-dl dd{margin:0}

/* Botones secundarios (el principal sale del Kit en color de idioma) */
.vc-native .vc-btn-ghost .elementor-button{background:#fff;color:var(--teal-deep);box-shadow:inset 0 0 0 2px var(--teal)}
.vc-native .vc-btn-ghost .elementor-button:hover{background:var(--teal);color:#fff}
.vc-native .vc-btn-dark .elementor-button{background:var(--teal-ink);color:#fff}
.vc-native .vc-btn-dark .elementor-button:hover{background:var(--teal-deep);color:#fff}

/* Tarjetas y listas */
.vc-native .vc-accent-left{border-left-width:4px!important}
.vc-native .vc-list-center .elementor-icon-list-items{justify-content:center}
.vc-native .elementor-widget-image img{border-radius:var(--radius);width:100%;height:auto}
.vc-native .elementor-icon-box-title{margin:0 0 .3rem;font-size:1.05rem;font-weight:800;color:var(--teal-ink);line-height:1.25}
.vc-native .elementor-icon-box-description{color:var(--muted);margin:0}

/* Pestañas: la activa en color de idioma */
.vc-native .vc-tabs .e-n-tab-title{border-radius:100px;font-weight:800;font-family:inherit}
.vc-native .vc-tabs .e-n-tab-title[aria-selected="true"]{background:var(--lang);color:var(--lang-on)}

/* Precios: colores fijos de la clienta (no cambian con el idioma) */
.vc-native .vc-price .elementor-price-table{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;height:100%}
.vc-native .vc-price-basic .elementor-price-table__header{background:#5F8384}
.vc-native .vc-price-reco .elementor-price-table{border:2px solid #C1676B;background:#FAF0ED}
.vc-native .vc-price-reco .elementor-price-table__header{background:#C1676B}
.vc-native .vc-price-reco .elementor-ribbon-inner{background:#C1676B}
.vc-native .vc-price .elementor-price-table__button{background:#5F8384;color:#fff;border-radius:100px}
.vc-native .vc-price-reco .elementor-price-table__button{background:#C1676B}

/* Colaboradores: logos a la misma altura, sin recortar */
.vc-native .vc-logos{align-items:center}
.vc-native .vc-logo img{width:auto;max-width:100%;max-height:72px;object-fit:contain;border-radius:0;margin-inline:auto;display:block}
/* Franja de colaboradores en color de idioma. Los logos son blancos; sobre groc (CA) pasan a oscuros. */
.vc-native .vc-sponsors .vc-small-title .elementor-heading-title{color:var(--lang-on);opacity:.9}
html[lang^="ca"] .vc-native .vc-sponsors .vc-logo img{filter:brightness(0);opacity:.72}

/* ===================== v2 · DESIGN.md ===================== */

/* Tipografía */
.vc-native :is(h1,h2,h3).elementor-heading-title{text-wrap:balance;letter-spacing:-.015em}
.vc-native h1.elementor-heading-title{font-size:clamp(2.2rem,5.2vw,3.6rem);line-height:1.08}
.vc-native h2.elementor-heading-title{font-size:clamp(1.7rem,3.6vw,2.5rem);line-height:1.12}
.vc-native .elementor-widget-text-editor p{text-wrap:pretty}
.vc-native .vc-lead{max-width:62ch}
.vc-native .vc-head{max-width:760px}

/* Etiqueta (kicker) en pastilla, en minúscula normal */
.vc-native .vc-kicker .elementor-heading-title{display:inline-block;text-transform:none;letter-spacing:0;font-size:.85rem;font-weight:800;padding:.35rem .8rem;border-radius:100px;background:var(--lang-soft);color:var(--lang-text)}
.vc-native .vc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.vc-native .vc-chip{font-size:.85rem;font-weight:800;padding:.35rem .8rem;border-radius:100px;background:#E1EBEC;color:var(--teal-deep)}

/* Hero con halo suave del color de idioma */
.vc-native .vc-hero{position:relative;isolation:isolate;overflow:clip}
body.vc-native{overflow-x:clip}
.vc-native .vc-hero::before{content:"";position:absolute;inset:-10% -20% auto auto;width:60%;aspect-ratio:1;background:radial-gradient(closest-side,var(--lang-soft),transparent);z-index:-1;pointer-events:none}
.vc-native .vc-photo img{border-radius:0;width:100%;height:auto}

/* Iconos en círculo suave */
.vc-native .vc-lang-icon .elementor-icon-box-icon .elementor-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--lang-soft);font-size:20px}
.vc-native .vc-lang-icon .elementor-icon-box-icon .elementor-icon svg{width:20px;height:20px}
.vc-native .vc-keys .elementor-icon-box-wrapper{gap:16px}

/* Tarjetas: sin sombra en reposo, elevación muy suave al pasar */
.vc-native .e-con.e-con[class*="vc-"]:not(.vc-hero){transition:transform .25s ease,box-shadow .25s ease}
.vc-native .vc-bento>.e-con:hover{transform:translateY(-2px);box-shadow:0 12px 32px -20px rgba(37,56,58,.25)}

/* Bento de disciplinas */
.vc-native .vc-bento-xl{grid-column:span 2;grid-row:span 2;justify-content:center}
.vc-native .vc-bento-xl .elementor-icon-box-title{font-size:1.6rem}
.vc-native .vc-bento-xl .elementor-icon-box-description{font-size:1.1rem;max-width:32ch}
.vc-native .vc-bento-xl .elementor-icon{width:64px!important;height:64px!important;background:#fff!important}
.vc-native .vc-bento-cta .elementor-heading-title{color:#fff}
.vc-native .vc-btn-link .elementor-button{background:none;padding:0;color:#fff;text-decoration:underline;text-underline-offset:4px}
@media (max-width:1024px){.vc-native .vc-bento-xl{grid-row:span 1}}
@media (max-width:767px){.vc-native .vc-bento-xl{grid-column:span 1}}

/* Pestañas de entornos */
.vc-native .vc-entorno-media .vc-ill,.vc-native .vc-app-ill .vc-ill{width:100%;height:auto;display:block}
.vc-native .vc-avatars{margin:4px 0 6px}
.vc-native .vc-avatar img{width:44px;height:44px;border-radius:14px;border:3px solid #fff;object-fit:cover;margin-inline-end:-10px}

/* Mockup de la plataforma: texto editable, no captura */
.vc-native .vc-window{border:1px solid var(--line);border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 24px 48px -32px rgba(37,56,58,.3)}
.vc-native .vc-win-bar{display:flex;align-items:center;gap:6px;margin:0;padding:12px 16px;border-bottom:1px solid var(--line);font-size:.85rem;color:var(--teal-deep)}
.vc-native .vc-win-bar span{width:10px;height:10px;border-radius:50%;background:var(--line)}
.vc-native .vc-win-bar strong{margin-inline-start:8px}
.vc-native .vc-win-nav{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:10px 16px;background:var(--app);font-size:.85rem;font-weight:800;color:var(--muted)}
.vc-native .vc-win-nav span{padding:.3rem .7rem;border-radius:100px}
.vc-native .vc-win-nav .on{background:var(--lang);color:var(--lang-on)}
.vc-native .vc-win-phrase{margin:0;padding:12px 16px;border-radius:14px;background:#E1EBEC;color:var(--teal-ink);font-weight:800}
.vc-native .vc-win-acts .elementor-icon-box-title{font-size:.85rem;margin:6px 0 0}

/* Vídeos */
.vc-native .vc-video-wrap{max-width:880px;margin-inline:auto;width:100%}
.vc-native .vc-video .elementor-wrapper{border-radius:24px;overflow:hidden}
.vc-native .vc-video .elementor-custom-embed-image-overlay{background-size:cover;background-position:center}
.vc-native .vc-video .elementor-custom-embed-play svg{fill:#fff;filter:drop-shadow(0 4px 12px rgba(0,0,0,.35))}

/* Cifras */
.vc-native .vc-stats .vc-stat-num .elementor-heading-title{font-size:clamp(2.2rem,4.6vw,3rem);font-variant-numeric:tabular-nums;color:var(--lang-text)}
html[lang^="ca"] .vc-native .vc-stats .vc-stat-num .elementor-heading-title{color:var(--teal-ink)}

/* Botones: pulsado y hover (DESIGN.md §5) */
.vc-native .elementor-button{transition:transform .2s ease,background-color .2s ease,color .2s ease}
.vc-native .elementor-button:hover{transform:translateY(-1px)}
.vc-native .elementor-button:active{transform:scale(.98)}
.vc-native .elementor-button:focus-visible{outline:3px solid var(--lang-detail);outline-offset:3px}

/* Movimiento: aparición al entrar en pantalla (vicon-motion.js). Solo si el JS lo activa. */
@keyframes vcIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
html.vc-motion .vc-native .vc-reveal:not(.is-in),html.vc-motion .vc-native .vc-stagger>*:not(.is-in){opacity:0}
html.vc-motion .vc-native .vc-reveal.is-in,html.vc-motion .vc-native .vc-stagger>.is-in{animation:vcIn .7s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--vc-i,0) * 80ms)}
@media (prefers-reduced-motion:reduce){html.vc-motion .vc-native :is(.vc-reveal,.vc-stagger>*){opacity:1!important;animation:none!important}}

/* Cinco categorías de cambio: pasos numerados unidos por una línea (siempre en el mismo orden) */
.vc-native .vc-steps{counter-reset:vcstep;position:relative}
.vc-native .vc-steps>.elementor-widget{counter-increment:vcstep;position:relative;padding-top:64px}
.vc-native .vc-steps>.elementor-widget::before{content:counter(vcstep);position:absolute;top:0;left:0;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--lang);color:var(--lang-on);font-weight:900;z-index:1}
.vc-native .vc-steps>.elementor-widget:not(:last-child)::after{content:"";position:absolute;top:21px;left:52px;right:-12px;height:2px;background:var(--line)}
.vc-native .vc-steps .elementor-icon-box-icon{display:none}
@media (max-width:1024px){.vc-native .vc-steps>.elementor-widget::after{display:none}}
/* El hero no se anima: se ve al instante (LCP y Core Web Vitals). La aparición es para lo que queda bajo el pliegue. */
html.vc-motion .vc-native .vc-hero .vc-reveal,html.vc-motion .vc-native .vc-hero .vc-stagger>*{opacity:1!important;animation:none!important}

/* ===================== Blog ===================== */
.vc-native .vc-blog-cats a.vc-chip{text-decoration:none;transition:background-color .2s ease,color .2s ease}
.vc-native .vc-blog-cats a.vc-chip:hover,.vc-native .vc-blog-cats a.vc-chip.on{background:var(--lang);color:var(--lang-on)}

/* Tarjetas de entradas */
.vc-native .vc-posts .elementor-post__card{border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:none;transition:transform .25s ease,box-shadow .25s ease}
.vc-native .vc-posts .elementor-post__card:hover{transform:translateY(-2px);box-shadow:0 12px 32px -20px rgba(37,56,58,.25)}
.vc-native .vc-posts .elementor-post__badge{background:var(--lang-soft);color:var(--lang-text);font-weight:800;text-transform:none;letter-spacing:0;border-radius:100px}
.vc-native .vc-posts .elementor-post__title,.vc-native .vc-posts .elementor-post__title a{font-size:1.1rem;font-weight:800;line-height:1.3;color:var(--teal-ink)}
.vc-native .vc-posts .elementor-post__excerpt p{color:var(--muted);font-size:.95rem}
.vc-native .vc-posts .elementor-post__read-more{color:var(--teal-deep);font-weight:800;text-decoration:underline;text-underline-offset:3px;text-transform:none}
.vc-native .vc-posts .elementor-post__meta-data{border-top:1px solid var(--line);color:var(--muted)}
.vc-native .elementor-pagination{margin-top:40px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;font-weight:800}
.vc-native .elementor-pagination .page-numbers{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:100px;padding:0 12px;color:var(--teal-deep)}
.vc-native .elementor-pagination .page-numbers.current{background:var(--lang);color:var(--lang-on)}

/* Entrada: lectura cómoda (≈68 caracteres) y estilos del editor Quill de la plataforma antigua */
.vc-native .vc-post-meta .elementor-icon-list-text,.vc-native .vc-post-meta a{font-weight:800;color:var(--muted)}
.vc-native .vc-post-meta .elementor-post-info__terms-list-item{color:var(--lang-text)}
.vc-native .vc-post-cover img{border-radius:24px;width:100%;height:auto}
.vc-native .vc-prose-post{font-size:1.0625rem;line-height:1.75;color:var(--ink)}
.vc-native .vc-prose-post :is(h2,h3,h4){margin:2rem 0 .75rem;color:var(--teal-ink);line-height:1.2}
.vc-native .vc-prose-post h2{font-size:1.6rem}
.vc-native .vc-prose-post h3{font-size:1.25rem}
.vc-native .vc-prose-post p{margin:0 0 1.1rem}
.vc-native .vc-prose-post :is(ul,ol){margin:0 0 1.2rem;padding-inline-start:1.4rem}
.vc-native .vc-prose-post li{margin-bottom:.4rem}
.vc-native .vc-prose-post a{color:var(--teal-deep);text-decoration:underline;text-underline-offset:3px}
.vc-native .vc-prose-post img{max-width:100%;height:auto;border-radius:16px}
.vc-native .vc-prose-post blockquote{margin:1.5rem 0;padding:1rem 1.25rem;border-left:4px solid var(--lang-detail);background:var(--lang-soft);border-radius:0 16px 16px 0}
.vc-native .vc-prose-post .ql-align-center{text-align:center}
.vc-native .vc-prose-post .ql-align-right{text-align:right}
.vc-native .vc-prose-post .ql-align-justify{text-align:justify}
.vc-native .vc-prose-post .ql-indent-1{padding-inline-start:2em}
.vc-native .vc-prose-post .ql-indent-2{padding-inline-start:4em}
.vc-native .vc-prose-post .ql-size-small{font-size:.85em}
.vc-native .vc-prose-post .ql-size-large{font-size:1.3em}
.vc-native .vc-prose-post .ql-size-huge{font-size:1.8em}
.vc-native .vc-prose-post .ql-video{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:16px}
.vc-native .vc-prose-post p:has(>br:only-child){margin:0;height:.5rem}

/* Comentarios */
.vc-native .vc-comments .comment-list{list-style:none;padding:0}
.vc-native .vc-comments .comment-body{border:1px solid var(--line);border-radius:20px;padding:20px 24px;margin-bottom:16px;background:#fff}
.vc-native .vc-comments .comment-author .fn{font-weight:800;color:var(--teal-ink)}
.vc-native .vc-comments .comment-metadata a{color:var(--muted);font-size:.85rem}
.vc-native .vc-comments :is(input[type=text],input[type=email],textarea){width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font:inherit}
.vc-native .vc-comments .submit{background:var(--lang);color:var(--lang-on);border:0;border-radius:100px;padding:12px 24px;font-weight:800;cursor:pointer}
