/* ══════════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════════ */
:root {
  --black:          #070709;
  --black-soft:     #0c0c10;
  --black-card:     rgba(255,255,255,0.035);
  --border:         rgba(255,255,255,0.08);
  --border-gold:    rgba(212,175,55,0.3);
  --gold:           #d4af37;
  --gold-light:     #f0d060;
  --gold-dark:      #a07c1a;
  --gold-glow:      rgba(212,175,55,0.18);
  --cyan:           #00e5ff;
  --cyan-glow:      rgba(0,229,255,0.12);
  --red-glow:       rgba(255,74,74,0.15);
  --white:          #ffffff;
  --white-70:       rgba(255,255,255,0.70);
  --white-40:       rgba(255,255,255,0.40);
  --white-10:       rgba(255,255,255,0.06);
  --font-display:   'Cormorant Garamond', serif;
  --font-body:      'Outfit', sans-serif;
  --ease-premium:   cubic-bezier(0.16, 1, 0.3, 1);
  --transition:     0.4s var(--ease-premium);
  --radius-lg:      20px;
  --radius-md:      12px;
  --radius-sm:      8px;
  --container:      1200px;
}

/* ══════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 48px; /* espacio para el ticker fijo del fondo */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
::selection { background: var(--gold); color: var(--black); }

/* ══════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section   { padding: 9rem 0; }

/* ══════════════════════════════════════════════════
   TYPOGRAPHY UTILS
   ══════════════════════════════════════════════════ */
.shimmer-text {
  background: linear-gradient(110deg, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.shimmer-cyan {
  background: linear-gradient(110deg, #0099cc 20%, var(--cyan) 50%, #0099cc 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer { to { background-position: -200% center; } }

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.1rem;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1.4rem;
}

.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-title  {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--white-70);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 0 0 rgba(212,175,55,0);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(212,175,55,.4), 0 0 0 1px rgba(212,175,55,.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37,211,102,.25);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,.45);
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.6); }
  60%       { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}
@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  60%       { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}
.pulse-btn               { animation: pulse-gold 2.2s ease infinite; }
.btn-whatsapp.pulse-btn  { animation: pulse-wpp  2.2s ease infinite; }

/* ══════════════════════════════════════════════════
   GLASS CARD  (core reusable)
   ══════════════════════════════════════════════════ */
.glass-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.glass-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 30px rgba(212,175,55,.12);
}

/* ══════════════════════════════════════════════════
   ICON BOX
   ══════════════════════════════════════════════════ */
.icon-box {
  width: 50px; height: 50px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.glass-card:hover .icon-box {
  background: rgba(212,175,55,.22);
  box-shadow: 0 0 20px rgba(212,175,55,.2);
}

/* ══════════════════════════════════════════════════
   GRID
   ══════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }

/* ══════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; width: 100%; z-index: 1000;
  padding: 1.4rem 0;
  transition: background var(--transition), padding var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7,7,9,.88);
  backdrop-filter: blur(20px);
  padding: .9rem 0;
  border-color: var(--border);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 1.4rem;
}
.nav-links a {
  font-size: .74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--white-70);
  position: relative;
  transition: color .3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s;
}
.nav-links a:hover         { color: var(--gold); }
.nav-links a:hover::after  { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.hamburger { display: none; cursor: pointer; color: var(--gold); }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 8rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/bg.png') no-repeat center center / cover;
  opacity: .35;
  transform: scale(1.05);
  animation: slow-zoom 20s ease-in-out infinite alternate;
}
@keyframes slow-zoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(212,175,55,.08) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 40%, var(--black) 100%);
}
#particles-canvas { position: absolute; inset: 0; z-index: 1; }
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(212,175,55,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 780px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 1.6rem;
}
.hero-title .line2 {
  display: block;
  font-style: italic;
  font-weight: 300;
}

.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--white-70);
  max-width: 580px;
  margin-bottom: 2.8rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 5rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  opacity: .45;
  animation: bounce-scroll 2s ease-in-out infinite;
  pointer-events: none;
}
.hero-scroll span { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════════════════ */
.trust-bar {
  padding: 4rem 0;
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar .grid-3 { text-align: center; }
.trust-bar h2 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3rem); line-height:1; margin-bottom:.4rem; }
.trust-bar p  { font-size: .82rem; color: var(--white-40); text-transform: uppercase; letter-spacing: .12em; }

.trust-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-gold), transparent);
  align-self: stretch;
  margin: .5rem 0;
}

/* ══════════════════════════════════════════════════
   LIVE ARBITRAJE WIDGET
   ══════════════════════════════════════════════════ */
.arbitraje-widget-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,229,255,.04) 0%, transparent 70%);
}

.widget-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.widget-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.8rem); font-weight:600; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 100px;
  color: #25D366;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px;
  background: #25D366;
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

.arb-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black-card);
  backdrop-filter: blur(10px);
}
.arb-table {
  width: 100%;
  border-collapse: collapse;
}
.arb-table th {
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--white-40);
  text-align: left;
}
.arb-table th:last-child, .arb-table td:last-child { text-align: right; }
.arb-table td {
  padding: .95rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  font-size: .88rem;
  color: var(--white-70);
  transition: background .2s;
}
.arb-table tbody tr:hover td { background: rgba(212,175,55,.04); }
.arb-table tbody tr:last-child td { border-bottom: none; }

.arb-pair  { display: flex; align-items: center; gap: .75rem; }
.arb-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.arb-name  { font-weight: 600; color: var(--white); }
.arb-route { font-size: .78rem; color: var(--white-40); margin-top: 2px; }

.arb-spread {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #25D366;
}
.arb-spread.low   { color: var(--white-40); }
.arb-spread.mid   { color: var(--gold); }
.arb-spread.high  { color: #25D366; }

.arb-loading {
  text-align: center;
  padding: 3rem;
  color: var(--white-40);
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.arb-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.arb-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}
.arb-cta-row p { font-size: .88rem; color: var(--white-70); }
.arb-cta-row strong { color: var(--gold); }

/* ══════════════════════════════════════════════════
   DOLORES SECTION
   ══════════════════════════════════════════════════ */
.dolores-section { background: var(--black-soft); }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--black);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-desc { font-size: .88rem; color: var(--white-40); line-height: 1.8; margin-top: 1rem; max-width: 280px; }
.footer-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .88rem; color: var(--white-40); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--white-40);
}
.footer-bottom span { color: var(--gold); }

/* ══════════════════════════════════════════════════
   MOBILE NAV ACTIVE
   ══════════════════════════════════════════════════ */
.nav-links.nav-active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; width: 100%;
  background: rgba(7,7,9,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  gap: 1.2rem;
}

/* ══════════════════════════════════════════════════
   ANIMATIONS — SCROLL REVEAL
   ══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium);
}
.reveal-zoom {
  opacity: 0;
  transform: scale(.94);
  transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium);
}
.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-zoom.active {
  opacity: 1; transform: none;
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .section { padding: 5rem 0; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .hero { padding-bottom: 7rem; } /* extra espacio para el ticker fijo */
  .btn { padding: .85rem 1.4rem; font-size: .78rem; }
  .nav-cta { display: none; } /* en movil, el espacio lo ocupa el hamburger */
  .arb-table th:nth-child(2),
  .arb-table td:nth-child(2) { display: none; }
}
