/* =========================================================
   FALCO Admisión™
   AION Reception Presence v0.1
========================================================= */

/* =========================================================
   CUERPO PRINCIPAL
========================================================= */

.aion-reception__orb {
  position: relative;

  display: grid;
  place-items: center;

  width: min(78%, 310px);
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.17),
      transparent 18%
    ),
    radial-gradient(
      circle at 50% 52%,
      rgba(212, 175, 55, 0.16),
      rgba(212, 175, 55, 0.04) 38%,
      rgba(5, 5, 5, 0.92) 72%
    );

  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.18),
    0 0 50px rgba(212, 175, 55, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.52),
    inset 0 0 44px rgba(255, 255, 255, 0.025);

  animation:
    aionFloat
    5.5s
    ease-in-out
    infinite;

  isolation: isolate;
}

.aion-reception__orb::before {
  content: "";

  position: absolute;
  inset: 10%;

  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 50%;

  opacity: 0.65;

  box-shadow:
    inset 0 0 24px rgba(212, 175, 55, 0.08);
}

.aion-reception__orb::after {
  content: "";

  position: absolute;
  inset: -10%;
  z-index: -1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(212, 175, 55, 0.11),
      transparent 68%
    );

  filter: blur(16px);

  animation:
    aionAura
    4.8s
    ease-in-out
    infinite;
}

/* =========================================================
   NÚCLEO
========================================================= */

.aion-reception__core {
  position: absolute;

  width: 34%;
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 45% 35%,
      rgba(255, 255, 255, 0.92),
      rgba(244, 219, 139, 0.86) 18%,
      rgba(212, 175, 55, 0.48) 42%,
      rgba(212, 175, 55, 0.08) 68%,
      transparent 72%
    );

  box-shadow:
    0 0 20px rgba(255, 236, 166, 0.8),
    0 0 48px rgba(212, 175, 55, 0.46),
    0 0 90px rgba(212, 175, 55, 0.18);

  animation:
    aionCorePulse
    3.4s
    ease-in-out
    infinite;
}

/* =========================================================
   ANILLOS
========================================================= */

.aion-reception__ring {
  position: absolute;

  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;

  pointer-events: none;
}

.aion-reception__ring--one {
  width: 52%;
  aspect-ratio: 1;

  animation:
    aionRingOne
    10s
    linear
    infinite;
}

.aion-reception__ring--two {
  width: 68%;
  aspect-ratio: 1;

  border-color: rgba(255, 255, 255, 0.1);

  animation:
    aionRingTwo
    14s
    linear
    infinite reverse;
}

.aion-reception__ring--three {
  width: 84%;
  aspect-ratio: 1;

  border-color: rgba(212, 175, 55, 0.11);

  animation:
    aionRingThree
    18s
    linear
    infinite;
}

.aion-reception__ring::before,
.aion-reception__ring::after {
  content: "";

  position: absolute;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--falco-gold);

  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.8),
    0 0 20px rgba(212, 175, 55, 0.35);
}

.aion-reception__ring::before {
  top: 10%;
  left: 19%;
}

.aion-reception__ring::after {
  right: 12%;
  bottom: 18%;
}

.aion-reception__ring--two::before,
.aion-reception__ring--two::after {
  width: 5px;
  height: 5px;

  background: rgba(255, 255, 255, 0.82);
}

.aion-reception__ring--three::before,
.aion-reception__ring--three::after {
  width: 4px;
  height: 4px;

  opacity: 0.7;
}

/* =========================================================
   OJOS
========================================================= */

.aion-reception__eyes {
  position: absolute;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 42px);

  width: 100%;

  transform: translateY(-3px);
}

.aion-eye {
  position: relative;

  display: block;

  width: 17px;
  height: 8px;

  border-radius:
    50% 50% 46% 46% /
    62% 62% 38% 38%;

  background:
    linear-gradient(
      180deg,
      #fff7d9,
      var(--falco-gold-light)
    );

  box-shadow:
    0 0 9px rgba(255, 240, 181, 0.9),
    0 0 20px rgba(212, 175, 55, 0.48);

  transform-origin: center;

  animation:
    aionBlink
    6.2s
    infinite;
}

.aion-eye::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: #4a3610;

  box-shadow:
    0 0 4px rgba(0, 0, 0, 0.45);

  transform:
    translate(-50%, -50%);
}

/* =========================================================
   ESTADOS
========================================================= */

.aion-reception__presence.is-thinking
.aion-reception__core {
  animation:
    aionThinkingCore
    1.15s
    ease-in-out
    infinite;
}

.aion-reception__presence.is-thinking
.aion-reception__ring--one {
  animation-duration: 4.5s;
}

.aion-reception__presence.is-thinking
.aion-reception__ring--two {
  animation-duration: 6.5s;
}

.aion-reception__presence.is-speaking
.aion-reception__core {
  animation:
    aionSpeakingCore
    0.9s
    ease-in-out
    infinite;
}

.aion-reception__presence.is-speaking
.aion-eye {
  box-shadow:
    0 0 12px rgba(255, 240, 181, 1),
    0 0 28px rgba(212, 175, 55, 0.62);
}

.aion-reception__presence.is-attentive
.aion-reception__orb {
  transform: translateY(-4px) scale(1.015);
}

.aion-reception__presence.is-attentive
.aion-eye {
  width: 18px;
  height: 9px;
}

/* =========================================================
   MICROINTERACCIONES
========================================================= */

.aion-reception__presence:hover
.aion-reception__orb {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.25),
    0 0 62px rgba(212, 175, 55, 0.18),
    0 34px 80px rgba(0, 0, 0, 0.58),
    inset 0 0 44px rgba(255, 255, 255, 0.03);
}

.aion-reception__presence:hover
.aion-reception__core {
  transform: scale(1.04);
}

.aion-reception__presence:hover
.aion-eye {
  animation-duration: 4.8s;
}

/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes aionFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes aionAura {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes aionCorePulse {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(0.97);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes aionRingOne {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aionRingTwo {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aionRingThree {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aionBlink {
  0%,
  45%,
  47%,
  86%,
  88%,
  100% {
    transform: scaleY(1);
  }

  46%,
  87% {
    transform: scaleY(0.08);
  }
}

@keyframes aionThinkingCore {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.92);
    filter: brightness(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.09);
    filter: brightness(1.18);
  }
}

@keyframes aionSpeakingCore {
  0%,
  100% {
    transform: scale(0.96);
    filter: brightness(1);
  }

  30% {
    transform: scale(1.06);
    filter: brightness(1.18);
  }

  65% {
    transform: scale(1.01);
    filter: brightness(1.08);
  }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .aion-reception__orb,
  .aion-reception__orb::after,
  .aion-reception__core,
  .aion-reception__ring,
  .aion-eye {
    animation: none !important;
  }
}


/* =========================================================
   FALCO Admisión™ — AION Card
========================================================= */

.admision-aion-card {
  position: fixed;
  right: 34px;
  bottom: 292px;

  width: min(360px, calc(100vw - 32px));

  padding: 20px;

  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(24, 24, 24, 0.98),
      rgba(8, 8, 8, 0.98)
    );

  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(212, 175, 55, 0.08);

  color: #ffffff;

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(18px)
    scale(0.96);

  transform-origin: bottom right;

  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 260ms ease;

  pointer-events: none;

  z-index: 9997;
}

.admision-aion-card.is-open {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(0)
    scale(1);

  pointer-events: auto;
}

.admision-aion-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding-bottom: 15px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);
}

.admision-aion-card__eyebrow {
  display: block;

  margin-bottom: 5px;

  font-family: "Montserrat", sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: #d4af37;
}

.admision-aion-card__title {
  display: block;

  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admision-aion-card__close {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  padding: 0;

  border:
    1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.04);

  color:
    rgba(255, 255, 255, 0.74);

  font-size: 1.25rem;
  line-height: 1;

  cursor: pointer;

  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.admision-aion-card__close:hover {
  color: #ffffff;

  border-color:
    rgba(212, 175, 55, 0.42);

  background:
    rgba(212, 175, 55, 0.09);
}

.admision-aion-card__body {
  padding: 18px 0;
}

.admision-aion-card__context {
  margin: 0 0 9px;

  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color:
    rgba(212, 175, 55, 0.86);
}

.admision-aion-card__message {
  margin: 0;

  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;

  color:
    rgba(255, 255, 255, 0.84);
}

.admision-aion-card__footer {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding-top: 14px;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);

  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  line-height: 1.5;

  color:
    rgba(255, 255, 255, 0.52);
}

.admision-aion-card__status-dot {
  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  margin-top: 5px;

  border-radius: 50%;

  background: #d4af37;

  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.7);
}

@media (max-width: 767px) {

  .admision-aion-card {
    right: 16px;
    bottom: 245px;

    width:
      calc(100vw - 32px);

    padding: 18px;

    border-radius: 19px;
  }

}