/*
 * comportamiento.css — SOLO comportamiento, cero diseno.
 *
 * Aqui no hay ni un color, ni un tamano, ni una separacion. Todo eso son
 * controles del panel de Elementor y el cliente tiene que poder cambiarlos.
 * Lo que hay aqui es lo que no se puede expresar como ajuste de widget:
 * ocultar las plantillas de clonado y hacer clicables los elementos.
 */

/* Las plantillas de punto existen para que el cliente las estilice en el
   editor; en el sitio publicado el JS las clona y no deben verse. */
.elementor-editor-active .carrusel-punto-plantilla { outline: 1px dashed currentColor; }
body:not(.elementor-editor-active) .carrusel-punto-plantilla { display: none !important; }

/* Si el JS no llego a montar (Swiper no aparecio), las plantillas se
   quedarian ocultas y la fila de puntos vacia. Mejor que se vean: un
   carrusel sin puntos es un fallo visible, no uno silencioso. */
body:not(.elementor-editor-active) .carrusel[data-carrusel-error] .carrusel-punto-plantilla { display: block !important; }

.carrusel-prev,
.carrusel-next,
.carrusel-punto { cursor: pointer; -webkit-user-select: none; user-select: none; }

.carrusel-prev:focus-visible,
.carrusel-next:focus-visible,
.carrusel-punto:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Extremos sin loop. La opacidad es lo minimo para que se note que no
   responde; si el diseno del React marca el estado de otra forma,
   maquetalo en Elementor y sobreescribe esto desde ahi. */
.carrusel-desactivada { opacity: .35; pointer-events: none; }

/* El relleno de la barra de progreso lo mueve el JS via style.width. */
.carrusel-progreso { overflow: hidden; }
.carrusel-progreso-relleno { transition: width .3s ease; }

/* ══ ACE Hub ═══════════════════════════════════════════════════════
 * Solo comportamiento: qué se ve según el estado, cómo se mueve y qué se
 * puede pulsar. Ningún color: eso vive en el panel (y lo que no tiene
 * control, en las formas del constructor).
 * Movimiento del React (tokens.css → motion): una duración base 600 ms
 * (400 en móvil), micro = la mitad, impacto = 1,5×; stagger 80 ms (48 en
 * móvil); easing único cubic-bezier(0.16, 1, 0.3, 1).
 */
:root { --ah-ease: cubic-bezier(0.16, 1, 0.3, 1); --ah-dur: 600ms; --ah-micro: calc(var(--ah-dur) * .5); --ah-impacto: calc(var(--ah-dur) * 1.5); --ah-stagger: 80ms; }
@media (max-width: 767px) { :root { --ah-dur: 400ms; --ah-stagger: 48ms; } }
html { scroll-behavior: smooth; }
body.acehub-menu-abierto, body.acehub-hoja-abierta { overflow: hidden; }

/* ── Entradas al viewport, una sola vez (motion.css). Solo con JS (html.js-reveal):
      si el JS falla, todo se ve. Usan translate/scale para no pisar los hovers 3D. */
.js-reveal .ah-rv { opacity: 0; transition: opacity var(--ah-dur) var(--ah-ease), translate var(--ah-dur) var(--ah-ease), scale var(--ah-dur) var(--ah-ease);
  transition-delay: calc(var(--i, 0) * var(--ah-stagger)); }
.js-reveal .ah-rv-up { translate: 0 24px; }
.js-reveal .ah-rv-left { translate: -32px 0; }
.js-reveal .ah-rv-right { translate: 32px 0; }
.js-reveal .ah-rv-zoom { scale: 1.04; }
/* En móvil, entrada más corta y sin desplazamiento lateral ni escala: el React lo
   tapaba con overflow-x: hidden en el body; aquí no se crea el desborde. */
@media (max-width: 767px) {
  .js-reveal .ah-rv-left, .js-reveal .ah-rv-right { translate: 0 16px; }
  .js-reveal .ah-rv-zoom { scale: none; }
}
.js-reveal .ah-rv.is-in { opacity: 1; translate: none; scale: none; }
.ah-i1 { --i: 1; } .ah-i2 { --i: 2; } .ah-i3 { --i: 3; } .ah-i4 { --i: 4; } .ah-i5 { --i: 5; }
/* Título por líneas con máscara */
.ah-linea { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; padding-bottom: .04em; margin-bottom: -.04em; }
.ah-linea > span { display: block; }
.js-reveal .ah-rv-lines { opacity: 1; }
.js-reveal .ah-rv-lines .ah-linea > span { transform: translate3d(0, 110%, 0); transition: transform var(--ah-impacto) var(--ah-ease); transition-delay: calc(var(--l, 0) * 110ms); }
.js-reveal .ah-rv-lines.is-in .ah-linea > span { transform: none; }
/* Recorte lateral de foto + escala interna */
.js-reveal .ah-rv-clip-left { opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path var(--ah-impacto) var(--ah-ease); transition-delay: calc(var(--i, 0) * var(--ah-stagger)); }
.js-reveal .ah-rv-clip-left img { transform: scale(1.12); transition: transform var(--ah-impacto) var(--ah-ease), scale var(--ah-impacto) var(--ah-ease); }
.js-reveal .ah-rv-clip-left.is-in { clip-path: inset(0 0 0 0); }
.js-reveal .ah-rv-clip-left.is-in img { transform: none; }
/* Hairlines que se trazan */
.js-reveal .ah-rv-draw-x, .js-reveal .ah-rv-draw-y { opacity: 1; transition: transform var(--ah-impacto) var(--ah-ease); transition-delay: calc(var(--i, 0) * var(--ah-stagger)); }
.js-reveal .ah-rv-draw-x { transform: scaleX(0); transform-origin: left center; }
.js-reveal .ah-rv-draw-y { transform: scaleY(0); transform-origin: center top; }
.js-reveal .ah-rv-draw-x.is-in, .js-reveal .ah-rv-draw-y.is-in { transform: none; }
/* Trazo SVG dibujado (flecha-rulo del hero) */
.js-reveal .ah-rv-stroke { opacity: 1; }
.js-reveal .ah-rv-stroke svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ah-impacto) var(--ah-ease); transition-delay: calc(var(--i, 0) * var(--ah-stagger)); }
.js-reveal .ah-rv-stroke.is-in svg path { stroke-dashoffset: 0; }

@keyframes ah-sube { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes ah-linea-in { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }
@keyframes ah-recorte { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes ah-asienta { from { transform: scale(1.1); } to { transform: none; } }
@keyframes ah-globo { 0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.7); } 60% { opacity: 1; transform: translate3d(0, -3px, 0) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes ah-desde-izq { from { opacity: 0; transform: translate3d(-24px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ah-chispa { from { opacity: 0; transform: scale(.4) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes ah-progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ah-subrayado { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ── Pilas: varios elementos en la misma celda, se ve el activo ──────── */
.acehub-apilado .elementor-loop-container { display: grid; grid-template-columns: minmax(0, 1fr); }
.acehub-apilado .elementor-loop-container > .e-loop-item { grid-area: 1 / 1; min-width: 0; }
.acehub-apilado .e-loop-item:not(.is-activa) { visibility: hidden; pointer-events: none; }
.acehub-apilado .e-loop-item.is-entra .acehub-testimonio, .acehub-perfiles .e-loop-item.is-entra > .e-con { animation: ah-sube var(--ah-dur) var(--ah-ease) both; }
.acehub-apilado:not(:has(.is-activa)) .e-loop-item:first-child { visibility: visible; }

/* ── Hero (HeroSlider.jsx) ──────────────────────────────────────────── */
.acehub-hero-h1 .elementor-heading-title { white-space: pre-line; }
.ah-hero-fila { display: block; }
.ah-palabra { position: relative; display: inline-block; white-space: pre; }
.ah-palabra-mascara { display: inline-block; overflow: hidden; vertical-align: bottom; padding-top: .14em; margin-top: -.14em; padding-bottom: .06em; margin-bottom: -.06em; }
.ah-palabra-in { display: inline-block; }
.is-entra .ah-palabra-in { animation: ah-linea-in var(--ah-impacto) var(--ah-ease) both; animation-delay: calc(var(--w, 0) * 70ms + 120ms); }
.ah-palabra.is-clave::after { content: ''; position: absolute; left: 0; bottom: -.06em; width: calc(100% - .3em); height: .2em; z-index: -1; clip-path: inset(0 100% 0 0); }
.is-entra .ah-palabra.is-clave::after { animation: ah-subrayado var(--ah-impacto) var(--ah-ease) forwards; animation-delay: calc(var(--w, 0) * 70ms + 760ms); }
.acehub-hero-h1 .elementor-heading-title { isolation: isolate; }
@media (min-width: 768px) { .ah-hero-fila-0 { padding-left: 12%; } .ah-hero-fila-2 { padding-left: 18%; } }
@media (min-width: 1025px) { .ah-hero-fila-0 { padding-left: 22%; } .ah-hero-fila-2 { padding-left: 30%; } }
.acehub-hero-fotos, .acehub-hero-fotos > .elementor-widget-container, .acehub-hero-fotos .elementor-loop-container, .acehub-hero-fotos .e-loop-item,
.acehub-hero-fotos .e-loop-item > .e-con, .acehub-velo { position: absolute; inset: 0; width: 100%; height: 100%; }
.acehub-hero-fotos { overflow: hidden; }
.acehub-hero-fotos .acehub-hero-img, .acehub-hero-fotos .acehub-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acehub-hero-fotos .e-loop-item.is-previa { visibility: visible; z-index: 1; }
.acehub-hero-fotos .e-loop-item.is-activa { z-index: 2; }
.acehub-hero-fotos .e-loop-item.is-entra { animation: ah-recorte var(--ah-impacto) var(--ah-ease) both; }
.acehub-hero-fotos .e-loop-item.is-entra .acehub-hero-img img { animation: ah-asienta calc(var(--ah-impacto) * 2) var(--ah-ease) both; }
.acehub-paralaje .elementor-loop-container { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); transform-origin: center; will-change: transform; }
.acehub-hero-textos .e-loop-item.is-entra .acehub-hero-copia { animation: ah-sube var(--ah-dur) var(--ah-ease) both; animation-delay: 420ms; }
.acehub-globo-saludo .elementor-heading-title { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.acehub-globo-saludo .acehub-bandera { width: 24px; height: 24px; flex: none; }
.acehub-hero-fotos .e-loop-item.is-entra .acehub-globo-saludo { animation: ah-globo var(--ah-dur) var(--ah-ease) both; }
.acehub-hero-fotos .e-loop-item.is-entra .acehub-globo-1 { animation-delay: 900ms; }
.acehub-hero-fotos .e-loop-item.is-entra .acehub-globo-2 { animation-delay: 1120ms; }
.acehub-hero-fotos .e-loop-item.is-entra .acehub-globo-3 { animation-delay: 1340ms; }
.acehub-hero-equipo { animation: ah-desde-izq var(--ah-dur) var(--ah-ease) both; animation-delay: 1400ms; }
.acehub-chispa { animation: ah-chispa var(--ah-impacto) var(--ah-ease) both; animation-delay: 600ms; }
.acehub-chispa-tarde { animation-delay: 820ms; }
.acehub-progreso .elementor-progress-wrapper { height: 3px; }
.acehub-progreso .elementor-progress-bar { width: 100% !important; transform-origin: left center; transform: scaleX(0); transition: none; }
.acehub-progreso.is-corre .elementor-progress-bar { animation: ah-progreso var(--ah-dur-p, var(--ah-dur)) linear forwards; animation-duration: var(--ah-dur, 7000ms); }
.acehub-progreso.is-pausa .elementor-progress-bar { animation-play-state: paused; }
.acehub-circulo-anillo { pointer-events: none; transition: rotate calc(var(--ah-impacto) * 1.4) var(--ah-ease); }
.acehub-circulo:hover .acehub-circulo-anillo, .acehub-circulo:focus-visible .acehub-circulo-anillo { rotate: 140deg; }

/* ── Carrusel de la tienda (ShopCarousel.jsx): pista con scroll-snap a sangre derecha ── */
.acehub-caja { width: min(1296px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .acehub-caja { width: min(1296px, 100% - 64px); } }
@media (min-width: 1025px) { .acehub-caja { width: min(1296px, 100% - 80px); } }
.acehub-pista { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; flex-wrap: nowrap;
  padding-inline-start: max(16px, calc((100% - 1296px) / 2)); scroll-padding-inline-start: max(16px, calc((100% - 1296px) / 2)); padding-block: 6px 10px; }
@media (min-width: 768px) { .acehub-pista { padding-inline-start: max(32px, calc((100% - 1296px) / 2)); scroll-padding-inline-start: max(32px, calc((100% - 1296px) / 2)); } }
@media (min-width: 1025px) { .acehub-pista { padding-inline-start: max(40px, calc((100% - 1296px) / 2)); scroll-padding-inline-start: max(40px, calc((100% - 1296px) / 2)); } }
.acehub-pista::-webkit-scrollbar { display: none; }
.acehub-pista::after { content: ''; flex: 0 0 max(1px, calc((100% - 1296px) / 2 - 24px)); }
.acehub-pista > .acehub-pista-loop { flex: none; width: auto; }
.acehub-pista-loop .elementor-loop-container { display: flex; gap: 24px; }
.acehub-pista-loop .e-loop-item, .acehub-pista > .acehub-mas { flex: 0 0 auto; width: 78vw; scroll-snap-align: start; }
@media (min-width: 768px) { .acehub-pista-loop .e-loop-item, .acehub-pista > .acehub-mas { width: 42vw; } }
@media (min-width: 1025px) { .acehub-pista-loop .e-loop-item, .acehub-pista > .acehub-mas { width: 336px; } }
.acehub-pista .e-loop-item[hidden] { display: none; }
.acehub-tab { cursor: pointer; }
.carrusel-puntos[hidden] { display: none !important; }

/* ── Tarjetas ─────────────────────────────────────────────────────── */
.elementor-loop-container > .e-loop-item { min-width: 0; }
.e-loop-item > .acehub-alto-completo, .acehub-pista-loop .e-loop-item > .e-con { height: 100%; }
.acehub-al-fondo { margin-top: auto; }
.acehub-curso { text-decoration: none; }
@media (min-width: 1280px) { .acehub-curso-docente { max-width: calc(100% - 148px); } }
.acehub-avatar .acehub-avatar-foto { position: absolute; inset: 0; }
.acehub-avatar .acehub-avatar-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.acehub-pcard-anadir { cursor: pointer; transition: opacity var(--ah-micro) var(--ah-ease), translate var(--ah-micro) var(--ah-ease), background-color var(--ah-micro) var(--ah-ease); }
.acehub-solo-agregado, .acehub-pcard-anadir.is-agregado .acehub-solo-normal { display: none; }
.acehub-pcard-anadir.is-agregado .acehub-solo-agregado { display: block; }
@media (hover: hover) and (min-width: 1025px) {
  .acehub-pcard-anadir { opacity: 0; translate: 0 12px; }
  .acehub-pcard:hover .acehub-pcard-anadir, .acehub-pcard:focus-within .acehub-pcard-anadir, .acehub-pcard-anadir.is-agregado { opacity: 1; translate: none; }
}
@media (hover: none), (max-width: 1024px) {
  .acehub-pcard-anadir { left: auto !important; right: 24px; width: 48px !important; padding: 0; }
  .acehub-pcard-anadir .acehub-etiqueta { display: none; }
}
.e-loop-item:not(.comprable) .acehub-si-comprable, .e-loop-item:not(.a-consultar) .acehub-si-consultar,
.e-loop-item:not(.con-promo) .acehub-si-promo, .e-loop-item:not(.con-extra) .acehub-si-extra { display: none !important; }
.acehub-muestras { display: inline-flex; gap: 4px; align-items: center; }
.acehub-muestra { display: block; width: 14px; height: 14px; border-radius: 50%; }
.acehub-dato { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.acehub-si-vacio:has(.elementor-heading-title:empty), .acehub-si-vacio:not(:has(.elementor-heading-title)), .acehub-si-vacio.is-vacio { display: none; }
.acehub-docente-tarjeta { cursor: pointer; }
.acehub-docente-capa { opacity: 0; transition: opacity var(--ah-micro) var(--ah-ease); }
.acehub-docente-tarjeta:hover .acehub-docente-capa, .acehub-docente-tarjeta:focus-visible .acehub-docente-capa { opacity: 1; }
.e-loop-item:not(.es-fundadora) .acehub-solo-fundadora, .e-loop-item.es-fundadora .acehub-solo-docente { display: none !important; }
.e-loop-item.sin-foto .acehub-avatar-foto { display: none; }

/* ── Medios con proporción fija ───────────────────────────────────── */
.acehub-medio > .elementor-widget-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.acehub-medio > .elementor-widget-image .elementor-widget-container, .acehub-medio > .elementor-widget-image a, .acehub-medio > .elementor-widget-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acehub-medio > .e-con { position: absolute; z-index: 1; }
.acehub-medio img { transition: transform var(--ah-impacto) var(--ah-ease), scale var(--ah-impacto) var(--ah-ease); }
.acehub-zoom-suave img { transition: transform var(--ah-impacto) var(--ah-ease), scale calc(var(--ah-impacto) * 1.4) var(--ah-ease); }
.acehub-zoom-suave:hover img { scale: 1.03; }
.acehub-zoom:hover img { scale: 1.05; }
.e-loop-item:hover .acehub-zoom-tarjeta img, .acehub-pcard:hover .acehub-zoom-tarjeta img { scale: 1.06; }
.acehub-docente-tarjeta:hover .acehub-zoom-tarjeta img { scale: 1.05; }
@media (min-width: 1025px) { .acehub-medio-auto > .elementor-widget-image { position: absolute; } }
.acehub-portada-foto { position: absolute !important; inset: 0; z-index: 0; }
.acehub-portada-foto img { width: 100%; height: 100%; object-fit: cover; }
.acehub-portada > .e-con-inner { position: relative; z-index: 1; }
.acehub-portada > .e-con-inner > .acehub-portada-foto { position: absolute; }

/* ── Cabecera, menús y paneles ────────────────────────────────────── */
.acehub-solo-abierto { display: none; }
body.acehub-menu-abierto .acehub-burger .acehub-solo-cerrado { display: none; }
body.acehub-menu-abierto .acehub-burger .acehub-solo-abierto { display: block; }
.acehub-burger, .acehub-wa-boton, .acehub-wa-cerrar, .acehub-hoja-cerrar, .acehub-buscar-borrar, .acehub-filtro-opcion, .acehub-radio, .acehub-interruptor,
.acehub-limpiar, .acehub-ver-fundadora, .acehub-control, .acehub-galeria-flecha, .carrusel-punto { cursor: pointer; -webkit-user-select: none; user-select: none; }
.acehub-mmenu { clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--ah-dur) var(--ah-ease), visibility 0s linear var(--ah-dur); overscroll-behavior: contain; }
body.acehub-menu-abierto .acehub-mmenu { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.acehub-mmenu > .acehub-mm-pie { margin-top: auto; }
.acehub-mm-lista .sub-menu { display: flex !important; flex-wrap: wrap; gap: 8px; position: static !important; width: auto !important; margin: 0 !important; padding: 16px 0 !important; box-shadow: none !important; }
.acehub-mm-lista .sub-menu a { justify-content: flex-start; gap: 10px; }
.acehub-mm-lista .elementor-item .acehub-bandera, .acehub-chips .acehub-bandera { width: 22px; height: 22px; }
.acehub-menu .sub-menu .acehub-bandera { width: 24px; height: 24px; transition: scale var(--ah-micro) var(--ah-ease); }
.acehub-menu .sub-menu a:hover .acehub-bandera { scale: 1.12; }
.elementor-nav-menu .acehub-bandera { display: inline-block; flex: none; vertical-align: middle; }
.acehub-wa-panel { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(0, 12px) scale(.96); transform-origin: bottom right;
  transition: opacity var(--ah-micro) var(--ah-ease), transform var(--ah-micro) var(--ah-ease), visibility 0s linear var(--ah-micro); }
.acehub-wa.is-abierto .acehub-wa-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.acehub-wa-form .elementor-field-type-submit { align-self: flex-end; }
@media (max-width: 1024px) {
  .acehub-hoja { position: fixed !important; inset: auto 0 0 0; z-index: 70; max-height: 86vh; overflow-y: auto; translate: 0 100%; visibility: hidden;
    transition: translate var(--ah-dur) var(--ah-ease), visibility 0s linear var(--ah-dur); }
  .acehub-hoja.is-abierta { translate: none; visibility: visible; transition-delay: 0s; }
  .acehub-hoja > .acehub-hoja-bloque { margin-left: 20px; margin-right: 20px; width: auto; align-self: stretch; } /* px-5: el separador no llega al borde */
  .acehub-hoja > .acehub-buscar { padding-top: 24px; }
  .acehub-hoja-pie { position: sticky; bottom: 0; }
  .acehub-hoja-fondo { position: fixed; inset: 0; z-index: 69; opacity: 0; visibility: hidden; transition: opacity var(--ah-micro) var(--ah-ease), visibility 0s linear var(--ah-micro); }
  .acehub-hoja-fondo.is-abierta { opacity: 1; visibility: visible; transition-delay: 0s; }
}
@media (min-width: 1025px) {
  .acehub-hoja-fondo { display: none; }
  .acehub-pegado, .acehub-filtros { position: sticky; top: 104px; align-self: start; }
  .acehub-ficha .acehub-pegado { top: 104px; }
}
.acehub-hoja-pie .acehub-crece-1 { flex: 1 1 0; } .acehub-hoja-pie .acehub-crece-2 { flex: 2 1 0; }
.acehub-tienda:not(.hay-filtros) .acehub-si-filtros { display: none !important; }
.acehub-chip-plantilla { display: none !important; }
.acehub-buscar-borrar:not(.is-visible) { display: none; }
.acehub-vacio:not(.is-visible) { display: none !important; }
.acehub-tienda-grilla.is-vacio { display: none; }
/* Mensaje «Agregado al carrito»: guarda su línea (min-h-6 del React) y aparece al agregar. */
.acehub-estado-carrito:not(.is-visible) { visibility: hidden; }
.acehub-tienda-grilla .e-loop-item[hidden] { display: none; }
.acehub-empuja { margin-left: auto; }
.acehub-orden .elementor-field-type-submit { display: none; }
.acehub-orden .elementor-form-fields-wrapper { margin: 0; }

/* ── Ficha de producto y de curso ─────────────────────────────────── */
.acehub-galeria-fotos, .acehub-galeria-fotos .elementor-heading-title { position: absolute; inset: 0; }
.elementor .acehub-galeria-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.03; transition: opacity var(--ah-dur) var(--ah-ease), scale var(--ah-impacto) var(--ah-ease); }
.elementor .acehub-galeria-img.is-activa { opacity: 1; scale: 1; }
.acehub-galeria.sin-galeria .acehub-galeria-nav, .acehub-galeria.sin-galeria .acehub-miniaturas { display: none; }
.acehub-galeria-leyenda .elementor-heading-title { display: flex; gap: 10px; min-width: 0; max-width: calc(100% - 28px); white-space: nowrap; }
.acehub-leyenda-frase { overflow: hidden; text-overflow: ellipsis; }
.acehub-galeria-flecha { translate: 0 -50%; }
.acehub-miniaturas { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; flex-wrap: nowrap; }
.acehub-miniaturas::-webkit-scrollbar { display: none; }
.acehub-miniaturas .carrusel-punto { flex: none; scroll-snap-align: center; }
.acehub-miniaturas .carrusel-punto:not([aria-current="true"]) { opacity: .7; }
.acehub-miniaturas .carrusel-punto:hover { opacity: 1; }
.elementor .acehub-miniatura img { width: 100%; height: 100%; object-fit: cover; }
.acehub-opciones table.variations tr.acehub-fila-oculta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.acehub-opciones .reset_variations, .acehub-opciones .woocommerce-variation-price, .acehub-opciones .woocommerce-variation-availability,
.acehub-matricula-form .reset_variations, .acehub-matricula-form .woocommerce-variation-price, .acehub-matricula-form table.variations th { display: none !important; }
.acehub-chips-opcion, .acehub-muestras-opcion { display: flex; flex-wrap: wrap; gap: 8px; }
.acehub-muestras-opcion { gap: 12px; }
.acehub-opcion { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.acehub-chip-opcion, .acehub-muestra-opcion { cursor: pointer; }
.acehub-ficha-tecnica .acehub-ficha-fila { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.acehub-ficha-tecnica dd { margin: 0; }
.acehub-horarios .elementor-heading-title { display: grid; gap: 24px; }
@media (min-width: 768px) { .acehub-horarios .elementor-heading-title { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1025px) {
  .acehub-ficha > .e-con-inner > .acehub-orden-2-lg1 { order: 1; }
  .acehub-ficha > .e-con-inner > .acehub-orden-1-lg2 { order: 2; }
}
@media (max-width: 1024px) {
  .acehub-ficha > .e-con-inner > .acehub-orden-2-lg1 { order: 2; }
  .acehub-ficha > .e-con-inner > .acehub-orden-1-lg2 { order: 1; }
  .acehub-panel-idioma .acehub-orden-2 { order: 2; }
  .acehub-panel-idioma .acehub-orden-1 { order: 1; }
}
body.curso-en .acehub-solo-es, body:not(.curso-en) .acehub-solo-en { display: none !important; }

/* ── Utilidades ───────────────────────────────────────────────────── */
.acehub-min0 { min-width: 0; }
.acehub-partir .elementor-heading-title { word-break: break-all; }
.acehub-riel-texto { writing-mode: vertical-rl; transform: rotate(180deg); }
.acehub-girar-90 svg { rotate: 90deg; }
.acehub-flecha-diag svg, .acehub-btn .elementor-button-icon svg, .acehub-mas-flecha svg { transition: transform var(--ah-micro) var(--ah-ease); }
.acehub-btn .elementor-button:hover .elementor-button-icon svg, .acehub-btn .elementor-button:focus-visible .elementor-button-icon svg { transform: translateX(3px); }
.acehub-btn.acehub-diag .elementor-button:hover .elementor-button-icon svg, .acehub-btn.acehub-diag .elementor-button:focus-visible .elementor-button-icon svg,
.acehub-curso:hover .acehub-flecha-diag svg, .acehub-circulo:hover .acehub-flecha-diag svg { transform: translate(3px, -3px); }
.acehub-mas:hover .acehub-mas-flecha .elementor-icon { transform: translate(3px, -3px); }
.acehub-volver .elementor-icon svg { transition: transform var(--ah-micro) var(--ah-ease); }
.acehub-volver:hover .elementor-icon svg { transform: translateX(-3px); }
.acehub-btn-bloque .elementor-button { width: 100%; }
.elementor-widget-heading :is(h1, h2, h3) { text-wrap: balance; }
.elementor-widget-heading p, .elementor-widget-text-editor p { text-wrap: pretty; }

/* Iconos de trazo (lucide): el widget los rellena con su color; se pintan con el contorno. */
.elementor-icon svg[stroke-linecap], .elementor-button-icon svg[stroke-linecap], .elementor-icon-list-icon svg[stroke-linecap], .acehub-trazo svg[stroke] { fill: none !important; stroke: currentColor; }
.elementor-widget-icon .elementor-icon-wrapper { line-height: 0; }
.acehub-svg, .acehub-svg .elementor-widget-container { line-height: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js-reveal .ah-rv, .js-reveal .ah-rv * { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
  .js-reveal .ah-linea > span, .js-reveal .ah-rv-clip-left img, .js-reveal [class*="ah-rv-draw"] { transform: none !important; }
  .acehub-paralaje .elementor-loop-container { transform: none; }
}
