/* Kit Órbita: cápsulas, ondas, manchas, tarjetas, garabatos y maquetas. Colores desde palette.css. */
.deco { pointer-events: none; }
.deco, .deco * { user-select: none; }

/* Botones */
.ob-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 52px; padding: 0.75rem 1.75rem; border: 2px solid transparent; border-radius: 999px; font: 600 1.0625rem/1.2 var(--fuente-texto); text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; position: relative; z-index: 3; }
.ob-btn:hover { transform: translateY(-2px); }
.ob-btn:focus-visible { outline: 3px solid var(--naranja-claro); outline-offset: 3px; }
.ob-naranja { background: var(--naranja); color: var(--noche); box-shadow: 0 2px 4px rgba(11,31,58,.14), 0 10px 24px rgba(255,122,47,.32); }
.ob-naranja:hover { background: var(--naranja-claro); }
.ob-linea { border-color: currentColor; background: transparent; color: inherit; }

/* Pill e ícono */
.ob-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 999px; background: rgba(255,196,138,.16); border: 1px solid rgba(255,196,138,.4); font-weight: 600; font-size: 1rem; }
.ob-pill-clara { background: var(--crema-2); border-color: transparent; color: var(--naranja-texto); }
.ob-icono { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,122,47,.16); color: var(--naranja-texto); }
.ob-noche .ob-icono { background: rgba(255,196,138,.18); color: var(--naranja-claro); }
.ob-icono svg { width: 1.25rem; height: 1.25rem; }

/* Cápsula y arco */
.ob-capsula, .ob-arco { position: relative; overflow: hidden; background: var(--degrade-amanecer); }
.ob-capsula { border-radius: 999px; }
.ob-arco { border-radius: 200px 200px 28px 28px; }
.ob-capsula img, .ob-arco img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); max-width: none; }

/* Órbita con planeta */
.ob-orbita { position: absolute; color: var(--luna); pointer-events: none; }
.ob-orbita svg { width: 100%; height: 100%; display: block; overflow: visible; animation: ob-giro calc(70s / max(var(--intensidad), .1)) linear infinite; }
.ob-orbita circle.anillo { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .35; vector-effect: non-scaling-stroke; }
.ob-orbita circle.planeta { fill: var(--naranja); }
@keyframes ob-giro { to { transform: rotate(360deg); } }

/* Mancha y luna */
.ob-blob { position: absolute; opacity: calc(var(--intensidad) * .9); pointer-events: none; }
.ob-luna-svg { position: absolute; pointer-events: none; }

/* Onda */
.ob-onda { position: absolute; left: 0; right: 0; width: 100%; height: clamp(50px, 8vw, 110px); display: block; pointer-events: none; }
.ob-onda-abajo { bottom: -1px; }
.ob-onda-arriba { top: -1px; transform: scaleY(-1); }

/* Tarjeta flotante */
.ob-tarjeta { position: relative; border-radius: 28px; padding: 1.75rem; box-shadow: var(--shadow-card); }
.ob-crema { background: #FFFBF6; color: var(--tinta); }
.ob-noche { background: var(--degrade-noche); color: var(--sobre-noche); }
.ob-tarjeta-naranja { background: var(--degrade-amanecer); color: var(--noche); }

/* Garabatos */
.ob-trazo { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ob-dibuja .ob-trazo { stroke-dasharray: 400; stroke-dashoffset: 400; }
.ob-dibuja.visible .ob-trazo { transition: stroke-dashoffset 1.2s ease; stroke-dashoffset: 0; }
.ob-destello { position: absolute; fill: var(--naranja-claro); pointer-events: none; }
.ob-nota { font-family: var(--fuente-mano); font-size: 1.75rem; font-weight: 600; line-height: 1.1; display: inline-block; transform: rotate(-4deg); }

/* Objetos flotantes */
.ob-flota { position: absolute; pointer-events: none; animation: ob-flota calc(9s / max(var(--intensidad), .1)) ease-in-out infinite alternate; }
.ob-flota-b { animation-delay: -4s; }
.ob-borroso { filter: blur(3px); }
@keyframes ob-flota { from { translate: 0 -8px; } to { translate: 0 10px; } }

/* Maqueta */
.ob-laptop-pantalla { border: 8px solid var(--noche); border-bottom-width: 10px; border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; aspect-ratio: 16 / 10; }
.ob-laptop-pantalla img, .ob-laptop-pantalla video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ob-laptop-base { height: 12px; margin: 0 -5%; background: linear-gradient(#D8DCE2, #8E97A3); border-radius: 0 0 12px 12px; }
.ob-celular { border: 5px solid var(--noche); border-radius: 20px; overflow: hidden; background: #fff; aspect-ratio: 390 / 844; box-shadow: var(--shadow-card); }
.ob-celular img, .ob-celular video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

@media (prefers-reduced-motion: reduce) {
  .ob-orbita svg, .ob-flota { animation: none; }
  .ob-dibuja .ob-trazo { stroke-dasharray: none; stroke-dashoffset: 0; }
}
