/* agentic_visual.css - Fallback visual para separadores de audio */
/* Versión 3.0: Editorial, Musical, Cálido y Agéntico */

.agentic-separator-visual {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
    opacity: 0;
    pointer-events: none;
    z-index: 45; /* Debajo de UI y video layer */
    transition: opacity 0.8s ease-in-out;
}

.agentic-separator-visual.active {
    opacity: 1;
}

/* BACKGROUND PALETTES (Gradientes ricos y sutiles) */
.palette-warm_bubbles { background: radial-gradient(circle at 70% 80%, #16223b 0%, #080d1a 60%, #03060a 100%); }
.palette-editorial_pop { background: linear-gradient(135deg, #112d38 0%, #0d1e28 50%, #081015 100%); }
.palette-dolores_air { background: radial-gradient(circle at 30% 20%, #122c2a 0%, #0a171c 60%, #050a0d 100%); }
.palette-ai_vibra_pulse { background: radial-gradient(circle at 50% 50%, #201336 0%, #0f0a1c 50%, #05030a 100%); }
.palette-night_signal { background: linear-gradient(180deg, #0d111a 0%, #05070a 100%); }

/* BUBBLES (Elegantes, transparentes, lentas) */
.bubble-elegant {
    position: absolute;
    border-radius: 50%;
    animation: drift-float linear infinite alternate;
    pointer-events: none;
}

.bubble-warm_bubbles {
    background: radial-gradient(circle at 30% 30%, rgba(255, 170, 100, 0.08), transparent 70%);
    border: 1px solid rgba(255, 170, 100, 0.05);
}
.bubble-editorial_pop {
    background: radial-gradient(circle at 30% 30%, rgba(100, 200, 255, 0.05), transparent 70%);
    border: 1px solid rgba(100, 200, 255, 0.03);
}
.bubble-dolores_air {
    background: radial-gradient(circle at 30% 30%, rgba(150, 255, 180, 0.04), transparent 70%);
    border: 1px solid rgba(150, 255, 180, 0.02);
}
.bubble-ai_vibra_pulse {
    background: radial-gradient(circle at 30% 30%, rgba(180, 100, 255, 0.06), transparent 70%);
    border: 1px solid rgba(180, 100, 255, 0.04);
}
.bubble-night_signal {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02), transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

@keyframes drift-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, -10vh) scale(1.1); }
}

/* TEXTURA */
.texture-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="4" height="4" xmlns="http://www.w3.org/2000/svg"><rect width="4" height="4" fill="none"/><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.02)"/></svg>');
    opacity: 0.6;
    pointer-events: none;
}

/* CAPAS */
.agentic-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.agentic-layer-bg { z-index: 1; }
.agentic-layer-keywords { z-index: 2; }
.agentic-layer-main { z-index: 3; display: flex; flex-direction: column; padding: 6vw; box-sizing: border-box; }
.agentic-layer-microcopy { z-index: 4; display: flex; box-sizing: border-box; }

/* MAIN HEADLINE */
.agentic-visual-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fdfdfd;
    opacity: 0;
    transform: translateY(15px);
    animation: text-reveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.agentic-visual-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(15px);
    animation: text-reveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

@keyframes text-reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* LAYOUTS PRINCIPALES */
.layout-editorial_left { justify-content: flex-end; align-items: flex-start; padding-bottom: 12vh; }
.layout-center_breathe { justify-content: center; align-items: center; text-align: center; }
.layout-diagonal_flow { justify-content: center; align-items: flex-start; transform: rotate(-3deg); margin-left: 5vw; }
.layout-bottom_band { justify-content: flex-end; padding-bottom: 5vh; }
.layout-floating_cluster { justify-content: flex-start; align-items: flex-end; text-align: right; padding-top: 15vh; }

/* MICROCOPY ROTATIVO */
.micro-layout-editorial_left { justify-content: flex-start; align-items: flex-start; padding: 4vw; }
.micro-layout-center_breathe { justify-content: center; align-items: flex-end; padding-bottom: 4vw; }
.micro-layout-diagonal_flow { justify-content: flex-end; align-items: flex-end; padding: 4vw; }
.micro-layout-bottom_band { justify-content: flex-start; align-items: flex-start; padding: 4vw; }
.micro-layout-floating_cluster { justify-content: flex-start; align-items: flex-end; padding: 4vw; }

.micro-rotater {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    transition: all 0.8s ease;
}

/* KEYWORDS FLOTANTES */
.keyword-elegant {
    position: absolute;
    font-size: clamp(3rem, 10vw, 12rem);
    font-weight: 850;
    color: #ffffff;
    letter-spacing: -0.04em;
    white-space: nowrap;
    animation: keyword-drift linear infinite alternate;
}

@keyframes keyword-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(4vw, -2vh); }
}

/* SOFT GLITCH (Solo reservado) */
.soft-glitch-lite { position: relative; animation: glitch-lite 4s infinite; }
.soft-glitch-lite::before, .soft-glitch-lite::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none;
}
.soft-glitch-lite::before { color: rgba(100, 200, 255, 0.5); z-index: -1; animation: glitch-anim-1 3s infinite linear alternate-reverse; }
.soft-glitch-lite::after { color: rgba(255, 100, 200, 0.5); z-index: -2; animation: glitch-anim-2 3.5s infinite linear alternate-reverse; }

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-1px, 0); }
    50% { clip-path: inset(40% 0 50% 0); transform: translate(1px, 0); }
    100% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(60% 0 10% 0); transform: translate(1px, 0); }
    50% { clip-path: inset(20% 0 50% 0); transform: translate(-1px, 0); }
    100% { clip-path: inset(80% 0 5% 0); transform: translate(1px, 0); }
}

/* MOTION VARIANTS CONTAINER */
.motion-drift_slow { animation: container-drift 20s infinite alternate linear; }
.motion-breathe { animation: container-breathe 8s infinite alternate ease-in-out; }
.motion-pulse_soft { animation: container-pulse 6s infinite alternate ease-in-out; }
.motion-pan_lateral { animation: container-pan 15s infinite alternate ease-in-out; }

@keyframes container-drift { 0% { background-position: 0% 0%; } 100% { background-position: 5% 5%; } }
@keyframes container-breathe { 0% { transform: scale(1); } 100% { transform: scale(1.02); } }
@keyframes container-pulse { 0% { opacity: 1; } 100% { opacity: 0.95; } }
@keyframes container-pan { 0% { transform: translateX(0); } 100% { transform: translateX(-1vw); } }
