/* LLOG Herramientas — front */
.llogh{--llogh-acento:#c8102e;--llogh-cols:3;--llogh-ratio:16/9;--llogh-gap:22px;--llogh-radio:14px;--llogh-tinta:#1c1c1e;--llogh-gris:#6b6b70;--llogh-borde:#e6e6ea;--llogh-fondo:#f5f5f7;font-size:16px;line-height:1.4;color:var(--llogh-tinta);box-sizing:border-box}
.llogh [hidden]{display:none!important}
.llogh *,.llogh *::before,.llogh *::after{box-sizing:border-box}
.llogh button{font:inherit;color:inherit;cursor:pointer}
.llogh[aria-busy="true"] .llogh-contenido{opacity:.45;pointer-events:none;transition:opacity .15s}
.llogh .llogh-contenido{transition:opacity .15s}

/* Barra: buscador + filtros */
.llogh-barra{display:flex;flex-direction:column;gap:14px;margin:0 0 26px}
.llogh-buscar{display:flex;align-items:center;gap:10px;max-width:520px;padding:0 14px;height:48px;border:1.5px solid var(--llogh-borde);border-radius:999px;background:#fff;color:var(--llogh-gris);transition:border-color .15s,box-shadow .15s}
.llogh-buscar:focus-within{border-color:var(--llogh-acento);box-shadow:0 0 0 3px color-mix(in srgb,var(--llogh-acento) 15%,transparent)}
.llogh-buscar input{flex:1;min-width:0;height:100%;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;padding:0!important;margin:0!important;font:inherit;font-size:16px;color:var(--llogh-tinta)}
.llogh-buscar input::-webkit-search-cancel-button{display:none}
.llogh-limpiar{border:0;background:var(--llogh-fondo);width:26px;height:26px;border-radius:50%;line-height:1;font-size:18px;color:var(--llogh-gris)}
.llogh-limpiar:hover{background:var(--llogh-borde)}

.llogh-filtros{display:flex;flex-direction:column;gap:10px}
.llogh-chips{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.llogh-chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;border:1.5px solid var(--llogh-borde);background:#fff;font-size:14px;line-height:1;white-space:nowrap;transition:background .12s,border-color .12s,color .12s}
.llogh-chip b{font-weight:700;letter-spacing:.02em}
.llogh-chip span{color:var(--llogh-gris)}
.llogh-chip:hover{border-color:var(--llogh-acento);color:var(--llogh-acento)}
.llogh-chip.es-activo{background:var(--llogh-acento);border-color:var(--llogh-acento);color:#fff}
.llogh-chip.es-activo span{color:rgba(255,255,255,.85)}
.llogh-chip:focus-visible{outline:2px solid var(--llogh-acento);outline-offset:2px}
.llogh-chips--tecnica{padding-left:12px;border-left:3px solid var(--llogh-acento)}
.llogh-chip--sub{height:32px;font-size:13px;background:var(--llogh-fondo);border-color:transparent}
.llogh-chip--sub.es-activo{background:var(--llogh-tinta);border-color:var(--llogh-tinta)}
.llogh-chip--tipo{height:32px;font-size:13px}
@media (max-width:640px){.llogh-chip span{display:none}.llogh-chip[data-metodo=""] b,.llogh-chip[data-metodo=""]{font-weight:600}}

/* Grid */
.llogh--grid .llogh-items{display:grid;grid-template-columns:repeat(var(--llogh-cols),minmax(0,1fr));gap:var(--llogh-gap);min-width:0}
@media (max-width:1024px){.llogh--grid .llogh-items{grid-template-columns:repeat(min(var(--llogh-cols),3),minmax(0,1fr))}}
@media (max-width:768px){.llogh--grid .llogh-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (max-width:420px){.llogh--grid .llogh-items{grid-template-columns:1fr}}

/* Tarjeta */
.llogh-tarjeta{position:relative;min-width:0;background:#fff;border-radius:var(--llogh-radio);overflow:hidden;border:1px solid var(--llogh-borde);transition:transform .18s,box-shadow .18s,border-color .18s}
.llogh-tarjeta:hover{transform:translateY(-3px);box-shadow:0 14px 30px -14px rgba(0,0,0,.28);border-color:transparent}
.llogh-enlace{display:flex;flex-direction:column;height:100%;text-decoration:none!important;color:inherit!important}
.llogh-media{position:relative;aspect-ratio:var(--llogh-ratio);background:var(--llogh-fondo);overflow:hidden}
.llogh-media img,.llogh-img{width:100%!important;height:100%!important;object-fit:cover;display:block;margin:0!important;border-radius:0!important;transition:transform .35s}
.llogh-tarjeta:hover .llogh-media img{transform:scale(1.04)}
/* Icono como máscara: toma el color del texto (color: …) */
.llogh-ico{display:inline-block;width:24px;height:24px;flex:none;background-color:currentColor;-webkit-mask-image:var(--llogh-ico);mask-image:var(--llogh-ico);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.llogh-ico--img{display:inline-block;width:24px;height:24px;object-fit:contain;flex:none;margin:0!important}
.llogh-ico--chip,.llogh-ico--chip.llogh-ico--img{width:18px;height:18px;margin-right:2px}
.llogh-chip[data-metodo]:not(.es-activo),.llogh-chip[data-tecnica]:not(.es-activo){color:var(--llogh-met,var(--llogh-acento))}
.llogh-chip[data-metodo]:not(.es-activo) b,.llogh-chip[data-metodo]:not(.es-activo) span{color:inherit}
.llogh-chip[data-metodo]:not(.es-activo):hover{border-color:var(--llogh-met,var(--llogh-acento))}
.llogh-chip[data-metodo=""]:not(.es-activo){color:var(--llogh-tinta)}
.llogh-chip:not(.es-activo) .llogh-ico--chip{color:inherit}
.llogh-ico--badge,.llogh-ico--badge.llogh-ico--img{width:26px;height:26px}
.llogh-badge.tiene-icono{padding:6px;border-radius:10px;color:var(--llogh-met,var(--llogh-acento))}
/* Sin imagen destacada: fondo del color del método con el icono en grande */
.llogh-sinimg{width:100%;height:100%;display:grid;place-items:center;background:var(--llogh-met,var(--llogh-acento));background-image:linear-gradient(135deg,rgba(255,255,255,.08),rgba(0,0,0,.12))}
.llogh-sinimg span{font-size:clamp(28px,6vw,44px);font-weight:800;letter-spacing:.04em;color:rgba(255,255,255,.55)}
.llogh-ico--grande,.llogh-ico--grande.llogh-ico--img{width:42%;height:42%;color:#fff;opacity:.92}
.llogh-badge{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:7px;padding:5px 10px 5px 7px;background:rgba(255,255,255,.96);border-radius:9px;box-shadow:0 2px 10px rgba(0,0,0,.14);font-size:13px;line-height:1;backdrop-filter:blur(4px)}
.llogh-badge b{color:var(--llogh-met,var(--llogh-acento));font-weight:800;letter-spacing:.03em}
.llogh-badge i{font-style:normal;color:var(--llogh-gris);padding-left:7px;border-left:1px solid var(--llogh-borde);font-weight:600}
.llogh-tipo{position:absolute;top:12px;right:12px;padding:4px 9px;border-radius:6px;background:rgba(28,28,30,.78);color:#fff;font-size:11.5px;font-weight:600;line-height:1;letter-spacing:.02em}
.llogh-cuerpo{display:flex;flex-direction:column;gap:10px;padding:14px 16px 16px;flex:1}
.llogh-titulo{margin:0!important;padding:0!important;font-size:17px!important;line-height:1.3!important;font-weight:700!important;color:var(--llogh-tinta)!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.llogh-cta{margin-top:auto;display:inline-flex;align-items:center;gap:6px;color:var(--llogh-acento);font-weight:600;font-size:14px}
.llogh-cta svg{transition:transform .18s}
.llogh-tarjeta:hover .llogh-cta svg{transform:translateX(4px)}

/* Lista */
.llogh--lista .llogh-items{display:flex;flex-direction:column;gap:14px}
.llogh--lista .llogh-enlace{flex-direction:row;align-items:stretch}
.llogh--lista .llogh-media{flex:0 0 min(38%,300px);aspect-ratio:var(--llogh-ratio)}
.llogh--lista .llogh-cuerpo{padding:18px 20px;justify-content:center}
.llogh--lista .llogh-titulo{font-size:19px!important;-webkit-line-clamp:2}
@media (max-width:560px){.llogh--lista .llogh-media{flex-basis:42%}.llogh--lista .llogh-cuerpo{padding:12px 14px}.llogh--lista .llogh-titulo{font-size:15px!important}.llogh--lista .llogh-badge{transform:scale(.85);transform-origin:left bottom}.llogh--lista .llogh-cta{display:none}}

/* Carrusel */
.llogh-carrusel{position:relative;min-width:0;max-width:100%;overflow:hidden}
.llogh-pista{display:flex;gap:var(--llogh-gap);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:6px 2px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch;min-width:0}
.llogh-pista::-webkit-scrollbar{display:none}
.llogh-pista .llogh-tarjeta{flex:0 0 calc((100% - var(--llogh-gap) * (var(--llogh-cols) - 1)) / var(--llogh-cols));scroll-snap-align:start}
@media (max-width:1024px){.llogh-pista .llogh-tarjeta{flex-basis:calc((100% - var(--llogh-gap) * 2) / 3)}}
@media (max-width:768px){.llogh-pista{gap:14px}.llogh-pista .llogh-tarjeta{flex-basis:calc((100% - 14px) / 2)}}
@media (max-width:420px){.llogh-pista .llogh-tarjeta{flex-basis:84%}}
.llogh-flecha{position:absolute;top:50%;z-index:2;width:44px;height:44px;margin-top:-30px;border-radius:50%;border:0;background:#fff;color:var(--llogh-tinta);box-shadow:0 4px 16px rgba(0,0,0,.18);display:grid;place-items:center;transition:opacity .15s,background .15s}
.llogh-flecha:hover{background:var(--llogh-acento);color:#fff}
.llogh-flecha--izq{left:6px}.llogh-flecha--der{right:6px}
.llogh-flecha[disabled]{opacity:0;pointer-events:none}
.llogh-tarjeta--mas{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed var(--llogh-borde);background:var(--llogh-fondo);color:var(--llogh-gris);min-height:180px}
.llogh-tarjeta--mas:hover{border-color:var(--llogh-acento);color:var(--llogh-acento);transform:none;box-shadow:none}
.llogh-mas-num{font-size:40px;font-weight:800;line-height:1;color:var(--llogh-tinta)}
.llogh-mas-cta{margin-top:10px;padding:8px 18px;border-radius:999px;background:var(--llogh-acento);color:#fff;font-weight:600;font-size:14px}

/* Paginación */
.llogh-paginacion{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin-top:28px}
.llogh-pag{min-width:38px;height:38px;padding:0 12px;border-radius:10px;border:1.5px solid var(--llogh-borde);background:#fff;font-size:14px;font-weight:600}
.llogh-pag:hover:not([disabled]){border-color:var(--llogh-acento);color:var(--llogh-acento)}
.llogh-pag.es-actual{background:var(--llogh-tinta);border-color:var(--llogh-tinta);color:#fff}
.llogh-pag[disabled]{opacity:.4;cursor:default}
.llogh-pag--puntos{border:0;background:none;min-width:auto;padding:0 4px;color:var(--llogh-gris)}
.llogh-pag-total{width:100%;text-align:center;margin-top:8px;font-size:13px;color:var(--llogh-gris)}

/* Vacío */
.llogh-vacio{padding:48px 20px;text-align:center;background:var(--llogh-fondo);border-radius:var(--llogh-radio);color:var(--llogh-gris)}
.llogh-vacio p{margin:0 0 14px;font-size:16px}
.llogh-reset{border:0;background:var(--llogh-acento);color:#fff;padding:10px 20px;border-radius:999px;font-weight:600}

@media (prefers-reduced-motion:reduce){.llogh *{transition:none!important}.llogh-pista{scroll-behavior:auto}}

.llogh-ico--generico{width:38%;height:38%;color:#fff;opacity:.9}

/* Mismas reglas, para la vista previa angosta del generador (contenedor, no viewport) */
@container (max-width:1024px){.llogh--grid .llogh-items{grid-template-columns:repeat(min(var(--llogh-cols),3),minmax(0,1fr))}.llogh-pista .llogh-tarjeta{flex-basis:calc((100% - var(--llogh-gap) * 2) / 3)}}
@container (max-width:768px){.llogh--grid .llogh-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.llogh-pista{gap:14px}.llogh-pista .llogh-tarjeta{flex-basis:calc((100% - 14px) / 2)}}
@container (max-width:640px){.llogh-chip span{display:none}}
@container (max-width:560px){.llogh--lista .llogh-media{flex-basis:42%}.llogh--lista .llogh-cuerpo{padding:12px 14px}.llogh--lista .llogh-titulo{font-size:15px!important}.llogh--lista .llogh-cta{display:none}}
@container (max-width:420px){.llogh--grid .llogh-items{grid-template-columns:1fr}.llogh-pista .llogh-tarjeta{flex-basis:84%}}
