html {
    scroll-behavior: smooth;
}

a:focus,
button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.appear-animation {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}


.header-logo-container {
    display: flex;
    align-items: center;
  }
  .header-logo {
    display: inline-flex;
    align-items: center;
  }

.line-container {
    position: relative;
    width: 100%;
    height: 100px; /* Ajusta según sea necesario */
    overflow: hidden;
}

.btn-contacto{
  border-radius: 50px !important;
}

.btn-contacto:hover{
    background-color: var(--primary) !important;
    transition: all 0.3s ease;
}

.line {
    position: absolute;
    width: 100%;
    height: 2px; /* Ajusta según sea necesario */
    background-color: #ffffff;
    animation: moveLine 2s linear infinite;
}

@keyframes moveLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.line-shadow-text {
    position: relative;
    display: inline-block;
    font-size: 1em; /* Ajusta según sea necesario */
}

.line-shadow-text::after {
    content: attr(data-shadow);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-shadow: 2px 2px 5px rgba(83, 83, 83, 0.1);
    z-index: -1;
}

.ticker-container {
    display: flex;
    align-items: center;
  }

.thumb-info-content {
    position: relative;
}

.thumb-info-content-inner {
    background-color: #fff;
    padding: 10px;
}

.line-shadow-text {
    position: relative;
    display: inline-block;
}

.card-title {
    white-space: nowrap;
}

[data-theme="dark"] .line-shadow-text::after {
color: white; /* Shadow color for dark theme */
}

.map {
    position: relative !important;
    margin-top: 20px;
}

#chartdiv {
    width: 100%;
    height: 500px; /* Ajusta la altura del mapa según sea necesario */
    float: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }
  
.info-card {
    display: none;
    position: absolute;
    float: right; /* Alinea la tarjeta de información a la derecha */
    width: 320px; /* Ajusta el ancho de la tarjeta de información */
    height: 400px; /* Asegúrate de que la altura coincida con la del mapa */
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    top: 7%;
    right: 2%;
}

.second-info-card{
    height: 150px;
    background-color: #fff;
    border-radius: 10px;
    position: absolute;
    display: flex;
    bottom: -30px;
    width: 300px;
    border: 1px solid #65D2BB;
}

.button-qh {
    border: 2px solid white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background-color: #fff;
    display: contents;
  }
  .company-slider img {
    width: 100px; /* Ajusta el tamaño de las imágenes según sea necesario */
    margin: 0 10px;
  }

.slick-list{
    padding: 100px;
}

.hovered-country {
    fill: #FF5733 !important; /* Cambia el color de relleno */
    stroke: #FFC300 !important; /* Cambia el color del borde */
    stroke-width: 2px !important; /* Cambia el grosor del borde */
    filter: drop-shadow(2px 4px 6px black); /* Agrega una sombra */
}

.nav-pills .nav-link {
    margin-right: 0; /* Elimina márgenes adicionales */
    padding: 10px 15px; /* Ajusta el padding */
}

.nav-pills .nav-item:last-child .nav-link {
    margin-right: 0 !important; /* Asegúrate de que el último elemento no tenga margen adicional */
}

.custom-list-container {
    width: 120%;
}

.form-group select {
  width: 100%;
  border: 1px solid rgba(163, 163, 163, 0.178);
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

@media screen and (max-width: 1000px) {
    .info-card {
        display: none;
        position: relative;
        width: 320px; /* Ajusta el ancho de la tarjeta de información */
        height: 400px; /* Asegúrate de que la altura coincida con la del mapa */
        z-index: 1000;
        background: white;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        top: 10vh;
        right: 0%;
    }
    #chartdiv {
        width: 100%;
        height: 500px; /* Ajusta la altura del mapa según sea necesario */
        float: none;
    }
    .servicios {
        font-size: 5rem !important;
    }
    .custom-list-container {
        width: 100%;
    }
    .title-mobile{
        text-align: center;
    }
}


@media screen and (max-width: 600px) {
    .servicios {
        font-size: 3rem !important;
    }
}

.mapa-shadow {
    filter: drop-shadow(0px 0px 10px rgba(0, 98, 255, 0)); /* Agrega una sombra */
}


/* Estilos para la seccion servicios */

.custom-list li::marker {
    list-style-type: circle !important;
    color: #65D2BB !important;
}


/* Estilos para la seccion hacemos */

.list-item {
    transition: all 0.3s ease;
}

.list-item.active {
    background-color: #0056b3;
    color: white;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#central-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0; /* Asegúrate de que esté por encima del canvas */
  width: 100px; /* Ajusta el tamaño según sea necesario */
  height: 100px;
  border-radius: 50%; /* Opcional: para que sea circular */
  box-shadow: 0 10px 10px rgba(0, 60, 255, 0.2);
}

#central-image img {
  width: 50%;
  height: 50%;
  position: relative;
  top: 25%;
  left: 25%;
  object-fit: cover;
}

#floating-sphere-container {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 0 auto;
  perspective: 1000px;
}

#wireframe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#floating-sphere {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.logo-item {
  position: absolute;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-container img {
  width: 80px;
  height: auto;
  border-radius: 8px;
  background: transparent;
}

/* Ajustes para pantallas medianas (tablets) */
@media (max-width: 768px) {
  #floating-sphere-container {
    width: 400px;
    height: 400px;
  }

  #central-image {
    width: 70px;
    height: 70px;
  }

  .logo-container img {
    width: 60px;
    height: auto;
  }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 480px) {
  #floating-sphere-container {
    width: 350px;
    height: 350px;
  }

  #central-image {
    width: 50px;
    height: 50px;
  }

  .logo-container img {
    width: 40px;
    height: auto;
  }
}

/* Sección de logos de clientes */
.client-logos-section {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos */
.client-logos-section::before,
.client-logos-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.client-logos-section::before {
  top: 40px;
  left: 40px;
  width: 160px;
  height: 160px;
  filter: blur(80px);
  opacity: 0.2;
  animation: fadeInGlobe 1s ease-out forwards;
}

.client-logos-section::after {
  bottom: 40px;
  right: 40px;
  width: 240px;
  height: 240px;
  background: rgba(72, 187, 120, 0.336);
  filter: blur(100px);
  opacity: 0.1;
  animation: fadeInGlobe 1s 0.3s ease-out forwards;
}

@keyframes fadeInGlobe {
  from { opacity: 0; }
  to { opacity: 0.6; }
}

/* Encabezado */
.header {
  text-align: center;
  margin-bottom: 48px;
}

.badge {
  display: inline-block;
  background-color: #1a39b1;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.5s ease-out forwards;
}

.header p {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.5s 0.2s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Esfera flotante */
.floating-sphere {
  position: relative;
  height: 600px;
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

/* Logos en la esfera */
.logo-item {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-out;
}

.logo-container {
  background-color: transparent;
  border-radius: 20px;
  padding: 12px;
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.2);
  z-index: 100;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Instrucción */
.instruction {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 28px;
  }
  
  .header p {
    font-size: 16px;
  }
  
  .floating-sphere {
    height: 500px;
  }
  .footer-logo-text {
    text-align: center;
  }
  .footer-title {
    text-align: center;
  }
  .footer-brand-content {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .floating-sphere {
    height: 400px;
  }
}

/* Footer Moderno y Minimalista */
.modern-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  margin-top: 4rem;
  border-radius: 10px;
}

.footer-main {
  padding: 3rem 0 2rem;
}

/* Branding */
.footer-brand {
  max-width: 400px;
}

.footer-logo-text {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 1.5rem;
}

.footer-description {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  padding: 0.75rem 1rem;
  background-color: #007bff;
  border-radius: 25px;
  display: inline-block;
}

.tagline-text {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
}

/* Títulos de sección */
.footer-title {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #112FA9, #65D2BB);
  border-radius: 1px;
}

/* Enlaces de navegación */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 1rem;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #65D2BB;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  color: #112FA9 !important;
  transform: translateX(0.25rem);
}

.footer-links a:hover::before {
  opacity: 1;
}

/* CTA Section */
.footer-cta {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.footer-cta-text {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Botones del Footer */
.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn-footer-primary,
.btn-footer-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-footer-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(17, 47, 169, 0.2);
}

.btn-footer-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(17, 47, 169, 0.3);
  color: white;
  background: var(--primary-300);
}

.btn-footer-secondary {
  background: transparent;
  color: #112FA9;
  border: 1px solid #e2e8f0;
}

.btn-footer-secondary:hover {
  background: #f8fafc;
  border-color: #112FA9;
  color: #112FA9;
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
}

/* Redes Sociales */
.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.social-label {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.125rem;
}

.social-link:hover {
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Bottom */
.footer-bottom {
  background: #1e293b00;
  padding: 1.5rem 0;
}

.copyright-text {
  color: #94a3b8;
  margin: 0;
  font-size: 0.875rem;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.legal-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: #65D2BB;
}

.separator {
  color: #475569;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-main {
    padding: 2rem 0 1.5rem;
  }
  
  .tagline-text{
    font-size: 1rem;
    font-weight: 600;
  }

  .footer-brand {
    text-align: center;
    margin-bottom: 2rem;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: auto;
  }

  .footer-links {
    margin-left: -15px !important;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-cta {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .footer-buttons {
    flex-direction: column;
  }
  
  .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .social-links {
    justify-content: flex-start;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .footer-cta-text {
    text-align: center;
  }
  
  .separator {
    display: none;
  }
}

@media (max-width: 576px) {
  .footer-brand {
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-cta {
    text-align: center;
  }
}

/* Animaciones sutiles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-brand,
.footer-links,
.footer-cta {
  animation: fadeInUp 0.6s ease-out;
}

.footer-cta {
  animation-delay: 0.2s;
}

/* Hover effects para toda la sección */
.footer-cta:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Header Moderno */
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header.header-is-sticky {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Header Background Effect */
.header-bg-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(17, 47, 169, 0.02) 0%, 
    rgba(101, 210, 187, 0.02) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Logo Section */
.header-logo-container {
  position: relative;
}

.logo-link {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: translateY(-1px);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(17, 47, 169, 0.1);
}

.logo-link:hover .logo-image {
  box-shadow: 0 4px 12px rgba(17, 47, 169, 0.2);
  transform: scale(1.05);
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header-logo-text {
  font-size: 1.5rem;
  font-weight: 600 !important;
  color: var(--primary) !important;
  margin: 0;
  transition: color 0.2s ease;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
  margin-top: 0.125rem;
  letter-spacing: 0.5px;
}

.logo-link:hover .header-logo-text {
  color: #112FA9;
}

/* ===== MEJORAS MODERNAS PARA EL HEADER ===== */

/* Efectos mejorados para la navegación */
#header {
  background: rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

#header.header-is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  background: rgba(255, 255, 255, 0.95) !important;
  transition: box-shadow 0.2s, background 0.2s;
}

/* Mejoras para los enlaces de navegación */
.nav-pills .nav-link {
  position: relative;
  color: var(--primary) !important;
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  border-radius: 1rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin: 0 0.25rem;
  background: transparent;
  border: none;
}

/* Efecto de fondo sutil en hover */
.nav-pills .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(17, 47, 169, 0.06), rgba(101, 210, 187, 0.06));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.5rem;
  z-index: 1;
}

/* Línea animada debajo del enlace */
.nav-pills .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #112FA9, #65D2BB);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

/* Texto del enlace */
.nav-pills .nav-link span,
.nav-pills .nav-link {
  position: relative;
  z-index: 3;
}

/* Estados hover */
.nav-pills .nav-link:hover {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.nav-pills .nav-link:hover::before {
  opacity: 1;
}

.nav-pills .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1) !important;
}

/* Estado activo mejorado */
.nav-pills .nav-link.active {
  color: white !important;
  box-shadow: 0 4px 15px rgba(17, 47, 169, 0.1) !important;
  transform: translateY(-1px);
  border-radius: 20px !important;
  margin: 0 1rem !important;
}

.nav-pills .nav-link.active::before {
  background: rgba(1, 255, 115, 0.05) !important;
  opacity: 0.7 !important;
}

.nav-pills .nav-link.active::after {
  background: white;
  transform: translateX(-50%) scaleX(1);
  height: 2px;
}

/* Efecto de brillo sutil en el enlace activo */
.nav-pills .nav-link.active::before {
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent);
  animation: shimmerSubtle 3s infinite;
}

@keyframes shimmerSubtle {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Mejoras para el botón CTA */
.btn-contacto {
  position: relative;
  background: linear-gradient(135deg, var(--tertiary), var(--tertiary)) !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(17, 47, 169, 0.2);
}

/* Efecto de onda sutil en el botón */
.btn-contacto::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-contacto:hover::before {
  width: 300px;
  height: 300px;
}

.btn-contacto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(17, 47, 169, 0.35);
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
}

/* Efecto de brillo deslizante sutil */
.btn-contacto::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.5s;
}

.btn-contacto:hover::after {
  left: 100%;
}

/* Mejoras para el logo */
.header-logo-container {
  transition: transform 0.3s ease;
}

.header-logo-container:hover {
  transform: scale(1.01);
}

.header-logo img {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.header-logo-text {
  transition: color 0.3s ease;
}

.header-logo-container:hover .header-logo-text {
  color: var(--primary) !important;
}

/* Mejoras para el botón del menú móvil */
.header-btn-collapse-nav {
  position: fixed;
  background: var(--primary) !important;
  border: 2px solid #e2e8f0 !important;
  color: #64748b !important;
  width: 44px;
  height: 44px;
  border-radius: 50px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  padding: 1.5rem 2rem !important;
}

.header-btn-collapse-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(17, 47, 169, 0.08), rgba(101, 210, 187, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-btn-collapse-nav:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 47, 169, 0.12);
}

.header-btn-collapse-nav:hover::before {
  opacity: 1;
}

.header-btn-collapse-nav i {
  position: relative;
  color: white;
  z-index: 2;
  transition: transform 0.3s ease;
  line-height: 0 !important;
  justify-content: center !important;
  display: flex;
}

.header-btn-collapse-nav:hover i {
  transform: scale(1.05);
}

/* Animación de entrada del header */
#header {
  animation: slideInFromTop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos de micro-interacciones */
.nav-pills .nav-link:active {
  transform: translateY(0) scale(0.98);
}

.btn-contacto:active {
  transform: translateY(0) scale(0.98);
}

/* Mejoras para accesibilidad */
.nav-pills .nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(17, 47, 169, 0.1);
}

.btn-contacto:focus {
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(17, 47, 169, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .nav-pills .nav-link {
    margin: 0 0.125rem;
    padding: 0.625rem 1rem !important;
  }
  .nav-link {
    margin-left: 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .header-logo-text {
    display: none;
  }
  
  .btn-contacto {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

/* Efecto de carga progresiva */
.nav-pills .nav-item {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.nav-pills .nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-pills .nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-pills .nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-pills .nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-pills .nav-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de pulso muy sutil para el enlace activo */
.nav-pills .nav-link.active {
  animation: subtlePulse 4s infinite;
}

@keyframes subtlePulse {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(17, 47, 169, 0.25); 
  }
  50% { 
    box-shadow: 0 4px 20px rgba(17, 47, 169, 0.3); 
  }
}

/* Mejoras para el offcanvas móvil */
.offcanvas-start {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-close {
  background: rgba(17, 47, 169, 0.08);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background: rgba(17, 47, 169, 0.15);
  transform: scale(1.05);
}

/* Estilos para el botón de cierre glass del offcanvas */
.offcanvas-close-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.12), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.32);
  cursor: pointer;
  transition: background 0.25s, border 0.25s, box-shadow 0.25s;
  outline: none;
  margin-left: auto;
  margin-right: 0;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.offcanvas-close-glass svg {
  display: block;
}

.offcanvas-close-glass:focus {
  box-shadow: 0 0 0 3px rgba(28, 57, 224, 0.18);
}

.offcanvas-close-glass:hover {
  background: rgba(28, 224, 142, 0.25);
  border-color: rgba(31, 28, 224, 0.5);
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .nav-pills .nav-link,
  .btn-contacto,
  .header-logo-container,
  .header-btn-collapse-nav {
    transition: none;
    animation: none;
  }
  
  .nav-pills .nav-link::after,
  .nav-pills .nav-link::before,
  .btn-contacto::before,
  .btn-contacto::after {
    transition: none;
  }
}

/* Efecto de glassmorphism sutil para el header */
#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(17, 47, 169, 0.01) 0%, 
    rgba(101, 210, 187, 0.01) 100%);
  pointer-events: none;
  z-index: -1;
}

.offcanvas {
  border-radius: 0 20px 0 0;
}

.offcanvas-header {
  border-radius: 0 20px 0 0;
}

/* Estilos para el botón scroll-to-top */
#scrollToTopGlass {
  position: fixed;
  right: 2.2rem;
  bottom: 2.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 1200;
  cursor: pointer;
  outline: none;
  padding: 0;
}

#scrollToTopGlass svg {
  display: block;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

#scrollToTopGlass.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollToTopGlass:not(.show) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.98);
}

#scrollToTopGlass:focus {
  box-shadow: 0 0 0 3px rgba(0,123,255,0.18);
}

#scrollToTopGlass:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
  #scrollToTopGlass {
    right: 1.1rem;
    bottom: 1.1rem;
    width: 44px;
    height: 44px;
  }
  #scrollToTopGlass svg {
    width: 22px;
    height: 22px;
  }
}