/* ==========================================================
   voronoi-bg.css — Fondo Voronoi animado (identidad visual Solo2)
   Compartido entre landing page y páginas legales
   ========================================================== */

@keyframes voronoi-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 300px 300px; }
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Contenedor fijo de fondo --- */
.voronoi-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 40%, #0f172a 70%, #1a1040 100%);
    background-size: 300% 300%;
    animation: gradient-shift 14s ease infinite;
}

/* --- Capa 1: trama indigo, drift lento --- */
.voronoi-layer-1 {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cpath d='M68.4,0.0L69.0,8.2M123.0,0.0L122.3,5.8M0.0,183.4L14.2,182.2M0.0,1.3L56.1,16.3M0.0,93.4L1.2,94.1M69.0,8.2L122.3,5.8M69.0,8.2L56.1,16.3M56.1,16.3L58.2,80.1M122.3,5.8L123.7,7.2M123.7,7.2L174.5,14.6M123.7,7.2L121.5,97.4M192.6,0.0L174.5,14.6M174.5,14.6L197.7,98.3M235.6,0.0L229.7,90.7M297.4,0.0L297.9,0.7M14.2,182.2L1.2,94.1M14.2,182.2L33.6,192.3M1.2,94.1L58.2,80.1M58.2,80.1L81.5,96.2M81.5,96.2L118.7,99.1M81.5,96.2L33.6,192.3M33.6,192.3L40.3,199.9M197.7,98.3L208.3,103.9M197.7,98.3L121.5,97.4M121.5,97.4L118.7,99.1M118.7,99.1L117.7,205.1M229.7,90.7L280.9,82.0M229.7,90.7L208.3,103.9M208.3,103.9L208.7,106.9M208.7,106.9L175.3,190.6M208.7,106.9L273.8,185.5M40.3,199.9L61.7,207.0M40.3,199.9L0.0,276.9M117.7,205.1L132.9,213.1M117.7,205.1L61.7,207.0M61.7,207.0L68.4,300.0M132.9,213.1L134.9,212.9M132.9,213.1L123.0,300.0M175.3,190.6L241.3,215.6M175.3,190.6L134.9,212.9M134.9,212.9L213.8,282.9M273.8,185.5L300.0,183.4M273.8,185.5L241.3,215.6M241.3,215.6L238.9,279.3M297.9,0.7L300.0,1.3M297.9,0.7L280.9,82.0M280.9,82.0L300.0,93.4M300.0,276.9L291.8,292.6M213.8,282.9L236.9,280.5M213.8,282.9L192.6,300.0M238.9,279.3L291.8,292.6M238.9,279.3L236.9,280.5M236.9,280.5L235.6,300.0M291.8,292.6L297.4,300.0' fill='none' stroke='%236366f1' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 350px 350px;
    animation: voronoi-drift 60s linear infinite;
}

/* --- Capa 2: trama blanca tenue, parallax inverso --- */
.voronoi-layer-2 {
    position: absolute;
    inset: -30%;
    width: 160%;
    height: 160%;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cpath d='M68.4,0.0L69.0,8.2M123.0,0.0L122.3,5.8M0.0,183.4L14.2,182.2M0.0,1.3L56.1,16.3M0.0,93.4L1.2,94.1M69.0,8.2L122.3,5.8M69.0,8.2L56.1,16.3M56.1,16.3L58.2,80.1M122.3,5.8L123.7,7.2M123.7,7.2L174.5,14.6M123.7,7.2L121.5,97.4M192.6,0.0L174.5,14.6M174.5,14.6L197.7,98.3M235.6,0.0L229.7,90.7M297.4,0.0L297.9,0.7M14.2,182.2L1.2,94.1M14.2,182.2L33.6,192.3M1.2,94.1L58.2,80.1M58.2,80.1L81.5,96.2M81.5,96.2L118.7,99.1M81.5,96.2L33.6,192.3M33.6,192.3L40.3,199.9M197.7,98.3L208.3,103.9M197.7,98.3L121.5,97.4M121.5,97.4L118.7,99.1M118.7,99.1L117.7,205.1M229.7,90.7L280.9,82.0M229.7,90.7L208.3,103.9M208.3,103.9L208.7,106.9M208.7,106.9L175.3,190.6M208.7,106.9L273.8,185.5M40.3,199.9L61.7,207.0M40.3,199.9L0.0,276.9M117.7,205.1L132.9,213.1M117.7,205.1L61.7,207.0M61.7,207.0L68.4,300.0M132.9,213.1L134.9,212.9M132.9,213.1L123.0,300.0M175.3,190.6L241.3,215.6M175.3,190.6L134.9,212.9M134.9,212.9L213.8,282.9M273.8,185.5L300.0,183.4M273.8,185.5L241.3,215.6M241.3,215.6L238.9,279.3M297.9,0.7L300.0,1.3M297.9,0.7L280.9,82.0M280.9,82.0L300.0,93.4M300.0,276.9L291.8,292.6M213.8,282.9L236.9,280.5M213.8,282.9L192.6,300.0M238.9,279.3L291.8,292.6M238.9,279.3L236.9,280.5M236.9,280.5L235.6,300.0M291.8,292.6L297.4,300.0' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: voronoi-drift 90s linear infinite reverse;
}

/* --- Glow radial central --- */
.voronoi-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

/* --- Overlay para legibilidad del texto --- */
.voronoi-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 26, 0.5) 0%,
        transparent 30%,
        transparent 70%,
        rgba(10, 14, 26, 0.7) 100%
    );
    pointer-events: none;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .voronoi-bg { animation: none; }
    .voronoi-layer-1,
    .voronoi-layer-2 { animation: none; }
}
