/* Importar fuente Montserrat (similar a Museo Sans) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Fuente Codec Pro para toda la página */
* {
  font-family: 'Codec Pro', sans-serif !important;
}

/* Fuente específica para Atlantic Aerotools */
.navbar-caption {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.8rem !important;
}

/* Estilo para el icono de LinkedIn en el footer */
.social-row {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0px !important;
}

.social-row .soc-item {
  background: none !important;
  display: flex !important;
  justify-content: flex-start !important;
  width: auto !important;
}

.social-row .soc-item a {
  display: inline-flex !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-radius: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 1s ease !important;
  text-decoration: none !important;
  position: relative !important;
  z-index: 10 !important;
  padding: 0 !important;
  margin: 0 !important;
  animation: maraca-shake 2s ease-in-out infinite !important;
}

/* Efecto de sacudida tipo maraca */
@keyframes maraca-shake {
  0%, 8% {
    transform: rotate(0deg) translateX(0px);
  }
  12% {
    transform: rotate(-8deg) translateX(-3px);
  }
  14% {
    transform: rotate(8deg) translateX(3px);
  }
  16% {
    transform: rotate(-6deg) translateX(-2px);
  }
  18% {
    transform: rotate(6deg) translateX(2px);
  }
  20% {
    transform: rotate(-4deg) translateX(-1px);
  }
  22% {
    transform: rotate(4deg) translateX(1px);
  }
  24% {
    transform: rotate(-2deg) translateX(-0.5px);
  }
  26% {
    transform: rotate(2deg) translateX(0.5px);
  }
  28% {
    transform: rotate(-1deg) translateX(0px);
  }
  32%, 100% {
    transform: rotate(0deg) translateX(0px);
  }
}

.social-row .soc-item a:hover {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

.social-row .soc-item a .socicon {
  color: #000000 !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

.social-row .soc-item a:hover .socicon {
  color: #ffffff !important;
}

/* Ocultar el círculo de fondo de los iconos sociales */
.social-row .soc-item a::before {
  display: none !important;
}

/* Degradado personalizado para el navbar con humo */
.cid-uR9iRbJCeO nav.navbar.navbar-dropdown {
  background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 20%, #505050 40%, #696969 60%, #838383 80%, #9c9c9c 100%) !important;
  background-size: 300% 300% !important;
  animation: gradient-animation 6s ease infinite !important;
}

/* Animación para el degradado del navbar */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@-webkit-keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Estilos para los boxes de servicios */
.features4 .item.features-image {
  margin-bottom: 60px !important;
  padding: 0 30px !important;
}

.features4 .item-wrapper {
  position: relative;
  margin-bottom: 30px;
}

/* Cuadrito marrón en esquina inferior derecha */
.features4 .item-wrapper::after {
  content: '';
  position: absolute;
  bottom: 25px;
  right: -30px;
  width: 80px;
  height: 44px;
  background: linear-gradient(135deg, #722f37 0%, #5d252a 20%, #481c1e 40%, #331412 60%, #1e0b06 80%, #0a0202 100%);
  background-size: 400% 400%;
  animation: rectangle-smoke 4s ease infinite;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Por defecto visible */
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Animación de entrada desde la derecha solo cuando JS está habilitado */
.js-enabled .features4 .item-wrapper::after {
  transform: translateX(100px);
  opacity: 0;
}

/* Estado animado para los rectangulitos cuando aparecen */
.js-enabled .features4 .item.features-image.animate-service .item-wrapper::after {
  transform: translateX(0);
  opacity: 1;
}

/* Animación de humo para los rectángulos */
@keyframes rectangle-smoke {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Texto más pequeño para los párrafos de servicios */
.features4 .item-content .mbr-text {
  font-size: 1.1rem !important;
  line-height: 1.4 !important;
}

/* Línea separadora encima del footer */
.footer4 {
  border-top: 1px solid #d0d0d0;
  padding-top: 2rem;
}

/* Image container with frame effect */
.image-container {
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: scale(1.02);
}

.image-frame {
  transition: all 0.3s ease;
}

.image-container:hover .image-frame {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
  transform: scale(1.02);
}

/* Animación de humo para el fondo gris claro */
@keyframes smoke-effect {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Efecto zoom en hover para las tarjetas de galería */
.gallery2 .item.features-image .item-wrapper {
  transition: transform 0.3s ease !important;
  cursor: pointer !important;
}

.gallery2 .item.features-image .item-wrapper:hover {
  transform: scale(1.05) !important;
}

.gallery2 .item.features-image .item-wrapper:hover .item-img img {
  transform: scale(1.02) !important;
}

.gallery2 .item.features-image .item-img img {
  transition: transform 0.3s ease !important;
}

.gallery2 .item.features-image .item-wrapper:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Animación de entrada desde la izquierda para el marco del footer */
.image-container {
  transform: translateX(-100px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.image-container.animate-in {
  transform: translateX(0);
  opacity: 1;
}

/* Animación de entrada desde la derecha para la imagen principal */
.image-container .main-image {
  transform: translateX(100px);
  opacity: 0;
  transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s; /* delay de 0.2s */
}

.image-container.animate-in .main-image {
  transform: translateX(0);
  opacity: 1;
}

/* Mantener los efectos hover existentes */
.image-container.animate-in:hover {
  transform: translateX(0) scale(1.02);
}

.image-container.animate-in:hover .image-frame {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
  transform: scale(1.02);
}

/* Centrar el ícono de LinkedIn en pantallas pequeñas */
@media (max-width: 768px) {
  .social-row {
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  
  .social-row .soc-item {
    justify-content: center !important;
    margin: 0 auto !important;
  }
}

/* Efecto de niebla gris oscuro para los cuadros de contacto */
.contacts3 .card .card-wrapper {
  position: relative !important;
  background: linear-gradient(135deg, #6a6a6a 0%, #5a5a5a 25%, #4a4a4a 50%, #3a3a3a 75%, #2a2a2a 100%) !important;
  background-size: 400% 400% !important;
  animation: contact-fog 6s ease infinite !important;
  padding: 8px !important;
  padding-right: 0;
  margin-bottom: 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(100, 100, 100, 0.5) !important;
  overflow: hidden !important;
}

/* Agregar una capa adicional de niebla oscura */
.contacts3 .card .card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(120, 120, 120, 0.7) 0%, 
    rgba(80, 80, 80, 0.8) 25%, 
    rgba(100, 100, 100, 0.6) 50%, 
    rgba(60, 60, 60, 0.9) 75%, 
    rgba(90, 90, 90, 0.7) 100%);
  background-size: 300% 300%;
  animation: fog-overlay 8s ease infinite;
  pointer-events: none;
  z-index: 1;
}

/* Asegurar que el contenido esté por encima de la niebla */
.contacts3 .card .card-wrapper .image-wrapper,
.contacts3 .card .card-wrapper .text-wrapper {
  position: relative !important;
  z-index: 2 !important;
}

/* Hacer el texto más visible sobre el fondo oscuro */
.contacts3 .card .card-wrapper .text-wrapper h6,
.contacts3 .card .card-wrapper .text-wrapper p,
.contacts3 .card .card-wrapper .text-wrapper a {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Iconos más visibles */
.contacts3 .card .card-wrapper .image-wrapper .mbr-iconfont {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Efecto elegante y sutil para el título principal */
.header09 .mbr-section-title {
  color: #ffffff !important;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(255, 255, 255, 0.3),
    0 0 12px rgba(255, 255, 255, 0.2) !important;
  position: relative !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* Efecto profesional para el párrafo */
.header09 .mbr-text {
  color: #f1f3f4 !important;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 4px rgba(255, 255, 255, 0.1) !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.6 !important;
}

/* Efecto de subrayado en hover para los enlaces del navbar */
.navbar-nav .nav-link {
  position: relative !important;
  transition: all 0.3s ease !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Efecto de subrayado para Atlantic Aerotools */
.navbar-caption {
  position: relative !important;
  transition: all 0.3s ease !important;
}

.navbar-caption::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
  transition: width 0.3s ease;
}

.navbar-caption:hover::after {
  width: 100%;
}

/* Animación de niebla principal */
@keyframes contact-fog {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 75%;
  }
  50% {
    background-position: 100% 25%;
  }
  75% {
    background-position: 0% 75%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animación de capa de niebla superpuesta */
@keyframes fog-overlay {
  0% {
    background-position: 0% 0%;
    opacity: 0.6;
  }
  33% {
    background-position: 100% 50%;
    opacity: 0.8;
  }
  66% {
    background-position: 50% 100%;
    opacity: 0.7;
  }
  100% {
    background-position: 0% 0%;
    opacity: 0.6;
  }
}
