/* ============================================
   LA MASTERMIND — Global CSS & Animations
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #13131c; font-family: 'DM Sans', sans-serif; color: #fff; }
::selection { background: #26b095; color: #13131c; }
[x-cloak] { display: none !important; }

/* --- Label de sección --- */
.label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #26b095;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.label::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: #26b095;
  border-radius: 1px;
}

/* --- Heading principal --- */
.heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* --- Botón primario --- */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #26b095;
  color: #13131c;
  padding: 0.8rem 1.9rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
}
.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(38,176,149,0.25);
}

/* --- Botón ghost --- */
.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  padding: 0.8rem 1.9rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
}
.btn-g:hover {
  border-color: #26b095;
  color: #26b095;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(38,176,149,0.35); }
  70% { box-shadow: 0 0 0 12px rgba(38,176,149,0); }
}

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

@keyframes gridPulse {
  0%, 100% { opacity: 0.015; }
  50% { opacity: 0.035; }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: all 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.1s; }
.reveal-d3 { transition-delay: 0.2s; }
.reveal-d4 { transition-delay: 0.3s; }

/* ============================================
   HERO LOAD ANIMATION
   ============================================ */

.hero-el {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-el.loaded { opacity: 1; transform: translateY(0); }

.hero-awards   { transition-delay: 0.15s; transition-duration: 0.8s; }
.hero-heading  { transition-delay: 0.3s; transition-duration: 1.1s; transition-timing-function: cubic-bezier(.16,1,.3,1); transform: translateY(50px); }
.hero-heading.loaded  { transform: translateY(0); }
.hero-subtitle { transition-delay: 0.6s; transition-duration: 0.9s; }
.hero-buttons  { transition-delay: 0.8s; transition-duration: 0.9s; transform: translateY(20px); }
.hero-buttons.loaded  { transform: translateY(0); }
.hero-ticker   { transition-delay: 1.1s; transition-duration: 0.9s; transform: translateY(20px); }
.hero-ticker.loaded   { transform: translateY(0); }

/* ============================================
   SCROLLBAR (subtle)
   ============================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #13131c; }
::-webkit-scrollbar-thumb { background: rgba(38,176,149,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(38,176,149,0.4); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .stats-grid,
  .ticker-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ai-grid { grid-template-columns: 1fr !important; }
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .hero-ctas { flex-direction: column; }
  .hero-awards { justify-content: center !important; }
  .hero-inner { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .nav-links { display: none !important; }
  .countries-row { gap: 1.2rem !important; }
}
