{"version":3,"file":"MeshGradient.DbMuTcGz.mjs","names":[],"sources":["https:/framerusercontent.com/modules/jOJEIp7wJ8CWSarNtKvP/BA4J1ky0YyUGmYu1S4OL/MeshGradient.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// ── Keyframes inyectados una sola vez ──\nconst STYLE_ID=\"mesh-gradient-keyframes\";if(typeof document!==\"undefined\"&&!document.getElementById(STYLE_ID)){const style=document.createElement(\"style\");style.id=STYLE_ID;style.textContent=`\n    @keyframes meshMove1 {\n      0%   { transform: translate(0%,    0%)   scale(1);    }\n      33%  { transform: translate(8%,    6%)   scale(1.05); }\n      66%  { transform: translate(4%,    12%)  scale(0.98); }\n      100% { transform: translate(6%,    14%)  scale(0.96); }\n    }\n    @keyframes meshMove2 {\n      0%   { transform: translate(0%,    0%)   scale(1);    }\n      33%  { transform: translate(-10%,  8%)   scale(1.08); }\n      66%  { transform: translate(-6%,  -4%)   scale(0.95); }\n      100% { transform: translate(-4%,  -8%)   scale(0.93); }\n    }\n    @keyframes meshMove3 {\n      0%   { transform: translate(0%,    0%)   scale(1);    }\n      33%  { transform: translate(-6%,  -10%)  scale(1.06); }\n      66%  { transform: translate(8%,   -4%)   scale(1.08); }\n      100% { transform: translate(10%,  -6%)   scale(1.06); }\n    }\n    @keyframes meshMove4 {\n      0%   { transform: translate(0%,    0%)   scale(1);    }\n      33%  { transform: translate(-8%,  -10%)  scale(1.10); }\n      66%  { transform: translate(3%,   -8%)   scale(0.92); }\n      100% { transform: translate(5%,   -10%)  scale(0.90); }\n    }\n  `;document.head.appendChild(style);}export default function MeshGradient({baseColor=\"#000000\",blob1Color=\"#8b0000\",blob2Color=\"#4a0000\",blob3Color=\"#c59dff\",blob4Color=\"#1a0030\",blurAmount=100,blobOpacity=.68,animationSpeed=12,showNoise=true,noiseOpacity=.3,borderRadius=0,showBorder=false,borderColor=\"rgba(197,157,255,0.15)\"}){const wrap={position:\"absolute\",inset:0,background:baseColor,overflow:\"hidden\",borderRadius,border:showBorder?`1px solid ${borderColor}`:\"none\"};const blobBase={position:\"absolute\",borderRadius:\"50%\",filter:`blur(${blurAmount}px)`,opacity:blobOpacity,mixBlendMode:\"screen\",willChange:\"transform\"};// ── Posiciones calibradas para el look rojo-centro → lavanda-esquina → negro ──\nconst blobs=[{// Blob 1 — Rojo dominante, anclado arriba-centro-izquierda\n...blobBase,width:\"65%\",height:\"60%\",background:blob1Color,top:\"-15%\",left:\"-5%\",animation:`meshMove1 ${animationSpeed}s ease-in-out infinite alternate`},{// Blob 2 — Rojo oscuro, refuerza el glow central, evita el corte brusco\n...blobBase,width:\"45%\",height:\"45%\",background:blob2Color,top:\"10%\",left:\"20%\",opacity:blobOpacity*.85,animation:`meshMove2 ${animationSpeed*1.1}s ease-in-out infinite alternate`},{// Blob 3 — Lavanda, sutil, esquina inferior-derecha\n...blobBase,width:\"38%\",height:\"38%\",background:blob3Color,bottom:\"-10%\",right:\"-8%\",opacity:blobOpacity*.45,animation:`meshMove3 ${animationSpeed*.9}s ease-in-out infinite alternate`},{// Blob 4 — Púrpura muy oscuro, rellena las sombras, da profundidad\n...blobBase,width:\"30%\",height:\"30%\",background:blob4Color,bottom:\"15%\",right:\"20%\",opacity:blobOpacity*.5,animation:`meshMove4 ${animationSpeed*1.2}s ease-in-out infinite alternate`}];// SVG noise inline (no fetch externo, no impacto SEO)\nconst noiseSvg=`url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E\")`;return /*#__PURE__*/_jsxs(\"div\",{style:wrap,\"aria-hidden\":\"true\",children:[blobs.map((style,i)=>/*#__PURE__*/_jsx(\"div\",{style:style},i)),showNoise&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundImage:noiseSvg,opacity:noiseOpacity,pointerEvents:\"none\"}})]});}// ── Framer Property Controls ──\naddPropertyControls(MeshGradient,{baseColor:{type:ControlType.Color,title:\"Base\",defaultValue:\"#000000\"},blob1Color:{type:ControlType.Color,title:\"Blob 1 — Rojo principal\",defaultValue:\"#8b0000\"},blob2Color:{type:ControlType.Color,title:\"Blob 2 — Rojo oscuro\",defaultValue:\"#4a0000\"},blob3Color:{type:ControlType.Color,title:\"Blob 3 — Lavanda ★\",defaultValue:\"#c59dff\"},blob4Color:{type:ControlType.Color,title:\"Blob 4 — Sombra profunda\",defaultValue:\"#1a0030\"},blurAmount:{type:ControlType.Number,title:\"Blur\",defaultValue:100,min:20,max:160,step:5,unit:\"px\"},blobOpacity:{type:ControlType.Number,title:\"Opacidad base\",defaultValue:.68,min:.1,max:1,step:.05,displayStepper:true},animationSpeed:{type:ControlType.Number,title:\"Velocidad\",defaultValue:12,min:3,max:40,step:1,unit:\"s\"},showNoise:{type:ControlType.Boolean,title:\"Noise overlay\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},noiseOpacity:{type:ControlType.Number,title:\"Noise opacity\",defaultValue:.3,min:0,max:1,step:.05,hidden(props){return!props.showNoise;}},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:48,step:2,unit:\"px\"},showBorder:{type:ControlType.Boolean,title:\"Borde sutil\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},borderColor:{type:ControlType.Color,title:\"Color borde\",defaultValue:\"rgba(197,157,255,0.15)\",hidden(props){return!props.showBorder;}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MeshGradient\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MeshGradient.map"],"mappings":"mKA0BsC,SAAwB,EAAa,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