/* Conversion hierarchy and coordinated motion, scoped to the Crescentria landing. */
.crescentria-home .home-start-options { display:flex;align-items:center;flex-wrap:wrap;gap:.4rem 1.25rem;margin-top:1rem; }
body.crescentria-home #inicio .home-start-note { margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .75rem;font-size:.75rem; }
.crescentria-home .home-start-note a { min-height:44px;display:inline-flex;align-items:center;gap:.35rem;color:#fff0fa;text-decoration:underline;text-underline-offset:4px; }
.crescentria-home .home-motion-toggle { display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;min-width:44px;padding:.4rem .65rem;border:1px solid rgba(237,184,216,.18);border-radius:8px;color:#e5d0df;font:500 .7rem/1.5 var(--font-body);background:rgba(31,0,20,.4);cursor:pointer; }
.crescentria-home .home-motion-toggle[hidden] { display:none; }
.crescentria-home .home-motion-toggle i { font-size:1rem; }
.crescentria-home .home-motion-toggle:hover { border-color:var(--home-accent);color:#fff; }
.crescentria-home .home-demo-next { display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.5rem;border:1px solid rgba(237,184,216,.22);border-radius:12px;background:linear-gradient(110deg,rgba(143,0,95,.16),rgba(31,0,20,.25)); }
body.crescentria-home #productos .home-demo-next { grid-column:1/-1; }
.crescentria-home .home-demo-next strong { font:550 1.15rem/1.4 var(--font-heading);color:var(--white); }
.crescentria-home .home-demo-next p { font-size:.8rem;color:var(--home-muted);margin-top:.4rem; }
.crescentria-home .home-conversion-button { display:inline-flex;align-items:center;justify-content:center;gap:1.5rem;min-height:48px;padding:.85rem 1.4rem;border:1px solid rgba(237,184,216,.4);border-radius:50px;background:linear-gradient(120deg,var(--color-3),var(--color-1));color:#fff;font-size:.85rem;font-weight:600;white-space:nowrap;box-shadow:0 6px 22px rgba(143,0,95,.2); }
.crescentria-home .home-conversion-button:hover { border-color:var(--home-accent);box-shadow:0 8px 28px rgba(196,61,150,.3); }
body.crescentria-home #inicio .hero-subtitle { max-width:530px; }
/* CSS owns the layout size; the bitmap can scale for retina without growing its parent. */
.crescentria-home .hero-constellation-core { position:relative;width:100%;max-width:500px;aspect-ratio:1; }
body.crescentria-home #inicio .hero-constellation-core canvas { position:absolute;inset:0;display:block;width:100%;height:100%; }
body.crescentria-home #inicio .hero-constellation-halo { background:radial-gradient(ellipse,rgba(211,88,170,.3),rgba(143,0,95,.12) 48%,transparent 72%);filter:blur(32px); }
body.crescentria-home #inicio .hero-particles-canvas { opacity:.9; }

/* A soft local spotlight follows a fine pointer; keyboard focus receives the same emphasis. */
body.crescentria-home #servicios .service-card::before,
body.crescentria-home #alianzas .partner-card::before { content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(350px circle at var(--spot-x,50%) var(--spot-y,30%),rgba(222,117,186,.14),transparent 70%);opacity:0;transition:opacity .25s ease;z-index:0; }
body.crescentria-home #servicios .service-card-body,
body.crescentria-home #alianzas .partner-card>:not(.partner-card-shine) { position:relative;z-index:1; }
body.crescentria-home #servicios .service-card:is(:hover,:focus-within)::before,
body.crescentria-home #alianzas .partner-card:is(:hover,:focus-within)::before { opacity:1; }
.crescentria-home .home-demo-preview img { transition:transform .6s cubic-bezier(.16,1,.3,1); }
.crescentria-home .home-demo-preview:is(:hover,:focus-visible) img { transform:scale(1.012); }
.crescentria-home .home-demo-panel { transition:border-color .25s,box-shadow .25s; }
.crescentria-home .home-demo-panel:focus-within { border-color:var(--home-accent);box-shadow:0 0 32px rgba(216,123,185,.12); }
.crescentria-home :is(.hero-btn-primary,.home-conversion-button,.cta-btn-launch) { position:relative;overflow:hidden;isolation:isolate; }
.crescentria-home :is(.hero-btn-primary,.home-conversion-button,.cta-btn-launch)::after { content:'';position:absolute;inset:-30% auto -30% -60%;width:38%;pointer-events:none;background:linear-gradient(105deg,transparent,rgba(255,229,246,.18),transparent);transform:skewX(-18deg);transition:transform .65s ease; }
.crescentria-home :is(.hero-btn-primary,.home-conversion-button,.cta-btn-launch):is(:hover,:focus-visible)::after { transform:translateX(510%) skewX(-18deg); }

.crescentria-home .home-process-select { font:inherit;color:inherit;letter-spacing:inherit;background:none;cursor:pointer;min-height:44px;padding:.25rem .4rem;border-radius:6px; }
.crescentria-home .home-process-select:hover { color:var(--home-accent); }
.crescentria-home .home-process-select[aria-pressed=true] { color:#ffe2f5; }
body.crescentria-home #proceso .process-step { transition:filter .35s; }
body.crescentria-home #proceso .process-step.is-active .process-step-content { box-shadow:0 0 26px rgba(216,123,185,.14); }
body.crescentria-home #servicios .service-card { transition:opacity .6s ease,transform .6s cubic-bezier(.16,1,.3,1),border-color .25s,box-shadow .25s; }
body.crescentria-home #nosotros .about-visual-orbit-primary { animation:homeOrbitPrimary 42s linear infinite paused; }
body.crescentria-home #nosotros .about-visual-orbit-secondary { animation:homeOrbitSecondary 56s linear infinite paused; }
body.crescentria-home #nosotros .about-visual-orbit::after { content:'';position:absolute;top:-3px;left:50%;width:5px;height:5px;background:#e5b7d4;border-radius:50%;box-shadow:0 0 12px rgba(237,184,216,.6); }
body.crescentria-home #nosotros .motion-visible .about-visual-orbit { animation-play-state:running; }
@keyframes homeOrbitPrimary { from{transform:rotate(24deg)}to{transform:rotate(384deg)} }
@keyframes homeOrbitSecondary { from{transform:rotate(-44deg)}to{transform:rotate(-404deg)} }

.home-hero-offscreen .crescentria-home #inicio *,
.motion-paused .crescentria-home *,
.motion-paused .crescentria-home *::before,
.motion-paused .crescentria-home *::after,
.motion-inactive .crescentria-home * { animation-play-state:paused!important; }
.motion-paused .crescentria-home .animate-on-scroll { transition-duration:0s!important; }
.motion-paused .crescentria-home .home-demo-preview img { transform:none; }
.motion-paused body.crescentria-home #servicios .service-card:hover,
.motion-paused body.crescentria-home #alianzas .partner-card:hover { transform:none; }
@media(max-width:850px) {
  body.crescentria-home #productos .home-demo-next { margin-top:1.5rem; }
}
@media(max-width:767px) {
  .crescentria-home .hero-constellation-core { max-width:280px; }
}
@media(max-width:560px) {
  .crescentria-home .home-demo-next { flex-direction:column;align-items:stretch;padding:1.25rem;gap:1rem; }
  .crescentria-home .home-demo-next strong { font-size:1.05rem; }
  .crescentria-home .home-start-options { gap:.3rem .6rem; }
  .crescentria-home .home-motion-toggle { font-size:.7rem; }
}
@media(prefers-reduced-motion:reduce) {
  .crescentria-home *, .crescentria-home *::before, .crescentria-home *::after { animation:none!important;transition:none!important; }
  .crescentria-home .home-demo-preview:is(:hover,:focus-visible) img { transform:none; }
}
