/* ============================================================
   SOLUCIONES LEGALES — Sistema de Diseño Compartido
   Paleta: Navy Profundo + Dorado Premium + Dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #0a1628;
  --navy-mid:    #0e2044;
  --navy-light:  #1a3a6b;
  --gold:        #c9a227;
  --gold-light:  #f5d07a;
  --gold-glow:   rgba(201, 162, 39, 0.35);
  --white:       #ffffff;
  --text-muted:  #94a3b8;
  --bg-glass:    rgba(255,255,255,0.04);
  --border-glass:rgba(255,255,255,0.10);
  --shadow-gold: 0 0 40px rgba(201,162,39,0.25);
  --radius-lg:   1.25rem;
  --radius-xl:   2rem;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── Particles Background ───────────────────────────────────── */
.particles-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar-sl {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.4s ease;
  padding: 0.75rem 0;
}

.navbar-sl.scrolled {
  background: rgba(8, 16, 32, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar-sl .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-sl .brand-logo {
  width: 46px; height: 46px;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  object-fit: cover;
  transition: transform 0.3s var(--ease-bounce);
}
.navbar-sl .brand-logo:hover { transform: scale(1.08) rotate(-3deg); }

.navbar-sl .brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.navbar-sl .brand-name span { color: var(--gold-light); }

.navbar-sl .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
}
.navbar-sl .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-bounce);
}
.navbar-sl .nav-link:hover,
.navbar-sl .nav-link.active {
  color: var(--gold-light) !important;
  background: rgba(201,162,39,0.08);
}
.navbar-sl .nav-link:hover::after,
.navbar-sl .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hamburger Custom */
.navbar-toggler {
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.5rem;
  background: rgba(201,162,39,0.1);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--gold-glow); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23f5d07a' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobile Nav Collapse */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    background: rgba(8,18,38,0.97);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border-glass);
  }
}

/* Header Social Buttons */
.btn-social-hdr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
}
.btn-social-hdr:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-wsp-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}
.btn-wsp-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34,197,94,0.4);
}

/* ─── Section Shared ─────────────────────────────────────────── */
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-heading .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1.25rem auto 2.5rem;
}
.section-divider.left { margin-left: 0; }

/* ─── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), var(--shadow-gold);
  border-color: rgba(201,162,39,0.4);
}
.glass-card:hover::before { opacity: 1; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition: all 0.35s var(--ease-bounce);
  box-shadow: 0 6px 20px var(--gold-glow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(201,162,39,0.5);
}
.btn-gold:hover::after { opacity: 1; }
.btn-gold:active { transform: translateY(0) scale(0.98); }

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--gold-light) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--gold);
  text-decoration: none;
  transition: all 0.35s var(--ease-bounce);
  cursor: pointer;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition: all 0.35s var(--ease-bounce);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  cursor: pointer;
}
.btn-wsp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37,211,102,0.5);
}

/* ─── Floating WhatsApp ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.whatsapp-float .wsp-label {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  animation: wsp-pulse 2.5s ease-in-out infinite;
}
@keyframes wsp-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 6px 24px rgba(37,211,102,0.7); }
}
.whatsapp-float .wsp-icon {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  transition: transform 0.3s var(--ease-bounce);
}
.whatsapp-float .wsp-icon i { font-size: 1.75rem; color: white; }
.whatsapp-float:hover .wsp-icon { transform: scale(1.12) rotate(-8deg); }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer-sl {
  background: var(--navy-mid);
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 0 1.5rem;
}
.footer-sl .footer-logo { width: 56px; border-radius: 10px; border: 1.5px solid var(--gold); }
.footer-sl .footer-brand { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--gold-light); }
.footer-sl .footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-sl .footer-link:hover { color: var(--gold-light); }
.footer-sl .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-sl .footer-social a:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-3px);
}
.footer-divider {
  border-color: var(--border-glass);
  margin: 2rem 0 1.5rem;
}

/* ─── Fade-in Animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }

/* ─── Gold Tag/Badge ─────────────────────────────────────────── */
.badge-gold {
  display: inline-block;
  background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(245,208,122,0.08));
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
}

/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── Utility ─────────────────────────────────────────────────── */
.text-gold { color: var(--gold-light) !important; }
.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.text-muted-sl { color: var(--text-muted) !important; }
.border-gold { border-color: var(--gold) !important; }
.gap-hero { gap: 4rem; }