/* LA · Home — legalauditors.es · v1.3.0
 * Marquee de clientes, vídeos con fachada, credenciales del pie y fecha de evento.
 * Sin dependencias. Tokens alineados con el kit 5 de Elementor. */

:root {
	--la-marino: #002B5B;
	--la-marino-2: #094383;
	--la-rojo: #FC442B;
	--la-texto-sec: #4A5A70;
}

/* ---------- Marquee de clientes ---------- */
.la-marquee { display: grid; gap: 40px; overflow: hidden; position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.la-marquee__fila { display: flex; width: max-content; animation: la-marquee 48s linear infinite; }
.la-marquee__fila--inversa { animation-direction: reverse; animation-duration: 56s; }
.la-marquee:hover .la-marquee__fila,
.la-marquee:focus-within .la-marquee__fila { animation-play-state: paused; }
.la-marquee__pista { display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.la-marquee__item { flex: 0 0 auto; }
.la-marquee__logo { display: block; width: 168px; height: 56px; object-fit: contain;
	filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.la-marquee__logo:hover { filter: none; opacity: 1; }
@keyframes la-marquee { to { transform: translateX(-50%); } }

@media (max-width: 767px) {
	.la-marquee { gap: 24px; }
	.la-marquee__pista { gap: 32px; padding: 0 16px; }
	.la-marquee__logo { width: 120px; height: 44px; }
}

/* Sin animación: fila estática con desplazamiento manual. */
@media (prefers-reduced-motion: reduce) {
	.la-marquee { -webkit-mask-image: none; mask-image: none; }
	.la-marquee__fila { animation: none; width: auto; overflow-x: auto; }
	.la-marquee__pista[aria-hidden="true"] { display: none; }
}

/* ---------- Vídeos con fachada ---------- */
.la-videos { --la-v-ancho: calc((100% - 48px) / 3.2); color: #fff; }
.la-videos__barra { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-bottom: 24px; }
.la-videos__canal { color: #fff; font-weight: 600; text-decoration: none; }
.la-videos__canal:hover, .la-videos__canal:focus-visible { text-decoration: underline; }
.la-videos__nav { display: flex; gap: 12px; }
.la-videos__btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4);
	background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.la-videos__btn:hover, .la-videos__btn:focus-visible { background: #fff; color: var(--la-marino); }
.la-videos__pista { display: grid; grid-auto-flow: column; grid-auto-columns: var(--la-v-ancho); gap: 24px;
	margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; overscroll-behavior-x: contain; }
.la-videos__pista::-webkit-scrollbar { display: none; }
.la-videos__item { scroll-snap-align: start; }
.la-videos__enlace { display: grid; gap: 16px; color: #fff; text-decoration: none; }
.la-videos__marco { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #001a38; }
.la-videos__mini, .la-videos__marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.la-videos__play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	border-radius: 999px; background: var(--la-rojo); transition: transform .2s; }
.la-videos__play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.la-videos__enlace:hover .la-videos__play, .la-videos__enlace:focus-visible .la-videos__play { transform: scale(1.08); }
.la-videos__dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 4px;
	background: rgba(0,0,0,.7); font-size: 13px; font-weight: 600; }
.la-videos__titulo { font-size: 19px; font-weight: 600; line-height: 1.35; }
.la-videos__item.is-reproduciendo .la-videos__play,
.la-videos__item.is-reproduciendo .la-videos__dur { display: none; }

@media (max-width: 767px) {
	.la-videos { --la-v-ancho: 82%; }
	.la-videos__barra { justify-content: space-between; margin-bottom: 24px; }
	.la-videos__nav { display: none; }
	.la-videos__titulo { font-size: 17px; }
}

/* ---------- Credenciales del pie ---------- */
.la-cred { display: grid; gap: 32px; }
.la-cred__medallas, .la-cred__acreditaciones { display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 16px; margin: 0; padding: 0; list-style: none; }
.la-cred__acreditaciones { padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15); }
.la-cred__medalla { display: block; width: 96px; height: 96px; object-fit: contain; }
.la-cred__acreditacion { display: block; width: 124px; height: 38px; object-fit: contain; opacity: .85; }

@media (max-width: 767px) {
	.la-cred__medallas { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; gap: 14px; }
	.la-cred__medalla { width: 72px; height: 72px; }
	.la-cred__acreditaciones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
	.la-cred__acreditacion { width: 100%; height: 40px; }
}

/* ---------- Fecha del evento ---------- */
.la-fecha__dia, .la-fecha__mes { display: block; text-align: center; }
.la-fecha__mes { text-transform: uppercase; letter-spacing: 1.5px; }
.la-fecha__completa { text-transform: capitalize; }

/* ---------- Botón y enlace propios ---------- */
.la-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 5px;
	background: var(--la-rojo); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .5px;
	text-transform: uppercase; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.la-btn:hover, .la-btn:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(252,68,43,.25); }
.la-enlace { display: inline-flex; gap: 8px; font-weight: 600; color: var(--la-marino); text-decoration: none; }
.la-enlace span { transition: transform .2s; }
.la-enlace:hover span, .la-enlace:focus-visible span { transform: translateX(4px); }
.la-enlace--claro { color: #fff; }

/* ---------- Próximo evento ---------- */
.la-evento { overflow: hidden; border-radius: 20px; background: #F3F5F8; }
.la-evento__media { position: relative; display: block; aspect-ratio: 684 / 320; background: var(--la-marino); }
.la-evento__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.la-badge { position: absolute; top: 24px; left: 24px; padding: 12px 18px; border-radius: 12px;
	background: var(--la-rojo); color: #fff; font-family: Poppins, sans-serif; line-height: 1; }
.la-badge .la-fecha__dia { font-size: 34px; font-weight: 600; }
.la-badge .la-fecha__mes { margin-top: 4px; font-size: 14px; font-weight: 500; }
.la-evento__cuerpo { display: grid; gap: 14px; padding: 32px 36px; }
.la-evento__meta { margin: 0; color: var(--la-texto-sec); font-size: 15px; font-weight: 600; }
.la-evento__titulo { margin: 0; font-family: Lora, serif; font-size: 26px; font-weight: 600; line-height: 1.25; }
.la-evento__titulo a { color: var(--la-marino); text-decoration: none; }
.la-evento__titulo a:hover, .la-evento__titulo a:focus-visible { text-decoration: underline; }
.la-evento__acciones { margin: 8px 0 0; }

/* ---------- Últimas noticias ---------- */
.la-noticias { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #DDE3EA; }
.la-noticia { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid #DDE3EA; }
.la-noticia__media { display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; }
.la-noticia__media--vacia { background: var(--la-marino); }
.la-noticia__img { width: 100%; height: 100%; object-fit: cover; }
.la-noticia__txt { display: grid; gap: 6px; }
.la-noticia__txt time { color: var(--la-texto-sec); font-size: 14px; font-weight: 600; }
.la-noticia__titulo { margin: 0; font-family: Lora, serif; font-size: 19px; font-weight: 600; line-height: 1.3; }
.la-noticia__titulo a { color: var(--la-marino); text-decoration: none; }
.la-noticia__titulo a:hover, .la-noticia__titulo a:focus-visible { text-decoration: underline; }

/* ---------- Herramientas: vías de LexScope y portada de la revista ---------- */
.la-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.la-chips li { padding: 7px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; }
.la-portada { display: grid; align-content: start; gap: 6px; width: 150px; aspect-ratio: 150 / 212; padding: 14px; border-radius: 4px;
	background: var(--la-marino); color: #fff; box-shadow: 0 10px 24px rgba(0,26,64,.25); font-family: Poppins, sans-serif; }
.la-portada span { font-size: 9px; opacity: .8; }
.la-portada span:first-child { font-size: 7px; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
.la-portada strong { font-size: 17px; font-weight: 600; line-height: 1.05; text-transform: uppercase; }
.la-portada i { display: block; width: 28px; height: 3px; background: var(--la-rojo); }

@media (max-width: 767px) {
	.la-evento__cuerpo { padding: 22px; }
	.la-evento__titulo { font-size: 21px; }
	.la-badge { top: 16px; left: 16px; padding: 8px 14px; }
	.la-badge .la-fecha__dia { font-size: 26px; }
	.la-btn { width: 100%; justify-content: center; }
	.la-noticia { grid-template-columns: 88px 1fr; gap: 14px; padding: 16px 0; }
	.la-noticia__titulo { font-size: 16px; }
	.la-portada { width: 84px; padding: 8px; }
	.la-portada strong { font-size: 10px; }
	.la-portada span { display: none; }
}

/* ---------- v1.2.0: colores de enlace por encima del color de enlace del kit ---------- */
body .elementor a.la-btn, body .elementor a.la-btn:visited, body .elementor a.la-btn:hover, body .elementor a.la-btn:focus-visible { color: #fff; }
body .elementor a.la-enlace, body .elementor a.la-enlace:visited, body .elementor a.la-enlace:hover { color: var(--la-marino); }
body .elementor a.la-enlace--claro, body .elementor a.la-enlace--claro:visited, body .elementor a.la-enlace--claro:hover,
body .elementor a.la-videos__canal, body .elementor a.la-videos__canal:visited, body .elementor a.la-videos__canal:hover,
body .elementor a.la-videos__enlace, body .elementor a.la-videos__enlace:visited, body .elementor a.la-videos__enlace:hover { color: #fff; }
body .elementor .la-evento__titulo a, body .elementor .la-noticia__titulo a { color: var(--la-marino); }
body .elementor .la-videos__titulo, body .elementor .la-videos__dur { color: #fff; }

/* Flechas de vídeos: por encima de los estilos de botón del tema y del kit. */
body .elementor .la-videos__btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 0; }
body .elementor .la-videos__btn:hover, body .elementor .la-videos__btn:focus-visible { background: #fff; color: var(--la-marino); border-color: #fff; }
/* Escritorio: la barra (canal + flechas) sube a la altura del titular para no abrir un hueco. */
@media (min-width: 768px) { .la-videos__barra { margin-top: -72px; min-height: 48px; } }

/* Acreditaciones del pie: filas de 4. */
.la-cred__acreditaciones { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: start; gap: 24px 32px; }
.la-cred__acreditacion { width: 100%; max-width: 180px; height: 40px; object-position: left center; }
@media (max-width: 767px) { .la-cred__acreditaciones { grid-template-columns: repeat(2, 1fr); gap: 16px 18px; } }

/* Logos de proveedor acreditado: misma altura en las tres cajas. */
.la-pill { height: 64px; justify-content: center; }
.la-pill img { max-height: 52px; width: auto; object-fit: contain; }

/* Párrafos de los bloques nuevos sin márgenes heredados (el espacio lo da el contenedor). */
.la-txt p { margin: 0; }

/* ---------- v1.3.0: imágenes y titulares por encima de los estilos globales ---------- */
/* El tema y Elementor fuerzan img { height: auto } y la tipografía de h3 del kit: se blindan las piezas propias. */
body .elementor .la-evento__media, body .elementor .la-noticia__media, body .elementor .la-videos__marco { overflow: hidden; }
body .elementor img.la-evento__img, body .elementor img.la-videos__mini { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body .elementor img.la-noticia__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body .elementor h3.la-evento__titulo { margin: 0; font-family: Lora, serif; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: 0; text-transform: none; }
body .elementor h3.la-noticia__titulo { margin: 0; font-family: Lora, serif; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
body .elementor .la-evento__meta, body .elementor .la-noticia__txt time { font-family: "Source Sans Pro", sans-serif; }
@media (max-width: 767px) {
	body .elementor h3.la-evento__titulo { font-size: 20px; }
	body .elementor h3.la-noticia__titulo { font-size: 16px; }
}

/* Filas de los bloques nuevos: las columnas con ancho en % ceden ante el hueco entre columnas (sin desborde). */
body .elementor .la-fila > .e-con { --flex-shrink: 1; flex-shrink: 1; min-width: 0; }
