/* ── caida.css ── */
/* Moxen (moxen.cl/recursos) · licencia: caida-LICENCIA.txt */
.ca-palabra { white-space: nowrap; }
.ca-letra { display: inline-block; font-style: normal; will-change: transform; }
.ca-letra.is-suelta { position: relative; z-index: 2; }
.ca-letra.is-vuelve { position: relative; z-index: 3; }
.ca-suelo { position: absolute; left: -4%; right: -4%; top: 100%; height: 2px; pointer-events: none; }
.ca-sombra { position: absolute; left: 0; top: 0; width: 100px; height: 22px; margin: -11px 0 0 -50px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); opacity: 0; will-change: transform, opacity; }
/* ── doble.css ── */
/* Botón «losa»: todo el botón es un cuerpo sólido con grosor que gira junto (forma, borde y cantos).
   Una cara lleva el texto y la opuesta la flecha. Base: assets/doble.js */
.db-boton {
  --db-alto: 58px; --ang: 0deg;
  position: relative; display: inline-block; height: var(--db-alto); perspective: 1100px; vertical-align: top;
  border-radius: 999px; text-decoration: none; cursor: pointer; outline: none;
  font-family: var(--font-label); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
}
.db-boton:focus-visible { outline: 2px solid #0F2A24; outline-offset: 5px; }

.db-menta {
  --fbg: #0F2A24; --fcol: #F6F8F7; --fsh: inset 0 1px 0 rgba(255, 255, 255, .18);
  --abg: #1F3D36; --acol: #F6EBD2; --ash: inset 0 1px 0 rgba(255, 255, 255, .18);
  --edge: #0A1D19;
}
.db-terra {
  --fbg: #EFE0C2; --fcol: #0A1F1A; --fsh: inset 0 0 0 2px #0A1F1A, inset 0 1px 0 rgba(255, 255, 255, .5);
  --abg: #E2CDA6; --acol: #0A1F1A; --ash: inset 0 0 0 2px #0A1F1A;
  --edge: #B9A57F;
}

/* Antes de que arranque el JS el botón ya tiene su tamaño y aspecto finales (evita saltos de diseño); al iniciar se le pone .db-listo. */
.db-boton:not(.db-listo) {
  display: inline-flex; align-items: center; justify-content: center; padding: 0 2.1em; white-space: nowrap;
  background: var(--fbg); color: var(--fcol); box-shadow: var(--fsh);
}
.db-medida { display: block; visibility: hidden; white-space: nowrap; padding: 0 2.1em; line-height: var(--db-alto); }
.db-cuerpo { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.db-capa { position: absolute; inset: 0; border-radius: 999px; background: var(--edge); filter: brightness(var(--le, 1)); }
.db-cara {
  position: absolute; inset: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: .5em;
  white-space: nowrap; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.db-frente { background: var(--fbg); color: var(--fcol); box-shadow: var(--fsh); filter: brightness(var(--lf, 1)); }
.db-dorso { background: var(--abg); color: var(--acol); box-shadow: var(--ash); filter: brightness(var(--lb, .55)); }
.db-brillo {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .34) 50%, transparent 70%);
  transform: translateX(var(--bx, -120%)); mix-blend-mode: soft-light;
}

.db-flecha { width: 1.4em; height: 1.4em; }
.db-flecha path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.db-boton.is-dorso .db-flecha { animation: db-golpe .7s .15s cubic-bezier(.22, 1, .36, 1), db-empuja 1.3s .85s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes db-golpe { 0% { transform: translateX(-14px); } 35% { transform: translateX(16px); } 100% { transform: none; } }
@keyframes db-empuja { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }

.db-sombra {
  position: absolute; left: 6%; right: 6%; top: 100%; height: 16px; margin-top: 4px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); pointer-events: none;
  transform: scale(var(--ss, 1), var(--sy, 1)); opacity: var(--so, .55);
}
@media (prefers-reduced-motion: reduce) { .db-boton.is-dorso .db-flecha { animation: none; } }
@media (max-width: 560px) { .hero-cta { flex-direction: column; align-items: center; } }
/* ── moho.css ── */
/* Moxen (moxen.cl/recursos) · licencia: moho-LICENCIA.txt */
.mo-host { --mo-red: 232, 213, 181; --mo-placa: 0, 0, 0; --mo-borde: 0, 0, 0, 0; }
.mo-host .mo-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: .34;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .mo-host .mo-lienzo { opacity: .28; } }
/* ── astrolabio.css ── */
.astro { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; perspective: 900px; --as-oro: 232, 213, 181; --as-menta: 116, 198, 171; }
.astro-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.astro-tilt svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.as-spin { transform-box: view-box; transform-origin: 250px 250px; }
.as-s1 { animation: asGira 150s linear infinite; }
.as-s2 { animation: asGira 95s linear infinite reverse; }
.as-s3 { animation: asGira 70s linear infinite; }
.as-s4 { animation: asGira 58s linear infinite reverse; }
.as-s5 { animation: asGira 40s linear infinite; }
.as-s6 { animation: asGira 210s linear infinite reverse; }
@keyframes asGira { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.as-oro { fill: none; stroke: rgba(var(--as-oro), .3); }
.as-menta { fill: none; stroke: rgba(var(--as-menta), .26); }
.as-fino { stroke-width: 1; }
.as-marcas { stroke-width: 8; }
.as-punto { fill: rgba(var(--as-oro), .8); }

.astro-centro { position: absolute; left: 50%; top: 50%; width: 29%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; pointer-events: none; transform: translateZ(26px); }
.astro-centro::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--as-menta), .28), rgba(var(--as-menta), 0) 70%); animation: asLatido 6s ease-in-out infinite; }
.astro-centro img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: asBrillo 6s ease-in-out infinite; }
@keyframes asLatido { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes asBrillo { 0%, 100% { filter: drop-shadow(0 0 8px rgba(var(--as-menta), .25)); } 50% { filter: drop-shadow(0 0 20px rgba(var(--as-menta), .6)); } }

.or-hit { fill: transparent; stroke: none; cursor: pointer; pointer-events: all; }
.or-hit:focus-visible { outline: none; stroke: rgba(var(--as-oro), .9); stroke-width: 1.5; }

.astro-tip { position: absolute; z-index: 3; width: min(250px, 78%); padding: 14px 18px 16px; border-radius: 12px; background: rgba(13, 22, 24, .9); border: 1px solid rgba(var(--as-menta), .45); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); backdrop-filter: blur(4px); pointer-events: none; opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.astro-tip.show { opacity: 1; transform: none; }
.astro-tip b { display: block; margin: 0 0 .25em; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.15; color: var(--mint-soft, #A8E0CC); }
.astro-tip span { display: block; font-family: var(--font-body); font-size: .95rem; line-height: 1.45; color: #E6E9E7; }

@media (prefers-reduced-motion: reduce) {
  .as-spin, .astro-centro::before, .astro-centro img { animation: none; }
  .astro-tilt { transition: none; }
}

.astro { --as-oro: 232, 213, 181; }
.as-oro { stroke: rgba(var(--as-oro), .5); }
.as-menta { stroke: rgba(var(--as-menta), .45); }
.as-punto { fill: rgba(var(--as-oro), 1); filter: drop-shadow(0 0 5px rgba(var(--as-oro), .9)); }
.hero-radar .or-ring { stroke: rgba(var(--as-menta), .42); stroke-width: 1.4; filter: drop-shadow(0 0 3px rgba(var(--as-menta), .45)); }
.hero-radar .or-ring.hot { stroke: rgba(var(--as-menta), .9); }
.hero-radar .or-node { fill: #BFEBDB; filter: drop-shadow(0 0 8px rgba(168, 224, 204, .95)); }
.astro-centro::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 22, 24, .85) 62%, rgba(13, 22, 24, 0) 100%); box-shadow: 0 0 0 1px rgba(var(--as-oro), .35), 0 0 34px rgba(var(--as-oro), .22); z-index: 0; }
.astro-centro img { z-index: 1; width: 86%; height: 86%; filter: grayscale(1) sepia(.5) brightness(1.7) contrast(1.05) drop-shadow(0 0 10px rgba(var(--as-oro), .35)); animation: asBrilloOro 6s ease-in-out infinite; }
@keyframes asBrilloOro { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .astro-centro img { animation: none; } }

.hero-split { position: relative; }
.astro-hilo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 6; opacity: 0; transition: opacity .35s ease; }
.astro-hilo.on { opacity: 1; }
.astro-hilo path { fill: none; stroke: #A8E0CC; stroke-width: 1.5; stroke-dasharray: 5 6; filter: drop-shadow(0 0 4px rgba(168, 224, 204, .8)); animation: asHilo 1.2s linear infinite; }
.astro-hilo circle { fill: #fff; filter: drop-shadow(0 0 6px rgba(168, 224, 204, .95)); }
@keyframes asHilo { to { stroke-dashoffset: -22; } }
@media (max-width: 900px) { .astro-hilo { display: none; } }
@media (prefers-reduced-motion: reduce) { .astro-hilo path { animation: none; } }

.astro-hilo { display: none !important; }

.astro-tip span { display: none; }
.astro-tip { width: auto; padding: 10px 22px 12px; border-radius: 999px; white-space: nowrap; }
.astro-tip b { margin: 0; font-size: 1.55rem; line-height: 1.1; }

.as-oro { stroke: rgba(var(--as-oro), .8); }
.as-menta { stroke: rgba(var(--as-menta), .62); }
.hero-radar .or-ring { stroke: rgba(var(--as-oro), .6); stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(var(--as-oro), .5)); }
.hero-radar .or-ring.hot { stroke: rgba(255, 244, 214, .95); }
.astro-centro::after { background: radial-gradient(closest-side, rgba(16, 32, 40, .92) 62%, rgba(16, 32, 40, 0) 100%); box-shadow: 0 0 0 1px rgba(var(--as-oro), .75), 0 0 44px rgba(var(--as-oro), .55), 0 0 96px rgba(110, 220, 200, .38); }
.astro-centro::before { background: radial-gradient(closest-side, rgba(255, 236, 190, .45), rgba(110, 220, 200, .2) 55%, rgba(110, 220, 200, 0) 78%); }
.astro-centro img { filter: grayscale(1) sepia(.35) brightness(2.2) contrast(1.1) drop-shadow(0 0 14px rgba(255, 236, 190, .7)); }
.as-estrellas circle { fill: #FFF3D0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 5px rgba(255, 243, 208, .95)); animation: asTitila 3.6s ease-in-out infinite; }
@keyframes asTitila { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.6); } }
.as-punto { filter: drop-shadow(0 0 8px rgba(var(--as-oro), 1)); }
@media (prefers-reduced-motion: reduce) { .as-estrellas circle { animation: none; opacity: .8; } }
.hero-split .hero-radar::before { content: ""; position: absolute; inset: -12% -8%; pointer-events: none; background: radial-gradient(closest-side, rgba(240, 205, 130, .2), rgba(56, 190, 178, .16) 52%, rgba(56, 190, 178, 0) 78%); }
