/* ═══════════════════════════════════════════
   A.M. BALANZAS — Shared Stylesheet
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --azul:       #1B2B4B;
  --azul-md:    #243860;
  --azul-dk:    #0f1e35;
  --naranja:    #E8890C;
  --naranja-h:  #d07a0a;
  --blanco:     #ffffff;
  --gris:       #F7F8FA;
  --gris-md:    #F0F1F3;
  --borde:      #E5E7EB;
  --texto:      #111827;
  --suave:      #6B7280;
  --nav-h:      68px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--blanco);
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── NAVBAR ── */
#navbar-container nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--azul);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-logo img { height: 40px; object-fit: contain; }
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.8rem;
}
.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--naranja);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--suave) !important;
  color: #fff !important;
  padding: .45rem 1.2rem;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #586273 !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--azul-dk);
  padding: 1.5rem 2rem;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 1.1rem; }
.nav-mobile .nav-link { font-size: 1rem; }

/* ── FOOTER ── */
#footer-container footer {
  background: var(--azul-dk);
  padding: 2.5rem 2.5rem 1.5rem;
}
.foot-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-brand img { height: 36px; opacity: .8; margin-bottom: 1rem; }
.foot-brand p { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.7; }
.foot-col h5 {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--naranja);
  margin-bottom: .9rem;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.foot-col ul a { font-size: .83rem; color: rgba(255,255,255,.5); transition: color .2s; }
.foot-col ul a:hover { color: rgba(255,255,255,.85); }
.foot-col p { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.8; }
.foot-bottom {
  max-width: 1200px;
  margin: 1.2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.foot-copy { font-size: .76rem; color: rgba(255,255,255,.3); }
.foot-badges { display: flex; gap: .5rem; }
.foot-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--naranja);
  color: #fff;
}
.btn-primary:hover {
  background: var(--naranja-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,137,12,.35);
}
.btn-gray {
  background: var(--suave);
  color: #fff;
}
.btn-gray:hover {
  background: #586273;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,114,128,.35);
}
.btn-outline-white {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-dark {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}
.btn-outline-dark:hover {
  background: var(--azul);
  color: #fff;
}
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }

/* ── LAYOUTS ── */
.container { max-width: 1200px; margin: 0 auto; }
section { padding: 5.5rem 2.5rem; }
.sec-tag {
  display: inline-block;
  color: var(--naranja);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .75rem;
}
.sec-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--texto);
  line-height: 1.18;
  margin-bottom: 1rem;
}
.sec-title.w { color: #fff; }
.sec-sub {
  font-size: 1.02rem;
  color: var(--suave);
  max-width: 600px;
  margin-bottom: 3rem;
}
.sec-sub.w { color: rgba(255,255,255,.7); }

/* ── PAGE HEADER (interior pages) ── */
.page-header {
  background: var(--azul);
  padding: calc(var(--nav-h) + 3.5rem) 2.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 50px solid rgba(232,137,12,.1);
  pointer-events: none;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header-tag {
  display: inline-block;
  background: rgba(232,137,12,.15);
  border: 1px solid rgba(232,137,12,.4);
  color: var(--naranja);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: .75rem;
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--azul-md);
  padding: 1.6rem 2.5rem;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  text-align: center;
}
.stat-item {
  padding: .75rem 1rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--naranja);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--borde);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(27,43,75,.1);
}
.card-line {
  height: 3px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.card:hover .card-line { transform: scaleX(1); }

/* ── SERVICE CARDS ── */
.svc-icon {
  width: 50px; height: 50px;
  background: rgba(232,137,12,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.svc-badge {
  display: inline-block;
  background: var(--naranja);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .18rem .55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .6rem;
}

/* ── CTA BLOCK ── */
.cta-block {
  background: var(--azul);
  padding: 4.5rem 2.5rem;
  text-align: center;
}
.cta-block h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}
.cta-block p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── WA FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 1.8rem; right: 1.8rem;
  z-index: 998;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.5);
  transition: all .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 26px rgba(37,211,102,.6); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(2), .stat-item:last-child { border-bottom: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .page-header { padding: calc(var(--nav-h) + 2.5rem) 1.25rem 2.5rem; }
  .stats-bar { padding: 1.2rem 1.25rem; }
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .foot-bottom { flex-direction: column; text-align: center; }
  .cta-block { padding: 3.5rem 1.25rem; }
}
