/* ===========================================
   GERENCIA.COM — Redesign
   Palette sourced from original brand (logo #0033FF + navy #003a6c)
   Font: Inter (system-friendly fallback chain)
=========================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #0033ff;
  --brand-700: #0026cc;
  --brand-800: #001c99;
  --navy: #041a4d;
  --navy-900: #020d2b;
  --ink: #0b1324;
  --muted: #55607a;
  --line: #e6e9f2;
  --surface: #ffffff;
  --surface-alt: #f6f8ff;
  --surface-dark: #041a4d;
  --whatsapp: #25d366;
  --accent: #ffb800;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(4, 26, 77, .06), 0 1px 3px rgba(4, 26, 77, .04);
  --shadow-md: 0 6px 20px rgba(4, 26, 77, .08), 0 2px 6px rgba(4, 26, 77, .05);
  --shadow-lg: 0 30px 60px -20px rgba(4, 26, 77, .25);

  --container: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--navy); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--muted); }
ul, ol { padding-left: 1.2rem; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
section { padding: var(--space-9) 0; }
@media (max-width: 760px) { section { padding: var(--space-8) 0; } }

.section-head { max-width: 720px; margin: 0 auto var(--space-7); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 6px 12px;
  background: rgba(0, 51, 255, .08);
  border-radius: 999px;
  margin-bottom: 12px;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: .97rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(0,51,255,.25); }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,51,255,.35); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { color: var(--brand); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1ea856; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #c6cfe7;
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #c6cfe7; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-contact span, .topbar-contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 12px; order: -1; }
.topbar-social a svg { width: 16px; height: 16px; display: block; }
@media (max-width: 640px) { .topbar { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  gap: 24px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav .container nav { display: contents; }

.nav-toggle {
  display: block;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 60;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  padding: 96px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  gap: 4px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -12px 0 40px rgba(4, 26, 77, .12);
  z-index: 55;
}
.nav-links.open { transform: translateX(0); }
.nav-links li { list-style: none; }
.nav-links a {
  display: block;
  color: var(--ink);
  font-weight: 500;
  padding: 16px 20px;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--line);
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-alt); color: var(--brand); }

.nav-cta-item {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.nav-cta-item a {
  border-bottom: 0;
}
.nav-links .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--radius);
  border-bottom: 0;
}

body.nav-open { overflow: hidden; }

@media (max-width: 560px) {
  .nav .container { gap: 12px; padding: 12px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-9);
  background:
    radial-gradient(1200px 600px at -5% -10%, rgba(0,51,255,.08), transparent 60%),
    radial-gradient(900px 500px at 105% 0%, rgba(4,26,77,.08), transparent 60%),
    #fff;
  overflow: hidden;
  text-align: center;
}
.hero-content { max-width: 920px; margin: 0 auto; text-align: center; }
.hero-content .eyebrow { display: inline-block; }
.hero h1 { margin: 22px auto 24px; max-width: 900px; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 1.2rem; margin: 0 auto 36px; max-width: 700px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-trust {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .95rem;
}
.hero-trust > div {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}
.hero-trust > div:last-child { border-right: 0; }
.hero-trust strong { color: var(--navy); font-size: 1.05rem; }
@media (max-width: 640px) {
  .hero-trust { gap: 14px 24px; }
  .hero-trust > div { padding: 0; border-right: 0; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--navy);
  color: #fff;
  padding: var(--space-7) 0;
}
.stats .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center;
}
.stat .num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat .label { color: #a9b4d5; font-size: .9rem; margin-top: 8px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 720px) { .stats .grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- GEAR / About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.gear-list { display: grid; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.gear-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
}
.gear-list li:hover { border-color: var(--brand); transform: translateX(2px); }
.gear-list .mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff; font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0 auto auto 0;
  width: 4px; height: 0;
  background: var(--brand);
  transition: height .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { height: 100%; }
.service-card .ico {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--surface-alt);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service-card .ico img { width: 32px; height: 32px; object-fit: contain; }
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card p { flex: 1; font-size: .95rem; margin-bottom: 18px; }
.service-card .more {
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .more::after { content: "→"; transition: transform .2s ease; }
.service-card:hover .more::after { transform: translateX(3px); }

/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 960px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }

.industry {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background: var(--navy);
}
.industry img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s ease;
  opacity: .75;
}
.industry::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 26, 77, .85));
}
.industry span {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  color: #fff; font-weight: 600; font-size: .95rem;
  z-index: 1;
  letter-spacing: .02em;
}
.industry:hover img { transform: scale(1.06); opacity: .9; }

/* ---------- Blog cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .cover { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-alt); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card .meta { color: var(--muted); font-size: .82rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { flex: 1; font-size: .95rem; }
.post-card .read { margin-top: 12px; font-weight: 600; color: var(--brand); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-800) 100%);
  color: #fff;
  padding: var(--space-8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 20% 0%, rgba(255,255,255,.1), transparent);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c6cfe7; font-size: 1.1rem; margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #f0f2ff; color: var(--brand-700); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 16px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 51, 255, .1);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }

.form-note { font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Contact split layout ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-7);
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 960px) { .contact-split { grid-template-columns: 1fr; padding: 28px; } }

.contact-info h2 { margin-bottom: 10px; }
.contact-info ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ico {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; background: var(--surface-alt);
  display: grid; place-items: center; color: var(--brand);
}
.contact-info .ico svg { width: 20px; height: 20px; }
.contact-info .meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 2px; }
.contact-info .val { color: var(--ink); font-weight: 600; }
.contact-info .val a { color: inherit; }
.contact-info .val a:hover { color: var(--brand); }

/* ---------- Page header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-800) 100%);
  color: #fff;
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
}
.page-header h1 { color: #fff; }
.page-header p { color: #c6cfe7; max-width: 640px; margin-inline: auto; font-size: 1.1rem; }
.breadcrumb {
  display: inline-flex; gap: 8px; font-size: .85rem; color: #a9b4d5;
  margin-bottom: 16px;
}
.breadcrumb a { color: #a9b4d5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* ---------- Article (blog post) ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.article .meta { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.article h1 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); margin-bottom: 20px; }
.article .cover { border-radius: var(--radius-lg); overflow: hidden; margin: 28px 0; aspect-ratio: 16/9; background: var(--surface-alt); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article .body { font-size: 1.05rem; line-height: 1.8; color: #2b3145; }
.article .body p { color: inherit; margin-bottom: 1.2em; }
.article .body h2 { margin-top: 1.5em; margin-bottom: .6em; }
.article .body h3 { margin-top: 1.2em; font-size: 1.15rem; }
.article .body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy);
  font-style: italic;
}
.article .body ul, .article .body ol { margin: 0 0 1.2em 0; padding-left: 1.4rem; }
.article .body li { margin-bottom: .4em; }
.article .body strong { color: var(--navy); }

.article-nav {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 48px;
  font-size: .9rem;
}
.article-nav a { color: var(--navy); font-weight: 600; }
.article-nav a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-900);
  color: #a9b4d5;
  padding: var(--space-8) 0 var(--space-5);
  font-size: .92rem;
}
footer.site a { color: #c6cfe7; }
footer.site a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-7); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

footer.site h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site .brand img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); }
footer.site .brand p { color: #a9b4d5; font-size: .92rem; }
footer.site .social { display: flex; gap: 10px; margin-top: 16px; }
footer.site .social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  transition: background-color .15s ease, transform .15s ease;
}
footer.site .social a:hover { background: var(--brand); transform: translateY(-2px); }
footer.site .social svg { width: 18px; height: 18px; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #7b86a8; font-size: .85rem;
}

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab-wa:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 36px rgba(37,211,102,.45); }
.fab-wa svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.bg-alt { background: var(--surface-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .fade-up.in { opacity: 1; transform: translateY(0); }
}
