/* ==========================================================================
   Keepdigitall Landing Page Factory - Estilos para Bizan (Consultoría & Finanzas)
   Alineado con responsive-master, sin desbordamientos y optimizado para 9 viewports.
   ========================================================================== */

/* 0. Definición de Fuentes Font Awesome Locales */
@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/fa-solid-900.woff2') format('woff2'),
       url('../assets/fonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/fa-regular-400.woff2') format('woff2'),
       url('../assets/fonts/fa-regular-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/fa-brands-400.woff2') format('woff2'),
       url('../assets/fonts/fa-brands-400.ttf') format('truetype');
}

.fa-brands, .fab {
  font-family: 'Font Awesome 6 Brands' !important;
}

.fa-solid, .fas, .fa-sharp {
  font-family: 'Font Awesome 6 Pro' !important;
  font-weight: 900 !important;
}

/* 1. Variables Globales y Tipografía */
:root {
  --color-primary: #1E6EE7;
  --color-primary-hover: #1558bd;
  --color-secondary: #191F29;
  --color-accent: #EC281C;
  --color-dark: #191F30;
  --color-body: #667085;
  --color-white: #ffffff;
  --color-bg-light: #F8F9FC;
  --color-border: #E4E7EC;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(25, 31, 41, 0.08);
  --shadow-lg: 0 16px 40px rgba(25, 31, 41, 0.12);
  --shadow-primary: 0 8px 25px rgba(30, 110, 231, 0.25);
}

/* 2. Reseteo y Prevención Anti-Overflow Global */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-white);
  overflow-x: hidden !important;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

section[id], header[id] {
  scroll-margin-top: 90px;
}

/* Contención estricta de secciones */
section, header, footer {
  position: relative;
  overflow-x: hidden !important;
  max-width: 100vw;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevención estricta de desbordamiento de textos */
h1, h2, h3, h4, h5, h6, p, span, a, li {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.2;
}

/* 3. Botones y Elementos Interactivos */
.btn, .bz-primary-btn, .header-btn, .bz-transparent-btn {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.bz-primary-btn {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 14px 28px;
  border: 1px solid var(--color-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bz-primary-btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bz-transparent-btn {
  background: transparent;
  color: var(--color-secondary) !important;
  padding: 14px 24px;
  border: 1px solid var(--color-border);
}

.bz-transparent-btn:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.hero-actions, .hero-btn-wrap, .about-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* 4. Header Personalizado (Fondo Blanco Idéntico al Referente Original) */
.header {
  position: relative;
  width: 100%;
  z-index: 999;
  background: var(--color-white);
}

.middle-header {
  background: var(--color-white);
  border-bottom: 1px solid #EEF2F6;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
}

.middle-header .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.header .middle-header .middle-header-inner {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  min-height: 96px;
  padding: 0 !important;
  margin: 0 !important;
}

.header .middle-header .middle-header-inner .header-logo {
  display: flex !important;
  align-items: center !important;
  padding: 24px 150px 24px 0 !important;
  position: relative !important;
  z-index: 1 !important;
  align-self: stretch !important;
}

.header .middle-header .middle-header-inner .header-logo:before {
  background-color: var(--color-primary, #1E6EE7) !important;
  content: "" !important;
  height: 100% !important;
  width: 3000px !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: -1 !important;
  clip-path: polygon(0 0, 100% 0, 98.5% 100%, 0% 100%) !important;
}

.header .middle-header .middle-header-inner .header-logo .shape {
  background-color: #122A4D !important;
  height: 100% !important;
  width: 3000px !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: -2 !important;
  clip-path: polygon(0 0, 100% 0, 99% 100%, 0% 100%) !important;
}

.header .middle-header .middle-header-inner .header-logo:after {
  background-color: var(--color-primary, #1E6EE7) !important;
  content: "" !important;
  width: 90px !important;
  height: 50px !important;
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%) !important;
  z-index: -3 !important;
}

.header .middle-header .middle-header-inner .header-items-wrap {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.header .middle-header .middle-header-inner .header-items-wrap .header-item {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 0 30px !important;
  border-left: 1px solid #EEF2F6 !important;
}

.header .middle-header .middle-header-inner .header-items-wrap .header-item:first-child {
  border-left: none !important;
}

.header .middle-header .middle-header-inner .header-items-wrap .header-item .icon {
  background-color: #EAECEF !important;
  color: var(--color-primary, #1E6EE7) !important;
  height: 45px !important;
  width: 45px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}

.header .middle-header .middle-header-inner .header-items-wrap .header-item .content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.header .middle-header .middle-header-inner .header-items-wrap .header-item .content span {
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #6C7A87 !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}

.header .middle-header .middle-header-inner .header-items-wrap .header-item .content a,
.header .middle-header .middle-header-inner .header-items-wrap .header-item .content .address {
  white-space: nowrap !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #071C3C !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

@media (max-width: 1280px) {
  .header .middle-header .middle-header-inner .header-logo {
    padding-right: 80px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item {
    padding: 0 18px !important;
    gap: 10px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item .content a,
  .header .middle-header .middle-header-inner .header-items-wrap .header-item .content .address {
    font-size: 14px !important;
  }
}

@media (max-width: 1140px) {
  .header .middle-header .middle-header-inner .header-logo {
    padding-right: 50px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item {
    padding: 0 12px !important;
    gap: 8px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item .icon {
    width: 38px !important;
    height: 38px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item .content span {
    font-size: 11px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item .content a,
  .header .middle-header .middle-header-inner .header-items-wrap .header-item .content .address {
    font-size: 13px !important;
  }
}

@media (max-width: 1024px) {
  .header .middle-header .middle-header-inner .header-logo {
    padding-right: 40px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item {
    padding: 0 10px !important;
    gap: 8px !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap .header-item:last-child {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .header .middle-header .middle-header-inner .header-logo {
    display: none !important;
  }
  .header .middle-header .middle-header-inner .header-items-wrap {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .middle-header {
    display: none !important;
  }
}

.primary-header {
  background-color: var(--color-white) !important;
  border-bottom: 1px solid #EEF2F6;
  transition: var(--transition-smooth);
  position: relative;
}

.header.sticky-active .primary-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: slideDown 0.35s ease-out;
  z-index: 1000;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.primary-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  min-height: 72px;
}

.header-menu-wrap {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.nav-list, .header-menu-wrap ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 32px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu-wrap .nav-link, .header-menu-wrap ul li a {
  white-space: nowrap !important;
  color: var(--color-secondary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 24px 0;
  position: relative;
  display: block;
}

.header-menu-wrap .nav-link:hover, .header-menu-wrap ul li a:hover,
.header-menu-wrap .nav-link.active, .header-menu-wrap ul li.active > a {
  color: var(--color-primary) !important;
}

.header-menu-wrap .nav-link.active::after, .header-menu-wrap ul li.active > a::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.header-right-wrap {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-left: auto;
}

.header-right {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

.header-btn {
  background: transparent !important;
  border: none !important;
  color: var(--color-primary) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-heading);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 !important;
  margin-right: 20px !important;
  white-space: nowrap !important;
  transition: var(--transition-smooth);
}

.header-btn:hover {
  color: var(--color-secondary) !important;
  transform: none !important;
}

/* Enlaces de Redes Sociales en el Header - 3 Círculos Azules Oscuros Idénticos al Referente */
.header-social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-social-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #071C3C !important;
  border: none !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.header-social-item:hover {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
}

.header-social-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.fa-x-twitter,
.fa-brands.fa-x-twitter {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: middle;
}
.fa-x-twitter:before,
.fa-brands.fa-x-twitter:before {
  content: "" !important;
}

/* Botón Hamburguesa Móvil */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Menú Móvil Lateral (Hardware-Accelerated Mobile Drawer) */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1998;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #ffffff;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1999;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-light);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: var(--transition-smooth);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

.mobile-socials {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.mobile-social-item {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-social-item:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* 5. Blindaje de Formas Decorativas y Elementos Flotantes */
.shapes, .hero-section .shapes, .content-section .shapes, .counter-section .shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  pointer-events: none;
}

.round-shape,
.shape-1,
.shape-2,
.shape-3,
.shape-4,
.bg-shape {
  max-width: 100% !important;
  pointer-events: none;
}

.content-wrap .shapes {
  display: none !important;
}

.hero-section .round-shape {
  position: absolute;
  right: 0 !important;
  width: min(500px, 45vw) !important;
  height: min(500px, 45vw) !important;
  overflow: hidden !important;
}

.hero-section .shape-1,
.hero-section .shape-2,
.content-section .shape-1,
.content-section .shape-2,
.counter-section .shape-1,
.counter-section .shape-2,
.team-section .bg-shape {
  right: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* 6. Secciones Específicas de Bizan */
/* Hero Section - Exacta al Referente Original */
.hero-section {
  position: relative;
  background-color: #EAEEF5 !important;
  overflow: hidden !important;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin: 0;
}

.hero-wrap {
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
  padding: 85px 0 95px 0 !important;
}

.hero-content .sub-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero-content .sub-heading .left-shape {
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);
  display: inline-block;
  transform: skewX(-20deg);
  border-radius: 2px;
}

.hero-content .section-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #071C3C;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 35px;
  color: #667085;
  max-width: 500px;
}

/* Imagen del Hero con silueta curva y overlays en duotono azul idénticos al original */
.hero-mask-img {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 55% !important;
  height: 100% !important;
  z-index: 2 !important;
  overflow: hidden !important;
  border-top-left-radius: 400px 500px !important;
  border-bottom-left-radius: 400px 500px !important;
  box-shadow: -15px 0 0 0 #ffffff !important;
  display: block !important;
  background: transparent !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.hero-mask-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
}

.hero-mask-img .overlay {
  background: rgba(30, 110, 231, 0.45) !important;
  mix-blend-mode: multiply !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.hero-mask-img .overlay-2 {
  background: rgba(7, 28, 60, 0.18) !important;
  mix-blend-mode: multiply !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

/* Formas decorativas del Hero */
.hero-section .shapes .shape.shape-1 {
  top: 60px !important;
  left: 50px !important;
  width: 170px !important;
  height: 170px !important;
  opacity: 0.85 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
}

.hero-section .shapes .shape.shape-1 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.hero-section .shapes .round-shape {
  background-color: #ffffff !important;
  width: min(1100px, 60vw) !important;
  height: min(1100px, 60vw) !important;
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  border-radius: 50% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
  max-width: 100% !important;
}

/* About Section - Imagen y Acento Azul */
.about-section {
  position: relative;
  background-color: var(--color-white);
  padding: 120px 0;
}

.about-img-wrap {
  position: relative;
  max-width: 560px;
  width: 100%;
}

.about-img-wrap .about-img {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.about-img-wrap .about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-wrap .shape {
  position: absolute;
  bottom: -25px;
  left: -25px;
  width: 65%;
  height: 80%;
  background-color: var(--color-primary) !important;
  border-radius: 24px;
  z-index: 1;
  display: block !important;
}

.img-reveal {
  visibility: visible !important;
  opacity: 1 !important;
}

.img-reveal .img-overlay {
  display: none !important;
}

/* Backgrounds Estáticos Idénticos al Referente */
.counter-section {
  background-image: url("../assets/img/bg-img/counter-bg.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}

.counter-item .icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.service-section {
  background-image: url("../assets/img/bg-img/service-bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
}

.service-item .icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.content-wrap {
  background-image: url("../assets/img/bg-img/content-bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
}

.project-section .bg-shape {
  background-image: url("../assets/img/bg-img/project-bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
}

.testimonial-section {
  background-image: url("../assets/img/bg-img/testi-bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Tarjetas de Servicio */
.service-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 40px 30px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-item .icon {
  margin-bottom: 24px;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
}

.service-item .title {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-item p {
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Tarjetas de Equipo - Idénticas a la Plantilla Original */
.team-section {
  background-color: #131C2B !important;
  padding: 120px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.team-section .section-title {
  color: #ffffff !important;
}

.team-wrap {
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .team-wrap {
    padding: 0 15px;
  }
}

.team-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden !important;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

.team-item .team-thumb {
  width: 100%;
  height: 452px;
  position: relative;
  z-index: 1;
  overflow: hidden !important;
  border-radius: 10px;
}

.team-item .team-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(1) contrast(1);
  transition: all 0.35s ease-in-out;
}

/* Efecto hover: imagen pasa a blanco y negro con leve zoom */
.team-item:hover .team-thumb img {
  filter: saturate(0) contrast(110%) !important;
  transform: scale(1.04);
}

/* Formas diagonales decorativas en hover */
.team-item .team-thumb .shapes {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden !important;
  border-radius: 10px;
}

.team-item .team-thumb .shapes .shape-1 {
  display: block !important;
  background: linear-gradient(180deg, #294F89 0%, rgba(6, 25, 57, 0) 100%);
  mix-blend-mode: hard-light;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(5% 0, 32% 0, 8% 100%, 0% 100%, 0% 20%);
  transition: all 0.35s ease-in-out;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
}

.team-item .team-thumb .shapes .shape-2 {
  display: block !important;
  background: linear-gradient(180deg, rgba(23, 40, 65, 0.61) 0%, rgba(6, 25, 57, 0) 100%);
  mix-blend-mode: hard-light;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(33% 0, 78% 0, 32% 100%, 9% 100%);
  transition: all 0.35s ease-in-out;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
}

.team-item:hover .team-thumb .shapes .shape-1 {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

.team-item:hover .team-thumb .shapes .shape-2 {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

/* Caja de contenido azul con corte inclinado idéntico al referente */
.team-item .team-content-wrap {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  z-index: 3;
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 !important;
  background: none !important;
  display: block !important;
}

.team-item:hover .team-content-wrap {
  bottom: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.team-item .team-content-wrap .team-content {
  background: var(--color-primary, #1E6EE7) !important;
  padding: 45px 25px 25px 25px !important;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%) !important;
  text-align: left;
}

.team-item .team-content-wrap .team-content .title,
.team-item .team-content-wrap .team-content .title a {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
  text-decoration: none !important;
  display: block;
}

.team-item .team-content-wrap .team-content span {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  opacity: 0.95;
  display: block;
  line-height: 1.2;
}

/* Botón de Compartir y Redes Sociales */
.team-item .team-content-wrap .team-social {
  position: absolute;
  top: -18px;
  right: 25px;
  z-index: 5;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.team-item .team-content-wrap .team-social .expand {
  background-color: #ffffff !important;
  color: var(--color-primary, #1E6EE7) !important;
  font-size: 16px;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}

.team-item .team-content-wrap .team-social .expand:hover {
  background-color: #ffffff !important;
  color: var(--color-primary, #1E6EE7) !important;
  transform: scale(1.08);
}

.team-item .team-content-wrap .team-social .social-list {
  position: absolute;
  bottom: 55px;
  right: 0px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-item .team-content-wrap .team-social .social-list li {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}

.team-item .team-content-wrap .team-social .social-list li a {
  background-color: #ffffff;
  color: #071C3C;
  font-size: 15px;
  height: 46px;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.team-item .team-content-wrap .team-social .social-list li a:hover {
  background-color: var(--color-primary, #1E6EE7);
  color: #ffffff;
}

.team-item .team-content-wrap .team-social:hover {
  overflow: visible !important;
}

.team-item .team-content-wrap .team-social:hover .social-list li {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0);
}

/* 7. Proyectos & Testimonios & Carruseles Anti-Desbordamiento */
.project-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 120px 0;
}

.project-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.project-item .project-img {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.project-item .project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .project-item {
    height: 460px;
  }
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(0deg, rgba(7, 28, 60, 0.95) 0%, rgba(7, 28, 60, 0.75) 50%, transparent 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.project-content .title, .project-content .title a {
  color: var(--color-white) !important;
  font-size: 24px;
  margin-bottom: 6px;
  text-decoration: none;
}

.project-content span {
  color: #7AAFFF !important;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.project-content p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.project-carousel, .testi-carousel, .sponsor-carousel, .swiper {
  width: 100%;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative;
}

.project-carousel .swiper-wrapper,
.testi-carousel .swiper-wrapper {
  align-items: stretch !important;
}

.project-carousel .swiper-slide,
.testi-carousel .swiper-slide {
  height: auto !important;
  display: flex !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Tarjetas de Testimonios Homogéneas */
.testi-item {
  background-color: #ffffff;
  box-shadow: 0px 15px 41px rgba(13, 22, 39, 0.08);
  padding: 50px 40px;
  border-radius: 12px;
  border: 1px solid #EEF2F6;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.testi-item .testi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.testi-item .testi-top .testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-item .testi-top .testi-author img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-item .testi-top .testi-author .name {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0;
}

.testi-item .testi-top .testi-author .name span {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.testi-item p {
  color: #4A5568;
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .testi-item {
    padding: 30px 20px;
  }
  .testi-item p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Dots de desplazamiento idénticos al template original para el carrusel de testimonios */
.testi-carousel {
  padding-bottom: 60px !important;
  position: relative;
}

.testi-carousel .swiper-pagination {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.testi-carousel .swiper-pagination .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background-color: #191F29 !important;
  opacity: 1 !important;
  border-radius: 50% !important;
  cursor: pointer;
  margin: 0 10px !important;
  transition: all 0.3s ease;
  position: relative;
  box-sizing: content-box;
}

.testi-carousel .swiper-pagination .swiper-pagination-bullet:hover {
  background-color: #1E6EE7 !important;
}

.testi-carousel .swiper-pagination .swiper-pagination-bullet-active,
.testi-carousel .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 8px !important;
  height: 8px !important;
  background-color: #1E6EE7 !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  position: relative !important;
}

.testi-carousel .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active:before,
.testi-carousel .swiper-pagination .swiper-pagination-bullet-active:before {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  border: 1.5px solid #1E6EE7 !important;
  background-color: transparent !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.project-top {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.project-top .swiper-arrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-top .swiper-arrow .swiper-nav {
  background-color: #ffffff;
  color: #191F29;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease-in-out;
}

.project-top .swiper-arrow .swiper-nav i,
.project-top .swiper-arrow .swiper-nav svg {
  color: inherit;
  font-size: 18px;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.project-top .swiper-arrow .swiper-nav:hover {
  background-color: #1E6EE7;
  border-color: #1E6EE7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 110, 231, 0.25);
}

.project-top .swiper-arrow .swiper-nav:hover svg {
  stroke: #ffffff;
}

.project-carousel .swiper-slide {
  height: auto;
}

.swiper-slide {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.sponsor-wrap-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  padding: 20px 0;
}

.sponsor-wrap-grid .sponsor-item {
  flex: 0 0 auto;
  max-width: 160px;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.sponsor-wrap-grid .sponsor-item:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* 8. Formulario de Captura de Leads y Solicitud */
.request-section {
  position: relative;
  padding: 100px 0 0 0;
  background-color: #EBF3FF !important;
  overflow: hidden !important;
}

.request-section .bg-color {
  background-color: var(--color-white);
  width: 100%;
  height: 76px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.request-form-wrap {
  background: transparent;
  max-width: 530px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.request-form-wrap .form-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 22px 35px;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 0;
}

.request-form-wrap .request-form {
  background-color: var(--color-white);
  padding: 35px;
}

.request-img-wrap {
  position: relative;
  height: 665px;
}

.request-img-wrap .men {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  max-height: 600px;
  width: auto;
  object-fit: contain;
}

.request-img-wrap .bg-img {
  position: absolute;
  top: 76px;
  right: 0;
  height: 525px;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 16px !important; /* Prevención auto-zoom en iOS Safari */
  font-family: var(--font-body);
  transition: var(--transition-smooth);
  background-color: #FAFAFC;
}

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

.form-control.is-invalid {
  border-color: var(--color-accent) !important;
  background-color: #FFF5F5;
}

.form-group {
  margin-bottom: 18px;
}

.error-feedback {
  display: none;
  color: var(--color-accent);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

.form-control.is-invalid + .error-feedback {
  display: block;
}

/* 9. Pop-up Modal Reutilizable de Detalles (Obligatorio Keepdigitall) */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
}

.custom-modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto !important;
}

.custom-modal-backdrop.active .custom-modal-dialog {
  transform: translateY(0) scale(1);
}

.custom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100 !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.custom-modal-close:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.custom-modal-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 32px 32px;
}

.modal-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 110, 231, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 26px;
  color: var(--color-secondary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.modal-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 28px;
}

/* 10. Botón Flotante de WhatsApp Obligatorio */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: var(--transition-smooth);
  animation: wa-pulse 2s infinite ease-in-out;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* 11. Notificación Toast Flotante */
.toast-notification {
  position: fixed;
  bottom: 95px;
  right: 24px;
  background: #ffffff;
  color: var(--color-secondary);
  padding: 16px 22px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 99999;
}

.toast-notification.success {
  border-left-color: #10B981;
}

.toast-notification.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 12. Scroll Reveal 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.active {
  opacity: 1;
  transform: translateY(0);
}

/* 13. Adaptación Responsive Rigurosa (Skill responsive-master) */
@media (max-width: 1200px) {
  .hero-section .shapes,
  .hero-section .round-shape,
  .counter-section .shapes,
  .team-section .bg-shape {
    display: none !important;
  }
}

.about-img-wrap .shape {
  display: block !important;
}

.counter-item .icon .shape {
  display: block !important;
}

.header-logo .shape {
  display: block !important;
}

@media (max-width: 1024px) {
  .header-menu-wrap,
  nav.header-menu-wrap,
  .header .primary-header-inner .header-menu-wrap {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
  .header-actions, .header-right .header-btn, .header-social-links {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .hero-section .hero-mask-img {
    width: 45% !important;
    border-top-left-radius: 250px 350px !important;
    border-bottom-left-radius: 250px 350px !important;
  }
}

@media (max-width: 768px) {
  /* Regla 1 de responsive-master: ocultar header-actions secundarias en móviles para no desbordar */
  .header-actions, .header-right .header-btn, .header-social-links {
    display: none !important;
  }
  
  .middle-header {
    display: none !important;
  }
  
  .primary-header-inner {
    padding: 12px 0;
  }
  
  .hero-section {
    padding: 40px 0 50px 0 !important;
    min-height: auto !important;
    display: block !important;
  }
  
  .hero-content {
    padding: 0 0 20px 0 !important;
    max-width: 100% !important;
  }

  .hero-section .hero-mask-img {
    position: relative !important;
    width: 100% !important;
    height: 350px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    margin-top: 25px !important;
  }
  
  .hero-content .section-title {
    font-size: 2.2rem;
  }
  
  .request-form-wrap {
    padding: 28px 20px;
  }
  
  .hero-actions .btn, .hero-btn-wrap .btn, .bz-primary-btn {
    width: 100%;
  }

  .sponsor-wrap-grid {
    gap: 20px;
  }
  .sponsor-wrap-grid .sponsor-item {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float-btn {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   OPTIMIZACIÓN DE FOOTER Y BOTÓN CTA (ALTA LEGIBILIDAD Y ENLACES EN UNA LÍNEA)
   ========================================================================== */

/* 1. Botón CTA del Footer Superior (Alto Contraste y Legibilidad Impecable) */
.footer-top .section-heading .bz-primary-btn,
.footer-top .section-heading .footer-cta-btn {
  background-color: #ffffff !important;
  color: #0D1627 !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 32px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer-top .section-heading .bz-primary-btn svg,
.footer-top .section-heading .footer-cta-btn svg {
  stroke: #0D1627 !important;
  transition: transform 0.3s ease, stroke 0.3s ease !important;
}

.footer-top .section-heading .bz-primary-btn:hover,
.footer-top .section-heading .footer-cta-btn:hover {
  background-color: #1E6EE7 !important;
  color: #ffffff !important;
  border-color: #1E6EE7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(30, 110, 231, 0.4) !important;
}

.footer-top .section-heading .bz-primary-btn:hover svg,
.footer-top .section-heading .footer-cta-btn:hover svg {
  stroke: #ffffff !important;
  transform: translateX(4px) !important;
}

/* 2. Enlaces del Footer en Una Sola Línea (Especialidades y Enlaces Rápidos) */
.footer-widget .widget-title {
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  position: relative;
}

.footer-widget .footer-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-widget .footer-list li {
  margin-bottom: 14px !important;
}

.footer-widget .footer-list li:last-child {
  margin-bottom: 0 !important;
}

.footer-widget .footer-list li a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding-left: 20px !important;
  position: relative !important;
  transition: all 0.25s ease-in-out !important;
  text-decoration: none !important;
}

.footer-widget .footer-list li a:before {
  content: "\f061" !important;
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome" !important;
  font-weight: 900 !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: all 0.25s ease-in-out !important;
}

.footer-widget .footer-list li a:hover {
  color: #1E6EE7 !important;
  transform: translateX(3px) !important;
}

.footer-widget .footer-list li a:hover:before {
  color: #1E6EE7 !important;
  left: 3px !important;
}

/* 3. Distribución Equilibrada de Columnas en Footer */
@media (min-width: 992px) {
  .footer-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .footer-wrap .col-lg-3:first-child {
    flex: 0 0 27% !important;
    max-width: 27% !important;
  }
  .footer-wrap .col-lg-2 {
    flex: 0 0 18% !important;
    max-width: 18% !important;
  }
  /* Columna 3 (Especialidades): Ancho amplio para que ningún enlace se rompa */
  .footer-wrap .col-lg-3:nth-of-type(3) {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
  /* Columna 4 (Boletín): Espacio adecuado para el formulario */
  .footer-wrap .col-lg-4 {
    flex: 0 0 30% !important;
    max-width: 30% !important;
  }
}

/* 4. Formulario de Boletín Informativo Estilizado */
.footer-widget .footer-form .form-control {
  background-color: #232C3D !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  height: 52px !important;
  border-radius: 6px !important;
  padding: 12px 130px 12px 16px !important;
  transition: border-color 0.25s ease !important;
}

.footer-widget .footer-form .form-control:focus {
  border-color: #1E6EE7 !important;
  outline: none !important;
}

.footer-widget .footer-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.footer-widget .footer-form .submit {
  background-color: #1E6EE7 !important;
  color: #ffffff !important;
  border-radius: 0 6px 6px 0 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 0 18px !important;
  height: 100% !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.25s ease !important;
}

.footer-widget .footer-form .submit:hover {
  background-color: #1557b0 !important;
}

/* 5. Iconos de Redes Sociales en Footer */
.footer-widget .footer-social {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  list-style: none !important;
  margin-top: 20px !important;
}

.footer-widget .footer-social li a {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  color: #0D1627 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

.footer-widget .footer-social li a svg {
  fill: #0D1627 !important;
  width: 16px !important;
  height: 16px !important;
  transition: fill 0.3s ease, transform 0.3s ease !important;
}

.footer-widget .footer-social li a:hover {
  background-color: #1E6EE7 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(30, 110, 231, 0.4) !important;
}

.footer-widget .footer-social li a:hover svg {
  fill: #ffffff !important;
  transform: scale(1.1) !important;
}

/* 6. Pestañas de la Sección Sobre Nosotros / Compromiso (Texto Blanco en Botón Activo) */
.content-tab .nav-tabs .nav-link {
  font-family: var(--bz-ff-heading, var(--font-heading)) !important;
  background-color: var(--bz-color-grey-2, #F4F6F9) !important;
  color: var(--bz-color-heading-primary, #0D1627) !important;
  border-radius: 5px !important;
  border: none !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 30px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
  text-decoration: none !important;
}

.content-tab .nav-tabs .nav-link::after {
  display: none !important;
  content: none !important;
}

.content-tab .nav-tabs .nav-link:hover {
  background-color: #e5e9f0 !important;
  color: #0D1627 !important;
}

.content-tab .nav-tabs .nav-link.active,
.content-tab .nav-tabs .nav-link.active:focus,
.content-tab .nav-tabs .nav-link.active:hover,
.content-tab .nav-tabs .nav-item .nav-link.active {
  background-color: #1E6EE7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(30, 110, 231, 0.35) !important;
}



