/* ============================================
   PILIER & RG LAW FIRM — styles.css
   Fase UI: navy / marfil / oro · bufete premium
   ============================================ */

:root {
  /* Brand */
  --navy: #0b1c33;
  --navy-deep: #071322;
  --navy-mid: #132742;
  --cream: #f4f0e6;
  --paper: #fbf8f2;
  --ivory: #fffcf7;
  --ink: #161410;
  --gold: #b3944a;
  --gold-light: #d4bc7d;
  --gold-dark: #8c7030;

  /* Surfaces */
  --bg-primary: var(--navy-deep);
  --bg-secondary: var(--cream);
  --bg-tertiary: #ebe6da;
  --bg-card: var(--ivory);
  --bg-input: #ffffff;
  --bg-hover: #f3eee4;
  --bg-light: var(--cream);
  --bg-white: var(--ivory);

  /* Text */
  --text-primary: var(--ink);
  --text-secondary: #5a554c;
  --text-muted: #7a7468;
  --text-dark: var(--ink);
  --text-body: #3f3c36;
  --text-accent: var(--gold);
  --text-on-navy: #f4efe4;
  --text-on-navy-muted: #cfc6b6;
  --text-on-navy-soft: #a89f90;

  /* Accents (aliases for existing markup) */
  --accent-primary: var(--gold);
  --accent-secondary: var(--gold-dark);
  --accent-glow: rgba(179, 148, 74, 0.18);
  --accent-gold: var(--gold);
  --accent-gold-light: var(--gold-light);
  --accent-gold-glow: rgba(179, 148, 74, 0.22);
  --accent-gradient: linear-gradient(135deg, #d4bc7d, #8c7030);
  --accent-gradient-gold: var(--accent-gradient);

  /* Borders & status */
  --border-color: #ddd4c4;
  --border-hover: #c9bdab;
  --border-light: #e8e1d4;
  --border-gold: rgba(179, 148, 74, 0.32);
  --success: #2f6b4f;
  --error: #8a3a32;
  --whatsapp: #1f7a4d;

  /* Shadows — soft, institutional */
  --shadow-sm: 0 1px 2px rgba(11, 28, 51, 0.05);
  --shadow-md: 0 6px 20px rgba(11, 28, 51, 0.07);
  --shadow-lg: 0 14px 40px rgba(11, 28, 51, 0.1);
  --shadow-glow: none;
  --shadow-gold: 0 6px 18px rgba(140, 112, 48, 0.14);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --fs-xs: 0.72rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.125rem;
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.35rem);
  --fs-h1: clamp(2.35rem, 4.8vw, 3.75rem);
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;
  --lh-relaxed: 1.85;
  --tracking-label: 0.2em;
  --tracking-nav: 0.12em;
  --tracking-btn: 0.1em;

  /* Layout */
  --container: 1120px;
  --container-wide: 1240px;
  --prose: 42rem;
  --nav-h: 88px;
  --ad-offset: 0px;
  --float-gap: 16px;
  --float-size: 48px;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 3.5rem;
  --space-9: 4.5rem;
  --space-10: 5.5rem;
  --section-y: clamp(3.75rem, 6vw, 5.5rem);

  /* Radius & motion */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;
  --ease-calm: cubic-bezier(0.33, 0, 0.2, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.32s var(--ease-calm);
  --transition-fast: 0.18s var(--ease-calm);
  --transition-btn:
    background-color 0.38s var(--ease-calm),
    color 0.38s var(--ease-calm),
    border-color 0.38s var(--ease-calm),
    box-shadow 0.38s var(--ease-calm),
    opacity 0.38s var(--ease-calm),
    transform 0.38s var(--ease-out-soft);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-body);
  line-height: var(--lh-body);
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.btn,
.btn-primary,
.btn-outline,
.btn-whatsapp,
.btn-secondary,
.btn-call,
.btn-whatsapp-sm,
button[type="submit"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.pending-notice {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(179, 148, 74, 0.4);
  border-left: 3px solid var(--gold);
  background: rgba(179, 148, 74, 0.07);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: var(--lh-body);
}

.photo-slot {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}
.photo-slot img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.photo-slot img[src=""],
.photo-slot img:not([src]) { display: none; }
.attorney-photo .photo-placeholder { margin: 0 auto; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #c4bbab; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.brand-icon { font-size: 1.35rem; color: var(--gold-light); }
.service-icon i { font-size: 1.45rem; color: var(--gold); }
.why-icon i { font-size: 1.5rem; color: var(--gold); }
.info-icon i { font-size: 1.05rem; color: var(--gold); }
.social-links a i { font-size: 1rem; color: #cfc6b6; transition: color var(--transition); }
.social-links a:hover i { color: var(--gold-light); }
.btn-call i { font-size: 0.75rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 3vw, 1.75rem);
}

.section {
  padding: var(--section-y) 0;
}

.section-header {
  margin-bottom: var(--space-7);
  max-width: 40rem;
}

.section-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.section-header .section-title { margin-bottom: 0.75rem; }

.gradient-text {
  color: var(--gold);
  background: none;
  -webkit-text-fill-color: unset;
}

.text-center { text-align: center; }

.prose-width { max-width: var(--prose); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}
.related-links {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hub-intro { max-width: 720px; margin: 2rem auto 0; }
.services-grid--hub { margin-top: 2rem; }
.cta-box--spaced { margin-top: 3rem; }
.cta-box--article { margin-top: 2rem; }
.cta-box--legal { margin-top: 2.5rem; }
.attorney-card--spaced { margin-bottom: 1.5rem; }
.container--legal { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn,
.btn-primary,
.btn-outline,
.btn-whatsapp,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.8rem 1.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: var(--tracking-btn);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-btn);
  text-align: center;
  line-height: 1.2;
  transform: translateY(0);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 72%
  );
  transform: translateX(-130%);
  transition: transform 0.62s var(--ease-out-soft);
  pointer-events: none;
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow:
      0 8px 22px rgba(140, 112, 48, 0.22),
      0 1px 0 rgba(255, 255, 255, 0.16) inset;
  }
  .btn-primary:hover::before {
    transform: translateX(130%);
  }
  .btn-outline:hover,
  .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 28, 51, 0.12);
  }
  .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    background: rgba(244, 239, 228, 0.04);
  }
  .btn-outline--light:hover {
    transform: translateY(-2px);
    background: rgba(244, 239, 228, 0.1);
  }
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
  box-shadow: 0 2px 8px rgba(140, 112, 48, 0.16);
  filter: brightness(1.03);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-full { width: 100%; }

.btn-outline,
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover,
.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-outline:active,
.btn-secondary:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}

.btn-whatsapp {
  background: transparent;
  color: var(--text-on-navy);
  border-color: rgba(244, 239, 228, 0.35);
}
.btn-whatsapp:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-whatsapp:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
  background: rgba(244, 239, 228, 0.06);
}

.btn-whatsapp--on-light {
  margin-top: 0.35rem;
  color: var(--navy);
  border-color: rgba(11, 28, 51, 0.28);
}
.btn-whatsapp--on-light:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
}

.btn-outline--light {
  color: var(--text-on-navy);
  border-color: rgba(244, 239, 228, 0.4);
}
.btn-outline--light:hover {
  background: rgba(244, 239, 228, 0.08);
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-outline--light:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
  background: rgba(244, 239, 228, 0.12);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  background: transparent;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(212, 188, 125, 0.5);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-btn);
  transform: translateY(0);
}
@media (hover: hover) {
  .btn-call:hover {
    background: rgba(179, 148, 74, 0.12);
    border-color: rgba(212, 188, 125, 0.72);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }
}
.btn-call:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}
.btn-call:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: var(--ad-offset);
  left: 0;
  right: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: var(--nav-h);
  background: rgba(11, 28, 51, 0.97);
  border-bottom: 1px solid var(--border-gold);
  transition: background-color var(--transition), box-shadow var(--transition), top var(--transition);
}
.navbar.scrolled {
  background: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(179, 148, 74, 0.4);
}

.btn-nav-consulta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(212, 188, 125, 0.65);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: var(--transition-btn);
  white-space: nowrap;
}
@media (hover: hover) {
  .btn-nav-consulta:hover {
    background: rgba(179, 148, 74, 0.12);
    border-color: var(--gold);
    transform: translateY(-1px);
  }
}
.btn-nav-consulta:active {
  transform: scale(0.97);
  transition-duration: 0.12s;
}
.btn-nav-consulta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* Nav transparente sobre hero / page-header — todas las secciones */
.navbar--firm,
.navbar--transparent {
  border-bottom: 1px solid rgba(179, 148, 74, 0.35);
}
.navbar--firm .nav-links,
.navbar--transparent .nav-links { gap: 1.15rem; }

.navbar--firm:not(.scrolled),
.navbar--transparent:not(.scrolled),
.navbar--firm.navbar--transparent:not(.scrolled) {
  background: rgba(11, 28, 51, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.navbar--firm.scrolled,
.navbar--transparent.scrolled,
.navbar.scrolled {
  background: #0b1c33;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(179, 148, 74, 0.4);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.navbar--firm .nav-links > li > a,
.navbar--firm .nav-links a,
.navbar--transparent .nav-links > li > a,
.navbar--transparent .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}
.navbar--firm .nav-links > li > a:hover,
.navbar--firm .nav-links > li > a.active,
.navbar--firm .nav-links a:hover,
.navbar--firm .nav-links a.active,
.navbar--transparent .nav-links > li > a:hover,
.navbar--transparent .nav-links > li > a.active,
.navbar--transparent .nav-links a:hover,
.navbar--transparent .nav-links a.active {
  color: #fff;
}
.navbar--firm .nav-links > li:not(.dropdown) > a::after,
.navbar--transparent .nav-links > li:not(.dropdown) > a::after {
  background: #fff;
}
.navbar--firm .nav-links .dropdown > a::after,
.navbar--transparent .nav-links .dropdown > a::after {
  color: rgba(255, 255, 255, 0.75);
}
.navbar--firm .btn-nav-consulta,
.navbar--transparent .btn-nav-consulta {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
@media (hover: hover) {
  .navbar--firm .btn-nav-consulta:hover,
  .navbar--transparent .btn-nav-consulta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
  }
}
.navbar--firm .hamburger span,
.navbar--transparent .hamburger span {
  background: #fff;
}

.dropdown-menu--areas {
  min-width: 280px;
  max-width: min(340px, 92vw);
  padding: 0.4rem 0;
  left: 0;
  transform: translateY(-4px);
}
.dropdown:hover .dropdown-menu--areas,
.dropdown:focus-within .dropdown-menu--areas {
  transform: translateY(0);
}
.dropdown-menu--areas li a {
  padding: 0.55rem 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.dropdown-menu--abogados {
  min-width: 300px;
  max-width: min(360px, 92vw);
  padding: 0.45rem;
  background: rgba(7, 19, 34, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(179, 148, 74, 0.42);
  border-radius: 0.65rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  left: 0;
  transform: translateY(-6px);
}
.dropdown:hover .dropdown-menu--abogados,
.dropdown:focus-within .dropdown-menu--abogados {
  transform: translateY(0);
}
.dropdown-menu--abogados li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  transition: background 0.25s var(--ease-calm), color 0.25s var(--ease-calm), padding-left 0.25s var(--ease-out-soft);
}
.dropdown-menu--abogados li a i {
  color: var(--gold);
  font-size: 0.62rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out-soft);
}
.dropdown-menu--abogados li a:hover,
.dropdown-menu--abogados li a:focus-visible,
.dropdown-menu--abogados li a.active {
  background: rgba(179, 148, 74, 0.14);
  color: var(--gold-light);
  padding-left: 1.2rem;
}
.dropdown-menu--abogados li a:hover i,
.dropdown-menu--abogados li a:focus-visible i,
.dropdown-menu--abogados li a.active i {
  transform: translateX(4px);
}

.dropdown-hub .dropdown-hub-link {
  font-weight: 600;
  color: var(--gold-dark, var(--gold));
  letter-spacing: 0.02em;
}
.dropdown-hub + li {
  border-top: 1px solid rgba(179, 148, 74, 0.22);
  margin-top: 0.2rem;
  padding-top: 0.2rem;
}
/* En PC el clic en Abogados / Áreas ya lleva al hub; "Ver todos…" solo en móvil */
@media (min-width: 769px) {
  .dropdown-hub {
    display: none;
  }
  .dropdown-hub + li {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  gap: 0;
  max-width: min(280px, 48vw);
  padding: 0;
  background: transparent;
  border: none;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: min(280px, 46vw);
  object-fit: contain;
  object-position: left center;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-on-navy);
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-text .accent { color: var(--gold-light); }

.nav-links {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}
.nav-links > li > a,
.nav-links a {
  color: var(--text-on-navy-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}
.nav-links > li:not(.dropdown) > a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links > li:not(.dropdown) > a:hover::after,
.nav-links > li:not(.dropdown) > a.active::after { width: 100%; }

.dropdown > a::after {
  content: '▾';
  margin-left: 0.3rem;
  font-size: 0.85em;
  color: var(--gold);
  transition: transform 0.32s var(--ease-out-soft);
}
.dropdown:hover > a::after,
.dropdown.is-open > a::after {
  transform: rotate(180deg);
}

.dropdown { position: relative; }
.dropdown > a {
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}
.dropdown > a.dropdown-trigger {
  cursor: pointer;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: var(--navy);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0;
  min-width: 260px;
  max-width: min(320px, 90vw);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1100;
  pointer-events: none;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-on-navy-muted);
  text-transform: none;
  line-height: 1.35;
  word-wrap: break-word;
}
.dropdown-menu li a strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.dropdown-menu li a:hover {
  background: rgba(179, 148, 74, 0.1);
  color: var(--gold-light);
}
.dropdown-menu li a::after { display: none !important; }

.dropdown-menu--grouped {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(580px, 94vw);
  max-width: min(640px, 94vw);
  padding: 0.45rem 0;
  gap: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}
.dropdown:hover .dropdown-menu--grouped,
.dropdown:focus-within .dropdown-menu--grouped {
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu--grouped > .dropdown-group {
  padding: 0.25rem 0;
  border-right: 1px solid rgba(179, 148, 74, 0.18);
}
.dropdown-menu--grouped > .dropdown-group:last-child { border-right: none; }
.dropdown-group-label {
  display: block;
  padding: 0.4rem 0.8rem 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.2;
}
.dropdown-group-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dropdown-group-links li a {
  padding: 0.42rem 0.8rem;
  font-size: 0.73rem;
  line-height: 1.3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity var(--transition-fast);
}
.hamburger:active { opacity: 0.72; }
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-on-navy);
  transition: transform 0.38s var(--ease-out-soft), opacity 0.28s var(--ease-calm);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(100vh, 860px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
  max-width: none;
  margin: 0;
  padding:
    calc(var(--ad-offset) + var(--nav-h) + 2.5rem)
    max(clamp(1.25rem, 4vw, 3.5rem), calc((100% - var(--container-wide)) / 2))
    3.5rem;
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 28, 51, 0.15), rgba(7, 19, 34, 0.08)),
    radial-gradient(ellipse 65% 45% at 82% 18%, rgba(179, 148, 74, 0.1), transparent 58%),
    var(--navy);
}
.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-content {
  flex: 1 1 52%;
  max-width: 580px;
  min-width: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: none;
  color: var(--gold-light);
  border: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}
.badge-icon { font-size: 0.7rem; }
.badge::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--text-on-navy);
  line-height: var(--lh-tight);
  margin-bottom: 1.15rem;
  letter-spacing: -0.015em;
}
.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--text-on-navy-muted);
  margin-bottom: 1.85rem;
  line-height: var(--lh-relaxed);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}
.hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-navy-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.hero-phone:hover { color: var(--gold-light); }
.hero--institutional {
  min-height: min(92vh, 820px);
  padding-bottom: 4rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(212, 188, 125, 0.2);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold-light);
}
.stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-navy-soft);
}
.stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(212, 188, 125, 0.22);
}

.hero-visual {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.law-orb {
  position: relative;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  border: 1px solid rgba(212, 188, 125, 0.35);
  background:
    radial-gradient(ellipse 55% 55% at 50% 48%, rgba(179, 148, 74, 0.1), transparent 70%),
    rgba(19, 39, 66, 0.55);
}
.law-orb::before,
.law-orb::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212, 188, 125, 0.18);
  pointer-events: none;
}
.law-orb::after { inset: 32px; border-color: rgba(212, 188, 125, 0.12); }
.orb-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  background: rgba(7, 19, 34, 0.55);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(212, 188, 125, 0.12);
  animation: justice-breathe 5.5s ease-in-out infinite;
}
.justice-emblem {
  width: 78px;
  height: 78px;
  display: block;
}
.orb-core .orb-icon { color: #fff; font-size: 2rem; }
.orb-ring { display: none; }

@keyframes justice-breathe {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 4px)); }
}

/* ---------- Hero slider (home) ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(650px, 78vh, 780px);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: var(--hero-pos, center center);
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 7s ease-out;
  will-change: transform;
}
.hero-slide.is-active .hero-slide-bg {
  transform: scale(1.06);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(11, 28, 51, 0.88) 0%,
      rgba(11, 28, 51, 0.72) 38%,
      rgba(11, 28, 51, 0.45) 62%,
      rgba(11, 28, 51, 0.28) 100%
    );
  z-index: 1;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: clamp(650px, 78vh, 780px);
  max-width: var(--container-wide, 1200px);
  margin: 0 auto;
  padding:
    calc(var(--nav-h) + 3rem)
    clamp(1.25rem, 4vw, 3rem)
    calc(5.5rem + 1rem);
  width: 100%;
}
.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(14px);
}
.hero-slide-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 14ch;
}
.hero-slide-title .hero-line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
}
.hero-slide-title .hero-line--gold {
  color: var(--gold-light);
}
.hero-slide-text {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(16px);
}
.hero-slide .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
}
.hero-slide.is-active .hero-eyebrow,
.hero-slide.is-active .hero-slide-title .hero-line,
.hero-slide.is-active .hero-slide-text,
.hero-slide.is-active .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-slide.is-active .hero-eyebrow { transition-delay: 0.12s; }
.hero-slide.is-active .hero-slide-title .hero-line:nth-child(1) { transition-delay: 0.22s; }
.hero-slide.is-active .hero-slide-title .hero-line:nth-child(2) { transition-delay: 0.32s; }
.hero-slide.is-active .hero-slide-text { transition-delay: 0.42s; }
.hero-slide.is-active .hero-actions { transition-delay: 0.52s; }

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(3.25rem + 1.1rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
  pointer-events: none;
}
.hero-nav,
.hero-dots {
  pointer-events: auto;
}
.hero-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 28, 51, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-nav:hover,
.hero-nav:focus-visible {
  background: rgba(179, 148, 74, 0.25);
  border-color: var(--gold);
  outline: none;
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-dot {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dot.is-active {
  width: 40px;
  background: var(--gold);
}
.hero-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.hero-to-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  pointer-events: none;
}
.hero-slider .hero-consult-bar {
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide-bg,
  .hero-slide.is-active .hero-eyebrow,
  .hero-slide.is-active .hero-slide-title .hero-line,
  .hero-slide.is-active .hero-slide-text,
  .hero-slide.is-active .hero-actions {
    transition: none !important;
  }
  .hero-slide-bg,
  .hero-slide.is-active .hero-slide-bg {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero-slider,
  .hero-slide-content {
    min-height: clamp(580px, 70vh, 700px);
  }
}
@media (max-width: 768px) {
  .hero-slider,
  .hero-slide-content {
    min-height: min(100svh, 640px);
    min-height: min(100dvh, 640px);
  }
  .hero-slide-content {
    padding:
      calc(var(--nav-h) + 1.5rem)
      1.25rem
      calc(7.25rem + 1rem);
    justify-content: flex-end;
    padding-bottom: calc(6.75rem + 2.5rem);
  }
  .hero-eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.65rem;
  }
  .hero-slide-title {
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    margin-bottom: 0.85rem;
  }
  .hero-slide-text {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 36rem;
  }
  .hero-controls {
    bottom: calc(5.75rem + 0.5rem);
    gap: 0.65rem;
  }
  .hero-nav {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }
  .hero-dot {
    width: 20px;
    height: 2px;
  }
  .hero-dot.is-active {
    width: 28px;
  }
  .hero-slider .hero-consult-bar {
    background: rgba(7, 19, 34, 0.96);
  }
  .hero-slider .hero-consult-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    padding: 0.7rem 1.15rem 0.85rem;
  }
  .hero-slider .hero-consult-bar-icon,
  .hero-slider .hero-consult-bar-divider {
    display: none;
  }
  .hero-slider .hero-consult-bar-main {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
  }
  .hero-slider .hero-consult-bar-hours {
    font-size: 0.72rem;
    opacity: 0.78;
    font-style: normal;
  }
}

/* ---------- Hero backdrop (legacy / unused on home) ---------- */
.hero--backdrop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: min(92vh, 820px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 28, 51, 0.88) 0%,
    rgba(11, 28, 51, 0.72) 28%,
    rgba(11, 28, 51, 0.42) 48%,
    rgba(11, 28, 51, 0.12) 68%,
    transparent 88%
  );
}
.hero-backdrop-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 58%;
  background: linear-gradient(90deg, rgba(11, 28, 51, 0.55) 0%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(90deg, #000 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 100%);
}
.hero.hero--backdrop > .hero-split-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding:
    calc(var(--ad-offset) + var(--nav-h) + 2.75rem)
    clamp(1.25rem, 3.5vw, 3rem)
    calc(3.5rem + 3.25rem)
    clamp(1rem, 3vw, 2rem);
  background: transparent;
}
.hero.hero--backdrop .hero-copy-text {
  flex: 0 1 auto;
  max-width: min(34rem, 46vw);
  min-width: 0;
  margin: 0;
}
.hero.hero--backdrop .hero-isotype {
  flex: 0 0 auto;
  align-self: center;
  width: clamp(108px, 12vw, 168px);
  height: clamp(128px, 14vw, 198px);
  overflow: hidden;
  margin-left: auto;
  opacity: 0.98;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}
.hero-isotype img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: 0 center;
}
.hero--backdrop .hero-split-text {
  max-width: 32rem;
}
.hero--backdrop .hero-loc {
  color: rgba(255, 255, 255, 0.82);
}
.hero--backdrop .hero-loc i {
  color: rgba(255, 255, 255, 0.65);
}
.hero--backdrop .hero-line--light,
.hero--backdrop .hero-line--gold {
  color: #fff;
}
.hero--backdrop .hero-split-text {
  color: rgba(255, 255, 255, 0.86);
}
.hero--backdrop .hero-rule {
  background: rgba(255, 255, 255, 0.45);
}

/* ---------- Hero consult bar (home) ---------- */
.hero-consult-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(7, 19, 34, 0.94);
  border-top: 1px solid rgba(179, 148, 74, 0.42);
}
.hero-consult-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
}
.hero-consult-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.35rem;
  line-height: 1;
}
.hero-consult-bar-divider {
  width: 1px;
  height: 1.35rem;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.hero-consult-bar-main {
  margin: 0;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.35;
}
.hero-consult-bar-main a {
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
@media (hover: hover) {
  .hero-consult-bar-main a:hover {
    color: #fff;
  }
}
.hero-consult-bar-hours {
  margin: 0;
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

/* ---------- Hero split (legacy) ---------- */
.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-height: min(88vh, 760px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.hero--split .hero-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    calc(var(--ad-offset) + var(--nav-h) + 2.75rem)
    clamp(1.5rem, 4vw, 3.5rem)
    3.25rem
    max(clamp(1.25rem, 4vw, 3.5rem), calc((100% - var(--container-wide)) / 2));
  background: var(--navy);
  position: relative;
  z-index: 1;
}
.hero-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.35rem;
}
.hero-split-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin-bottom: 1.15rem;
  letter-spacing: -0.015em;
}
.hero-line {
  display: block;
  font-size: var(--fs-h1);
}
.hero-line--light { color: var(--text-on-navy); }
.hero-line--gold { color: var(--gold-light); margin-top: 0.15em; }
.hero-rule {
  display: block;
  width: 52px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-split-text {
  font-size: var(--fs-md);
  color: var(--text-on-navy-muted);
  line-height: var(--lh-relaxed);
  max-width: 34rem;
  margin-bottom: 1.85rem;
}
.hero-split-copy .hero-actions { margin-bottom: 0; }
.hero-split-media {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(19, 39, 66, 0.95), rgba(7, 19, 34, 0.98)),
    radial-gradient(ellipse 70% 50% at 60% 40%, rgba(179, 148, 74, 0.12), transparent 60%);
}
.hero-media-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 28, 51, 0.35), transparent 45%);
  pointer-events: none;
}

/* ---------- Scroll reveal (home) ---------- */
.scroll-reveal .reveal-char,
.scroll-reveal .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.45em, 0);
  will-change: opacity, transform;
}
.scroll-reveal--letters .reveal-char {
  transition:
    opacity 0.55s var(--ease-out-soft),
    transform 0.55s var(--ease-out-soft);
  transition-delay: calc(var(--reveal-i) * 0.028s);
}
.scroll-reveal--words .reveal-word {
  transition:
    opacity 0.6s var(--ease-out-soft),
    transform 0.6s var(--ease-out-soft);
  transition-delay: calc(var(--reveal-i) * 0.06s);
}
.scroll-reveal.is-visible .reveal-char,
.scroll-reveal.is-visible .reveal-word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hero-split-title.scroll-reveal--letters .reveal-char {
  transition-delay: calc(var(--reveal-i) * 0.034s);
}
.section-label.scroll-reveal--letters .reveal-char {
  transition-duration: 0.45s;
  transition-delay: calc(var(--reveal-i) * 0.022s);
}

.media-slot {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(19, 39, 66, 0.9), rgba(11, 28, 51, 1));
}
.media-slot--office {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
}
.media-slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.firm-monogram--fallback {
  position: relative;
  z-index: 0;
  margin: 0;
  opacity: 0.92;
  width: min(220px, 80%);
  height: auto;
  object-fit: contain;
}
.media-slot:has(.media-slot-img) .firm-monogram--fallback { display: none; }

.attorney-card--home .photo-slot {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  margin: 0 auto 1.15rem;
  background: var(--navy);
  border: 1px solid var(--border-gold);
}
.attorney-card--home .photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.attorney-card--home .photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-light);
  background: var(--navy);
}
.services-showcase {
  background: var(--cream);
  padding: var(--section-y) 0;
}
.services-showcase-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}
.section-label--ruled {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.section-label--ruled::before,
.section-label--ruled::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.section-title--ruled { margin-bottom: 0; }
.services-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--ivory);
}
.services-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.75rem 1rem;
  border-right: 1px solid var(--border-color);
  transition: background-color var(--transition);
  min-width: 0;
}
.services-rail-item:last-child { border-right: none; }
.services-rail-item:hover { background: rgba(179, 148, 74, 0.06); }
.services-rail-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.services-rail-icon { font-size: 1.35rem; }
.services-rail-icon i { color: var(--navy); }
.services-rail-item:hover .services-rail-icon i { color: var(--gold-dark); }
.services-rail-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  font-weight: 600;
  color: var(--navy);
  line-height: var(--lh-snug);
}

.practice-areas {
  background: #f7f6f3;
  padding: var(--section-y) 0;
}
.featured-services-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.featured-services-head .section-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-secondary);
}
.featured-services-head .section-title {
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}
.featured-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
}
.featured-service {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.featured-service-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.65rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.featured-service-body {
  min-width: 0;
  flex: 1;
}
.featured-service-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.35;
}
.featured-service-body p {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
}
.featured-service-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}
@media (hover: hover) {
  .featured-service-link:hover {
    color: var(--navy);
  }
}
.featured-service-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Accordion (legacy / other pages) */
.practice-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}
.practice-item {
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}
.practice-item summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 0.15rem;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}
.practice-item summary::-webkit-details-marker { display: none; }
.practice-item summary::after {
  content: '+';
  margin-left: auto;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}
.practice-item[open] summary::after { content: '–'; }
.practice-item-icon {
  width: 1.5rem;
  text-align: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.practice-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: var(--lh-snug);
}
.practice-item-body {
  padding: 0 0 1.25rem 2.35rem;
  max-width: 40rem;
}
.practice-item-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-bottom: 0.75rem;
}

/* ---------- Sections ---------- */
.services-section,
.testimonials-section,
.contact-section,
.home-blog {
  background: var(--cream);
  padding: var(--section-y) 0;
}
.why-section,
.attorneys-section,
.firm-section {
  background: var(--bg-tertiary);
  padding: var(--section-y) 0;
}

.section-lead {
  max-width: 36rem;
  margin: -1.5rem 0 var(--space-7);
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.services-section .section-title,
.why-section .section-title,
.attorneys-section .section-title,
.testimonials-section .section-title,
.contact-section .section-title,
.firm-section .section-title,
.home-blog .section-title {
  margin-bottom: var(--space-7);
}

/* ---------- Home highlights (MS-style cards) ---------- */
.home-highlights {
  background: var(--cream);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid rgba(11, 28, 51, 0.08);
}
.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.home-highlight-card {
  background: #fff;
  border: 1px solid rgba(11, 28, 51, 0.08);
  border-top: 2px solid var(--gold);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.home-highlight-card:hover {
  border-color: rgba(179, 148, 74, 0.45);
  box-shadow: 0 10px 28px rgba(11, 28, 51, 0.08);
  transform: translateY(-2px);
}
.home-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold-dark);
  font-size: 1.25rem;
}
.home-highlight-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.home-highlight-card p {
  margin: 0;
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}
.home-highlight-card .card-link {
  margin-top: 0.35rem;
}

/* ---------- La Firma page ---------- */
.firm-page .firm-history,
.firm-page .firm-reasons {
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}
.firm-history--split {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.firm-history-grid {
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.firm-history-portrait {
  margin: 0;
  text-align: center;
}
.firm-history-photo {
  width: 100%;
  max-width: 22rem;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border: none;
  background: linear-gradient(180deg, #f3efe8 0%, #e8e2d8 100%);
  box-shadow:
    0 18px 40px rgba(11, 28, 51, 0.14),
    0 6px 16px rgba(11, 28, 51, 0.08);
  overflow: hidden;
}
.firm-history-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border: none;
  display: block;
}
.firm-history-placeholder {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}
.firm-history-placeholder i {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}
.firm-history-placeholder span {
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  max-width: 10rem;
}
.firm-history-caption {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.firm-history-caption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.firm-history-caption span {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.firm-history-copy {
  padding-top: 0.35rem;
}
.firm-history-eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  color: var(--text-secondary);
}
.firm-history-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}
.firm-history-rule {
  display: block;
  width: min(12rem, 55%);
  height: 2px;
  margin-bottom: 1.35rem;
  background: linear-gradient(90deg, var(--gold), rgba(179, 148, 74, 0.25));
}
.firm-history-prose {
  max-width: none;
}
.firm-history-prose p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: var(--fs-md);
  text-align: justify;
}
.firm-history-prose p:last-child {
  margin-bottom: 0;
}
.firm-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
  margin-top: 0.5rem;
}
.firm-reasons--modern {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1rem;
  background: linear-gradient(160deg, #ebe5da 0%, #f3efe8 48%, #e8e2d6 100%);
  border: 1px solid rgba(11, 28, 51, 0.1);
  box-shadow:
    0 12px 36px rgba(11, 28, 51, 0.1),
    0 4px 12px rgba(11, 28, 51, 0.06);
  overflow: hidden;
}
.firm-reasons--modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 8%, rgba(179, 148, 74, 0.12), transparent 42%);
  pointer-events: none;
}
.firm-reasons-head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.firm-reasons-head .section-title {
  margin-bottom: 0;
}
.firm-reason-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.65rem 1.45rem 1.5rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(11, 28, 51, 0.1);
  box-shadow:
    0 14px 32px rgba(11, 28, 51, 0.14),
    0 6px 14px rgba(11, 28, 51, 0.08),
    0 1px 3px rgba(11, 28, 51, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 1.35rem, 0);
  transition:
    opacity 0.65s var(--ease-out-soft),
    transform 0.65s var(--ease-out-soft),
    box-shadow 0.35s var(--ease-calm),
    border-color 0.35s var(--ease-calm);
  transition-delay: calc(var(--reason-i, 0) * 0.14s);
}
.firm-reason-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (hover: hover) {
  .firm-reason-card:hover {
    border-color: rgba(179, 148, 74, 0.45);
    box-shadow:
      0 22px 44px rgba(11, 28, 51, 0.18),
      0 10px 20px rgba(11, 28, 51, 0.1),
      0 0 0 1px rgba(179, 148, 74, 0.12);
    transform: translate3d(0, -6px, 0);
  }
  .firm-reason-card.is-visible:hover {
    transform: translate3d(0, -6px, 0);
  }
  .firm-reason-card:hover .firm-reason-icon-wrap {
    transform: scale(1.06);
    border-color: rgba(179, 148, 74, 0.55);
    box-shadow:
      0 10px 22px rgba(11, 28, 51, 0.14),
      0 4px 10px rgba(179, 148, 74, 0.2);
  }
  .firm-reason-card:hover .firm-reason-accent {
    transform: scaleX(1);
  }
}
.firm-reason-card-glow {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 148, 74, 0.14), transparent 68%);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-calm);
}
.firm-reason-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.firm-reason-num {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1;
  color: rgba(11, 28, 51, 0.1);
  letter-spacing: 0.02em;
}
.firm-reason-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f5f0e8 100%);
  border: 1px solid rgba(179, 148, 74, 0.38);
  box-shadow:
    0 6px 16px rgba(11, 28, 51, 0.12),
    0 2px 6px rgba(179, 148, 74, 0.15);
  transition:
    transform 0.35s var(--ease-out-soft),
    border-color 0.35s var(--ease-calm),
    box-shadow 0.35s var(--ease-calm);
}
.firm-reason-icon {
  display: inline-flex;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
}
.firm-reason-card h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.firm-reason-card p {
  margin: 0;
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
}
.firm-reason-accent {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 1.15rem;
  background: linear-gradient(90deg, var(--gold), rgba(179, 148, 74, 0.2));
  border-radius: 2px;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out-soft);
}

.firm-cta-bar {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
  background: var(--navy-deep, #071322);
  border-top: 1px solid rgba(179, 148, 74, 0.35);
  border-bottom: 1px solid rgba(179, 148, 74, 0.45);
}
.firm-cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  padding: clamp(1.5rem, 3.5vw, 2.15rem) 0;
  box-shadow: none;
}
.firm-cta-bar-text {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  color: #fff;
  line-height: 1.45;
  max-width: 28rem;
}
.firm-cta-bar-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 0 0 1.35rem;
  border: none;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-btn);
  overflow: hidden;
}
.firm-cta-bar-btn::after {
  content: '\2192';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin-left: 1.1rem;
  padding: 0 0.95rem;
  border-left: 1px solid rgba(11, 28, 51, 0.18);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}
@media (hover: hover) {
  .firm-cta-bar-btn:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-1px);
  }
}
.firm-cta-bar-btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* CTA barra full-bleed aunque quede dentro de un .container padre */
.container > .firm-cta-bar {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.container > .firm-cta-bar .firm-cta-bar-inner {
  padding-left: clamp(1.15rem, 3vw, 1.75rem);
  padding-right: clamp(1.15rem, 3vw, 1.75rem);
}
.trust-bar {
  background: var(--navy-deep);
  border-top: 1px solid rgba(179, 148, 74, 0.28);
  border-bottom: 1px solid rgba(179, 148, 74, 0.18);
  padding: 1.35rem 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 7rem;
}
.trust-num {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
}
.trust-num--text {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: 0.02em;
}
.trust-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-navy-soft);
  margin-top: 0.25rem;
}
.trust-divider {
  width: 1px;
  height: 2.4rem;
  background: rgba(212, 188, 125, 0.28);
}

/* ---------- Practice hubs ---------- */
.practice-hubs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
.practice-hub {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--gold);
  padding: 1.85rem 1.5rem 1.6rem;
  min-width: 0;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.practice-hub:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.practice-hub:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.practice-hub-icon {
  font-size: 1.35rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.practice-hub h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: var(--lh-snug);
}
.practice-hub p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-bottom: 1.15rem;
  flex: 1;
}
.service-links {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}
.service-links-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.service-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.35rem;
  list-style: none;
}
.service-links-list a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border-color);
  background: var(--ivory);
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}
.service-links-list a:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(179, 148, 74, 0.06);
}

/* ---------- Firm block ---------- */
.firm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.firm-copy .section-title { margin-bottom: 1.15rem; }
.firm-copy p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 1rem;
  max-width: 38rem;
}
.firm-copy .btn-outline { margin-top: 0.75rem; }
.firm-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--navy);
  border: 1px solid var(--border-gold);
  min-height: 260px;
}
.firm-monogram {
  width: 96px;
  height: auto;
  margin-bottom: 1.25rem;
  opacity: 0.92;
}
.firm-aside-text {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-navy-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Online consult ---------- */
.online-consult {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid rgba(179, 148, 74, 0.22);
  border-bottom: 1px solid rgba(179, 148, 74, 0.22);
}
.online-consult-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.online-consult-copy {
  flex: 1 1 18rem;
  max-width: 36rem;
}
.section-label--on-navy { color: var(--gold-light); }
.online-consult-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  color: var(--text-on-navy);
  line-height: var(--lh-tight);
  margin-bottom: 0.75rem;
}
.online-consult-copy p:last-of-type {
  color: var(--text-on-navy-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin: 0;
}
.online-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- Home attorneys ---------- */
.attorneys-grid--home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
  gap: 1.5rem;
}
.attorney-card--home {
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}
.attorney-card--home .photo-slot {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.15rem;
}
.attorney-card--home .photo-placeholder {
  font-size: 1.55rem;
}
.attorney-card--home .attorney-card-cta {
  display: inline-flex;
  margin-top: 0.85rem;
}
  font-size: 1.5rem;
}

/* ---------- Eval form ---------- */
.contact-section--eval .section-lead { margin-bottom: var(--space-6); }
.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.15rem;
}
.contact-wrapper--eval {
  align-items: start;
}

/* ---------- Home blog ---------- */
.home-blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.home-blog-head .section-title { margin-bottom: 0; }
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.home-blog-item {
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.35rem 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--gold);
  min-width: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.home-blog-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.home-blog-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.home-blog-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}
.home-blog-item h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  line-height: var(--lh-snug);
  margin-bottom: 0.55rem;
}
.home-blog-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-bottom: 1.1rem;
  flex: 1;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  padding: clamp(3rem, 6vw, 4.25rem) 0;
  border-top: 1px solid rgba(179, 148, 74, 0.25);
}
.cta-band-inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--text-on-navy);
  line-height: var(--lh-tight);
  margin-bottom: 0.65rem;
}
.cta-band-text {
  color: var(--text-on-navy-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin-bottom: 1.5rem;
}
.cta-band-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Cards ---------- */
.card,
.service-card {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.service-card::before { display: none; }
.service-card:hover {
  transform: none;
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.service-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card--cta {
  background: var(--navy);
  border-color: var(--navy);
  border-top-color: var(--gold);
}
.service-card--cta h3,
.service-card--cta p { color: var(--text-on-navy); }
.service-card--cta .card-link { color: var(--gold-light); }

.service-icon { font-size: 1.45rem; margin-bottom: 1rem; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: var(--lh-snug);
  overflow-wrap: break-word;
}
.service-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}
.card-link {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--gold);
  padding: 1.5rem 0.15rem 0.25rem;
  text-align: left;
  min-width: 0;
}
.why-card:hover { transform: none; box-shadow: none; }
.why-icon { font-size: 1.4rem; margin-bottom: 0.85rem; }
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
  line-height: var(--lh-snug);
}
.why-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}
.testimonial-card {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  padding: 1.65rem;
  min-width: 0;
}
.testimonial-card:hover { border-color: var(--gold); }
.stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #3a362f;
  line-height: var(--lh-snug);
  margin-bottom: 1.15rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.testimonial-author strong { font-size: 0.88rem; color: var(--navy); }
.testimonial-author small { font-size: 0.75rem; color: var(--text-muted); }

.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}
.attorney-card {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  min-width: 0;
}
.attorney-card:hover {
  border-color: var(--gold);
  transform: none;
}
.attorney-photo { margin-bottom: 1.15rem; }
.photo-placeholder {
  width: 92px;
  height: 92px;
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto;
  box-shadow: none;
}
.attorney-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.attorney-title {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.attorney-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-bottom: 0.65rem;
}
.attorney-langs { font-size: 0.78rem; color: var(--text-muted); }

.attorneys-grid--listing {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.attorney-card--listing {
  position: relative;
  padding: 0 0 1.75rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-calm), box-shadow 0.3s var(--ease-calm);
}
.attorney-card--listing:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.attorney-card--listing .attorney-photo {
  margin-bottom: 0;
  position: relative;
}
.attorney-card--listing .photo-slot {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.attorney-card--listing .photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.attorney-card-link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.attorney-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 28, 51, 0.72);
  opacity: 0;
  transition: opacity 0.35s var(--ease-calm);
}
.attorney-card-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.attorney-card--listing:hover .attorney-card-overlay {
  opacity: 1;
}
.attorney-card--listing h3,
.attorney-card--listing .attorney-title,
.attorney-card--listing .attorney-bio {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.attorney-card--listing h3 {
  margin-top: 1.15rem;
}
.attorney-card-cta {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark, #8a6f2e);
  text-decoration: none;
  transition: color 0.25s;
}
.attorney-card-cta:hover {
  color: var(--navy);
}
.attorney-card-cta::after {
  content: ' →';
}
.attorneys-listing-head {
  max-width: 42rem;
}
.attorneys-listing-intro {
  font-size: var(--fs-md, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed, 1.85);
  margin-top: 0.85rem;
}
.attorneys-listing-title {
  margin-bottom: 0;
}

/* ---------- Contact / Forms ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.35rem; min-width: 0; }
.contact-info > h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: var(--lh-snug);
}
.info-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 3px; }
.info-item strong {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.info-item a { color: var(--gold-dark); }
.info-item a:hover { color: var(--gold); }

.contact-form {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: none;
  min-width: 0;
}
.contact-form > h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: var(--lh-snug);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--gold);
  box-shadow: none;
  outline: none;
}
.form-group select option { background: #fff; }
.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.5;
}
.form-status {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.5;
}
.form-status.is-ok { color: var(--success); }
.form-status.is-err { color: var(--error); }
.form-status a { color: var(--gold-dark); text-decoration: underline; }
.form-group input.is-invalid,
.form-group textarea.is-invalid { border-color: var(--error); }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: var(--text-on-navy);
  padding: var(--space-9) 0 0;
  border-top: 1px solid var(--border-gold);
}
/* Continúa visualmente la barra de consulta (mismo navy) */
.firm-cta-bar + .footer,
main:has(> .firm-cta-bar) + .footer {
  border-top: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
}
.brand-text-lg {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-on-navy);
  line-height: 1.2;
}
.brand-text-lg .accent { color: var(--gold-light); }
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.9rem;
  padding: 0;
  background: transparent;
  border: none;
  line-height: 0;
  max-width: 100%;
}
.footer-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(260px, 100%);
  object-fit: contain;
  object-position: left center;
}
.footer-brand p {
  font-size: 0.9rem;
  color: #b7ae9e;
  line-height: var(--lh-body);
  margin-bottom: 1rem;
  max-width: 28rem;
}
.social-links { display: flex; gap: 0.55rem; }
.social-links a {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(212, 188, 125, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}
.social-links a:hover {
  border-color: var(--gold);
  background: transparent;
  transform: none;
}
.footer-links-col h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}
.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links-col a {
  font-size: 0.9rem;
  color: #b7ae9e;
  line-height: 1.4;
}
.footer-links-col a:hover { color: var(--gold-light); }
.footer-links-col p {
  font-size: 0.9rem;
  color: #b7ae9e;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}
.btn-whatsapp-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(212, 188, 125, 0.45);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-btn);
  transform: translateY(0);
}
@media (hover: hover) {
  .btn-whatsapp-sm:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(179, 148, 74, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }
}
.btn-whatsapp-sm:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}
.btn-whatsapp-sm:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(179, 148, 74, 0.16);
  padding: 1.2rem 0 1.35rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: #8d8578;
  line-height: 1.55;
  max-width: 48rem;
}
.footer-bottom--solo {
  border: 0;
  padding-top: 0;
}

.neuronex-credit {
  border-top: 1px solid rgba(179, 148, 74, 0.1);
  padding: 0.75rem 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.16);
}
.neuronex-credit-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #8d8578;
  letter-spacing: 0.08em;
}
.neuronex-credit .nx-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  display: inline-block;
}

/* ---------- Float: WhatsApp + Chatbot ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  width: var(--float-size);
  height: var(--float-size);
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(31, 122, 77, 0.25);
  animation: none;
  transition: var(--transition-btn);
  transform: translateY(0) scale(1);
}
@media (hover: hover) {
  .whatsapp-float:hover {
    transform: translateY(-2px) scale(1.02);
    opacity: 0.94;
    box-shadow: 0 8px 20px rgba(31, 122, 77, 0.28);
  }
}
.whatsapp-float:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.14s;
}
.whatsapp-float:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ---------- Ad bar (Adsterra — marco premium) ---------- */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 0;
  max-height: 110px;
  padding: 0.4rem 2.75rem 0.4rem 1rem;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(179, 148, 74, 0.22);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition:
    max-height 0.32s ease,
    padding 0.32s ease,
    opacity 0.28s ease,
    border-color 0.28s ease;
}

.announcement-bar.is-dismissed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 728px;
  width: 100%;
  min-height: 0;
  line-height: 0;
  overflow: hidden;
}

.ads-desktop,
.ads-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
}

.ads-desktop { display: flex; }
.ads-mobile { display: none; }

.announcement-bar iframe,
.ads-desktop iframe,
.ads-mobile iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
}

.announcement-close {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(244, 239, 228, 0.04);
  border: 1px solid rgba(212, 188, 125, 0.28);
  color: #cfc6b6;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: var(--transition-btn);
}
@media (hover: hover) {
  .announcement-close:hover {
    color: var(--gold-light);
    border-color: rgba(212, 188, 125, 0.55);
    background: rgba(179, 148, 74, 0.1);
    transform: translateY(calc(-50% - 1px));
  }
}
.announcement-close:active {
  transform: translateY(-50%) scale(0.94);
  transition-duration: 0.14s;
}
.announcement-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .orb-core { animation: none !important; }
  .scroll-reveal .reveal-char,
  .scroll-reveal .reveal-word {
    opacity: 1 !important;
    transform: none !important;
  }
  .firm-reason-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========== Responsive ========== */

/* ≤1440 — spacious default already */

/* ≤1200 */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-hubs { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .featured-services { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.5rem; }
  .home-blog-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .home-highlights-grid,
  .firm-reasons-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .nav-links { gap: 1rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 1.5rem; }
}

/* ≤1024 */
@media (max-width: 1024px) {
  :root { --nav-h: 80px; }

  .hero {
    padding: calc(var(--ad-offset) + var(--nav-h) + 2rem) 1.75rem 3rem;
    gap: 2rem;
  }
  .hero-visual { flex-basis: 36%; }
  .law-orb {
    width: min(220px, 55vw);
    height: min(220px, 55vw);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .nav-links { gap: 0.85rem; }
  .nav-links > li > a { font-size: 0.7rem; }
  .btn-call { padding: 0.4rem 0.7rem; font-size: 0.7rem; }
  .brand-logo { height: 50px; max-width: min(240px, 44vw); }
  .footer-logo { height: 48px; }
  .practice-hubs { grid-template-columns: 1fr; }
  .featured-services { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .firm-history-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .firm-history-portrait {
    max-width: 20rem;
    margin: 0 auto;
  }
  .firm-history-prose p { text-align: left; }
  .home-highlights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .firm-reasons--modern {
    padding: 1.5rem 1rem;
  }
  .firm-cta-bar {
    margin-top: 1.5rem;
  }
  .firm-cta-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 1.15rem;
    padding: 1.35rem 0 1.4rem;
    min-height: 0;
  }
  .firm-cta-bar-text {
    flex: 0 1 auto;
    width: 100%;
    max-width: 20rem;
    font-size: clamp(1.15rem, 5.2vw, 1.35rem);
    line-height: 1.35;
  }
  .firm-cta-bar-btn {
    align-self: flex-end;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin: 0;
    min-height: 44px;
  }
  .firm-reasons-grid { grid-template-columns: 1fr; }
  .firm-grid { grid-template-columns: 1fr; }
  .firm-aside { min-height: 200px; }
  .home-blog-grid { grid-template-columns: 1fr 1fr; }
  .attorneys-grid--home { max-width: none; }
  .hero--split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero--backdrop {
    min-height: min(85vh, 720px);
  }
  .hero.hero--backdrop > .hero-split-copy {
    flex-direction: row;
    padding: calc(var(--ad-offset) + var(--nav-h) + 2rem) 1.25rem calc(2.75rem + 3rem) clamp(1rem, 3vw, 2rem);
    gap: 1.25rem;
  }
  .hero-consult-bar-inner {
    justify-content: flex-start;
    gap: 0.65rem 0.9rem;
  }
  .hero-consult-bar-divider--wide {
    display: none;
  }
  .hero.hero--backdrop .hero-copy-text {
    max-width: min(30rem, 52vw);
  }
  .hero.hero--backdrop .hero-isotype {
    width: clamp(88px, 16vw, 120px);
    height: clamp(104px, 18vw, 140px);
  }
  .hero-backdrop-overlay {
    background: linear-gradient(
      180deg,
      rgba(11, 28, 51, 0.82) 0%,
      rgba(11, 28, 51, 0.55) 45%,
      rgba(11, 28, 51, 0.25) 100%
    );
  }
  .hero-backdrop-overlay::before {
    width: 100%;
    mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  }
  .hero--split .hero-split-copy {
    padding: calc(var(--ad-offset) + var(--nav-h) + 2rem) 1.75rem 2.5rem;
  }
  .hero-split-media {
    min-height: 280px;
    order: -1;
  }
  .services-rail {
    grid-template-columns: 1fr 1fr;
  }
  .services-rail-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ≤768 tablet / mobile nav */
@media (max-width: 768px) {
  :root {
    --ad-offset: 0px;
    --nav-h: 64px;
    --float-size: 44px;
    --float-gap: 12px;
    --section-y: 3.5rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .announcement-bar {
    padding: 0.3rem 2.4rem 0.3rem 0.75rem;
    max-height: 68px;
  }
  .ads-desktop { display: none; }
  .ads-mobile { display: flex; }
  .announcement-close {
    right: 0.45rem;
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .navbar {
    padding: 0 0.9rem;
    gap: 0.5rem;
  }

  .nav-brand {
    max-width: min(168px, 48vw);
    padding: 0;
    flex-shrink: 1;
  }
  .brand-logo {
    display: block;
    height: 40px;
    max-width: min(160px, 46vw);
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .btn-nav-consulta {
    min-height: 34px;
    padding: 0.3rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--border-gold);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links > li {
    border-bottom: 1px solid rgba(179, 148, 74, 0.12);
  }
  .nav-links > li > a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 0.8rem;
    min-height: 44px;
  }
  .nav-links > li:not(.dropdown) > a::after { display: none; }

  /* Servicios: acordeón por tap — sin hover de escritorio */
  .nav-links .dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .nav-links .dropdown > a::after {
    display: inline;
    content: '▾';
    position: static;
    width: auto;
    height: auto;
    background: none;
    font-size: 0.85rem;
    color: var(--gold);
    transition: transform 0.32s var(--ease-out-soft);
  }
  .nav-links .dropdown.is-open > a::after {
    transform: rotate(180deg);
  }
  .dropdown.is-open > a {
    color: var(--gold-light);
  }
  .dropdown-hub .dropdown-hub-link {
    color: var(--gold-light);
    font-size: 0.92rem;
  }
  .dropdown-hub + li {
    border-top-color: rgba(212, 188, 125, 0.28);
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown:hover .dropdown-menu--grouped,
  .dropdown:focus-within .dropdown-menu--grouped {
    transform: none !important;
  }

  .dropdown .dropdown-menu {
    position: static;
    display: block;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    background: transparent;
    border: none;
    min-width: 0;
    max-width: none;
    padding: 0 0 0 0.75rem;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    pointer-events: none;
    opacity: 0;
    transition: max-height 0.45s var(--ease-out-soft), padding 0.35s var(--ease-calm), opacity 0.3s var(--ease-calm);
  }
  .dropdown > a {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .dropdown.is-open .dropdown-menu {
    max-height: 900px;
    padding-bottom: 0.65rem;
    pointer-events: auto;
    opacity: 1;
  }
  .dropdown-menu--grouped {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0 0 0.5rem 0.75rem;
    left: auto;
  }
  .dropdown-menu--grouped > .dropdown-group {
    border-right: none;
    border-bottom: 1px solid rgba(179, 148, 74, 0.12);
    padding-bottom: 0.35rem;
    margin-bottom: 0.35rem;
  }
  .dropdown-menu--grouped > .dropdown-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .dropdown-group-label {
    padding: 0.35rem 0.35rem 0.2rem;
    font-size: 0.68rem;
  }
  .dropdown-group-links li a {
    padding: 0.5rem 0.35rem;
    font-size: 0.8rem;
  }
  .dropdown-menu li a {
    padding: 0.55rem 0.35rem;
    font-size: 0.8rem;
  }

  .hamburger { display: flex; }
  .btn-call { display: none; }

  /* No aplastar el hero-slider con reglas genéricas de .hero */
  .hero:not(.hero-slider) {
    flex-direction: column;
    text-align: left;
    min-height: auto;
    padding: calc(var(--ad-offset) + var(--nav-h) + 1.75rem) 1.25rem 2.75rem;
  }
  .hero-slider {
    padding: 0;
    min-height: min(100svh, 640px);
    min-height: min(100dvh, 640px);
  }
  .hero--backdrop {
    min-height: auto;
  }
  .hero.hero--backdrop > .hero-split-copy {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: calc(var(--ad-offset) + var(--nav-h) + 1.75rem) 1rem calc(2.5rem + 4.5rem) clamp(0.85rem, 3vw, 1.25rem);
    gap: 1rem;
  }
  .hero-consult-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }
  .hero-consult-bar-divider {
    display: none;
  }
  .hero-consult-bar-main {
    letter-spacing: 0.05em;
  }
  .hero.hero--backdrop .hero-copy-text {
    max-width: 100%;
    flex: 1 1 16rem;
  }
  .hero.hero--backdrop .hero-isotype {
    width: clamp(72px, 22vw, 96px);
    height: clamp(86px, 24vw, 112px);
    margin-left: auto;
  }
  .hero-backdrop-overlay::before {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .services-rail { grid-template-columns: 1fr; }
  .featured-services { grid-template-columns: 1fr; gap: 1.5rem; }
  .practice-item-body { padding-left: 0.15rem; }

  .hero-visual { order: -1; flex: none; }
  .law-orb {
    width: 160px;
    height: 160px;
  }
  .orb-core { width: 92px; height: 92px; }
  .justice-emblem { width: 62px; height: 62px; }
  .hero-actions { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: left; }

  .whatsapp-float,

  .trust-divider { display: none; }
  .trust-bar-inner { gap: 1.1rem 1.5rem; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .attorneys-grid--home { grid-template-columns: 1fr; }
  .online-consult-inner { align-items: flex-start; }
  .home-blog-all { width: 100%; text-align: center; }

  .firm-section--welcome {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
  .firm-grid {
    gap: 1.75rem;
  }
  .firm-copy .section-title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
    line-height: 1.2;
  }
  .firm-copy > p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
  .firm-aside {
    display: none;
  }
  .section-label {
    font-size: 0.68rem;
  }
  .home-highlights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }
  .home-highlight-card {
    padding: 1.5rem 1.25rem;
  }
  .home-highlight-card h3 {
    font-size: 1.35rem;
  }
  .firm-reasons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .firm-reasons--modern {
    padding: 1.35rem 0.15rem;
  }
  .featured-services {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ≤480 */
@media (max-width: 480px) {
  :root {
    --fs-h1: clamp(1.85rem, 8.5vw, 2.35rem);
    --section-y: 3rem;
    --nav-h: 60px;
    --float-size: 42px;
    --float-gap: 10px;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .nav-brand {
    max-width: min(148px, 46vw);
  }
  .brand-logo {
    height: 36px;
    max-width: min(142px, 44vw);
  }

  /* Evitar navbar apretada: Consulta solo en el menú / hero */
  .btn-nav-consulta {
    display: none;
  }

  .hero-slider,
  .hero-slide-content {
    min-height: min(100svh, 580px);
    min-height: min(100dvh, 580px);
  }
  .hero-slide-content {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    padding-bottom: calc(6.5rem + 1.75rem);
  }
  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(11, 28, 51, 0.55) 0%,
        rgba(11, 28, 51, 0.72) 42%,
        rgba(11, 28, 51, 0.88) 100%
      );
  }
  .hero-slide-title {
    font-size: clamp(1.7rem, 7.8vw, 2.15rem);
  }
  .hero-slide-text {
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .hero-actions .btn-outline--light {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-controls {
    bottom: calc(5.35rem + 0.35rem);
  }
  .hero-slider .hero-consult-bar-main {
    font-size: 0.68rem;
  }
  .hero-slider .hero-consult-bar-hours {
    font-size: 0.68rem;
  }

  .why-grid { grid-template-columns: 1fr; }
  .hero-actions .btn-whatsapp,
  .cta-actions .btn-primary,
  .cta-actions .btn-whatsapp,
  .cta-actions .btn-outline,
  .cta-actions .btn-outline--light,
  .online-consult-actions .btn-primary,
  .online-consult-actions .btn-whatsapp,
  .cta-band-actions .btn-primary,
  .cta-band-actions .btn-whatsapp {
    width: 100%;
  }
  .service-card,
  .attorney-card,
  .practice-hub { padding: 1.5rem 1.25rem; }
  .contact-form { padding: 1.25rem; }
  .brand-text { font-size: 1.2rem; }
  .stat-num { font-size: 1.5rem; }
  .hero-phone { font-size: 0.85rem; }

  .whatsapp-float,
  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }
}

/* ≤375 */
@media (max-width: 375px) {
  .container { padding: 0 1rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-whatsapp {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    font-size: 0.75rem;
  }
}
