/* ===== Scroll Animations ===== */
.anim-up,
.anim-left,
.anim-right,
.anim-zoom,
.anim-drop {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Hidden states */
.anim-up    { transform: translateY(40px); }
.anim-left  { transform: translateX(-50px); }
.anim-right { transform: translateX(50px); }
.anim-zoom  { transform: scale(0.92); }
.anim-drop  { transform: translateY(-45px); }

/* Visible (triggered by IntersectionObserver) */
.anim-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for grids */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.25s; }
.anim-delay-3 { transition-delay: 0.4s; }
.anim-delay-4 { transition-delay: 0.55s; }
.anim-delay-5 { transition-delay: 0.7s; }

/* ===== DBT cards: subtle interactivity ===== */
.dbt-card {
  border-left: 3px solid transparent;
  border-radius: 4px;
  padding: 18px 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease,
              border-color 0.35s ease, background-color 0.35s ease,
              opacity 0.8s ease;
}

.dbt-card:hover {
  transform: translateY(-4px);
  background-color: rgba(0, 0, 0, 0.02);
  border-left-color: #00b3fe;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.dbt-card h4,
.dbt-card p {
  transition: color 0.35s ease;
}

.dbt-card:hover h4 {
  color: #00b3fe;
}

.dbt-card:hover p {
  color: #000;
}

/* ===== Footer: subtle interactivity ===== */
/* Animated underline on footer nav links */
.w3l_footer_nav li a {
  position: relative;
  transition: color 0.3s ease;
}

.w3l_footer_nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #00b3fe;
  transition: width 0.3s ease;
}

.w3l_footer_nav li a:hover::after {
  width: 100%;
}

/* Social buttons lift slightly on hover */
.social_agileinfo .social-button {
  transition: transform 0.3s ease;
}

.social_agileinfo .social-button:hover {
  transform: translateY(-4px);
}

/* ===== Contacto: form interactivity ===== */
/* Campos: realce suave al enfocar/hover */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
              transform 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form textarea:hover {
  border-color: #00b3fe;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #00b3fe;
  box-shadow: 0 0 0 3px rgba(0, 179, 254, 0.18);
  transform: translateY(-2px);
  outline: none;
}

/* Boton ENVIAR: leve elevacion y cambio de color */
.contact-form input[type="submit"] {
  transition: transform 0.3s ease, background-color 0.3s ease,
              box-shadow 0.3s ease;
}

.contact-form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 179, 254, 0.28);
}

/* Bloques de info de contacto (Direccion/Telefono/Correo): subrayado del titulo */
.map-wthree-right h4 {
  transition: color 0.3s ease;
}

.map-wthree-right h4:hover {
  color: #00b3fe;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .anim-up,
  .anim-left,
  .anim-right,
  .anim-zoom,
  .anim-drop {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
