/* Bloque "Agente de voz IA" (partial _voice-band.html). Autónomo: se usa en
   /oferta y en el home, así que no depende de las variables de oferta.css. */
.of-voice-band {
    position: relative; margin-top: 32px; display: grid; gap: 18px 28px; align-items: center;
    background: linear-gradient(120deg, var(--theme-color, #1a8fc9), color-mix(in srgb, var(--theme-color, #1a8fc9) 55%, #0b1020) 100%);
    border-radius: 24px; padding: 18px; color: #fff; overflow: hidden; text-align: left;
    box-shadow: 0 26px 50px -30px rgba(var(--theme-color-rgb, 26,143,201),.8);
    font-family: 'DM Sans', sans-serif;
}
.of-voice-band img { width: 100%; height: auto; border-radius: 20px; display: block; }
.of-voice-band h3 {
    color: #fff !important; font-family: 'Montserrat', 'Space Grotesk', sans-serif; font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 900; text-transform: uppercase; line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.01em;
}
.of-voice-band p { color: rgba(255,255,255,.9); margin: 0 0 12px; line-height: 1.5; font-size: .95rem; }
.of-voice-band ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; font-size: .95rem; }
.of-voice-band li { display: flex; gap: 10px; color: #fff; }
.of-voice-band li i { color: #fff; margin-top: 4px; }

.of-voice-wave { display: flex; align-items: center; gap: 3px; height: 24px; margin-bottom: 8px; }
.of-voice-wave i { flex: 1; max-width: 5px; border-radius: 3px; background: rgba(255,255,255,.75); animation: ofSpeak 1.2s ease-in-out infinite; }
.of-voice-wave i:nth-child(3n) { animation-duration: .9s; } .of-voice-wave i:nth-child(4n) { animation-duration: 1.5s; }
.of-voice-wave i:nth-child(5n+1) { animation-delay: -.3s; } .of-voice-wave i:nth-child(7n+2) { animation-delay: -.7s; }
.of-voice-wave i:nth-child(2n) { background: rgba(255,255,255,.45); }
@keyframes ofSpeak { 0%, 100% { height: 5px; } 50% { height: 22px; } }

.of-demo {
    display: flex; align-items: center; gap: 12px; margin: 0; padding: 6px 14px 6px 6px; max-width: 360px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; backdrop-filter: blur(6px);
}
.of-demo[hidden] { display: none; }
.of-demo-btn {
    flex: 0 0 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.05rem; padding: 0;
    background: #fff; color: var(--theme-color, #1a8fc9); display: grid; place-items: center;
    box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: ofPlayPulse 2s infinite;
}
.of-demo.is-playing .of-demo-btn { animation: none; }
@keyframes ofPlayPulse { 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.of-demo-body { flex: 1; min-width: 0; }
.of-demo-lbl { display: block; font-weight: 800; font-size: .88rem; color: #fff; margin-bottom: 4px; }
.of-eq { display: flex; align-items: center; gap: 3px; height: 26px; }
.of-eq i { flex: 1; max-width: 4px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.55); transition: height .08s linear; }
.of-demo.is-playing .of-eq i { background: #fff; }
.of-demo-time { font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.85); }

.of-voice-phone-wrap { position: relative; display: none; }
.of-sonar { position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: ofSonar 3s ease-out infinite; pointer-events: none; }
.of-sonar:nth-child(2) { animation-delay: 1s; } .of-sonar:nth-child(3) { animation-delay: 2s; }
@keyframes ofSonar { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.of-voice-phone-wrap .of-voice-phone { position: relative; display: block; width: 150px; }

@media (min-width: 992px) {
    .of-voice-band { grid-template-columns: 0.9fr 1.2fr auto; padding: 22px 28px; }
    .of-voice-phone-wrap { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .of-voice-wave i, .of-sonar, .of-demo-btn { animation: none !important; }
}
