/* ==========================================================================
   ESTUDIO JURÍDICO POMA VASMULAKY & ASOCIADOS - METÁN, SALTA
   Diseño Corporativo e Institucional de Alta Gama
   Inspirado en firmas jurídicas líderes (Marval, Beccar Varela, Garrigues)
   ========================================================================== */

:root {
  /* Paleta Sobria y Distinguida */
  --primary-navy: #0e2038;
  --primary-navy-dark: #081424;
  --primary-navy-light: #162f52;
  --primary-slate: #243b5a;

  /* Acentos de Oro Viejo / Bronce Notarial */
  --gold-primary: #a88752;
  --gold-light: #c4a06b;
  --gold-dark: #7d6029;
  --gold-subtle: rgba(168, 135, 82, 0.10);
  --gold-glow: rgba(168, 135, 82, 0.18);

  /* Fondos y Superficies */
  --bg-body: #fafbfe;
  --bg-card: #ffffff;
  --bg-light-alt: #f3f6fa;
  --bg-dark-section: #0c1a2d;

  /* Textos y Contrastes */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-gold: #c59e53;

  /* Bordes y Separadores */
  --border-light: #e6ebf2;
  --border-gold-subtle: rgba(168, 135, 82, 0.25);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Tipografías */
  --font-serif-heading: 'Cinzel', Georgia, serif;
  --font-serif-quote: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras y Elevación */
  --shadow-sm: 0 1px 3px rgba(14, 32, 56, 0.05);
  --shadow-md: 0 4px 16px rgba(14, 32, 56, 0.07);
  --shadow-lg: 0 12px 32px rgba(14, 32, 56, 0.10);
  --shadow-xl: 0 18px 40px rgba(14, 32, 56, 0.16);
  --shadow-gold: 0 4px 16px rgba(168, 135, 82, 0.18);

  /* Transiciones */
  --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   ANIMACIONES SUTILES
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */

.whatsapp-float-icon svg {
  width: 26px;
  height: 26px;
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #1c8c68;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 1.3rem 0.55rem 0.55rem;
  box-shadow: 0 4px 16px rgba(28, 140, 104, 0.35);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease;
  animation: subtleFloat 4s ease-in-out infinite;
}

.whatsapp-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.whatsapp-float-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.whatsapp-float:hover {
  transform: scale(1.04);
  background-color: #17755a;
  box-shadow: 0 6px 20px rgba(28, 140, 104, 0.5);
  color: #ffffff;
}

.whatsapp-float:active {
  transform: scale(0.97);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.45rem 1rem 0.45rem 0.45rem;
    gap: 0.5rem;
  }

  .whatsapp-float-icon {
    width: 38px;
    height: 38px;
  }

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

  .whatsapp-float-label {
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   BOTÓN "VOLVER ARRIBA"
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-navy);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 32, 56, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--gold-dark);
}

.back-to-top.visible:hover {
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: scale(0.92);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1.25rem;
    left: 1.25rem;
  }
}

/* ==========================================================================
   TIPOGRAFÍA Y UTILITARIOS
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.text-gold {
  color: var(--gold-primary) !important;
}

.text-white {
  color: #ffffff !important;
}

.bg-dark {
  background-color: var(--bg-dark-section) !important;
  color: var(--text-on-dark);
}

.bg-light-alt {
  background-color: var(--bg-light-alt);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.container-narrow {
  max-width: 900px;
}

.section-padding {
  padding: 5.5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--gold-subtle);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .subtitle {
  color: var(--gold-primary);
  font-family: var(--font-serif-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.divider-gold {
  width: 50px;
  height: 2px;
  background-color: var(--gold-primary);
  margin: 1rem auto;
}

.divider-gold.left {
  margin: 1rem 0;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition: transform 0.1s ease;
}

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

.btn-primary {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.btn-primary:hover {
  background-color: var(--primary-navy-dark);
  border-color: var(--primary-navy-dark);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold-primary);
  color: #ffffff;
  border-color: var(--gold-primary);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background-color: var(--gold-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-navy);
  border-color: #ffffff;
}

/* ==========================================================================
   HEADER INSTITUCIONAL LIMPIO Y SIN TOP-BAR
   ========================================================================== */

.main-header {
  background: linear-gradient(135deg, #ffffff 0%, #faf8f4 60%, #f5f1ea 100%);
  box-shadow: 0 1px 4px rgba(14, 32, 56, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Por encima del botón flotante de WhatsApp (9999): si no, el menú móvil
     abierto queda tapado por el botón en vez de tapado a él. */
  z-index: 10000;
  transition: box-shadow 0.4s ease;
  border-top: 3px solid var(--gold-primary);
  border-bottom: 1px solid var(--border-light);
}

/* Sombra un poco más marcada una vez que se empezó a scrollear */
.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.brand-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(14, 32, 56, 0.08));
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .firm-title {
  font-family: var(--font-serif-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.brand-text .firm-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 600;
}

.brand-text .firm-location {
  /* Se oculta en el header para aligerar la cabecera; la ubicación ya
     aparece en el hero, el footer y el resto de las páginas. */
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-dark);
}

.nav-link:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Submenús desplegables (Áreas de Práctica / Jurisdicción & Servicios) */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-caret {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  color: var(--gold-dark);
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0;
  padding-top: 0.9rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-navy);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown li a:hover,
.nav-dropdown li a:focus-visible {
  background-color: var(--bg-light-alt);
  color: var(--gold-dark);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Espaciado elegante y botón discreto */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2.5rem;
}

.navbar .btn-nav-turno {
  background-color: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-primary);
  padding: 0.5rem 1.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border-radius: 50px;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: none;
  transition: var(--transition);
}

.navbar .btn-nav-turno:hover {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(168, 135, 82, 0.25);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease, transform 0.15s ease;
}

.menu-toggle:hover {
  color: var(--gold-dark);
}

.menu-toggle:active {
  transform: scale(0.9);
}

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

.menu-toggle[aria-expanded="true"] {
  color: var(--gold-dark);
  background-color: var(--bg-light-alt);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(8, 20, 36, 0.9) 0%, rgba(14, 32, 56, 0.55) 100%),
              url('../img/hero-fondo.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 9.5rem 0 6rem 0;
  border-bottom: 4px solid var(--gold-primary);
}

.hero-section .hero-inner {
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 920px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-serif-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}

.hero-content h1 .accent {
  display: block;
  font-family: var(--font-serif-quote);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
}

.hero-content .lead-text {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
  max-width: 640px;
  line-height: 1.6;
}

.hero-specialties {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-value {
  display: block;
  font-family: var(--font-serif-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   PORTRAIT DEL TITULAR EN HERO (DISEÑO INSTITUCIONAL ELEGANTE)
   ========================================================================== */

.hero-attorney-portrait {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(168, 135, 82, 0.4);
  background: #0e2038;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
  z-index: 2;
}

.portrait-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.6s ease;
}

.portrait-frame:hover img {
  transform: scale(1.03);
}

.portrait-plate {
  background: rgba(11, 27, 43, 0.96);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1.75rem;
  border-top: 1px solid rgba(168, 135, 82, 0.25);
  color: #ffffff;
}

.plate-role {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.plate-name {
  font-family: var(--font-serif-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.plate-matricula {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
}

.plate-divider {
  width: 32px;
  height: 1.5px;
  background-color: var(--gold-primary);
  margin-bottom: 0.85rem;
}

.plate-quote {
  font-family: var(--font-serif-quote);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   FRANJA INSTITUCIONAL SOBRIA (3 PILARES FUNDACIONALES)
   ========================================================================== */

.institution-strip {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(14, 32, 56, 0.04);
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.institution-item {
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.institution-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 0;
  bottom: 25%;
  width: 1px;
  background-color: var(--border-gold-subtle);
}

.institution-item:hover {
  background-color: var(--bg-light-alt);
}

.institution-label {
  font-family: var(--font-serif-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.institution-title {
  font-family: var(--font-serif-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.institution-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   TARJETAS DE ÁREAS DE PRÁCTICA
   ========================================================================== */

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

.practice-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.practice-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-navy);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: var(--transition);
}

.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold-subtle);
}

.practice-card:hover::after {
  background-color: var(--gold-primary);
}

.practice-icon {
  width: 54px;
  height: 54px;
  background: var(--bg-light-alt);
  color: var(--primary-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.practice-card:hover .practice-icon {
  background: var(--primary-navy);
  color: var(--gold-light);
  border-color: var(--primary-navy);
  transform: scale(1.05);
}

.practice-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.practice-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.practice-list {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.practice-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.practice-list li::before {
  content: "•";
  color: var(--gold-primary);
  font-weight: bold;
}

.practice-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.practice-card-footer a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.practice-card-footer a:hover {
  color: var(--gold-primary);
  gap: 0.6rem;
}

/* ==========================================================================
   SECCIÓN EL ESTUDIO & INSTALACIONES
   ========================================================================== */

.about-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-images-composition {
  position: relative;
}

.about-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: transform 0.35s ease;
}

.about-badge-card {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--gold-primary);
  max-width: 290px;
  line-height: 1.5;
}

.about-badge-card .num {
  font-family: var(--font-serif-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-badge-card .desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.about-content .lead {
  font-size: 1.1rem;
  color: var(--primary-navy);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pillar-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 2.25rem 0;
}

.pillar-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.pillar-check-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   METODOLOGÍA DE TRABAJO (PROCESO)
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  background-color: #ffffff;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold-subtle);
}

.step-number {
  font-family: var(--font-serif-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold-light);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.08);
}

.process-step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CRITERIO DE ACTUACIÓN & PRÁCTICA PROCESAL (ESTILO EDITORIAL)
   ========================================================================== */

.criterio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.criterio-card {
  background-color: #ffffff;
  padding: 2.25rem 1.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-navy);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.criterio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold-primary);
  border-color: var(--border-gold-subtle);
}

.criterio-phase {
  font-family: var(--font-serif-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.criterio-title {
  font-family: var(--font-serif-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.criterio-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   SECCIÓN JURISDICCIÓN & SERVICIOS EN METÁN
   ========================================================================== */

.jurisdiction-banner {
  background: linear-gradient(rgba(14, 32, 56, 0.94), rgba(14, 32, 56, 0.94)),
              url('../img/recepcion-estudio.jpg') center/cover fixed;
  color: #ffffff;
  padding: 5rem 0;
}

.jurisdiction-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.jurisdiction-content h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.jurisdiction-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.coverage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.coverage-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(168, 135, 82, 0.4);
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  transition: var(--transition);
}

.coverage-pill:hover {
  background: rgba(168, 135, 82, 0.25);
  transform: translateY(-2px);
}

.jurisdiction-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.jurisdiction-card h3 {
  color: var(--gold-light);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-list-styled {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.service-list-styled li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
}

.service-list-styled svg {
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==========================================================================
   GALERÍA DE INSTALACIONES
   ========================================================================== */

.office-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(14, 32, 56, 0.92), transparent);
  padding: 1.5rem;
  color: #ffffff;
}

.gallery-overlay h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: var(--gold-light);
}

/* ==========================================================================
   GRILLA DE LOCALIDADES / CREDENCIALES
   ========================================================================== */

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Caja informativa simple (dependencias judiciales, notas breves) */
.info-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.info-box h4 {
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.info-box .practice-list {
  margin-bottom: 0;
}

.credential-item:hover {
  border-color: var(--border-gold-subtle) !important;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.credential-title {
  font-family: var(--font-serif-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.credential-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   ACORDEÓN DE PREGUNTAS FRECUENTES
   ========================================================================== */

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-gold-subtle);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-serif-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--gold-dark);
}

.faq-question:active {
  background-color: var(--bg-light-alt);
}

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

.faq-icon {
  font-size: 1.25rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   FORMULARIO Y CONTACTO
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

.contact-info-panel {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 2.75rem 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.contact-info-panel .lead-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(168, 135, 82, 0.18);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-item h5 {
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-detail-item p, .contact-detail-item a {
  color: #ffffff;
  font-size: 0.925rem;
}

.contact-detail-item a:hover {
  color: var(--gold-light);
}

.contact-form-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.contact-form-card .form-subtitle {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #9aabc2;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--text-primary);
  background-color: var(--bg-light-alt);
  transition: var(--transition);
}

.form-control::placeholder {
  color: #7c8aa0;
}

.form-control:hover {
  border-color: #76859c;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(168, 135, 82, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   BANNER INTERIOR / ENCABEZADO DE PÁGINAS SUBSECUENTES
   ========================================================================== */

.page-header-banner {
  background: linear-gradient(135deg, rgba(8, 20, 36, 0.97) 0%, rgba(14, 32, 56, 0.94) 100%),
              url('../img/despacho-principal.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 7.5rem 0 4rem 0;
  border-bottom: 3px solid var(--gold-primary);
}

.page-header-content {
  text-align: center;
}

.page-header-content .page-subtitle {
  color: var(--gold-light);
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.page-header-content h1 {
  color: #ffffff;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.page-header-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.breadcrumbs span.current {
  color: var(--gold-light);
  font-weight: 600;
}

/* ==========================================================================
   SECCIÓN DE CIERRE INSTITUCIONAL (CTA EXCLUSIVO PARA INICIO)
   ========================================================================== */

.closing-cta-section {
  background: linear-gradient(135deg, #091729 0%, #0e2038 100%);
  color: #ffffff;
  padding: 5.5rem 0;
  border-top: 3px solid var(--gold-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.closing-cta-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.closing-badge {
  margin-bottom: 1.25rem;
}

.closing-cta-inner h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.closing-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.closing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 0.9rem;
}

.closing-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(168, 135, 82, 0.25);
  padding-top: 2.5rem;
}

.closing-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.closing-meta-item .meta-label {
  font-family: var(--font-serif-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.closing-meta-item .meta-val {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   FOOTER INSTITUCIONAL COMPLETO
   ========================================================================== */

.site-footer {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 2rem 0;
  border-top: 3px solid var(--gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-logo img {
  height: 54px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--gold-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

.footer-legal-notice {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  width: 100%;
}

/* ==========================================================================
   UTILIDADES (reemplazan patrones de estilo repetidos entre páginas)
   ========================================================================== */

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

/* Cita editorial destacada (portada y perfil del titular) */
.pull-quote {
  font-family: var(--font-serif-quote);
  font-style: italic;
  color: var(--primary-navy);
  border-left: 3px solid var(--gold-primary);
  padding-left: 1.15rem;
  margin: 1.5rem 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Tarjeta con la foto del abogado titular (página "El Estudio") */
.attorney-photo-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.attorney-photo-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-height: 480px;
}

.attorney-photo-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.attorney-photo-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.attorney-photo-card .role {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.attorney-photo-card .credential {
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tarjeta "Materias de Intervención Frecuente" */
.materias-card {
  background-color: #ffffff;
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin-top: 1.75rem;
}

.materias-card h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
  font-family: var(--font-serif-heading);
}

.materias-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.materias-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.materias-card li::before {
  content: "•";
  color: var(--gold-primary);
  font-weight: bold;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-row-left {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-full {
  width: 100%;
}

.contact-detail-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.mt-cta {
  margin-top: 1.5rem;
}

.badge-gold--on-dark {
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-logo-wrap {
  margin-bottom: 1.25rem;
}

.cta-dark-title {
  color: #ffffff;
  margin: 1rem 0;
}

.cta-dark-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Título de sección dentro del detalle de un área de práctica */
.area-title {
  font-size: 2rem;
  margin: 0.75rem 0 1rem 0;
}

/* Tarjeta lateral con la lista de casos/gestiones de cada área */
.info-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold-primary);
}

.info-card--navy {
  border-top-color: var(--primary-navy);
}

.info-card h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.info-card .practice-list {
  margin-bottom: 0;
}

/* Invierte visualmente las dos columnas de about-summary-grid sin tocar el HTML */
.about-summary-grid--reverse > :first-child {
  order: 2;
}

.about-summary-grid--reverse > :last-child {
  order: 1;
}

/* Cada bloque temático del acordeón de Preguntas Frecuentes */
.faq-block {
  max-width: 860px;
  margin: 0 auto 4rem auto;
}

.faq-block:last-child {
  margin-bottom: 0;
}

.faq-block-header {
  margin-bottom: 1.5rem;
}

.faq-block-header h2 {
  font-size: 1.75rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   ADAPTACIONES RESPONSIVAS (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1200px) and (min-width: 769px) {
  .brand-text {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 1.15rem;
  }
  .nav-actions {
    margin-left: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .criterio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .institution-grid {
    grid-template-columns: 1fr;
  }

  .institution-item:not(:last-child)::after {
    display: none;
  }

  .institution-item:not(:last-child) {
    border-bottom: 1px solid var(--border-gold-subtle);
  }

  .closing-meta-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-summary-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-badge-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .jurisdiction-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    /* Se ancla al propio header (position:fixed), no a un alto fijo en píxeles,
       para que quede pegado al borde real del header sin importar cuánto mida. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
    gap: 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 2rem;
    color: var(--primary-navy);
  }

  .nav-link::after {
    display: none;
  }

  .nav-links > li:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
  }

  .nav-item-dropdown {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-item-dropdown .nav-link {
    flex: 1;
  }

  .nav-dropdown-toggle {
    padding: 0.85rem 1.5rem;
  }

  /* Plegado por defecto: se abre solo tocando la flechita, no aparece solo */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    min-width: 0;
    width: 100%;
    background-color: var(--bg-light-alt);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.25s ease;
  }

  .nav-item-dropdown.open .nav-dropdown {
    max-height: 400px;
    padding: 0.35rem 0;
  }

  .nav-item-dropdown.open .nav-caret {
    transform: rotate(180deg);
  }

  .nav-dropdown li a {
    padding: 0.65rem 2rem 0.65rem 3rem;
    font-size: 0.82rem;
    border-radius: 0;
  }

  .navbar .btn-nav-turno {
    display: none;
  }

  .hero-content h1 {
    font-size: 3.4rem;
  }

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .office-gallery-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .criterio-grid {
    grid-template-columns: 1fr;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* En iOS un fondo "fixed" se traba y parpadea al hacer scroll */
  .jurisdiction-banner {
    background-attachment: scroll;
  }

  .closing-actions .btn,
  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.15rem;
  }

  .hero-section {
    padding: 7rem 0 3.5rem 0;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content .lead-text {
    font-size: 1.05rem;
  }

  .hero-stat-value {
    font-size: 1.6rem;
  }

  .section-header h2,
  .about-content h2,
  .jurisdiction-content h2 {
    font-size: 1.65rem;
  }

  .closing-cta-inner h2 {
    font-size: 1.85rem;
  }

  .page-header-content h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.8rem;
  }

  .practice-card,
  .contact-form-card,
  .contact-info-panel {
    padding: 1.5rem;
  }

  .about-badge-card {
    right: 0;
  }
}
