/* ============================================================
   DINAMIC SERVICES — Efectos Liquid Glass & Animaciones
   ============================================================ */

/* ===== Liquid Glass — efecto avanzado con highlights ===== */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 0%, transparent 60%, rgba(255, 184, 0, 0.05) 100%);
  pointer-events: none;
}

/* ===== Highlight de luz reactivo (mouse) ===== */
.glass-reactive {
  position: relative;
  isolation: isolate;
}

.glass-reactive::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 184, 0, 0.15) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

.glass-reactive:hover::before { opacity: 1; }

/* ===== Glass borders animados ===== */
.glass-border-anim {
  position: relative;
}

.glass-border-anim::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 184, 0, 0.4) 0%,
    rgba(192, 192, 192, 0.2) 50%,
    rgba(255, 184, 0, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.glass-border-anim:hover::before { opacity: 1; }

/* ===== Orbes flotantes de fondo ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}

.orb-gold {
  background: radial-gradient(circle, rgba(255, 184, 0, 0.6) 0%, transparent 70%);
}

.orb-silver {
  background: radial-gradient(circle, rgba(192, 192, 192, 0.4) 0%, transparent 70%);
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: orbFloat1 20s var(--ease-in-out) infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation: orbFloat2 24s var(--ease-in-out) infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  top: 50%;
  left: 50%;
  animation: orbFloat3 28s var(--ease-in-out) infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 80px) scale(1.1); }
  66% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.15); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% + 80px), calc(-50% - 40px)) scale(1.1); }
  66% { transform: translate(calc(-50% - 60px), calc(-50% + 60px)) scale(0.95); }
}

/* ===== Reveal al hacer scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Reveal lateral */
.reveal-left { transform: translateX(-40px); }
.reveal-left.visible { transform: translateX(0); }
.reveal-right { transform: translateX(40px); }
.reveal-right.visible { transform: translateX(0); }

/* Reveal scale */
.reveal-scale { transform: scale(0.9); }
.reveal-scale.visible { transform: scale(1); }

/* ===== Shimmer en el logo y texto destacado ===== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-gold) 0%,
    var(--color-gold-light) 25%,
    #FFFFFF 50%,
    var(--color-gold-light) 75%,
    var(--color-gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* ===== Parallax wrapper ===== */
.parallax {
  will-change: transform;
}

/* ===== Glow pulsante ===== */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 184, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 184, 0, 0.6); }
}

.glow-pulse { animation: glowPulse 3s var(--ease-in-out) infinite; }

/* ===== Tilt 3D para cards ===== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s var(--ease-out);
}

/* ===== Background mesh decoration ===== */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mesh-bg::before,
.mesh-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
}

.mesh-bg::before {
  background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.mesh-bg::after {
  background: radial-gradient(circle, rgba(192, 192, 192, 0.1) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
}

/* ===== Grid de líneas decorativas ===== */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 184, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 184, 0, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ===== Icon SVG color helpers ===== */
.icon-stroke {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
