html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body { background-color: #070707; }

::selection { background: #1FBF6B; color: #0A0A0A; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #1FBF6B;
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

.glow {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(closest-side, rgba(31,191,107,.16), rgba(31,191,107,0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #1FBF6B;
  color: #0A0A0A;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .faq-icon { transition: none; }
}

.bio-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #2A2A2A;
  border-radius: 9999px;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  color: #F6F4EF;
  background: #0C0C0C;
}
.bio-chip-dot { width: 6px; height: 6px; border-radius: 9999px; background: #1FBF6B; flex: none; }

/* Marquee / scroll automático para ticker y carruseles */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee linear infinite;
}
.marquee-track.marquee-reverse {
  animation-direction: reverse;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}

.brand-logo-filter {
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.brand-logo-filter:hover {
  opacity: 1;
}

/* Blueprint del sistema: anillo rotante + tarjetas flotantes */
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes float-center {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.blueprint-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: visible;
}

.blueprint-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.blueprint-ring-spin {
  animation: ring-spin 70s linear infinite;
}

.blueprint-center {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 150px;
  height: 150px;
  border-radius: 9999px;
  background: #0C0C0C;
  border: 1.5px solid #1FBF6B;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: float-center 6s ease-in-out infinite;
}
.blueprint-center span {
  font-family: 'Anton', sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #1FBF6B;
}

.bp-card {
  position: absolute;
  /* `translate` se compone con la animación `transform` (float-card) sin pisarla */
  translate: -50% -50%;
  background: #0C0C0C;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 18px 24px;
  min-width: 190px;
  text-align: center;
  pointer-events: none;
  animation: float-card 4.5s ease-in-out infinite;
}
.bp-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #F6F4EF;
  white-space: nowrap;
}
.bp-sub {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  color: #8D8A84;
  margin-top: 4px;
  white-space: nowrap;
}

.bp-card-1 { left: 50%;   top: 10%;    animation-delay: 0s; }
.bp-card-2 { left: 88%;   top: 37.7%;  animation-delay: 0.9s; }
.bp-card-3 { left: 73.5%; top: 82.4%;  animation-delay: 1.8s; }
.bp-card-4 { left: 26.5%; top: 82.4%;  animation-delay: 2.7s; }
.bp-card-5 { left: 12%;   top: 37.7%;  animation-delay: 3.6s; }

.blueprint-caption {
  color: #F6F4EF;
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .bp-card { min-width: 108px; max-width: 122px; padding: 9px 10px; }
  .bp-title { font-size: 0.72rem; white-space: normal; }
  .bp-sub { font-size: 0.62rem; white-space: normal; }
  .blueprint-center { width: 104px; height: 104px; }
  .blueprint-center span { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blueprint-ring-spin,
  .blueprint-center,
  .bp-card { animation: none !important; }
}
