/* =============================================
   SEGELECT — Animation Layer (overlay only)
   Colores y layout originales intactos
   ============================================= */

/* ─── CURSOR CUSTOM ─── */
* { cursor: none !important; }

.sg-cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  mix-blend-mode: difference;
}
.sg-cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(232,192,48,0.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}
body.sg-hovering .sg-cursor { width: 14px; height: 14px; background: var(--gold-soft); }
body.sg-hovering .sg-cursor-ring { width: 52px; height: 52px; opacity: 0.55; }

@media (max-width: 768px) {
  * { cursor: auto !important; }
  .sg-cursor, .sg-cursor-ring { display: none; }
}

/* ─── PAGE LOADER ─── */
.sg-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg, #070B10);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.sg-loader.sg-out { opacity: 0; visibility: hidden; }

.sg-loader-inner { text-align: center; }

.sg-loader-logo {
  width: 72px; height: 72px;
  margin: 0 auto 28px;
  animation: sgPulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(232,192,48,0.6));
}
.sg-loader-logo img { width: 100%; }

.sg-loader-bar {
  width: 220px; height: 2px;
  background: rgba(232,192,48,0.15);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto 14px;
}
.sg-loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark, #9A7A14), var(--gold-soft, #F2D56B));
  transition: width 0.35s ease;
}
.sg-loader-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(185,178,163,0.7);
  font-family: inherit;
}

@keyframes sgPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 28px rgba(232,192,48,0.9)); }
}

/* ─── HERO PARTICLES CANVAS ─── */
#sgParticles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ─── CAMERA ORB — reemplaza la sección ejecutiva ─── */
/* La cámara ya está en el HTML original; solo añadimos animación extra */
.camera-stage--photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin: 2rem 0 1.5rem;
}

/* Anillos orbitales alrededor de la cámara */
.camera-photo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sg-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.sg-orbit-1 {
  width: 230px; height: 230px;
  border-color: rgba(232,192,48,0.18);
  animation: sgOrbit1 18s linear infinite;
}
.sg-orbit-2 {
  width: 310px; height: 310px;
  border-color: rgba(232,192,48,0.10);
  border-style: dashed;
  animation: sgOrbit1 28s linear infinite reverse;
}
.sg-orbit-3 {
  width: 175px; height: 175px;
  border-color: rgba(232,192,48,0.22);
  animation: sgOrbit1 12s linear infinite;
}

@keyframes sgOrbit1 {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Punto orbital que viaja por el anillo */
.sg-orbit-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(232,192,48,0.5);
  top: -3px; left: 50%;
  transform: translateX(-50%);
}

/* Cámara flota */
.camera-photo {
  animation: sgFloat 4s ease-in-out infinite !important;
  filter: drop-shadow(0 12px 30px rgba(232,192,48,0.28)) !important;
  position: relative; z-index: 2;
}
@keyframes sgFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-12px) scale(1.02); }
}

/* Línea de scan sobre la cámara */
.sg-scan {
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,192,48,0.7) 50%, transparent 100%);
  pointer-events: none; z-index: 3;
  animation: sgScanMove 3s linear infinite;
}
@keyframes sgScanMove {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 0.8; }
  95%  { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* Tags de estado flotantes junto a la cámara */
.sg-status-tags {
  position: absolute;
  right: -20px; top: 15%;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 10;
}
.sg-tag {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(7,11,16,0.88);
  border: 1px solid rgba(232,192,48,0.28);
  border-radius: 100px;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(16px);
  animation: sgTagIn 0.5s ease forwards;
}
.sg-tag:nth-child(1) { animation-delay: 2.2s; }
.sg-tag:nth-child(2) { animation-delay: 2.5s; }
.sg-tag:nth-child(3) { animation-delay: 2.8s; }
@keyframes sgTagIn {
  to { opacity: 1; transform: translateX(0); }
}
.sg-tag-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: sgBlink 1.6s ease-in-out infinite;
}
@keyframes sgBlink { 0%,100%{opacity:1} 50%{opacity:0.25} }

@media (max-width: 768px) {
  .sg-status-tags { display: none; }
  .sg-orbit-2 { width: 250px; height: 250px; }
  .sg-orbit-1 { width: 185px; height: 185px; }
  .sg-orbit-3 { width: 140px; height: 140px; }
}

/* ─── TICKER STRIP ─── */
.sg-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(232,192,48,0.12);
  border-bottom: 1px solid rgba(232,192,48,0.12);
  background: rgba(7,11,16,0.82);
  padding: 12px 0;
}
.sg-ticker-track {
  display: flex; gap: 48px;
  width: max-content;
  animation: sgTicker 32s linear infinite;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(185,178,163,0.55);
}
.sg-ticker-track:hover { animation-play-state: paused; }
.sg-ticker-track .sg-sep { color: var(--gold); opacity: 0.4; }
@keyframes sgTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SCROLL REVEAL ENHANCED ─── */
.reveal {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: opacity 0.75s ease, transform 0.75s ease !important;
}
.reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered delays para hijos directos de grids */
.solutions-grid .reveal:nth-child(1),
.timeline .reveal:nth-child(1),
.trust-cards > div:nth-child(1),
.client-grid > div:nth-child(1) { transition-delay: 0.05s !important; }

.solutions-grid .reveal:nth-child(2),
.timeline .reveal:nth-child(2),
.trust-cards > div:nth-child(2),
.client-grid > div:nth-child(2) { transition-delay: 0.15s !important; }

.solutions-grid .reveal:nth-child(3),
.timeline .reveal:nth-child(3),
.trust-cards > div:nth-child(3),
.client-grid > div:nth-child(3) { transition-delay: 0.25s !important; }

.solutions-grid .reveal:nth-child(4),
.trust-cards > div:nth-child(4),
.client-grid > div:nth-child(4) { transition-delay: 0.35s !important; }

/* ─── HERO HEADLINE TYPE-IN GLOW ─── */
.hero h1 {
  text-shadow: 0 0 0 transparent;
  transition: text-shadow 1s ease;
}
.hero.sg-hero-ready h1 {
  text-shadow: 0 2px 40px rgba(232,192,48,0.12);
}

/* ─── SECTION HEADING GLOW LINE ─── */
.section-kicker::after {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 6px;
  box-shadow: 0 0 8px rgba(232,192,48,0.5);
}

/* ─── CARD HOVER GLOW ENHANCED ─── */
.solution-card,
.trust-cards > div,
.client-grid > div,
.testimonial-card,
.timeline div {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease !important;
}
.solution-card:hover,
.trust-cards > div:hover,
.client-grid > div:hover,
.testimonial-card:hover,
.timeline div:hover {
  box-shadow: 0 0 0 1px rgba(232,192,48,0.3), 0 24px 60px rgba(0,0,0,0.3) !important;
}

/* ─── CONVERSION BAND PULSE ─── */
.conversion-band {
  position: relative; overflow: hidden;
}
.conversion-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,192,48,0.08) 0%, transparent 70%);
  animation: sgBandPulse 4s ease-in-out infinite;
}
@keyframes sgBandPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.04); }
}

/* ─── WHATSAPP FLOAT PULSE ─── */
.whatsapp-float {
  animation: sgWaPulse 2.8s ease-in-out infinite !important;
}
@keyframes sgWaPulse {
  0%, 100% { box-shadow: 0 18px 50px rgba(232,192,48,0.32); }
  50%       { box-shadow: 0 18px 50px rgba(232,192,48,0.32), 0 0 0 10px rgba(232,192,48,0.07); }
}

/* ─── BTN HOVER SHIMMER ─── */
.btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 150%; }

/* ─── HEADER BORDER GLOW ON SCROLL ─── */
.site-header.is-scrolled {
  border-bottom-color: rgba(232,192,48,0.22) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.38), 0 0 0 1px rgba(232,192,48,0.08) !important;
}

/* ─── PARALLAX GLOW ORBS IN HERO ─── */
.sg-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.sg-hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,192,48,0.09) 0%, transparent 70%);
  top: -120px; right: 5%;
}
.sg-hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(154,122,20,0.08) 0%, transparent 70%);
  bottom: 60px; left: 5%;
  animation: sgOrbFloat 9s ease-in-out infinite;
}
@keyframes sgOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -24px); }
}

/* ─── HERO BADGE ─── */
.sg-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(7,11,16,0.6);
  border: 1px solid rgba(232,192,48,0.28);
  border-radius: 100px;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: sgBadgeIn 0.6s ease 1.5s forwards;
}
@keyframes sgBadgeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sg-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232,192,48,0.8);
  animation: sgBlink 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sg-loader { display: none !important; }
  .sg-cursor, .sg-cursor-ring { display: none !important; }
  * { cursor: auto !important; }
}

/* ─── CAMERA STAGE: position relative needed for orbits ─── */
.camera-stage--photo { position: relative !important; }
.camera-photo-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  isolation: isolate;
}

/* Orbits positioned relative to wrap */
.sg-orbit {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}
.sg-orbit-1 { width: 290px; height: 290px; }
.sg-orbit-2 { width: 380px; height: 380px; }
.sg-orbit-3 { width: 215px; height: 215px; }

/* Executive card needs overflow visible for tags */
.executive-card { overflow: visible !important; }

/* Status tags positioning */
.sg-status-tags {
  position: absolute !important;
  right: -140px !important;
  top: 18% !important;
  z-index: 10;
}

@media (max-width: 1200px) {
  .sg-status-tags { right: -120px !important; }
}
@media (max-width: 980px) {
  .sg-status-tags { 
    position: relative !important;
    right: auto !important; top: auto !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
    margin-top: 12px;
    gap: 6px;
  }
}

/* ─── HERO HEADLINE GOLD PHRASE ─── */
.sg-gold-phrase {
  background: linear-gradient(135deg, var(--gold-soft, #F2D56B) 0%, var(--gold, #E8C030) 50%, #FFEA80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 18px rgba(232,192,48,0.45));
}
