/* Educalm · cabecera de la portada «Cine» con la frase nueva (01/11/2026). Sale de propuestas-web/portada-frase
   (fuente/extraer_de_propuestas.py): comun.css + el diseño «Cine» de disenos.css.
   Ordenador: la sección llena la pantalla que queda bajo la cabecera fija (121 px; 88 px por debajo de 1000 px), como
   mucho 16:9, igual que el vídeo publicado (v3). Móvil: una caja 16:9 con la imagen y, debajo, la frase.
   En reposo nada se mueve. Unidad de medida en ordenador: --h ≈ 1 % del alto de la caja (sin pasar del 0,42 % del ancho). */
.efr { --efr-cab: 88px; --noche: #0B2747; --noche2: #102F55; --teal: #127696; --teal-claro: #4FB6D8; --amarillo: #FDBA12;
  --coral: #F2522B; --marino: #0B3A6E; --crema: #F5F0E6;
  position: relative; width: 100%; overflow: hidden; isolation: isolate; color: #fff; background: var(--noche);
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  scroll-margin-top: calc(var(--efr-cab) + var(--efr-barra, 0px)); }
@media (min-width: 1000px) { .efr { --efr-cab: 121px; } }
.admin-bar .efr { --efr-barra: 46px; }
@media (min-width: 783px) { .admin-bar .efr { --efr-barra: 32px; } }
.efr *, .efr *::before, .efr *::after { box-sizing: border-box; }
.efr h1, .efr p { margin: 0; padding: 0; }
/* El tema pone su propia letra, tamaño y mayúsculas a h1, p y button: aquí manda la del diseño */
.efr h1, .efr p, .efr button, .efr ul, .efr li { font-family: inherit; }
:where(.efr) button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.efr button:focus-visible, .efr a:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

/* Fotos: object-position con --pos (cada diseño elige el encuadre). Con «.efr» delante para ganar a la regla general de
   Elementor/Blocksy (img { height: auto }), que en la web se carga después de esta hoja. */
.efr .efr-foto, .efr .efr-foto img { display: block; width: 100%; height: 100%; max-width: none; }
.efr .efr-foto img { object-fit: cover; object-position: var(--pos, 50% 50%); }
/* Botón sin aspecto de botón (fotos y ventanas que abren el vídeo) */
.efr-boton-foto { position: relative; display: block; padding: 0; margin: 0; border: 0; background: none; overflow: hidden; }

/* Aro de colores del logo con el triángulo de play (el del vídeo publicado) */
.efr-anillo { position: relative; display: inline-grid; place-items: center; width: var(--anillo, 56px); aspect-ratio: 1; flex: none; }
.efr-anillo svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 24px rgba(6, 27, 52, .28)); }
.efr-aro { transform-origin: 0 0; transition: transform .9s cubic-bezier(.22, .8, .2, 1); }
.efr-aro circle { fill: none; stroke-width: 5.5; stroke-linecap: round; }
.efr-tri { fill: var(--noche); transition: transform .4s ease; transform-origin: 2px 0; }
@media (hover: hover) {
  .efr-cta:hover .efr-aro, .efr-boton-foto:hover .efr-aro, .efr [data-efr-play]:hover .efr-aro { transform: rotate(90deg); }
  .efr-cta:hover .efr-tri, .efr-boton-foto:hover .efr-tri { transform: scale(1.12); }
}

/* Llamada «Ver el vídeo» */
.efr-cta { display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; text-align: left;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: #fff; }
.efr-cta small { display: block; margin-top: 3px; font-weight: 600; letter-spacing: .08em; font-size: .82em; opacity: .62; }

/* Palabras clave de la frase */
.efr-h1 em { font-style: normal; }

/* Reproductor (lo rellena motor.js) */
.efr-reproductor { position: absolute; inset: 0; z-index: 20; background: var(--noche); opacity: 0;
  transition: opacity .45s ease, clip-path .82s cubic-bezier(.7, 0, .2, 1); }
.efr-reproductor[hidden] { display: none; }
.efr.reproduciendo .efr-reproductor, .efr.cerrando .efr-reproductor { opacity: 1; }
.efr-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; object-fit: contain; background: var(--noche); }
.efr-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 14px;
  padding: 26px 22px 16px; background: linear-gradient(transparent, rgba(6, 18, 36, .72)); color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.efr.reproduciendo .efr-ctrl { pointer-events: auto; }
.efr.reproduciendo:hover .efr-ctrl, .efr.reproduciendo .efr-ctrl:focus-within, .efr.pausado .efr-ctrl, .efr.tactil.reproduciendo .efr-ctrl { opacity: 1; transform: none; }
.efr-ctrl button { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); padding: 0;
  background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.efr-ctrl button:hover { background: rgba(255, 255, 255, .25); }
.efr-ctrl svg { width: 16px; height: 16px; fill: currentColor; }
.efr-barra { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); cursor: pointer; position: relative; }
.efr-barra::after { content: ""; position: absolute; inset: -10px 0; }
.efr-barra i { display: block; height: 100%; width: 100%; border-radius: 4px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #0B7A9E, #FDBA12 55%, #F2522B); }
.efr-tiempo { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .85; min-width: 70px; text-align: right; }

/* Entrada suave al abrir la página (solo ordenador, una vez): elementos .efr-entra con --i = orden */
.efr.antes .efr-entra { opacity: 0; transform: translateY(16px); }
.efr.entra .efr-entra { transition: opacity .9s ease, transform 1s cubic-bezier(.22, .8, .2, 1); transition-delay: calc(var(--i, 0) * 110ms + 120ms); }

/* ---------- Ordenador ---------- */
@media (min-width: 768px) {
  .efr { aspect-ratio: 16 / 9; min-height: 460px; container-type: size;
    max-height: calc(100vh - var(--efr-cab) - var(--efr-barra, 0px)); max-height: calc(100svh - var(--efr-cab) - var(--efr-barra, 0px));
    --h: min(1cqh, .42cqw); }
  .efr-escena { position: absolute; inset: 0; }
  .efr-texto { position: absolute; z-index: 5; transition: opacity .35s ease; }
  .efr.reproduciendo .efr-texto { opacity: 0; pointer-events: none; }
  .efr-cta { font-size: clamp(11px, calc(var(--h) * 2.05), 17px); gap: calc(var(--h) * 2.2); }
  .efr-anillo { --anillo: clamp(44px, calc(var(--h) * 9.5), 86px); }
  .efr-solo-movil { display: none !important; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  .efr-escena { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
  .efr-texto { position: relative; padding: 22px 20px 28px; }
  .efr-h1 { font-size: 21px; line-height: 1.28; }
  .efr-cta { font-size: 12px; gap: 11px; }
  .efr-anillo { --anillo: 44px; }
  .efr-ctrl { padding: 18px 12px 10px; gap: 10px; }
  .efr-ctrl button { width: 32px; height: 32px; }
  .efr-tiempo { display: none; }
  .efr-solo-ordenador { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .efr *, .efr *::before, .efr *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* Colores de las cinco palabras: --c sobre fondo oscuro, --cl sobre fondo claro */
.efr [data-k="desarrollo"] { --c: #4FB6D8; --cl: #127696; --hl: rgba(79, 182, 216, .34); }
.efr [data-k="liderazgo"] { --c: #FDBA12; --cl: #C98C00; --hl: rgba(253, 186, 18, .42); }
.efr [data-k="comunicacion"] { --c: #F2522B; --cl: #E0461F; --hl: rgba(242, 82, 43, .26); }
.efr [data-k="bienestar"] { --c: #8FD3E8; --cl: #0E8DB5; --hl: rgba(143, 211, 232, .5); }
.efr [data-k="rendimiento"] { --c: #FFD36B; --cl: #0B3A6E; --hl: rgba(253, 186, 18, .42); }

/* Antetítulo con la línea de colores del logo */
.efr-antetitulo { display: flex; align-items: center; gap: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .26em;
  font-size: 10.5px; color: var(--amarillo); }
.efr-antetitulo span span { opacity: .55; }
.efr-regla { display: inline-flex; width: 56px; height: 3px; border-radius: 3px; overflow: hidden; flex: none; }
.efr-regla i { flex: 1; }
.efr-regla i:nth-child(1) { background: #127696; flex: 2; } .efr-regla i:nth-child(2) { background: #FDBA12; }
.efr-regla i:nth-child(3) { background: #F2522B; } .efr-regla i:nth-child(4) { background: #4FB6D8; }
.efr-velo { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@media (min-width: 768px) {
  .efr-antetitulo { font-size: clamp(11px, calc(var(--h) * 1.95), 16px); gap: calc(var(--h) * 1.7); }
  .efr-regla { width: calc(var(--h) * 9); height: max(3px, calc(var(--h) * .45)); }
}
@media (hover: hover) and (min-width: 768px) {
  .efr-boton-foto img { transition: transform 1.4s cubic-bezier(.22, .8, .2, 1); }
  .efr-boton-foto:hover img { transform: scale(1.035); }
}

/* =============================================================== 1 · CINE */
.efr-cine .efr-fondo { position: absolute; inset: 0; width: 100%; height: 100%; }
.efr-cine .efr-fondo img { transition: transform 1.3s cubic-bezier(.22, .8, .2, 1); }
.efr-cine.reproduciendo .efr-fondo img { transform: scale(1.08); }
.efr-cine .efr-velo { background: linear-gradient(90deg, rgba(7, 19, 37, .94) 0%, rgba(7, 19, 37, .84) 28%, rgba(7, 19, 37, .38) 56%, rgba(7, 19, 37, 0) 78%),
  linear-gradient(0deg, rgba(7, 19, 37, .5), rgba(7, 19, 37, 0) 38%); }
.efr-cine .efr-h1 { font-weight: 700; letter-spacing: -.012em; color: #fff; }
.efr-cine .efr-h1 em { font-weight: 800; background-image: linear-gradient(var(--c), var(--c)); background-repeat: no-repeat;
  background-size: 100% .085em; background-position: 0 94%; padding-bottom: .05em; }
.efr-cine.antes .efr-h1 em { background-size: 0 .085em; }
.efr-cine.entra .efr-h1 em { transition: background-size .8s cubic-bezier(.65, 0, .35, 1); }
.efr-cine.entra .efr-h1 em:nth-of-type(1) { transition-delay: .75s; } .efr-cine.entra .efr-h1 em:nth-of-type(2) { transition-delay: .9s; }
.efr-cine.entra .efr-h1 em:nth-of-type(3) { transition-delay: 1.05s; } .efr-cine.entra .efr-h1 em:nth-of-type(4) { transition-delay: 1.2s; }
.efr-cine.entra .efr-h1 em:nth-of-type(5) { transition-delay: 1.35s; }
/* Al pulsar: el texto se retira hacia la izquierda y la foto se acerca mientras el iris del vídeo se abre */
.efr-cine .efr-texto > * { transition: transform .8s cubic-bezier(.22, .8, .2, 1), opacity .5s ease; }
.efr-cine.reproduciendo .efr-texto > :not(.efr-cta-grande) { transform: translateX(-28px); opacity: 0; }

/* El botón de play: círculo grande de cristal con el aro del logo y un halo lento, y «Ver el vídeo» al lado */
.efr-cta-grande { display: inline-flex; align-items: center; padding: 0; margin: 0; border: 0; background: none; color: #fff; text-align: left; }
.efr-cta-grande .efr-cg-texto { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.efr-play-grande { position: relative; display: grid; place-items: center; flex: none; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), 0 26px 60px -18px rgba(0, 0, 0, .6);
  transition: transform .5s cubic-bezier(.22, .8, .2, 1), background-color .4s ease; }
.efr-play-grande svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.efr-play-grande .efr-aro circle { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.efr-pg-tri { fill: #fff; transform-origin: 3px 0; transition: transform .45s cubic-bezier(.22, .8, .2, 1); }
.efr-play-grande::before, .efr-play-grande::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(253, 186, 18, .8); opacity: 0; animation: efr-halo 4.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.efr-play-grande::after { animation-delay: 2.2s; border-color: rgba(255, 255, 255, .6); }
@keyframes efr-halo { 0% { transform: scale(1); opacity: 0; } 12% { opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (hover: hover) {
  .efr-cta-grande:hover .efr-play-grande { transform: scale(1.07); background-color: rgba(255, 255, 255, .2); }
  .efr-cta-grande:hover .efr-aro { transform: rotate(90deg); }
  .efr-cta-grande:hover .efr-pg-tri { transform: scale(1.12); }
}
.efr-cta-grande:focus-visible { outline: none; }
.efr-cta-grande:focus-visible .efr-play-grande { outline: 3px solid var(--amarillo); outline-offset: 4px; }
.efr-cine.reproduciendo .efr-play-grande::before, .efr-cine.reproduciendo .efr-play-grande::after { animation: none; }
.efr-cine.reproduciendo .efr-cg-foto { opacity: 0; }
@media (min-width: 768px) {
  .efr-cine .efr-texto { left: 6.5cqw; top: 50%; transform: translateY(-50%); width: min(47cqw, 980px); display: grid; gap: calc(var(--h) * 4.2); justify-items: start; }
  .efr-cine .efr-h1 { font-size: calc(var(--h) * 6.1); line-height: 1.14; }
  .efr-cine .efr-cta-grande { gap: calc(var(--h) * 4); margin-top: calc(var(--h) * .6); }
  .efr-cine .efr-play-grande { width: clamp(72px, calc(var(--h) * 14.5), 128px); }
  .efr-cine .efr-cg-texto { font-size: clamp(12px, calc(var(--h) * 2.4), 19px); }
}
/* Móvil: la foto sube todo lo posible (su cara queda arriba) y llega por debajo del texto, fundiéndose con el azul
   noche. El vídeo se ve en los 16:9 de arriba. El botón va sobre la foto, a la izquierda, lejos de la cara. */
@media (max-width: 767px) {
  .efr-cine .efr-escena { overflow: visible; }
  .efr-cine .efr-fondo, .efr-cine .efr-velo { inset: auto 0 auto 0; top: -27%; height: 150%; }
  .efr-cine .efr-fondo .efr-foto { --pos: 66% 50% !important; }
  .efr-cine .efr-velo { background: linear-gradient(180deg, rgba(11, 39, 71, 0) 0%, rgba(11, 39, 71, 0) 60%, rgba(11, 39, 71, .6) 72%, rgba(11, 39, 71, .93) 83%, #0B2747 92%),
    linear-gradient(90deg, rgba(7, 19, 37, .55), rgba(7, 19, 37, 0) 58%); }
  .efr-cg-foto { position: absolute; z-index: 3; left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; gap: 18px; }
  .efr-cg-foto .efr-play-grande { width: 62px; }
  .efr-cg-foto .efr-cg-texto { font-size: 11.5px; letter-spacing: .14em; }
  .efr-cine .efr-texto { z-index: 4; margin-top: -40px; padding-top: 0; display: grid; gap: 14px; justify-items: start; }
  .efr-cine .efr-antetitulo { margin-bottom: 10px; }
  .efr-cine .efr-h1 { font-size: 23px; line-height: 1.22; }
  .efr-cine .efr-h1 em { background-size: 100% 2px; background-position: 0 96%; }
  .efr-cine.reproduciendo .efr-texto > :not(.efr-cta-grande) { transform: none; opacity: 1; }
  .efr-cine.reproduciendo .efr-antetitulo { opacity: 0; }
}
