/* Página Funcionalidades: estados, esquema y animaciones de cada módulo */

/* ---------- Estados ---------- */
.st-ok     { --st: #047857; --st-bg: #d1fae5; }
.st-mejora { --st: #92400e; --st-bg: #fef3c7; }
.st-pronto { --st: #4338ca; --st-bg: #e0e7ff; }
.st-dev    { --st: #6d28d9; --st-bg: #ede9fe; }
.st-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 9999px; background: var(--st-bg); color: var(--st); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.st-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st); }
.st-icon { color: var(--st); font-size: 18px !important; flex-shrink: 0; margin-top: 1px; }

/* Filtros */
.filter-chip[aria-pressed="true"] { background: #0B2E6B; color: #fff; border-color: #0B2E6B; }
.filter-chip[aria-pressed="true"] .count { background: rgba(255,255,255,.18); color: #fff; }
[data-status].is-hidden, .module.is-hidden, .mod-list.is-hidden, .fgroup.is-hidden { display: none !important; }

/* Sub-navegación */
.subnav a.is-active { background: #0B2E6B; color: #fff; }

/* ---------- Esquema de flujo ---------- */
.flow-node { position: relative; z-index: 1; }
.flow-link { position: relative; flex: 1; min-width: 24px; height: 2px; background: repeating-linear-gradient(90deg, #aec6ff 0 6px, transparent 6px 12px); }
.flow-link i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #1E73EB; box-shadow: 0 0 0 4px rgba(30,115,235,.18); animation: flowX 5s linear infinite; animation-delay: var(--d, 0s); opacity: 0; }
@keyframes flowX { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 18% { left: calc(100% - 10px); opacity: 1; } 22%, 100% { left: calc(100% - 10px); opacity: 0; } }
@media (max-width: 1023px) {
  .flow-link { flex: none; width: 2px; height: 28px; min-width: 0; margin: 0 auto; background: repeating-linear-gradient(180deg, #aec6ff 0 6px, transparent 6px 12px); }
  .flow-link i { left: 50%; top: 0; margin: 0 0 0 -5px; animation-name: flowY; }
  @keyframes flowY { 0% { top: 0; opacity: 0; } 4% { opacity: 1; } 18% { top: calc(100% - 10px); opacity: 1; } 22%, 100% { top: calc(100% - 10px); opacity: 0; } }
}
.flow-node.pulse .flow-icon { animation: nodePulse 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,115,235,0); } 6% { box-shadow: 0 0 0 8px rgba(30,115,235,.18); } 14% { box-shadow: 0 0 0 0 rgba(30,115,235,0); } }

/* Hoja de ruta */
.roadmap-card .rm-icon { animation: rmFloat 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes rmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Escenario de animación ---------- */
.reveal:not(.is-visible) .fx-stage, .reveal:not(.is-visible) .fx-stage * { animation-play-state: paused !important; }
.fx-stage { position: relative; border-radius: 1rem; padding: 1.25rem; background: radial-gradient(120% 120% at 100% 0%, #d8e2ff 0%, #ecf5ff 45%, #f6f9ff 100%); overflow: hidden; }
.fx-stage::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -60px; border-radius: 50%; background: rgba(91,179,241,.18); filter: blur(10px); pointer-events: none; }
.fx-window { position: relative; z-index: 1; background: #fff; border: 1px solid #E2E8F0; border-radius: .75rem; box-shadow: 0 8px 20px -4px rgba(11,46,107,.08), 0 4px 6px -2px rgba(11,46,107,.04); overflow: hidden; font-size: 11px; color: #111d26; }
.fx-bar { display: flex; align-items: center; gap: 4px; padding: 7px 10px; background: #deeaf6; }
.fx-bar span { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }
.fx-bar span:nth-child(2) { background: #f59e0b; } .fx-bar span:nth-child(3) { background: #10b981; }
.fx-bar b { margin-left: 8px; font-size: 10px; font-weight: 600; color: #424754; }
.fx-body { padding: 12px; }
.fx-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #727785; }
.fx-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 9999px; background: #E6F2FF; color: #0B2E6B; font-size: 10px; font-weight: 600; }
.fx-tag .material-symbols-outlined { font-size: 13px; }
.fx-tag.ok { background: #d1fae5; color: #065f46; }
.fx-track { height: 6px; border-radius: 9999px; background: #e3effc; overflow: hidden; margin-top: 4px; }
.fx-progress { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #1E73EB, #5BB3F1); border-radius: inherit; transform-origin: left; animation: fill 6s ease-out infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 35%, 100% { transform: scaleX(1); } }
.fx-progress.loop { background: linear-gradient(90deg, #10b981, #34d399); }

/* Panel */
.fx-kpi { background: #ecf5ff; border-radius: .5rem; padding: 7px 8px; }
.fx-kpi small { display: block; font-size: 9px; color: #424754; }
.fx-kpi strong { display: block; font-size: 14px; color: #0B2E6B; font-variant-numeric: tabular-nums; }
.fx-kpi em { font-style: normal; font-size: 9px; font-weight: 700; color: #727785; }
.fx-kpi em.up { color: #047857; }
.fx-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; padding: 6px; background: #f6f9ff; border-radius: .5rem; }
.fx-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #1E73EB, #5BB3F1); transform-origin: bottom; animation: grow 6s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: var(--d); }
@keyframes grow { 0% { transform: scaleY(0); } 25%, 90% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

@keyframes tip { 0%, 30% { opacity: 0; transform: translateY(6px) scale(.95); } 38%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(6px) scale(.95); } }

/* Planning */
.fx-gantt { --col: calc((100% - 44px) / 7); font-size: 9px; }
.fx-gantt-head { display: grid; grid-template-columns: 44px repeat(7, 1fr); text-align: center; font-weight: 700; color: #727785; margin-bottom: 4px; }
.fx-gantt-head .we { color: #415c9b; }
.fx-gantt-head .today { color: #fff; background: #1E73EB; border-radius: 4px; }
.fx-gantt-rows { position: relative; display: grid; grid-template-rows: repeat(5, 28px); background: linear-gradient(90deg, transparent 44px, rgba(30,115,235,.07) 44px) ; }
.fx-gantt-rows > div { border-top: 1px solid #E2E8F0; display: flex; align-items: center; }
.fx-gantt-rows b { color: #0B2E6B; }
.fx-gantt-rows::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(44px + var(--col) * 2); width: var(--col); background: rgba(30,115,235,.08); }
.fx-stay { position: absolute; height: 20px; display: flex; align-items: center; padding: 0 6px; border-radius: 9999px; background: #1E73EB; color: #fff; font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; }
.fx-stay.present { background: #0B2E6B; }
.fx-stay.done { background: #c2c6d6; color: #424754; }
.s1 { top: 4px; left: calc(44px + var(--col) * 0); width: calc(var(--col) * 3); }
.s2 { top: 32px; left: calc(44px + var(--col) * 1); width: calc(var(--col) * 4); }
.s3 { top: 60px; left: calc(44px + var(--col) * 3); width: calc(var(--col) * 3); background: #5BB3F1; color: #0B2E6B; box-shadow: 0 6px 14px rgba(11,46,107,.25); }
.s4 { top: 88px; left: calc(44px + var(--col) * 0); width: calc(var(--col) * 3); }
.s5 { top: 116px; left: calc(44px + var(--col) * 4); width: calc(var(--col) * 3); }
.fx-move { animation: moveStay 7s ease-in-out infinite; }
@keyframes moveStay { 0%, 15% { transform: translate(0, 0); } 35%, 60% { transform: translate(calc(var(--col) * -2), 56px); } 80%, 100% { transform: translate(0, 0); } }
.fx-stretch { transform-origin: left; animation: stretch 7s ease-in-out infinite; }
@keyframes stretch { 0%, 20% { width: calc(var(--col) * 3); } 45%, 75% { width: calc(var(--col) * 5); } 95%, 100% { width: calc(var(--col) * 3); } }
.fx-ghost { position: absolute; top: 116px; left: calc(44px + var(--col) * 1); width: calc(var(--col) * 2); height: 20px; border: 1.5px dashed #5BB3F1; border-radius: 9999px; animation: ghost 7s ease-in-out infinite; }
@keyframes ghost { 0%, 15% { opacity: 0; } 25%, 55% { opacity: 1; } 65%, 100% { opacity: 0; } }

/* Estancias */
.fx-line { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 6px; background: #f6f9ff; animation: lineIn 7s ease-out infinite; animation-delay: var(--d); opacity: 0; font-variant-numeric: tabular-nums; }
@keyframes lineIn { 0% { opacity: 0; transform: translateX(-8px); } 6%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.fx-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1.5px dashed #c2c6d6; animation: lineIn 7s ease-out infinite; animation-delay: var(--d); opacity: 0; }
.fx-total strong { font-size: 18px; color: #0B2E6B; font-variant-numeric: tabular-nums; }
.fx-chip-sky { padding: 3px 8px; border-radius: 9999px; background: #E6F2FF; color: #0058be; font-size: 10px; font-weight: 700; }
.fx-stamp { padding: 3px 8px; border-radius: 6px; border: 1.5px solid #047857; color: #047857; font-size: 10px; font-weight: 800; text-transform: uppercase; animation: stamp 7s ease-out infinite; opacity: 0; }
@keyframes stamp { 0%, 40% { opacity: 0; transform: scale(1.6) rotate(-8deg); } 46%, 90% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; } }

/* Clientes */
.fx-id { position: relative; aspect-ratio: 1.58; padding: 8px; border-radius: 8px; background: linear-gradient(135deg, #d8e2ff, #f6f9ff); border: 1px solid #aec6ff; overflow: hidden; }
.fx-id-photo { float: left; width: 30%; height: 52%; margin-right: 6px; border-radius: 4px; background: #aec6ff; }
.fx-id i { display: block; height: 5px; margin: 4px 0; border-radius: 3px; background: #b1c6ff; }
.fx-id i.short { width: 50%; }
.fx-id-mrz { position: absolute; left: 8px; right: 8px; bottom: 6px; font: 600 7px/1 ui-monospace, monospace; color: #415c9b; letter-spacing: .05em; overflow: hidden; white-space: nowrap; }
.fx-scan { position: absolute; left: 0; right: 0; height: 2px; background: #10b981; box-shadow: 0 0 10px 3px rgba(16,185,129,.5); animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 4%; } 50% { top: 94%; } }
.fx-field { display: flex; flex-direction: column; gap: 2px; }
.fx-field small { font-size: 9px; color: #727785; }
.fx-field b { display: block; height: 14px; border-radius: 4px; border: 1px solid #CBD5E1; position: relative; overflow: hidden; }
.fx-field b::after { content: ""; position: absolute; left: 4px; top: 4px; height: 5px; width: var(--w); border-radius: 3px; background: #0B2E6B; transform-origin: left; animation: type 6s steps(12) infinite; animation-delay: var(--d); transform: scaleX(0); }
@keyframes type { 0% { transform: scaleX(0); } 15%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* Presupuestos */
.fx-pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 4px; }
.fx-pipe { position: absolute; top: 12px; left: 12.5%; right: 12.5%; height: 3px; background: #e3effc; border-radius: 3px; overflow: hidden; z-index: 0; }
.fx-pipe i { display: block; height: 100%; background: #1E73EB; transform-origin: left; animation: pipe 6s linear infinite; }
@keyframes pipe { 0% { transform: scaleX(0); } 55%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.fx-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #727785; }
.fx-step i { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #c2c6d6; animation: stepOn 6s ease infinite; animation-delay: var(--d); }
@keyframes stepOn { 0% { border-color: #c2c6d6; background: #fff; } 8%, 85% { border-color: #1E73EB; background: #1E73EB; box-shadow: 0 0 0 4px rgba(30,115,235,.18); } 100% { border-color: #c2c6d6; background: #fff; } }
.fx-send { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: .5rem; background: #ecf5ff; animation: pop 6s ease infinite; animation-delay: 1.2s; }
.fx-send.wa { animation-delay: 1.6s; } .fx-send.wa .material-symbols-outlined { background: #25d366; }
.fx-send .material-symbols-outlined { width: 26px; height: 26px; border-radius: 8px; background: #1E73EB; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fx-send b { display: block; font-size: 11px; color: #0B2E6B; } .fx-send small { font-size: 9px; color: #424754; }
@keyframes pop { 0%, 10% { transform: scale(.9); opacity: .4; } 18%, 90% { transform: scale(1); opacity: 1; } 100% { opacity: .4; } }
.fx-doc { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: .5rem; border: 1px dashed #aec6ff; font-size: 10px; } .fx-doc b { color: #0B2E6B; }

/* Facturación */
.fx-invoice { position: relative; padding: 10px; border-radius: 8px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 4px 10px rgba(11,46,107,.06); font-size: 10px; }
.fx-invoice i { display: block; height: 5px; margin: 5px 0; border-radius: 3px; background: #e3effc; } .fx-invoice i.short { width: 60%; }
.fx-pill { padding: 1px 6px; border-radius: 9999px; background: #E6F2FF; color: #0058be; font-size: 9px; font-weight: 700; }
.fx-qr { position: absolute; right: 8px; top: 26px; width: 22px; height: 22px; background: conic-gradient(#0B2E6B 25%, #fff 0 50%, #0B2E6B 0 75%, #fff 0) 0 0 / 6px 6px; border: 2px solid #0B2E6B; border-radius: 3px; }
.fx-fly { color: #1E73EB; animation: fly 4s ease-in-out infinite; }
@keyframes fly { 0% { transform: translate(-30px, 10px) rotate(-20deg); opacity: 0; } 20% { opacity: 1; } 55% { transform: translate(0, 0) rotate(-20deg); opacity: 1; } 65%, 100% { transform: translate(6px, -4px) rotate(-20deg); opacity: 0; } }
.fx-aeat { display: flex; flex-direction: column; align-items: center; padding: 8px 10px; border-radius: .75rem; background: #0B2E6B; color: #fff; }
.fx-aeat b { font-size: 11px; } .fx-aeat small { font-size: 9px; color: #5BB3F1; }
.fx-ok { font-size: 10px; font-weight: 700; color: #047857; animation: okIn 4s ease infinite; }
@keyframes okIn { 0%, 55% { opacity: 0; transform: translateY(4px); } 65%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Tarifas */
.fx-gauge { position: relative; height: 120px; margin-top: 6px; border-radius: 8px; background: #e3effc; overflow: hidden; }
.fx-rise { position: absolute; left: 0; right: 0; bottom: 0; height: 92%; background: linear-gradient(0deg, #1E73EB, #5BB3F1); transform-origin: bottom; animation: rise 8s ease-in-out infinite; }
@keyframes rise { 0%, 5% { transform: scaleY(.4); } 30%, 40% { transform: scaleY(.72); } 65%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.4); } }
.fx-gauge-mark { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(11,46,107,.45); font-size: 9px; font-weight: 700; color: #0B2E6B; text-align: right; padding-right: 4px; z-index: 1; }
.fx-price { position: relative; height: 30px; }
.fx-price span { position: absolute; font-size: 24px; font-weight: 700; color: #0B2E6B; opacity: 0; font-variant-numeric: tabular-nums; }
.fx-price .p1 { animation: price1 8s infinite; } .fx-price .p2 { animation: price2 8s infinite; } .fx-price .p3 { animation: price3 8s infinite; color: #1E73EB; }
@keyframes price1 { 0%, 22% { opacity: 1; } 27%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes price2 { 0%, 25% { opacity: 0; } 30%, 50% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes price3 { 0%, 53% { opacity: 0; } 58%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
.fx-tier { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 6px; background: #f6f9ff; font-size: 10px; animation: tier1 8s infinite; }
.fx-tier.t2 { animation-name: tier2; } .fx-tier.t3 { animation-name: tier3; }
@keyframes tier1 { 0%, 22% { background: #0B2E6B; color: #fff; } 27%, 95% { background: #f6f9ff; color: inherit; } }
@keyframes tier2 { 0%, 25% { background: #f6f9ff; color: inherit; } 30%, 50% { background: #0B2E6B; color: #fff; } 55%, 100% { background: #f6f9ff; color: inherit; } }
@keyframes tier3 { 0%, 53% { background: #f6f9ff; color: inherit; } 58%, 92% { background: #0B2E6B; color: #fff; } 97%, 100% { background: #f6f9ff; color: inherit; } }
.fx-season { display: flex; gap: 3px; } .fx-season i { font-style: normal; text-align: center; padding: 3px 0; border-radius: 4px; background: var(--c); font-size: 9px; font-weight: 700; color: #0B2E6B; }

/* Comunicaciones */
.fx-chan { width: 34%; display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: #424754; }
.fx-chan span { padding: 4px 6px; border-radius: 6px; display: flex; justify-content: space-between; }
.fx-chan span.on { background: #E6F2FF; color: #0058be; font-weight: 700; }
.fx-chan em { font-style: normal; min-width: 16px; text-align: center; border-radius: 9999px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 700; animation: badge 2s ease-in-out infinite; }
@keyframes badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.fx-online { display: flex; align-items: center; margin-top: 6px; padding-left: 6px; }
.fx-online i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; background: #aec6ff; position: relative; }
.fx-online i:nth-child(2) { background: #8fcdff; } .fx-online i:nth-child(3) { background: #415c9b; }
.fx-online i::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 6px; height: 6px; border-radius: 50%; background: #10b981; border: 1px solid #fff; }
.fx-online small { margin-left: 6px; font-size: 9px; }
.fx-msg { max-width: 92%; padding: 6px 9px; border-radius: 10px 10px 10px 2px; background: #ecf5ff; font-size: 10px; line-height: 1.35; animation: bubble 7s ease-out infinite; animation-delay: var(--d); opacity: 0; }
.fx-msg b { display: block; font-size: 9px; color: #0058be; }
.fx-msg.me { margin-left: auto; border-radius: 10px 10px 2px 10px; background: #1E73EB; color: #fff; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 6%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.fx-typing { display: inline-flex; gap: 3px; padding: 7px 9px; border-radius: 10px; background: #ecf5ff; animation: bubble 7s ease-out infinite; animation-delay: var(--d); opacity: 0; }
.fx-typing i { width: 5px; height: 5px; border-radius: 50%; background: #727785; animation: dot 1s ease-in-out infinite; }
.fx-typing i:nth-child(2) { animation-delay: .15s; } .fx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* Configuración */
.fx-theme { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: center; }
.fx-mini { display: flex; height: 130px; border-radius: 8px; overflow: hidden; border: 1px solid #E2E8F0; animation: darkMode 9s steps(1) infinite; }
@keyframes darkMode { 0%, 66% { background: #fff; } 67%, 100% { background: #1b2530; } }
.fx-mini-side { width: 26%; padding: 6px; display: flex; flex-direction: column; gap: 5px; animation: accentBg 9s steps(1) infinite; }
.fx-mini-side i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); }
.fx-mini-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.fx-mini-head { height: 8px; width: 60%; border-radius: 3px; background: #c2c6d6; }
.fx-mini-main .grid i { height: 30px; border-radius: 5px; background: #e3effc; animation: cardDark 9s steps(1) infinite; }
@keyframes cardDark { 0%, 66% { background: #e3effc; } 67%, 100% { background: #2b3845; } }
.fx-mini-btn { align-self: flex-start; padding: 3px 8px; border-radius: 5px; color: #fff; font-size: 9px; font-weight: 700; animation: accentBg 9s steps(1) infinite; }
@keyframes accentBg { 0%, 22% { background: #1E73EB; } 23%, 44% { background: #0f9d74; } 45%, 66% { background: #e5733a; } 67%, 100% { background: #7c4ddb; } }
.fx-sw { display: block; width: 20px; height: 20px; border-radius: 6px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.fx-sw:nth-child(1) { animation: swSel 9s steps(1) infinite; } .fx-sw:nth-child(2) { animation: swSel 9s steps(1) infinite; animation-delay: -6.93s; }
.fx-sw:nth-child(3) { animation: swSel 9s steps(1) infinite; animation-delay: -4.95s; } .fx-sw:nth-child(4) { animation: swSel 9s steps(1) infinite; animation-delay: -2.97s; }
@keyframes swSel { 0%, 22% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0B2E6B; } 23%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; } }
.fx-toggle { width: 34px; height: 18px; border-radius: 9999px; padding: 2px; animation: toggleBg 9s steps(1) infinite; }
.fx-toggle i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: toggleKnob 9s ease infinite; }
@keyframes toggleBg { 0%, 66% { background: #c2c6d6; } 67%, 100% { background: #0B2E6B; } }
@keyframes toggleKnob { 0%, 64% { transform: translateX(0); } 67%, 98% { transform: translateX(16px); } 100% { transform: translateX(0); } }
.fx-logo { font-size: 10px; font-weight: 700; color: #0B2E6B; } .fx-logo b { color: #1E73EB; }

/* Seguridad */
.fx-shield { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 150px; margin: 0 auto; }
.fx-shield > .material-symbols-outlined { font-size: 56px; color: #0B2E6B; animation: badge 3s ease-in-out infinite; }
.fx-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 10s linear infinite; }
.fx-ring circle { fill: none; stroke: #5BB3F1; stroke-width: 3; stroke-dasharray: 14 10; stroke-linecap: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.fx-check { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; background: #f6f9ff; font-size: 10px; font-weight: 600; color: #0B2E6B; animation: lineIn 7s ease-out infinite; animation-delay: var(--d); opacity: 0; }
.fx-check .material-symbols-outlined { font-size: 15px; color: #047857; }

/* App móvil */
.fx-devices { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 10px 0; }
.fx-laptop { width: 58%; }
.fx-laptop-screen { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px; border-radius: 8px 8px 0 0; border: 6px solid #0B2E6B; border-bottom-width: 4px; background: #fff; font-size: 9px; color: #424754; }
.fx-laptop-screen small { font-weight: 700; color: #0B2E6B; font-size: 10px; }
.fx-laptop-base { height: 8px; margin: 0 -10px; border-radius: 0 0 8px 8px; background: #26323b; }
.fx-qrbig { width: 64px; height: 64px; border: 4px solid #0B2E6B; border-radius: 4px; background: conic-gradient(#0B2E6B 25%, #fff 0 50%, #0B2E6B 0 75%, #fff 0) 0 0 / 10px 10px; }
.fx-qrbig.sm { width: 50px; height: 50px; border-width: 3px; background-size: 8px 8px; }
.fx-beam { position: absolute; left: 55%; bottom: 46%; width: 50px; height: 2px; background: repeating-linear-gradient(90deg, #1E73EB 0 5px, transparent 5px 9px); animation: beam 1.2s linear infinite; opacity: .7; }
@keyframes beam { to { background-position: 9px 0; } }
.fx-phone { width: 30%; max-width: 110px; aspect-ratio: .5; padding: 6px; border-radius: 18px; background: #0B2E6B; box-shadow: 0 12px 24px rgba(11,46,107,.25); }
.fx-phone-screen { position: relative; height: 100%; border-radius: 13px; background: #26323b; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fx-cam { position: relative; padding: 8px; border: 2px dashed rgba(255,255,255,.4); border-radius: 8px; background: #fff; }
.fx-linked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px; text-align: center; background: #fff; animation: linked 6s ease infinite; }
.fx-linked .material-symbols-outlined { font-size: 30px; color: #10b981; }
.fx-linked b { font-size: 10px; color: #0B2E6B; } .fx-linked small { font-size: 8px; color: #727785; }
@keyframes linked { 0%, 50% { opacity: 0; transform: scale(.9); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Mapa de parcelas estilizado */
.cm-map { position: relative; }
.cm-svg { display: block; width: 100%; height: auto; }
.cm-bg { fill: #eef6f0; }
.cm-green { fill: #d7ecdc; }
.cm-road { fill: none; stroke: #e6ebf2; stroke-linecap: round; }
.cm-road-line { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 6 7; stroke-linecap: round; animation: roadDash 3s linear infinite; }
@keyframes roadDash { to { stroke-dashoffset: -26; } }
.cm-pool { fill: #cfe8fb; stroke: #a8d4f5; }
.cm-wave { fill: none; stroke: #7fbbe9; stroke-width: 1.4; stroke-linecap: round; }
.cm-play { fill: #fbefc4; }
.cm-plot { fill: #fff; stroke: #dfe5ee; stroke-width: 1; }
.cm-dot { stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 1px 1.5px rgba(11,46,107,.18)); transition: fill .4s; }
.cm-dot.libre { fill: #86d9b2; } .cm-dot.ocupada { fill: #a5b4fc; } .cm-dot.reservada { fill: #fca5a5; } .cm-dot.sale { fill: #d8b4fe; } .cm-dot.opcion { fill: #fde68a; }
.cm-dot.cyc { animation: dotCycle 8s ease-in-out infinite; }
@keyframes dotCycle { 0%, 20% { fill: #86d9b2; } 25%, 45% { fill: #fde68a; } 50%, 70% { fill: #fca5a5; } 75%, 95% { fill: #a5b4fc; } 100% { fill: #86d9b2; } }
.cm-car { fill: #fff; stroke: #1E73EB; stroke-width: 2; }
.cm-car.alt { stroke: #f59e0b; }
.cm-poi { position: absolute; transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1E73EB; box-shadow: 0 2px 6px rgba(11,46,107,.18); display: flex; align-items: center; justify-content: center; }
.cm-poi .material-symbols-outlined { font-size: 13px; }
.cm-pulse { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #c084fc; animation: cmPulse 2s ease-out infinite; pointer-events: none; }
@keyframes cmPulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.cm-tip-pos { position: absolute; width: 0; height: 0; z-index: 2; }
.cm-tip-pos > .cm-tip { position: absolute; left: 0; bottom: 14px; translate: -50% 0; white-space: nowrap; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; border-radius: 8px; background: #0B2E6B; color: #fff; font-size: 10px; box-shadow: 0 10px 20px rgba(11,46,107,.25); animation: tip 6s ease-in-out infinite; }
.cm-tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: #0B2E6B; transform: rotate(45deg); }
.cm-tip span { display: flex; align-items: center; gap: 4px; opacity: .85; }
.cm-tip i { width: 7px; height: 7px; border-radius: 50%; background: #d8b4fe; }
.cm-tip i.libre { background: #86d9b2; } .cm-tip i.ocupada { background: #a5b4fc; } .cm-tip i.reservada { background: #fca5a5; } .cm-tip i.opcion { background: #fde68a; }
.cm-tip em { font-style: normal; }
.cm-tip-pos > .cm-tip.static { animation: none; }
.cm-p { cursor: pointer; outline: none; }
.cm-p:hover .cm-plot, .cm-p:focus-visible .cm-plot, .cm-p.is-active .cm-plot { stroke: #1E73EB; stroke-width: 1.6; fill: #f5f9ff; }
.cm-p:hover .cm-dot, .cm-p.is-active .cm-dot { r: 5.4; }
.cm-map.is-hovering .cm-auto, .cm-map.is-hovering .cm-pulse { opacity: 0; transition: opacity .2s; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 10px; color: #424754; }
.cm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; box-shadow: 0 0 0 1.5px #fff, 0 1px 2px rgba(11,46,107,.2); }
.cm-legend i.libre { background: #86d9b2; } .cm-legend i.ocupada { background: #a5b4fc; } .cm-legend i.reservada { background: #fca5a5; } .cm-legend i.sale { background: #d8b4fe; } .cm-legend i.opcion { background: #fde68a; }
