/* ═══════════════════════════════════════════════════════════
   ABOGADOENSEVILLA.NET — global.css
   Tokens · Reset · Utilidades · Topbar · Nav · Footer · Float
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:    #0F1F3D;
  --navy-md: #1A3057;
  --gold:    #C9A96E;
  --gold-lt: #E2C99A;
  --cream:   #F8F6F1;
  --stone:   #EAE7E0;
  --gray:    #6B7280;
  --dark:    #1C1C22;
  --white:   #FFFFFF;
  --shadow:     0 4px 32px rgba(15,31,61,.08);
  --shadow-lg:  0 12px 48px rgba(15,31,61,.14);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --radius: 2px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── UTILIDADES ─────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.gold-rule { width: 48px; height: 2px; background: var(--gold); margin: 20px 0 28px; }
.gold-rule.center { margin: 20px auto 28px; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--ff-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 15px 32px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border-radius: var(--radius);
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 14px 30px;
  border: 1.5px solid rgba(255,255,255,.45);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  border-radius: var(--radius);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,169,110,.12); }

/* ─── SECCIONES ──────────────────────────────────────────── */
section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-navy  { background: var(--navy); }

/* ─── ANIMACIONES SCROLL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  padding: 9px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gold-lt); transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }

/* ─── HEADER / NAV ───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 2px 16px rgba(15,31,61,.06);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo span { color: var(--gold); }
.logo small {
  display: block;
  font-family: var(--ff-body);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .83rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--navy) !important; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: var(--transition); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: #080f1e;
  color: rgba(255,255,255,.6);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo span { color: var(--gold); }
.footer-about { font-size: .83rem; line-height: 1.8; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: border-color var(--transition), color var(--transition);
}
.footer-social:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: .83rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a::before { content: '→'; font-size: .65rem; color: var(--gold); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .75rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,.08);
  border: 1px solid rgba(201,169,110,.2);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: .72rem;
  color: var(--gold-lt);
}
.footer-credit {
  text-align: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .72rem;
  color: rgba(255,255,255,.22);
  letter-spacing: .04em;
}
.footer-credit a {
  color: rgba(201,169,110,.5);
  transition: color var(--transition);
}
.footer-credit a:hover { color: var(--gold); }

/* ─── BOTONES FLOTANTES ──────────────────────────────────── */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
}
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.float-wa  { background: #25D366; }
.float-tel { background: var(--gold); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 99;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
  .nav-links.open a { color: var(--white); font-size: 1.1rem; }
  .nav-links.open .nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    padding: 14px 32px !important;
  }
  .topbar-left { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
