/* ================================================================
   MAIN.CSS — VARIABLES, RESET, NAV, FOOTER, COMPONENTES COMUNES
   ================================================================ */

:root {
  /* ---- UNIVERSO LATIN GANG ---- */
  --gold: #C8A84B;
  --gold-l: #E5C96A;
  --gold-xl: #F5DFA0;
  --gold-dim: rgba(200, 168, 75, .13);
  --gold-mid: rgba(200, 168, 75, .28);
  --black: #080808;
  --surface: #0f0f0f;
  --s2: #141414;
  --s3: #1a1a1a;
  --s4: #202020;
  --white: #f5f0e8;
  --muted: rgba(245, 240, 232, .5);
  --border: rgba(200, 168, 75, .18);
  --border-l: rgba(200, 168, 75, .35);
  --red: #e74c3c;
  --green: #2ecc71;

  /* ---- UNIVERSO WHITEREVER ---- */
  --wr-bg: #FAFAF8;
  --wr-s1: #F5F3EF;
  --wr-s2: #EEEAE4;
  --wr-pearl: #F0EBE3;
  --wr-pearl-deep: #E8E0D8;
  --wr-accent: #C4A882;
  --wr-accent-l: #D4B894;
  --wr-text: #1A1614;
  --wr-muted: #6B5E54;
  --wr-border: rgba(196, 168, 130, .22);
  --wr-shimmer: linear-gradient(135deg, #ffffff 0%, #f0ebe3 40%, #e8ddd2 70%, #f5f0ea 100%);
  --wr-glow: 0 0 30px rgba(200, 168, 75, 0.08);

  /* ---- TIPOGRAFÍAS Y TRANSICIONES ---- */
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; font-size: 14px; }
body { background: var(--black); color: var(--white); font-family: var(--font-body); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .45;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.sr { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
.sr.left { transform: translateX(-36px); }
.sr.right { transform: translateX(36px); }
.sr.scale { transform: scale(.95) translateY(16px); }
.sr.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .05s !important; }
.d2 { transition-delay: .1s !important; }
.d3 { transition-delay: .15s !important; }
.d4 { transition-delay: .2s !important; }
.d5 { transition-delay: .25s !important; }
.d6 { transition-delay: .3s !important; }


/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 22px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(8, 8, 8, .92);
  backdrop-filter: blur(20px);
  padding: 14px 52px;
  border-color: var(--border);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 2px 6px rgba(200, 168, 75, 0.18));
}
.nav-logo:hover { transform: scale(1.06); }
.nav-logo img { height: 100%; width: auto; display: block; }
@media (max-width: 768px) { .nav-logo { height: 38px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  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-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 10px 24px;
  border-radius: 2px;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--gold-l); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 9999;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, .97);
  backdrop-filter: blur(30px);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #nav { padding: 16px 20px; }
  #nav.scrolled { padding: 12px 20px; }
}


/* ============================================================
   SECTIONS BASE
   ============================================================ */
section { position: relative; padding: 110px 48px; }
.wrap { max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { section { padding: 72px 20px; } }


/* ============================================================
   BUTTONS (compartidos Latin Gang)
   ============================================================ */
.btn-gold {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 14px 32px;
  border-radius: 2px;
  transition: background .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); }

.btn-outline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--border-l);
  padding: 14px 32px;
  border-radius: 2px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { background: var(--gold-dim); border-color: var(--gold); transform: translateY(-2px); }


/* ============================================================
   MODAL BASE
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: 4px;
}
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: var(--s2); }
.modal::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

.modal-close {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--surface) 60%, transparent);
}
.modal-close button {
  width: 36px;
  height: 36px;
  background: var(--s3);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close button:hover { background: var(--gold-dim); transform: scale(1.1); }


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 48px 52px 28px;
  border-top: 1px solid var(--border);
  background: var(--black);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.footer-brand span { color: var(--white); }
.footer-tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  font-style: italic;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer-info-item svg { flex-shrink: 0; opacity: .7; }
.footer-info-item a:hover { color: var(--gold); }

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--gold); }

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social-btn {
  width: 40px;
  height: 40px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social-btn:hover { background: var(--gold-dim); border-color: var(--border-l); transform: translateY(-2px); }
.footer-social-btn svg { width: 18px; height: 18px; }

.footer-divider { height: 1px; background: var(--border); margin-bottom: 18px; }
.footer-copy {
  font-size: 11px;
  color: rgba(245, 240, 232, .2);
  text-align: center;
}
.footer-dev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--black);
  border: 1px solid var(--gold);
  padding: 10px 20px;
  border-radius: 2px;
  margin: 0 auto 18px;
  transition: var(--transition);
  text-align: center;
  max-width: fit-content;
}
.footer-dev-btn:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }

@media (max-width: 640px) { footer { padding: 32px 20px; } }


/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
}
.float-wa-btn {
  width: 58px;
  height: 58px;
  background: var(--black);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(200, 168, 75, .25), 0 0 0 0 rgba(200, 168, 75, .3);
  transition: transform .3s, box-shadow .3s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.float-wa-btn:hover { transform: scale(1.12); box-shadow: 0 6px 32px rgba(200, 168, 75, .4); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(200, 168, 75, .25), 0 0 0 0 rgba(200, 168, 75, .3); }
  50% { box-shadow: 0 4px 24px rgba(200, 168, 75, .25), 0 0 0 10px rgba(200, 168, 75, 0); }
}


/* ============================================================
   UNIVERSE DIVIDER — transición entre Latin Gang ↔ WhiteRever
   ============================================================ */
.universe-divider {
  height: 80px;
  width: 100%;
  position: relative;
}
.universe-divider.to-wr { background: linear-gradient(180deg, var(--black) 0%, #2a2a28 40%, var(--wr-s2) 100%); }
.universe-divider.to-lg { background: linear-gradient(180deg, var(--wr-s2) 0%, #2a2a28 60%, var(--black) 100%); }


/* ============================================================
   COMMON EYEBROW/TITLE — LATIN GANG
   ============================================================ */
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.sec-title {
  font-family: var(--font-title);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
}
.sec-title em { color: var(--gold); font-style: italic; }
.sec-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.85;
  margin-bottom: 48px;
}
