/* ================================================================
   VARIABLES
   ================================================================ */
:root {
  --color-primary: #071A2B;     /* Azul marino profundo */
  --color-white: #F7F6F2;       /* Blanco cálido */
  --color-metal: #A8AFB6;       /* Gris metálico */
  --color-gray: #263542;        /* Gris oscuro */
  --color-accent: #C8CFD6;      /* Acento plateado */

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;

  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 0.4s ease;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: #1a1a1a;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1.2rem 0;
  background: transparent;
  transition: background var(--transition-medium), padding var(--transition-medium);
}

.site-header.scrolled {
  background: var(--color-primary);
  padding: 0.8rem 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.navbar {
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0;
}

.logo-primary {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-white);
  transition: color var(--transition-medium);
}

.logo-secondary {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-metal);
  text-transform: uppercase;
  transition: color var(--transition-medium);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 0.5rem 1.2rem !important;
  letter-spacing: 0.04em;
  transition: color var(--transition-medium);
}

.nav-link:hover {
  color: #ffffff !important;
}

.lang-switch .nav-link {
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem !important;
}

.btn-nav {
  display: inline-block;
  padding: 0.5rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-medium);
}

.btn-nav:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  filter: invert(1);
}




/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&h=1000&fit=crop&crop=center');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 26, 43, 0.85) 0%, rgba(7, 26, 43, 0.4) 100%);
  z-index: 1;
}

.hero .container-fluid {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-metal);
  border-left: 2px solid var(--color-metal);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
  max-width: 800px;
  margin-bottom: 1.5rem;
  margin-top: 4.0rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-outline {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: all var(--transition-medium);
  margin-bottom: 1.5rem;
}

.hero-actions .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-white);
}

.hero-actions .btn-primary:hover {
  background: transparent;
  color: var(--color-white);
}

.hero-actions .btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.3; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ================================================================
   MEDIA QUERY SOLO PARA MÓVIL
   ================================================================ */
@media (max-width: 767.98px) {
  .hero {
    padding: 6rem 0 2rem;
  }

  /* OCULTAR BADGE EN MÓVIL */
  .hero-badge {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .hero-actions {
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    display: block;
    width: 100%;
    max-width: 280px;
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0.3rem;
  }

  .scroll-indicator {
    bottom: 1.2rem;
  }

  .scroll-indicator span {
    height: 0px;
  }

  .scroll-indicator span::after {
    width: 4px;
    height: 4px;
  }
}
/* ================================================================
   SECCIONES COMUNES
   ================================================================ */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-metal);
  border-left: 2px solid var(--color-metal);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

/* ================================================================
   THE FIRM
   ================================================================ */
.section-the-firm {
  padding: 2rem 0;
  background: var(--color-white);
}

.firm-content {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #2d3e4f;
}

.firm-content p {
  margin-bottom: 1.2rem;
}

.firm-closing {
  font-style: italic;
  font-weight: 300;
  color: var(--color-gray);
}

.principle {
  padding: 1.5rem 1.2rem;
  border-top: 1px solid rgba(7, 26, 43, 0.06);
  transition: border-color var(--transition-medium);
}

.principle:hover {
  border-color: var(--color-metal);
}

.principle-number {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-metal);
  display: block;
  margin-bottom: 0.5rem;
}

.principle h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.principle p {
  font-size: 0.9rem;
  color: #4a5a6a;
  margin: 0;
}

/* ================================================================
   WHAT WE DO
   ================================================================ */
.section-what-we-do {
  padding: 2rem 0;
  background: #f5f4f0;
}

.capability {
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-medium), transform var(--transition-medium);
}

.capability:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.capability-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--color-metal);
  display: block;
  margin-bottom: 0.5rem;
}

.capability h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.capability p {
  font-size: 0.95rem;
  color: #4a5a6a;
  margin: 0;
}

.experience-note {
  padding: 2rem 0;
  border-top: 1px solid rgba(7, 26, 43, 0.08);
  text-align: center;
}

.experience-note p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-gray);
  margin: 0;
}

/* ================================================================
   OUR APPROACH
   ================================================================ */
.section-approach {
  padding: 2rem 0;
  background: var(--color-white);
}

.approach-step {
  padding: 1.5rem;
}

.step-number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--color-metal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.approach-step h4 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.approach-step p {
  color: #4a5a6a;
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ================================================================
   LEADERSHIP
   ================================================================ */
.section-leadership {
  padding: 2rem 0;
  background: #f5f4f0;
}

.leadership-image {
  height: 320px;
  background-image: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=800&h=600&fit=crop&crop=center');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.leadership-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3e4f;
}

.leadership-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.leadership-tags span {
  padding: 0.3rem 1.2rem;
  background: var(--color-white);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-gray);
  border: 1px solid rgba(7, 26, 43, 0.08);
  border-radius: 0;
}

/* ================================================================
   INSTITUTIONAL CALL
   ================================================================ */
.section-call {
  padding: 3rem 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.section-call h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.25;
  color: var(--color-white);
}

.btn-call {
  display: inline-block;
  padding: 0.9rem 3.5rem;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: all var(--transition-medium);
}

.btn-call:hover {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

/* ================================================================
   CONTACT
   ================================================================ */
.section-contact {
  padding: 2rem 0;
  background: var(--color-white);
}

.contact-email {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-primary);
}

.contact-email i {
  margin-right: 0.8rem;
  color: var(--color-metal);
}

.contact-info {
  color: #4a5a6a;
  font-size: 0.95rem;
}

.btn-social {
  display: inline-block;
  padding: 0.6rem 2rem;
  border: 1px solid rgba(7, 26, 43, 0.1);
  color: var(--color-primary);
  transition: all var(--transition-medium);
}

.btn-social:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.form-control {
  border-radius: 0;
  border: 1px solid #dde1e6;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color var(--transition-medium);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

.btn-submit {
  padding: 0.8rem 3rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: all var(--transition-medium);
}

.btn-submit:hover {
  background: transparent;
  color: var(--color-primary);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--color-primary);
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-white);
}

.footer-sub {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-metal);
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

.footer-email {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  transition: color var(--transition-medium);
}

.footer-social a:hover {
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-medium);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.8rem;
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.6;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
  .site-header {
    padding: 0.8rem 0;
  }

  .navbar-collapse {
    background: var(--color-primary);
    padding: 1.5rem;
    margin-top: 1rem;
  }

  .logo-secondary {
    display: none;
  }

  .nav-link {
    padding: 0.6rem 0 !important;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    padding: 0.7rem 2rem;
    width: 100%;
    text-align: center;
  }

  .section-the-firm,
  .section-what-we-do,
  .section-approach,
  .section-leadership,
  .section-contact {
    padding: 4rem 0;
  }

  .leadership-image {
    height: 220px;
  }

  .capability {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero {
    min-height: 100svh;
    align-items: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.6rem;
    padding-left: 0.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-call h2 {
    font-size: 1.5rem;
  }

  .section-call {
    padding: 3.5rem 0;
  }
}


/* ================================================================
   ESTILOS PARA PÁGINAS LEGALES (Agregar al final de style.css)
   ================================================================ */

/* ===== PÁGINAS LEGALES - BASE ===== */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--color-white);
  min-height: 100vh;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.legal-page .last-updated {
  color: var(--color-metal);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(7, 26, 43, 0.06);
  padding-bottom: 1.5rem;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page p,
.legal-page li {
  color: #2d3e4f;
  line-height: 1.9;
  font-size: 1rem;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page ul li {
  margin-bottom: 0.5rem;
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.legal-page a:hover {
  opacity: 0.7;
}

.legal-page .back-link {
  display: inline-block;
  margin-top: 3rem;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-metal);
  padding-bottom: 0.3rem;
  transition: border-color 0.3s;
  font-weight: 400;
}

.legal-page .back-link:hover {
  border-color: var(--color-primary);
}

/* ===== CAJAS DESTACADAS ===== */
.legal-page .legal-box {
  background: #f5f4f0;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--color-metal);
  margin: 2rem 0;
}

.legal-page .legal-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* ===== TABLA DE COOKIES ===== */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #dee2e6;
  padding: 0.8rem 1rem;
  text-align: left;
}

.cookie-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.cookie-table tr:nth-child(even) {
  background: #f8f7f5;
}

/* ===== DISCLAIMER BOX (más destacado) ===== */
.legal-page .disclaimer-box {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--color-metal);
  margin: 2rem 0;
}

.legal-page .disclaimer-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.95rem;
}

.legal-page .disclaimer-box strong {
  color: var(--color-white);
}

/* ===== RESPONSIVE LEGAL PAGES ===== */
@media (max-width: 767px) {
  .legal-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .legal-page .legal-box,
  .legal-page .disclaimer-box {
    padding: 1.5rem;
  }

  .cookie-table {
    font-size: 0.85rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 575px) {
  .legal-page h1 {
    font-size: 1.8rem;
  }

  .legal-page h2 {
    font-size: 1.3rem;
  }

  .legal-page .legal-box,
  .legal-page .disclaimer-box {
    padding: 1.2rem;
    margin: 1.5rem 0;
  }

  .cookie-table {
    font-size: 0.75rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.4rem 0.5rem;
  }
}

/* ================================================================
   PRELOADER
   ================================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: pulseLoader 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--color-white);
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLoader {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


/* ================================================================
   CORRECCIONES PARA MÓVIL (HEADER Y SCROLL)
   ================================================================ */

/* Elimina scroll horizontal en todo el sitio */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ===== SOLO PARA PANTALLAS PEQUEÑAS (móvil) ===== */
@media (max-width: 991.98px) {
    .site-header {
        padding: 0.8rem 0 !important;
    }
    .site-header.scrolled {
        padding: 0.8rem 0 !important;
    }

    .site-header .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }

    /* Eliminamos flex-wrap: nowrap y width: 100% forzados */
    .navbar {
        /* No forzamos nowrap ni width fijos, dejamos que Bootstrap maneje el layout */
        width: 100% !important;
    }

    .navbar-brand {
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
        max-width: 70% !important;
    }

    .logo-primary {
        font-size: 1.2rem !important;
        letter-spacing: 0.1em !important;
    }

    .logo-secondary {
        display: none !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
        flex-shrink: 0 !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        padding: 0.2rem 0.4rem !important;
    }

    .navbar-toggler-icon {
        width: 1.2em !important;
        height: 1.2em !important;
        font-size: 1.2rem !important;
    }

    /* Esto es clave: solo aplica fondo y padding al collapse cuando está expandido */
    .navbar-collapse {
        background: var(--color-primary) !important;
        padding: 1rem 0.5rem !important;
        margin-top: 0.5rem !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    /* Los items del menú en móvil ocupan todo el ancho y se alinean a la izquierda */
    .navbar-nav .nav-link {
        padding: 0.6rem 0.5rem !important;
        text-align: left !important;
    }

    /* Asegurar que contenedores no se desborden */
    .hero, .container, .container-fluid, .row, .col-* {
        max-width: 100% !important;
    }
}

@media (max-width: 767.98px) {
  .section-the-firm,
  .section-what-we-do,
  .section-approach,
  .section-leadership,
  .section-contact {
    padding: 2.5rem 0 !important; /* Reduce de 4rem a 2.5rem */
  }

  .section-call {
    padding: 2rem 0 !important;
  }

  .section-title {
    font-size: 1.8rem !important; /* Ya lo tienes, puedes dejarlo */
  }

  .firm-content {
    font-size: 0.95rem !important; /* Reduce ligeramente el tamaño de los párrafos */
    line-height: 1.7 !important;
  }

  .capability p,
  .approach-step p,
  .leadership-text {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }

  .experience-note p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
}