:root {
  --blue-900: #102945;
  --blue-800: #17385f;
  --gold-500: #c79c53;
  --gold-600: #b8893e;
  --text: #26313f;
  --muted: #5f6977;
  --bg: #f4f4f4;
  --white: #ffffff;
  --border: #e4e6ea;
  --shadow: 0 12px 28px rgba(11, 29, 53, 0.1);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #ebebeb;
  color: var(--text);
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.topbar { height: 12px; background: var(--blue-900); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.nav-container {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-900);
}
.logo-mark {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}
.logo-text strong {
  display: block;
  font-size: 1.45rem;
}
.logo-text span {
  color: var(--gold-500);
  font-family: Arial, sans-serif;
  font-size: .95rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #566377;
  font-family: Arial, sans-serif;
  font-size: .98rem;
  font-weight: 700;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-900); }
.nav-links a:hover::after,
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
}
.phone-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  transition: .25s ease;
}
.phone-btn {
  background: var(--gold-500);
  color: var(--white);
  padding: 13px 18px;
  white-space: nowrap;
}
.phone-btn:hover { background: var(--gold-600); }
.menu-toggle {
  display: none;
  border: none;
  background: var(--blue-900);
  color: var(--white);
  border-radius: 4px;
  font-size: 1.2rem;
  padding: 10px 12px;
  cursor: pointer;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to right, rgba(6, 20, 38, 0.88), rgba(6, 20, 38, 0.22)),
    url("assets/hero-abogados.svg") center/cover no-repeat;
}
.hero-content { position: relative; z-index: 1; }
.hero-text {
  max-width: 590px;
  color: var(--white);
  padding: 20px 0;
}
.hero-text h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
}
.hero-text p {
  max-width: 480px;
  margin: 0 0 28px;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #edf2f8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  padding: 14px 24px;
  border: none;
  cursor: pointer;
}
.btn::after { content: "›"; font-size: 1.15rem; }
.btn-gold { background: var(--gold-500); color: var(--white); }
.btn-gold:hover { background: var(--gold-600); }
.btn-blue { background: var(--blue-900); color: var(--white); }
.btn-blue:hover { background: var(--blue-800); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.45);
}
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn.small { padding: 10px 18px; font-size: .92rem; }
.submit-btn { width: 170px; align-self: flex-end; }

.section {
  padding: 72px 0;
  background: var(--bg);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}
.section-title.center { justify-content: center; }
.section-title.left { justify-content: flex-start; }
.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.65rem);
  color: var(--blue-900);
  white-space: nowrap;
}
.section-title.light h2 { color: var(--white); }
.section-title span {
  width: 170px;
  max-width: 18vw;
  height: 2px;
  background: #d4d7dc;
}
.section-title.light span { background: rgba(255,255,255,.4); }

.about {
  background: linear-gradient(to right, #f7f7f7, #f1f1f1);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-copy p {
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.02rem;
}
.card-frame {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-image img { width: 100%; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  padding: 24px 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover,
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-wrap {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.icon-wrap img { width: 60px; height: 60px; }
.service-card h3,
.blog-body h3,
.info-box h3 {
  color: var(--blue-900);
  margin: 10px 0 12px;
  font-size: 1.5rem;
}
.service-card p,
.blog-body p,
.info-box p {
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 1.72;
}

.blog {
  background:
    linear-gradient(rgba(9, 25, 44, .84), rgba(9, 25, 44, .84)),
    url("assets/fondo-blog.svg") center/cover no-repeat;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.blog-body { padding: 18px; }
.blog-body h3 {
  font-size: 1.35rem;
  min-height: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  padding: 14px;
  border: 1px solid #d8dde4;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold-500); }
.contact-side {
  display: grid;
  gap: 18px;
}
.map-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.info-box { padding: 22px; }

.cta-band {
  background:
    linear-gradient(rgba(16, 41, 69, .95), rgba(16, 41, 69, .95)),
    url("assets/fondo-blog.svg") center/cover no-repeat;
  color: var(--white);
  padding: 26px 0;
}
.cta-band-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-band h3 {
  margin: 0 0 8px;
  font-size: 1.9rem;
}
.cta-band p {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #ebf1f8;
}

.footer {
  background: #0e233d;
  color: var(--white);
  padding: 18px 0;
}
.footer-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.footer p {
  margin: 0;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: .95rem;
}
.socials,
.footer-links {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #17385f;
  font-family: Arial, sans-serif;
  font-weight: 700;
}
.footer-links a {
  color: #d6dfe9;
  font-family: Arial, sans-serif;
  font-size: .94rem;
}
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22c55e;
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-band-content, .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .socials, .footer-links { justify-content: center; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .phone-btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 94px;
    background: var(--white);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .hero { min-height: 470px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-title { gap: 10px; }
  .section-title span { width: 60px; }
  .section-title h2 { white-space: normal; font-size: 1.85rem; }
  .logo-mark { font-size: 2.25rem; }
  .logo-text strong { font-size: 1.15rem; }
}
