:root {
  --navy-950: #0a1830;
  --navy-900: #0b1f3d;
  --navy-800: #142a4d;
  --navy-700: #1e3a63;
  --gold-700: #a4772f;
  --gold-600: #b8935f;
  --gold-500: #c9a15c;
  --gold-100: #f4e8d3;
  --paper: #faf7f1;
  --paper-alt: #f2ece0;
  --ink: #1c1a17;
  --ink-soft: #55534d;
  --line: #e4dcc8;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--navy-900); }
p { margin: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-700); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--gold-600); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-text { display: none; }
.main-nav { display: none; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--navy-800);
  position: relative; padding: 6px 0;
}
.main-nav a:hover { color: var(--gold-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 3px; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.02em; border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-gold { background: var(--gold-600); color: #fff; }
.btn-gold:hover { background: var(--gold-700); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { color: var(--navy-800); font-weight: 600; font-size: 13.5px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.menu-toggle {
  display: flex; background: none; border: none; padding: 8px; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 4px 0; }

@media (min-width: 900px) {
  .brand-text { display: block; }
  .brand-text .name { font-family: var(--serif); font-size: 18px; color: var(--navy-900); line-height: 1.1; }
  .brand-text .tagline { font-size: 10.5px; letter-spacing: 0.14em; color: var(--gold-700); text-transform: uppercase; margin-top: 2px; }
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none; flex-direction: column; gap: 2px; padding: 10px 24px 20px;
  border-top: 1px solid var(--line); background: var(--paper);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--navy-800); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------------- Hero ---------------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(184, 147, 95, 0.14), transparent 60%),
    var(--paper);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-700); }
.hero p.lead {
  font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-meta div { display: flex; align-items: baseline; gap: 8px; }
.hero-meta strong { font-family: var(--serif); font-size: 22px; color: var(--navy-900); }
.hero-meta span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-visual {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 46px 30px; text-align: center;
  box-shadow: 0 30px 60px -30px rgba(11, 31, 61, 0.25);
}
.hero-visual img { max-width: 340px; margin: 0 auto; }

/* ---------------- Sections ---------------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 16px; margin-top: 14px; }

/* ---------------- Nosotros ---------------- */
.nosotros { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nosotros-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .nosotros-grid { grid-template-columns: 0.9fr 1.1fr; } }
.abogado-card {
  background: var(--navy-900); color: #f4efe4; border-radius: 6px; padding: 40px 34px;
  position: relative; overflow: hidden;
}
.abogado-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 300px at 100% 0%, rgba(184,147,95,0.35), transparent 60%);
}
.abogado-card .rel { position: relative; }
.abogado-card .role { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
.abogado-card h3 { color: #fff; font-size: 25px; margin-bottom: 6px; }
.abogado-card .cedula { font-size: 13px; color: #c7cede; margin-bottom: 22px; }
.abogado-card p { color: #d6dbe6; font-size: 14.5px; }
.abogado-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.abogado-tags span {
  font-size: 11.5px; border: 1px solid rgba(201,161,92,0.5); color: var(--gold-500);
  padding: 5px 11px; border-radius: 20px;
}
.nosotros-text p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.pilar { text-align: left; }
.pilar .num { font-family: var(--serif); color: var(--gold-700); font-size: 22px; margin-bottom: 6px; display: block; }
.pilar h4 { font-size: 14.5px; margin-bottom: 4px; }
.pilar p { font-size: 13px; color: var(--ink-soft); }

/* ---------------- Servicios ---------------- */
.servicios-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 16px; }
@media (min-width: 700px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }
.servicio-card {
  background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.servicio-card:hover {
  transform: translateY(-3px); border-color: var(--gold-500);
  box-shadow: 0 18px 34px -22px rgba(11,31,61,0.35);
}
.servicio-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--gold-700);
}
.servicio-card h4 { font-size: 15.5px; margin-bottom: 6px; font-family: var(--sans); font-weight: 600; }
.servicio-card p { font-size: 13.5px; color: var(--ink-soft); }
.servicios-categoria { margin-top: 44px; }
.servicios-categoria:first-of-type { margin-top: 0; }
.cat-label { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; margin-bottom: 18px; }

/* ---------------- Sistema / Portal ---------------- */
.sistema {
  background: var(--navy-900); color: #eef0f5; position: relative; overflow: hidden;
}
.sistema::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 15% 20%, rgba(184,147,95,0.18), transparent 60%);
}
.sistema .container { position: relative; }
.sistema .section-head h2 { color: #fff; }
.sistema .section-head p { color: #c3c9d6; }
.sistema .eyebrow { color: var(--gold-500); }
.sistema .eyebrow::before, .sistema .eyebrow::after { background: var(--gold-600); }
.portal-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 800px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
.portal-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 32px; backdrop-filter: blur(4px);
}
.portal-card .tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-500); padding: 4px 10px; border-radius: 3px;
  margin-bottom: 16px; font-weight: 700;
}
.portal-card h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.portal-card p { color: #c3c9d6; font-size: 14px; margin-bottom: 22px; }
.portal-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.portal-card li { font-size: 13.5px; color: #d6dbe6; padding-left: 20px; position: relative; margin-bottom: 8px; }
.portal-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold-500); }
.sistema-note {
  margin-top: 36px; font-size: 13px; color: #9aa2b5; display: flex; align-items: center; gap: 10px;
}

/* ---------------- Contacto ---------------- */
.contacto-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contacto-grid { grid-template-columns: 1fr 1fr; } }
.contacto-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px;
}
.contacto-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacto-item:last-child { border-bottom: none; }
.contacto-item .icn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contacto-item h4 { font-size: 14px; font-family: var(--sans); font-weight: 600; margin-bottom: 3px; }
.contacto-item p, .contacto-item a { font-size: 14px; color: var(--ink-soft); }
.contacto-item a:hover { color: var(--gold-700); }
.contacto-item .row { display: flex; gap: 14px; flex-wrap: wrap; }
.map-card {
  background: var(--navy-900); border-radius: 6px; padding: 34px; color: #eef0f5;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 100%;
}
.map-card h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.map-card p { color: #c3c9d6; font-size: 14px; margin-bottom: 26px; }
.map-card address { font-style: normal; color: #eef0f5; font-size: 15px; line-height: 1.7; margin-bottom: 26px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); color: #a9b0c2; padding: 56px 0 26px; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .wordmark { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 4px; }
.footer-brand .wordmark span { color: var(--gold-500); }
.footer-brand .tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: #8891a5; max-width: 34ch; }
.footer-col h5 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #eef0f5; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #a9b0c2; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: #6f7890;
}

/* ---------------- Utilidades ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.4);
}
