/* ==========================================================================
   B&P GROUP ASESORES S.A.S. - CORPORATE STYLESHEET
   Alternating Luxury Blue & White Corporate Sections, Mobile Perfect Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Colors - Navy / Dark Sections */
  --navy-dark: #070e1a;
  --navy-primary: #0b1a2f;
  --navy-secondary: #10243f;
  --navy-surface: #162f52;
  --navy-card: rgba(16, 36, 63, 0.85);
  
  /* Colors - White / Light Sections */
  --white-pure: #ffffff;
  --white-bg: #f8fafc;
  --white-surface: #f1f5f9;
  --white-border: #e2e8f0;
  
  /* Gold Accents & Metallics */
  --gold-primary: #C5A059;
  --gold-light: #DFC282;
  --gold-dark: #9A7734;
  --gold-gradient: linear-gradient(135deg, #DFBA73 0%, #C5A059 50%, #9E7D3B 100%);
  --gold-glow: rgba(197, 160, 89, 0.25);
  --gold-border-dark: rgba(197, 160, 89, 0.35);
  --gold-border-light: rgba(158, 116, 46, 0.28);

  /* Typography */
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout & Measurements */
  --header-height: 88px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* ==========================================================================
     INTERRUPTOR MAESTRO: SECCIÓN DE MARCAS Y CLIENTES ASESORADOS
     --------------------------------------------------------------------------
     - Para ACTIVAR la sección en toda la web (ES y EN):
       Cambie 'none' por 'block' en la línea de abajo.
     - Para OCULTAR la sección en toda la web:
       Mantenga 'none' en la línea de abajo.
     ========================================================================== */
  --brands-section-display: none; /* <-- CAMBIAR A 'block' PARA MOSTRAR LA SECCIÓN */
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy-dark);
  color: #F1F5F9;
  line-height: 1.65;
}

:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-width: 0;
  box-sizing: border-box;
}

.section {
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   THEMED SECTIONS
   ========================================================================== */
.section-dark {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  color: #F8FAFC;
}

.section-dark .section-eyebrow {
  color: var(--gold-primary);
}

.section-dark .section-eyebrow::after {
  background: var(--gold-primary);
}

.section-dark .section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-dark .section-desc {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.7;
}

.section-light {
  background: #FFFFFF;
  color: #0F172A;
}

.section-light .section-eyebrow {
  color: var(--gold-dark);
}

.section-light .section-eyebrow::after {
  background: var(--gold-dark);
}

.section-light .section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: #0B1A2F;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-light .section-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  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.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.hero-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  max-width: 90vw;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(11, 26, 47, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--header-height);
  background: rgba(7, 14, 26, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all var(--trans-normal);
}

.site-header.scrolled {
  height: 76px;
  background: rgba(7, 14, 26, 0.98);
  border-bottom-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 220px;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
  transition: transform var(--trans-fast), width var(--trans-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #CBD5E1;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--trans-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--trans-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Floating Language Switcher Pill (Bottom Left) */
.lang-floating-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  height: 44px;
  padding: 0 1.15rem;
  border-radius: var(--radius-full);
  background: #0B1A2F;
  border: 1.5px solid var(--gold-primary);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 990;
  transition: all var(--trans-normal);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.lang-floating-btn:hover, .lang-floating-btn:active {
  background: var(--gold-gradient);
  color: #070E1A;
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.45);
}

.lang-globe-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--navy-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.mobile-nav-cta,
.nav-menu .mobile-nav-cta {
  display: none !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--trans-normal);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #070e1a;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
  border: 1px solid transparent;
}

.btn-gold:hover, .btn-gold:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(197, 160, 89, 0.5);
  filter: brightness(1.06);
}

.btn-navy {
  background: #0B1A2F;
  color: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 4px 16px rgba(11, 26, 47, 0.25);
}

.btn-navy:hover, .btn-navy:active {
  background: var(--gold-gradient);
  color: #070E1A;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.4);
}

.btn-outline {
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover, .btn-outline:active {
  border-color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0B1A2F;
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all var(--trans-normal);
  cursor: pointer;
  touch-action: manipulation;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover, .back-to-top-btn:active {
  background: var(--gold-gradient);
  color: #070E1A;
  border-color: transparent;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.back-to-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform var(--trans-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #070e1a 0%, #0c1c33 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  margin-bottom: 1.35rem;
  text-transform: uppercase;
  word-break: break-word;
}

.hero-lead {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.hero-main-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: transform var(--trans-smooth);
}

.hero-image-frame:hover .hero-main-img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 26, 0.05) 0%, rgba(7, 14, 26, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.hero-overlay-badge {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.hero-overlay-sub {
  font-size: 0.8125rem;
  color: #D1D9E6;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PILARES ESTRATÉGICOS
   ========================================================================== */
.pillars-section {
  background: #0b1a2f;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding: 4rem 0;
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: rgba(16, 36, 63, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all var(--trans-normal);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.pillar-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.pillar-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  transition: transform var(--trans-fast);
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.08);
}

.pillar-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.pillar-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  text-transform: uppercase;
}

.pillar-text {
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.55;
}

/* ==========================================================================
   QUIÉNES SOMOS & MÉTRICAS
   ========================================================================== */
.about-section {
  background: #FFFFFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--white-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  width: 100%;
  min-width: 0;
}

.about-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform var(--trans-smooth);
}

.about-img-box:hover .about-img {
  transform: scale(1.03);
}

.about-signature-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.15rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 85%;
}

.about-signature-img {
  width: 160px;
  max-width: 100%;
  height: auto;
}

.about-text-lead {
  font-size: 1.18rem;
  font-weight: 600;
  color: #0B1A2F;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-text-body {
  font-size: 1rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.value-card {
  background: var(--white-bg);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.value-card:hover {
  border-color: rgba(158, 116, 46, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  background: #FFFFFF;
}

.value-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(158, 116, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}

.value-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.value-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0B1A2F;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}

.value-card-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.values-list-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: #334155;
  font-weight: 600;
}

.values-list-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

/* Stats Counter Banner */
.stats-banner {
  background: #0B1A2F;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  box-shadow: 0 20px 45px rgba(11, 26, 47, 0.2);
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
  min-width: 0;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #CBD5E1;
}

/* ==========================================================================
   PORTAFOLIO DE SERVICIOS
   ========================================================================== */
.services-section {
  background: linear-gradient(180deg, #070e1a 0%, #0d1e38 100%);
}

.services-filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 3.25rem;
  width: 100%;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: rgba(16, 36, 63, 0.85);
  padding: 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
}

.filter-btn {
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #CBD5E1;
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--trans-fast);
  text-align: center;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #070e1a;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1.5rem;
}

.service-card {
  grid-column: span 6;
  background: rgba(16, 36, 63, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-normal);
  position: relative;
  min-width: 0;
}

/* Center last row (cards 9, 10, 11) in 4-column layout when showing all 11 */
.services-grid:not(.is-filtered) .service-card:nth-child(9) {
  grid-column: 4 / span 6;
}

/* Center 3 cards when filtering by Litigios */
.services-grid[data-active-filter="litigios"] .service-card[data-category="litigios"]:first-of-type {
  grid-column: 4 / span 6;
}

.service-card:hover {
  border-color: rgba(197, 160, 89, 0.45);
  background: rgba(22, 47, 82, 0.9);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.service-card-top {
  margin-bottom: 1.35rem;
}

.service-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  transition: transform var(--trans-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin-bottom: 1.15rem;
}

.service-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-sub-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #CBD5E1;
  line-height: 1.45;
  min-width: 0;
}

.service-sub-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold-primary);
  stroke: currentColor;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Expandable 'Ver más' Drawer for long sub-item lists */
.service-items-more {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.service-items-more.show {
  display: flex;
  animation: fadeInSubItems 0.25s ease forwards;
}

.service-more-toggle {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 0.775rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0 0 0;
  margin-top: 0.5rem;
  transition: color 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.service-more-toggle:hover {
  color: #dfb76c;
}

.service-more-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  stroke: currentColor;
}

.service-more-toggle.expanded svg {
  transform: rotate(180deg);
}

@keyframes fadeInSubItems {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  white-space: nowrap;
}

.service-consult-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform var(--trans-fast);
}

.service-card:hover .service-consult-btn svg {
  transform: translateX(5px);
}

/* ==========================================================================
   POR QUÉ ELEGIRNOS & TESTIMONIOS
   ========================================================================== */
.why-section {
  background: #FFFFFF;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 4.5rem;
}

.why-card {
  background: var(--white-bg);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: all var(--trans-normal);
  position: relative;
  min-width: 0;
}

.why-card:hover {
  border-color: rgba(158, 116, 46, 0.35);
  background: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.why-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(158, 116, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}

.why-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.why-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0B1A2F;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.why-card-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
}

.testimonials-box {
  background: #0B1A2F;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 45px rgba(11, 26, 47, 0.15);
  width: 100%;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.testimonials-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: rgba(16, 36, 63, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-normal);
  min-width: 0;
}

.testimonial-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-4px);
}

.quote-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-primary);
  opacity: 0.45;
  margin-bottom: 1.15rem;
}

.testimonial-quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-stars {
  display: flex;
  gap: 5px;
  color: var(--gold-primary);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   EMPRESAS QUE CONFÍAN EN NOSOTROS (Continuous Logo Marquee Carousel)
   --------------------------------------------------------------------------
   ESTADO: DESACTIVADO TEMPORALMENTE (display: none via --brands-section-display)
   Para volver a mostrar la sección:
     Opción A: En la línea 53 de este archivo cambie '--brands-section-display: none;' a 'block;'
     Opción B: Cambie la regla abajo a 'display: block !important;'
   ========================================================================== */
.brands-section {
  display: var(--brands-section-display, none) !important;
  background: #FFFFFF;
  padding: 4.5rem 0 4.25rem 0;
  border-top: 1px solid var(--white-border);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Selector opcional por clase para control individual */
.brands-section.is-disabled {
  display: none !important;
}

.brands-header {
  margin-bottom: 2.5rem;
}

.brands-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0 1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brands-track {
  display: flex;
  width: max-content;
  gap: 1.75rem;
  animation: brandsMarquee 38s linear infinite;
  will-change: transform;
}

.brands-track:hover,
.brands-track:focus-within {
  animation-play-state: paused;
}

.brand-item {
  flex: 0 0 auto;
}

.brand-card {
  background: var(--white-bg);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  height: 84px;
  min-width: 190px;
  max-width: 230px;
  padding: 0.85rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(11, 26, 47, 0.03);
  transition: all var(--trans-normal);
  user-select: none;
}

.brand-card:hover {
  background: #FFFFFF;
  border-color: rgba(197, 160, 89, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11, 26, 47, 0.08);
}

.brand-card img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--trans-normal), opacity var(--trans-fast);
  opacity: 0.88;
}

.brand-card:hover img {
  transform: scale(1.04);
  opacity: 1;
}

@keyframes brandsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation-duration: 90s;
  }
}

/* ==========================================================================
   SECTORES QUE ATENDEMOS (Zero Overflow Grid)
   ========================================================================== */
.sectors-section {
  background: linear-gradient(180deg, #070e1a 0%, #0d1e38 100%);
  width: 100%;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.sector-card {
  background: rgba(16, 36, 63, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-normal);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sector-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  background: rgba(22, 47, 82, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sector-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  transition: all var(--trans-fast);
  flex-shrink: 0;
}

.sector-card:hover .sector-icon-box {
  background: var(--gold-gradient);
  color: #070e1a;
  transform: scale(1.08);
}

.sector-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.sector-name {
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   CONTACTO & CÓDIGOS QR (Zero Overflow Guaranteed)
   ========================================================================== */
.contact-section {
  background: #FFFFFF;
  width: 100%;
}

.contact-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  align-items: stretch;
  width: 100%;
}

.contact-card-panel {
  background: var(--white-bg);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-panel-header {
  margin-bottom: 1.35rem;
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #0B1A2F;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.contact-info-subtitle {
  font-size: 0.9rem;
  color: #475569;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  transition: all var(--trans-fast);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-channel-card:hover {
  border-color: rgba(158, 116, 46, 0.4);
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.channel-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(158, 116, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.channel-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.channel-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.channel-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #64748B;
}

.channel-value {
  font-size: 0.925rem;
  font-weight: 600;
  color: #0B1A2F;
  /* Wrap only between words; break inside a word only if it alone exceeds the card width */
  word-break: normal;
  overflow-wrap: break-word;
}

.channel-phones-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.channel-phone-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0B1A2F;
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.3;
}

.channel-phone-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.channel-sep {
  display: none !important;
}

.contact-card-panel .btn {
  white-space: normal !important;
  text-align: center;
  padding: 0.85rem 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  width: 100%;
  box-sizing: border-box;
}

.contact-card-panel .btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* QR Side */
.qr-hub-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.qr-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.qr-interactive-card {
  background: #FFFFFF;
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--trans-normal);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.qr-interactive-card:hover {
  border-color: rgba(158, 116, 46, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.qr-code-box {
  background: #FFFFFF;
  padding: 5px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform var(--trans-fast);
  max-width: 100%;
  box-sizing: border-box;
}

.qr-code-box canvas,
.qr-code-box img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.qr-label {
  font-size: 0.71875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0B1A2F;
  margin-bottom: 0.5rem;
  word-break: break-word;
  line-height: 1.25;
}

.qr-actions-row {
  display: flex;
  gap: 0.35rem;
  width: 100%;
}

.btn-qr-action {
  flex: 1;
  padding: 0.4rem 0.2rem;
  font-size: 0.65625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-border);
  background: var(--white-bg);
  color: #334155;
  transition: all var(--trans-fast);
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

.btn-qr-action:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

/* Trust Badges */
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  width: 100%;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--white-border);
  border-radius: var(--radius-sm);
  min-width: 0;
  box-sizing: border-box;
}

.trust-badge-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.trust-badge-text {
  font-size: 0.78125rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
  word-break: break-word;
}

/* ==========================================================================
   CLOSING STATEMENT & FOOTER
   ========================================================================== */
.closing-banner {
  background: #070e1a;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  padding: 4.5rem 0;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.closing-slogan {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  max-width: 880px;
  margin: 0 auto 2rem auto;
  line-height: 1.38;
}

.closing-signature-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.signature-line {
  height: 1px;
  flex: 1;
  max-width: 80px;
  background: var(--gold-primary);
  opacity: 0.4;
}

.signature-img {
  width: 220px;
  max-width: 65vw;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4));
}

.site-footer {
  background: #050a12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  font-size: 0.8125rem;
  color: #64748B;
  width: 100%;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--gold-primary);
}

.footer-legal-notice {
  width: 100%;
  text-align: center;
  font-size: 0.735rem;
  color: #64748B;
  line-height: 1.6;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-link {
  color: var(--gold-primary);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  transition: color var(--trans-fast);
  display: inline;
}

.footer-legal-link:hover {
  color: var(--gold-light);
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0B1A2F;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform var(--trans-fast);
  box-sizing: border-box;
}

.modal-card-legal {
  max-width: 720px;
  max-height: 88vh;
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 1.75rem 2rem;
}

.modal-legal-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  padding-right: 2rem;
}

.modal-legal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.modal-legal-sub {
  font-size: 0.8125rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.modal-legal-body {
  overflow-y: auto;
  padding-right: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #CBD5E1;
  font-size: 0.85rem;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) #070e1a;
}

.modal-legal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-legal-body::-webkit-scrollbar-track {
  background: #070e1a;
  border-radius: 4px;
}

.modal-legal-body::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

.modal-legal-body h4 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.15rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.modal-legal-body p {
  margin-bottom: 0.75rem;
}

.modal-legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.modal-legal-body li {
  margin-bottom: 0.35rem;
}

.modal-legal-footer {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #162F52;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.modal-close-btn:hover {
  color: #FFFFFF;
  border-color: var(--gold-primary);
}

.modal-qr-frame {
  background: #FFFFFF;
  padding: 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 1.25rem 0 1rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  box-sizing: border-box;
}

.modal-qr-frame canvas,
.modal-qr-frame img {
  max-width: 100% !important;
  height: auto !important;
}

.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  max-width: calc(100vw - 4rem);
  background: #0B1A2F;
  border: 1px solid var(--gold-primary);
  color: #FFFFFF;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--trans-normal);
  box-sizing: border-box;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notice svg {
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First Precision)
   ========================================================================== */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-card {
    grid-column: auto !important;
  }
  .services-grid:not(.is-filtered) .service-card:nth-child(11) {
    grid-column: 1 / -1 !important;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
  .sectors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-main-img {
    height: 380px;
  }
  .contact-hub-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tablets & Mobile (<= 800px) */
@media (max-width: 800px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 4.25rem 0;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .brand-logo-img {
    width: 160px;
    max-width: 160px;
  }

  .site-header .btn-sm {
    display: none !important;
  }

  .mobile-nav-cta,
  .nav-menu .mobile-nav-cta {
    display: flex !important;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .section-dark .section-title, 
  .section-light .section-title {
    font-size: 1.85rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-img {
    height: 320px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonials-box {
    padding: 2.5rem 1.35rem;
  }

  .brands-section {
    padding: 3.5rem 0 3.25rem 0;
  }

  .brands-header {
    margin-bottom: 2rem;
  }

  .brands-track {
    gap: 1.15rem;
    animation-duration: 32s;
  }

  .brand-card {
    height: 72px;
    min-width: 160px;
    padding: 0.65rem 1.25rem;
  }

  .brand-card img {
    max-height: 42px;
  }

  .stats-banner {
    padding: 2rem 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  /* Sectores 2 Columns on Mobile / Tablets */
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem;
  }

  .sector-card {
    padding: 1.25rem 0.65rem;
  }

  .sector-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
  }

  .sector-name {
    font-size: 0.75rem;
  }

  /* Filter Tabs */
  .services-filter-bar {
    margin-bottom: 2.25rem;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: var(--radius-md);
    padding: 0.4rem;
    gap: 0.45rem;
  }

  .filter-btn {
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
    font-size: 0.78125rem;
    width: 100%;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #0B1A2F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--trans-normal);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .contact-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }

  .contact-card-panel {
    padding: 2rem 1.25rem;
  }

  .trust-badges-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Screens (<= 540px) */
@media (max-width: 540px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo-img {
    width: 130px;
    max-width: 130px;
  }

  .contact-card-panel .btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.78125rem;
    gap: 0.45rem;
  }

  .contact-card-panel .btn .btn-icon {
    width: 16px;
    height: 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-pillars-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-column: auto !important;
    max-width: 100% !important;
  }

  .services-grid:not(.is-filtered) .service-card:nth-child(11) {
    grid-column: auto !important;
    max-width: 100% !important;
  }

  .filter-tabs {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }

  .brands-section {
    padding: 2.75rem 0 2.5rem 0;
  }

  .brands-track {
    gap: 0.85rem;
    animation-duration: 26s;
  }

  .brand-card {
    height: 64px;
    min-width: 135px;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-sm);
  }

  .brand-card img {
    max-height: 36px;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
  }

  .sector-card {
    padding: 1.15rem 0.4rem;
  }

  .sector-name {
    font-size: 0.71875rem;
  }

  .qr-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card-panel {
    padding: 1.75rem 1rem;
  }

  .contact-channel-card {
    padding: 0.85rem 0.95rem;
  }

  .closing-slogan {
    font-size: 1.35rem;
  }

  .back-to-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }

  .lang-floating-btn {
    bottom: 1.25rem;
    left: 1.25rem;
    height: 38px;
    padding: 0 0.85rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .toast-notice {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
  }
}
