/* ═══════════════════════════════════════════════════════════════════
   GestionaTuDeuda.co — Estilos compartidos
   Incluir en todas las páginas:
   <link rel="stylesheet" href="/css/styles.css">
═══════════════════════════════════════════════════════════════════ */

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

:root {
  --navy:   #00245b;
  --navy2:  #00307a;
  --green:  #6090f6;
  --green2: #4a7de8;
  --light:  #f4f7fb;
  --gray:   #5a6470;
  --border: #dde3ec;
  --white:  #ffffff;
  --gold:   #f5a623;
  --red:    #d9534f;
}

body { font-family: 'Inter', sans-serif; color: #1a2433; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .3px;
}
.topbar strong { color: var(--gold); }

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 58px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 58px; height: 48px; }
.logo-text { line-height: 1.15; }
.logo-text span { display: block; }
.logo-text .brand { font-size: 18px; font-weight: 400; color: var(--navy); text-transform: uppercase; letter-spacing: 1.5px; }
.logo-text .brand strong { font-weight: 800; }
.logo-text .tagline { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: .8px; margin-top: 1px; }

nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 14px; font-weight: 500; color: var(--navy); transition: color .2s; }
nav a:hover { color: var(--green); }

.header-phone {
  display: flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 8px rgba(96,144,246,.3);
}
.header-phone svg { width: 18px; height: 18px; fill: #fff; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; border: none; background: none;
  cursor: pointer; gap: 5px; padding: 4px; border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: var(--light); }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55); backdrop-filter: blur(5px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 82%; max-width: 310px;
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: 8px 0 40px rgba(0,0,0,.2);
  overflow-y: auto;
}
.mnav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mnav-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--navy); line-height: 1;
  flex-shrink: 0;
}
.mnav-close:hover { background: var(--border); }
.mnav-links { flex: 1; padding: 12px 16px; }
.mnav-links a {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 600; color: var(--navy);
  padding: 13px 12px; border-radius: 10px;
  transition: background .15s; text-decoration: none;
}
.mnav-links a:hover { background: var(--light); }
.mnav-links a .mnav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.mnav-contact {
  padding: 16px 16px 32px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.mnav-contact p { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: 4px; }
.mnav-btn-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 13px 16px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  white-space: nowrap;
}
.mnav-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff;
  padding: 13px 16px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  white-space: nowrap;
}

/* ── SECTION COMMONS ── */
section { padding: 80px 20px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: #eaeffd; color: var(--green2);
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 30px;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px;
}
h2.section-title {
  font-size: 38px; font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: 16px; letter-spacing: -.5px;
}
p.section-sub {
  font-size: 17px; color: var(--gray); line-height: 1.7; max-width: 620px;
}
.text-center { text-align: center; }
.text-center p.section-sub { margin: 0 auto; }

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  background: #001a3a; color: rgba(255,255,255,.65);
  padding: 60px 20px 30px;
}
.footer-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .logo-text .brand { color: #fff; font-size: 17px; }
.footer-brand .logo-text .tagline { color: rgba(255,255,255,.4); }
.footer-desc { font-size: 14px; line-height: 1.7; margin: 16px 0; color: rgba(255,255,255,.55); }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 14px; font-weight: 700;
  transition: background .2s;
}
.social-link:hover { background: var(--green); color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1160px; margin: 40px auto 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px;
}
.footer-legal { font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 700px; }
.footer-badges { display: flex; gap: 12px; align-items: center; }
.badge-pill {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 8px 14px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.5); text-align: center;
}
.badge-pill span { display: block; font-size: 15px; color: #fff; }

/* ── RESPONSIVE — SHARED ── */
@media(max-width: 768px) {
  .topbar { font-size: 11.5px; padding: 8px 12px; line-height: 1.5; }
  .hamburger { display: flex; position: absolute; right: 16px; }
  .header-inner { justify-content: center; position: relative; padding: 12px 16px; }
  nav { display: none; }
  .header-phone { display: none; }
  .logo-text .brand { font-size: 16px; }
  .logo-text .tagline { font-size: 10px; }
  .logo-icon { width: 44px; height: 36px; }
  .logo-icon svg { width: 44px; height: 36px; }
  section { padding: 52px 16px; }
  h2.section-title { font-size: 26px; }
  p.section-sub { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-badges { flex-wrap: wrap; }
  footer { padding: 44px 16px 100px; }
}
