/* =========================================================
   SENTRIXX PREMIUM ANIMATIONS
   Archivo: css/animations.css
   ========================================================= */

:root {
  --sentrixx-cyan: #00d4ff;
  --sentrixx-cyan-soft: rgba(0, 212, 255, 0.18);
  --sentrixx-blue: #4f7cff;
  --sentrixx-indigo: #6366f1;
  --sentrixx-red: #ff4d4d;
  --sentrixx-red-soft: rgba(255, 77, 77, 0.15);
  --sentrixx-white-soft: rgba(255, 255, 255, 0.08);
  --sentrixx-glass: rgba(10, 15, 28, 0.45);
  --sentrixx-border: rgba(255, 255, 255, 0.12);
  --sentrixx-shadow-xl: 0 20px 70px rgba(0, 0, 0, 0.45);
  --sentrixx-shadow-cyan: 0 0 40px rgba(0, 212, 255, 0.18);
  --sentrixx-shadow-indigo: 0 0 40px rgba(99, 102, 241, 0.16);
}

html {
  scroll-behavior: smooth;
}

body.sentrixx-animated-page {
  position: relative;
  overflow-x: hidden;
}

body.sentrixx-animated-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 212, 255, 0.06), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(99, 102, 241, 0.06), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255, 77, 77, 0.04), transparent 26%);
  pointer-events: none;
  z-index: 0;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}

.page-cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  filter: blur(70px);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.65) 0%, rgba(0, 212, 255, 0.18) 35%, transparent 72%);
  transform: translate(-9999px, -9999px);
  transition: transform 0.08s linear;
}

.navbar-glass {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.82), rgba(8, 13, 24, 0.58));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

.brand-entrance {
  animation: slideFadeDown 0.9s ease both;
}

.navbar-link {
  position: relative;
  transition: color 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sentrixx-cyan), #8bf6ff);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
  transition: width 0.28s ease;
}

.navbar-link:hover {
  transform: translateY(-2px);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.hero-premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;   /* antes center */
  padding-top: 110px;        /* separa del navbar en desktop */
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.14), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(99, 102, 241, 0.16), transparent 22%),
    radial-gradient(circle at 55% 75%, rgba(0, 212, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #09101c 0%, #0a1222 48%, #08111d 100%);
}
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 82%);
  animation: gridFloat 18s linear infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-orb-1 {
  width: 340px;
  height: 340px;
  top: 10%;
  left: -4%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 72%);
  animation: floatOrb 11s ease-in-out infinite;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  top: 16%;
  right: -4%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 72%);
  animation: floatOrb 14s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 460px;
  height: 460px;
  bottom: -14%;
  left: 40%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.14), transparent 70%);
  animation: pulseAurora 9s ease-in-out infinite;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.025) 48%,
    rgba(255,255,255,0.04) 49%,
    transparent 50%
  );
  background-size: 100% 7px;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  animation: scanMove 12s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}
/* Desktop */
.hero-content-animated {
  padding-top: 0;
  padding-bottom: 4rem;
}

@media (max-width: 768px) {
  .hero-premium {
    padding-top: 110px;   /* más espacio real bajo navbar */
    padding-bottom: 4rem;
  }

  .hero-content-animated {
    padding-top: 0;
    padding-bottom: 4rem;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  color: #bcefff;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--sentrixx-shadow-cyan);
}

.hero-title-animated {
  max-width: 980px;
  line-height: 0.95;
  text-wrap: balance;
  animation: textGlow 5s ease-in-out infinite;
}

.hero-subtitle {
  max-width: 900px;
}

.hero-actions-animated {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-animated-glow,
.btn-animated-outline {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-animated-glow::before,
.btn-animated-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 80%;
  height: 100%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  transition: left 0.7s ease;
}

.btn-animated-glow:hover::before,
.btn-animated-outline:hover::before {
  left: 160%;
}

.btn-animated-glow:hover,
.btn-animated-outline:hover {
  transform: translateY(-3px);
}

.btn-animated-glow:hover {
  box-shadow: 0 18px 34px rgba(0, 212, 255, 0.18), 0 0 20px rgba(0, 212, 255, 0.16);
}

.btn-animated-outline:hover {
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.18);
}

.compliance-banner-premium {
  position: relative;
  margin-top: 3rem;
  max-width: 700px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 77, 77, 0.18);
  background: linear-gradient(180deg, rgba(255, 100, 100, 0.12), rgba(255, 100, 100, 0.05));
  box-shadow: 0 14px 42px rgba(0,0,0,0.24);
}

.compliance-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at left center, rgba(255, 77, 77, 0.16), transparent 35%);
  animation: compliancePulse 5s ease-in-out infinite;
  pointer-events: none;
}

.compliance-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
}

.compliance-title {
  color: #ffcccc;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.compliance-text {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.hero-metrics {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-metric-card {
  min-width: 160px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--sentrixx-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  animation: floatSoft 7s ease-in-out infinite;
}

.hero-metric-card:nth-child(2) {
  animation-delay: 0.7s;
}

.hero-metric-card:nth-child(3) {
  animation-delay: 1.4s;
}

.hero-metric-value {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.hero-metric-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.section-with-glow {
  position: relative;
}

.section-with-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 212, 255, 0.04), transparent 22%),
    radial-gradient(circle at 88% 80%, rgba(99, 102, 241, 0.05), transparent 26%);
}

.animated-grid {
  position: relative;
  z-index: 1;
}

.premium-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025)),
    linear-gradient(180deg, rgba(10,15,28,0.82), rgba(10,15,28,0.94));
  backdrop-filter: blur(16px);
  box-shadow: var(--sentrixx-shadow-xl);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.premium-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), 0 0 30px rgba(0, 212, 255, 0.12);
}

.card-shine {
  content: "";
  position: absolute;
  top: -20%;
  left: -150%;
  width: 90%;
  height: 150%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255,255,255,0.04) 35%,
    rgba(255,255,255,0.17) 50%,
    rgba(255,255,255,0.04) 65%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.9s ease;
  pointer-events: none;
}

.premium-card:hover .card-shine {
  left: 180%;
}

.floating-icon {
  animation: iconBob 4.4s ease-in-out infinite;
}

.restricted-badge {
  background: linear-gradient(90deg, #ff4444, #ff6b6b) !important;
  color: white;
  font-size: 0.65rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.85rem;
  text-align: center;
  box-shadow: 0 10px 18px rgba(255, 77, 77, 0.2);
  animation: restrictedPulse 2.4s ease-in-out infinite;
}

.premium-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.premium-link:hover {
  transform: translateX(4px);
}

.sectors-section-premium {
  position: relative;
  overflow: hidden;
}

.sectors-section-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.08), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.08), transparent 30%);
  pointer-events: none;
}

.sector-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 18px;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  backdrop-filter: blur(10px);
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 55%);
  pointer-events: none;
}

.sector-card-public {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0, 212, 255, 0.28);
}

.sector-card-private {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.sector-card:hover {
  transform: translateY(-8px);
}

.sector-card-public:hover {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 16px 36px rgba(0, 212, 255, 0.12);
}

.sector-card-private:hover {
  border-color: rgba(99, 102, 241, 0.58);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.16);
}

.sector-badge-private {
  background: linear-gradient(90deg, #6366f1, #7c83ff) !important;
  font-size: 0.65rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  box-shadow: 0 10px 18px rgba(99, 102, 241, 0.2);
}

.footer-animated {
  position: relative;
  overflow: hidden;
}

.footer-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 212, 255, 0.04), transparent 22%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05), transparent 24%);
  pointer-events: none;
}

.social-link,
.footer-link {
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.social-link:hover,
.footer-link:hover {
  transform: translateY(-2px);
}

.whatsapp-button-animated {
  animation: whatsappFloat 3s ease-in-out infinite;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-button-animated:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.4);
}

/* =========================
   REVEAL SYSTEM
   ========================= */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.9s cubic-bezier(.2,.65,.2,1),
    transform 0.9s cubic-bezier(.2,.65,.2,1),
    filter 0.9s cubic-bezier(.2,.65,.2,1);
  filter: blur(8px);
}

.reveal-up {
  transform: translateY(42px);
}

.reveal-left {
  transform: translateX(-48px);
}

.reveal-right {
  transform: translateX(48px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.14s; }
.stagger-3 { transition-delay: 0.22s; }
.stagger-4 { transition-delay: 0.30s; }
.stagger-5 { transition-delay: 0.38s; }

/* =========================
   KEYFRAMES
   ========================= */
@keyframes slideFadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -16px, 0) scale(1.06);
  }
}

@keyframes pulseAurora {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

@keyframes scanMove {
  0% {
    transform: translateY(-8%);
  }
  100% {
    transform: translateY(8%);
  }
}

@keyframes gridFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 0 rgba(0,212,255,0);
  }
  50% {
    text-shadow: 0 0 24px rgba(0,212,255,0.08);
  }
}

@keyframes compliancePulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

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

@keyframes restrictedPulse {
  0%, 100% {
    box-shadow: 0 8px 18px rgba(255, 77, 77, 0.16);
  }
  50% {
    box-shadow: 0 12px 28px rgba(255, 77, 77, 0.28);
  }
}

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

/* =========================
   RESPONSIVE
   ========================= */
   @media (max-width: 1100px) {
  .hero-premium {
    min-height: auto;
    padding-top: 95px;
    padding-bottom: 5rem;
  }

  .hero-metrics {
    gap: 0.8rem;
  }

  .hero-metric-card {
    min-width: 145px;
  }
}

@media (max-width: 768px) {
  .page-cursor-glow {
    display: none;
  }

  .hero-kicker {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .hero-title-animated {
    line-height: 1.02;
  }

  .hero-actions-animated {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions-animated .btn {
    width: 100%;
    justify-content: center;
  }

  .compliance-inner {
    flex-direction: column;
  }

  .hero-metrics {
    flex-direction: column;
  }

  .hero-metric-card {
    width: 100%;
  }

  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3 {
    opacity: 0.34;
    filter: blur(28px);
  }

  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-right {
    transform: translateY(30px);
  }

  .reveal.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}