.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 6rem 0 1.5rem;
  position: relative;
  overflow: hidden;
  border-top: 5px solid #f7931d;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(247, 147, 29, 0.3),
    transparent
  );
}

/* Logo - Mejorado */
.footer-logo {
  position: relative;
  max-width: 180px;
  margin: 0 auto 3rem;
  text-align: center;
  z-index: 2;
}

.footer-logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: all 0.4s ease;
}

.footer-logo:hover img {
  transform: scale(1.05);
  filter: brightness(0) invert(0.85) sepia(1) saturate(5) hue-rotate(10deg);
}

/* Estructura en grid - Mejorada */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 400px);
  width: 100%;
  gap: 2.5rem;
  margin-top: 0;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

/* Secciones - Mejoradas */
.footer-section h3 {
  color: #f7931d;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #f7931d;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 22px;
}

.footer-section li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #f7931d;
  font-size: 1.2rem;
  top: -2px;
}

.footer-section a {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
  font-size: 1.05rem;
  position: relative;
}

.footer-section a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #f7931d;
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section a:hover::after {
  width: 100%;
}

/* Contacto específico */
.footer-section:nth-child(3) li::before {
  content: "✆";
  top: 0;
  font-size: 1rem;
}

.footer-section:nth-child(3) li:nth-child(2)::before {
  content: "✉";
}

/* ✅ FIX CORREO LARGO */
.footer-section li a[href^="mailto:"] {
  white-space: nowrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  display: inline-block;
}

/* Pie de página - Mejorado */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #aaa;
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  margin-top: 3rem;
}

.footer-bottom a {
  color: #f7931d;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: all 0.4s ease;
  position: relative;
  display: inline-block;
}

.footer-bottom a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(247, 147, 29, 0.8);
}

.footer-bottom a:hover::after {
  width: 100%;
}

/* Elementos decorativos */
.footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(247, 147, 29, 0.03) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(247, 147, 29, 0.03) 0%,
      transparent 20%
    );
  z-index: 1;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 5rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    padding: 1.2rem;
  }

  .footer-logo {
    max-width: 150px;
    margin-bottom: 2rem;
  }

  .footer-section li a[href^="mailto:"] {
    white-space: normal;
    word-break: break-word;
  }
}
