/* Animación de ventajas de Acatudy (landing, 05/10/2026): nubes que entran en el logo. Origen: acatudy-animacion-{es,en}.html. */
/* AcaTudy benefits animation — transparent stage; only the clouds and the logo paint */
.acx {
  --acx-blue: #2563EB;
  --acx-cyan: #06B6D4;
  --acx-navy: #10172A;
  --acx-cloud-bg: #FFFFFF;
  --acx-cloud-border: rgba(37, 99, 235, 0.14);
  --acx-cloud-title: #0F172A;
  --acx-cloud-sub: #5B6577;
  --acx-cloud-shadow: 0 14px 32px -14px rgba(15, 23, 42, 0.38), 0 2px 6px rgba(15, 23, 42, 0.07);
  --acx-font: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: var(--acx-font);
  -webkit-font-smoothing: antialiased;
}
.acx[data-bg="navy"] {
  --acx-cloud-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.acx[data-clouds="dark"] {
  --acx-cloud-bg: #10172A;
  --acx-cloud-border: rgba(6, 182, 212, 0.28);
  --acx-cloud-title: #F1F5F9;
  --acx-cloud-sub: #93A3BC;
  --acx-cloud-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.acx-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.acx-fx {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
}
.acx-logo {
  position: absolute;
  z-index: 3;
  border-radius: 30%;
  background: var(--acx-navy);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1.5px rgba(6, 182, 212, 0.35) inset,
    0 24px 48px -18px rgba(37, 99, 235, 0.7),
    0 6px 16px -6px rgba(15, 23, 42, 0.45);
}
/* Navy background baked in; the logo gets a soft bright halo so it lifts off the same navy */
.acx[data-bg="navy"] { background: var(--acx-navy); }
.acx[data-bg="navy"] .acx-logo {
  box-shadow:
    0 0 0 1.5px rgba(6, 182, 212, 0.45) inset,
    0 0 26px 2px rgba(56, 132, 255, 0.45),
    0 0 70px 8px rgba(6, 182, 212, 0.16);
  will-change: transform;
}
.acx-logo img {
  width: 92%;
  height: 92%;
  border-radius: 28%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Clouds */
.acx-cloud {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  animation: acx-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.acx-cloud.is-out {
  animation: acx-out 0.8s ease-in-out forwards;
}
.acx-cloud-in {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 9px;
  border-radius: 999px;
  background: var(--acx-cloud-bg);
  border: 1px solid var(--acx-cloud-border);
  box-shadow: var(--acx-cloud-shadow);
  white-space: nowrap;
  animation: acx-float 5s ease-in-out infinite alternate;
  transition: transform 0.18s ease;
}
.acx-cloud.is-send .acx-cloud-in { transform: scale(0.94); }
.acx-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--acx-blue), var(--acx-cyan));
  color: #fff;
  box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.55);
}
.acx-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.acx-ico b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.acx-cloud.is-send .acx-ico { animation: acx-flash 0.6s ease-out; }
.acx-txt { display: grid; gap: 1px; line-height: 1.2; }
.acx-t {
  font-size: 15px;
  font-weight: 600;
  color: var(--acx-cloud-title);
  letter-spacing: -0.005em;
}
.acx-s {
  font-size: 12px;
  font-weight: 400;
  color: var(--acx-cloud-sub);
}

/* Portrait (phones): title only, a bit larger */
.acx[data-port] .acx-s { display: none; }
.acx[data-port] .acx-t { font-size: 16px; }
.acx[data-port] .acx-cloud-in { padding: 8px 16px 8px 8px; }

@keyframes acx-pop {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(6px) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes acx-out {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -50%) translateY(-4px) scale(0.94); }
}
@keyframes acx-float {
  from { translate: 0 -2px; }
  to   { translate: 0 2px; }
}
@keyframes acx-flash {
  0%   { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(6, 182, 212, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .acx-cloud-in { animation: none !important; }
}
