{"version":3,"file":"LogosClientes.DFeXj5WI.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_DJ_0WPVq","ControlType","LogosClientes","props","extra","logos","lista","usarBase","LOGOS_BASE","l","animar","MIN_ANIMAR","gap","altura","estimado","t","duracion","velocidad","lado","anchoContenido","grupo","clon","alto","prop","FILA","i","grises","fondo","espacioSuperior","font","mostrarTitulo","titulo","tamanoTitulo","centrarTitulo","colorTitulo","init_LogosClientes"],"sources":["https:/framerusercontent.com/modules/JEeRVJteE4biTD3QzfhB/LUR6WNW3Xab0kou6uZB2/LogosClientes.js"],"sourcesContent":["// Logos de clientes — carrusel infinito en CSS (los nombres salen en el HTML como texto alternativo).\n// Petición de Iván (7-oct-2026): llevar a bono-ia, ayudas y consultoras el carrusel \"proyectos carrusel\" que él había montado\n// con un Ticker y 9 imágenes sueltas, y poder ir añadiendo clientes nuevos él mismo.\n//\n// CÓMO SE EDITA LA LISTA (sin tocar código): los 9 clientes iniciales viven en LOGOS_BASE (aquí abajo). Para AÑADIR clientes nuevos:\n//  seleccionar el componente en Framer → panel derecho → \"Más logos\" → \"+\" (subir la imagen, escribir el nombre). Se muestran\n//  detrás de los iniciales. Para quitar o reordenar uno de los iniciales: editar LOGOS_BASE (o pedírselo a Claude) o desmarcar\n//  \"Incluir los iniciales\" y cargar la lista entera desde el panel.\n// Para que la lista sea la misma en todas las páginas, este componente va dentro de UN componente de diseño\n// (\"Logos clientes\") y las páginas usan ese componente: se edita una vez y cambia en todas.\n//\n// Tratamiento común: todos los logos en gris (color al pasar el ratón), misma altura base y texto alternativo con el nombre.\n// Si un logo trae mucho margen en blanco o es un cuadrado con fondo, hay dos ajustes por logo: `tamano` (altura relativa) y\n// `proporcion` (recorta la imagen a esa proporción ancho/alto; 0 = sin recorte). Con logos recortados al borde y con fondo\n// transparente no hace falta tocar ninguno de los dos.\n//\n// @framerSupportedLayoutWidth any\n// @framerSupportedLayoutHeight auto\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Valores iniciales: los 9 logos de Iván, con los ajustes que se afinaron al ver el render (ver logos-clientes/LEEME.md).\nconst LOGOS_BASE=[{nombre:\"Universitat de Val\\xe8ncia\",imagen:\"https://framerusercontent.com/images/aYaThz1kJRtuAaSzDbw4dB2moMU.png\",tamano:1.45,proporcion:1.93},{nombre:\"DMG MORI\",imagen:\"https://framerusercontent.com/images/lKYWhdDUzuGi05IiUzGy2OfMaQ.jpg\",tamano:.94,proporcion:3.57},{nombre:\"Transvia\",imagen:\"https://framerusercontent.com/images/7P2Ts3XQ9EdjNXYgHOwrG64RCus.png\",tamano:.69,proporcion:3.8},{nombre:\"RE/MAX Soluci\\xf3n Inmobiliaria\",imagen:\"https://framerusercontent.com/images/JNf61LoTreQgJ14ADHQHuWFIu18.png\",tamano:1.5,proporcion:1.89},{nombre:\"Contalia\",imagen:\"https://framerusercontent.com/images/EAT3q9rEUHfUGwbdWP9wjqD5LI.webp\",tamano:1.35,proporcion:0},{nombre:\"Trial 3 Inversiones Inmobiliarias\",imagen:\"https://framerusercontent.com/images/qmbFjiLcoqnvGvEUs6NZJxbm0k.png\",tamano:1.8,proporcion:0},{nombre:\"Veltis\",imagen:\"https://framerusercontent.com/images/Zf5pQ98hYJaky2JtW2u2rTzNif4.png\",tamano:.83,proporcion:0},{nombre:\"Center for Reproductive Health\",imagen:\"https://framerusercontent.com/images/rFmIQtUyzwvlaKz3VgpIwkSIUs.png\",tamano:.83,proporcion:0},{nombre:\"Valencia Bus Turistic\",imagen:\"https://framerusercontent.com/images/SUShHbo7unG8PMZ3pdA2lIgUUU.png\",tamano:1.1,proporcion:2.58}];const FILA=1.9// la fila mide altura × FILA; un logo con tamano 2 cabe sin recortarse\n;const MIN_ANIMAR=6// con menos logos el bucle dejaría huecos: se muestran quietos y centrados\n;export default function LogosClientes(props){const{logos,usarBase,mostrarTitulo,titulo,tamanoTitulo,centrarTitulo,fondo,colorTitulo,altura,velocidad,grises,anchoContenido,font,espacioSuperior}=props;const extra=Array.isArray(logos)?logos:[];const lista=[...usarBase===false?[]:LOGOS_BASE,...extra].filter(l=>l&&typeof l.imagen===\"string\"&&l.imagen);const animar=lista.length>=MIN_ANIMAR;const gap=Math.round(altura*1.3);// Duración del bucle = anchura estimada de un grupo / velocidad (px/s). La proporción real de cada imagen no se conoce\n// hasta cargarla, así que se usa 1,8 de media; con eso la velocidad real queda dentro de un ±30 % de la elegida.\nconst estimado=lista.reduce((t,l)=>t+altura*(l.tamano||1)*(l.proporcion||1.8)+gap,0);const duracion=Math.max(10,Math.round(estimado/Math.max(5,velocidad)));const lado=anchoContenido>0?`max(24px, calc((100cqi - ${anchoContenido}px) / 2 + 24px))`:\"24px\";const grupo=clon=>/*#__PURE__*/_jsx(\"ul\",{className:\"pz-logos-grupo\",\"aria-hidden\":clon?true:undefined,\"aria-label\":clon?undefined:\"Empresas que conf\\xedan en PotenzzIA\",children:lista.map((l,i)=>{const alto=altura*(l.tamano||1);const prop=l.proporcion&&l.proporcion>0?l.proporcion:0;return /*#__PURE__*/_jsx(\"li\",{className:\"pz-logo\",style:{height:`${altura*FILA}px`},children:/*#__PURE__*/_jsx(\"img\",{src:l.imagen,alt:clon?\"\":`Logo de ${l.nombre||\"cliente\"}`,loading:\"lazy\",decoding:\"async\",draggable:false,style:prop?{height:alto,width:alto*prop,objectFit:\"cover\"}:{height:alto,width:\"auto\",maxWidth:altura*4}})},(l.nombre||\"logo\")+i);})});return /*#__PURE__*/_jsxs(\"section\",{className:\"pz-logos-root\"+(animar?\" pz-logos-anim\":\"\")+(grises?\" pz-logos-grises\":\"\"),\"aria-label\":\"Clientes de PotenzzIA\",style:{width:\"100%\",boxSizing:\"border-box\",background:fondo,padding:`${typeof espacioSuperior===\"number\"&&espacioSuperior>=0?espacioSuperior+\"px\":\"clamp(36px, 5vw, 56px)\"} 0 clamp(36px, 5vw, 56px)`,fontFamily:font||\"Inter, system-ui, sans-serif\",[\"--pz-gap\"]:`${gap}px`,[\"--pz-dur\"]:`${duracion}s`},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .pz-logos-root{container-type:inline-size;position:relative}\n                .pz-logos-root *{box-sizing:border-box}\n                .pz-logos-vista{overflow:hidden}\n                .pz-logos-pista{display:flex;width:max-content}\n                .pz-logos-grupo{list-style:none;margin:0;padding:0 var(--pz-gap) 0 0;display:flex;align-items:center;gap:var(--pz-gap);flex:none}\n                .pz-logo{flex:none;display:flex;align-items:center;justify-content:center;margin:0;padding:0}\n                .pz-logo img{display:block;flex:none;transition:filter .25s ease,opacity .25s ease}\n                .pz-logos-grises .pz-logo img{filter:grayscale(1);opacity:.7}\n                .pz-logos-grises .pz-logo:hover img{filter:grayscale(0);opacity:1}\n                .pz-logos-anim .pz-logos-vista{-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}\n                .pz-logos-anim .pz-logos-pista{animation:pz-logos-mover var(--pz-dur) linear infinite}\n                .pz-logos-anim .pz-logos-vista:hover .pz-logos-pista{animation-play-state:paused}\n                .pz-logos-root:not(.pz-logos-anim) .pz-logos-pista{width:auto;justify-content:center;padding:0 24px}\n                .pz-logos-root:not(.pz-logos-anim) .pz-logos-grupo{flex-wrap:wrap;justify-content:center;padding:0}\n                .pz-logos-root:not(.pz-logos-anim) .pz-logo{height:auto!important}\n                @keyframes pz-logos-mover{from{transform:translateX(0)}to{transform:translateX(-50%)}}\n                @media (prefers-reduced-motion:reduce){\n                    .pz-logos-anim .pz-logos-pista{animation:none;width:auto;justify-content:center;padding:0 24px}\n                    .pz-logos-anim .pz-logos-grupo{flex-wrap:wrap;justify-content:center;padding:0}\n                    .pz-logos-anim .pz-logos-grupo[aria-hidden=\"true\"]{display:none}\n                    .pz-logos-anim .pz-logos-vista{-webkit-mask-image:none;mask-image:none}\n                    .pz-logos-anim .pz-logo{height:auto!important}\n                }\n            `}),mostrarTitulo&&titulo&&/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 clamp(20px, 3vw, 32px)\",padding:`0 ${lado}`,fontSize:tamanoTitulo||28,fontWeight:600,letterSpacing:\"-0.02em\",lineHeight:1.2,textAlign:centrarTitulo===false?\"left\":\"center\",color:colorTitulo},children:titulo}),/*#__PURE__*/_jsx(\"div\",{className:\"pz-logos-vista\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"pz-logos-pista\",children:[grupo(false),animar&&grupo(true)]})})]});}LogosClientes.displayName=\"LogosClientes\";addPropertyControls(LogosClientes,{usarBase:{type:ControlType.Boolean,title:\"Incluir los iniciales\",defaultValue:true},logos:{type:ControlType.Array,title:\"M\\xe1s logos\",control:{type:ControlType.Object,controls:{imagen:{type:ControlType.Image,title:\"Logo\"},nombre:{type:ControlType.String,title:\"Empresa\",defaultValue:\"\"},tamano:{type:ControlType.Number,title:\"Tama\\xf1o\",min:.4,max:2,step:.05,defaultValue:1},proporcion:{type:ControlType.Number,title:\"Recorte (ancho/alto)\",min:0,max:6,step:.05,defaultValue:0}}}},mostrarTitulo:{type:ControlType.Boolean,title:\"Mostrar t\\xedtulo\",defaultValue:true},titulo:{type:ControlType.String,title:\"T\\xedtulo\",defaultValue:\"Ya conf\\xedan en nosotros\",hidden:p=>!p.mostrarTitulo},tamanoTitulo:{type:ControlType.Number,title:\"Tama\\xf1o del t\\xedtulo\",min:14,max:56,step:1,defaultValue:28,hidden:p=>!p.mostrarTitulo},centrarTitulo:{type:ControlType.Boolean,title:\"Centrar el t\\xedtulo\",defaultValue:true,hidden:p=>!p.mostrarTitulo},colorTitulo:{type:ControlType.Color,title:\"Color del t\\xedtulo\",defaultValue:\"#5A5A5A\"},fondo:{type:ControlType.Color,title:\"Fondo\",defaultValue:\"#FFFFFF\"},altura:{type:ControlType.Number,title:\"Altura base (px)\",min:24,max:90,step:2,defaultValue:48},velocidad:{type:ControlType.Number,title:\"Velocidad (px/s)\",min:10,max:120,step:5,defaultValue:40},grises:{type:ControlType.Boolean,title:\"Logos en gris\",defaultValue:true},anchoContenido:{type:ControlType.Number,title:\"Alinear a columna\",min:0,max:1400,step:20,defaultValue:0},espacioSuperior:{type:ControlType.Number,title:\"Espacio superior\",defaultValue:-1,min:-1,max:128,step:1},font:{type:ControlType.String,title:\"Fuente CSS\",defaultValue:\"Inter, system-ui, sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogosClientes\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LogosClientes.map"],"mappings":"A,mKAqBC,SAAwBO,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,WAAS,gBAAc,SAAO,eAAa,gBAAc,QAAM,cAAY,SAAO,YAAU,SAAO,iBAAe,OAAK,mBAAiBC,EAAYC,EAAM,MAAM,QAAQC,CAAK,EAAEA,EAAM,CAAC,EAAQC,EAAM,CAAC,GAAGC,IAAW,GAAM,CAAC,EAAEC,EAAW,GAAGJ,CAAK,CAAC,CAAC,OAAO,GAAGK,GAAG,OAAOA,EAAE,QAAS,UAAUA,EAAE,MAAM,EAAQC,EAAOJ,EAAM,QAAQK,EAAiBC,EAAI,KAAK,MAAMC,EAAO,GAAG,EAE7ZC,EAASR,EAAM,QAAQ,EAAE,IAAIS,EAAEF,GAAQJ,EAAE,QAAQ,IAAIA,EAAE,YAAY,KAAKG,EAAI,CAAC,EAAQI,EAAS,KAAK,IAAI,GAAG,KAAK,MAAMF,EAAS,KAAK,IAAI,EAAEG,CAAS,CAAC,CAAC,EAAQC,EAAKC,EAAe,EAAE,4BAA4BA,EAAe,kBAAkB,OAAaC,EAAM,GAAmB,gBAAK,KAAK,CAAC,UAAU,iBAAiB,cAAcC,EAAK,GAAK,IAAA,GAAU,aAAaA,EAAK,IAAA,GAAU,oCAAuC,SAASf,EAAM,KAAK,EAAE,IAAI,CAAC,IAAMgB,EAAKT,GAAQJ,EAAE,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