/* Estilos del Footer - Versión Asimétrica y Compacta */
.footer {
  background: linear-gradient(135deg, #4a7c59 0%, #6b8e7a 100%);
  border-top: 3px solid #8fb996;
  padding: 2rem 0 1.5rem 0 !important; /* Reducir padding vertical */
}

/* Espaciado asimétrico entre columnas */
.footer .col-lg-3:nth-child(1) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2.5rem;
}

.footer .col-lg-3:nth-child(2) {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer .col-lg-3:nth-child(3) {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer .col-lg-3:nth-child(4) {
  padding-left: 2.5rem;
}

/* Reducir márgenes de títulos */
.footer h6 {
  margin-bottom: 1rem !important;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Optimizar espaciado de la primera columna */
.footer-brand {
  margin-bottom: 2rem !important;
}

.footer-brand p {
  margin-bottom: 1.5rem !important;
  line-height: 1.4;
}

.footer-brand img {
  max-width: 180px;
  margin-bottom: 1rem !important;
}

.social-links {
  margin-bottom: 2rem !important;
}

.social-links h6 {
  margin-bottom: 0.75rem !important;
}

/* Optimizar espaciado de enlaces */
.footer-links li {
  margin-bottom: 0.5rem !important;
}

.footer-links a {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Optimizar galería */
.footer-gallery {
  margin-top: 0.5rem;
}

.footer-gallery .row {
  margin-top: 0;
}

/* Línea divisoria más sutil */
.border-verde {
  border-color: #19271c !important;
  border-width: 1px !important;
  margin: 2rem 0 1rem 0 !important;
  opacity: 0.6;
}

/* Copyright más compacto */
.footer .row:last-child {
  margin-top: 0.5rem;
}

.footer .text-muted {
  font-size: 0.85rem;
}

/* Efectos hover y transiciones */
.footer-brand img {
  transition: transform 0.3s ease;
}

.footer-brand img:hover {
  transform: scale(1.05);
}

.social-links .social-link {
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links .social-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

.footer-links a {
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: #ffffff !important;
  padding-left: 8px;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.footer-gallery .gallery-thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-gallery .gallery-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-gallery img {
  height: 80px;
  object-fit: cover;
  transition: all 0.3s ease;
  max-width: 120px;
  margin: 0 auto;
  display: block;
}

.footer-gallery .gallery-thumb:hover img {
  filter: brightness(1.1);
}

.hover-white:hover {
  color: #ffffff !important;
}

/* Estilos para el enlace de políticas */
.policy-link {
  font-weight: 500;
  border-left: 3px solid transparent;
  padding-left: 10px;
  transition: all 0.3s ease;
  position: relative;
  color: #ffffff !important;
}

.policy-link:hover {
  border-left-color: #8fb996;
  background-color: rgba(143, 185, 150, 0.1);
  padding-left: 15px;
  transform: translateX(5px);
}

.policy-link i {
  color: #8fb996;
  transition: all 0.3s ease;
}

.policy-link:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    text-align: center;
    padding: 1.5rem 0 1rem 0 !important;
  }
  
  .footer .col-lg-3 {
    padding: 0.5rem !important;
    border: none !important;
    margin-bottom: 1rem;
  }
  
  .footer-brand {
    margin-bottom: 1.5rem !important;
  }
  
  .social-links {
    margin-bottom: 1.5rem !important;
  }
  
  .border-verde {
    margin: 1.5rem 0 0.75rem 0 !important;
  }
  
  .footer-gallery .gallery-thumb img {
    height: 50px;
  }
  
  .social-links .d-flex {
    justify-content: center;
  }
  
  .policy-link {
    text-align: left;
    padding-left: 15px;
  }
  
  .policy-link:hover {
    padding-left: 20px;
  }
}

/* Animaciones */
.footer {
  animation: fadeInUp 0.8s ease-out;
}

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