/* Footer Styles for Alunasa Website */
.site-footer {
  --footer-bg: #0a1622;
  --footer-text: #f8f9fa;
  --footer-link: #e0e0e0;
  --footer-link-hover: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-accent: var(--brand-blue);
  --footer-bottom-bg: rgba(0, 0, 0, 0.2);

  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--font-body);
  position: relative;
  z-index: 10;
}

/* Main Footer Area */
.footer-main {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(50, 50, 117, 0.1) 0%,
    rgba(10, 22, 34, 0) 70%
  );
  z-index: 0;
  border-radius: 50%;
}

.footer-main::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(50, 50, 117, 0.08) 0%,
    rgba(10, 22, 34, 0) 70%
  );
  z-index: 0;
  border-radius: 50%;
}

/* Logo Styling */
.footer-logo-container {
  margin-bottom: 20px;
}

.footer-logo {
  height: 85px;
  width: auto;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* Contact Information */
.footer-contact-info {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.footer-contact-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.footer-contact-info i {
  margin-right: 10px;
  color: var(--footer-accent);
}

.footer-contact-info a {
  color: var(--footer-link);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact-info a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

/* Footer Titles */
.footer-title {
  color: var(--footer-text);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  z-index: 1;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--footer-accent),
    rgba(50, 50, 117, 0.3)
  );
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: "›";
  margin-right: 8px;
  color: var(--footer-accent);
  font-size: 1.2rem;
  line-height: 0;
  position: relative;
  top: 2px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Button */
.btn-contactar {
  background-color: var(--footer-accent);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 10px;
  /* Mobile touch improvements */
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  min-height: 44px;
  min-width: 44px;
  position: relative;
  z-index: 10;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.btn-contactar:hover,
.btn-contactar:focus,
.btn-contactar:active {
  background-color: #2a2a7a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

/* Mobile specific button improvements */
@media (max-width: 768px) {
  .btn-contactar {
    padding: 12px 30px;
    font-size: 1rem;
    min-height: 48px;
    margin: 20px auto;
    display: block;
    width: fit-content;
    touch-action: manipulation;
  }

  .btn-contactar:hover {
    transform: none;
  }

  .btn-contactar:active {
    background-color: #1a1a5a;
    transform: scale(0.98);
  }
}

/* Social Links */
.footer-social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--footer-accent);
  color: white;
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  background-color: var(--footer-bottom-bg);
  padding: 20px 0;
  border-top: 1px solid var(--footer-border);
  position: relative;
  z-index: 1;
}

.copyright-text {
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-link {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-bottom-link:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .footer-main {
    padding: 50px 0 30px;
  }

  .footer-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 40px 0 20px;
  }

  .footer-logo {
    height: 100px;
    margin: 0 auto 25px;
    display: block;
  }

  .footer-title {
    margin-top: 20px;
    text-align: center;
  }

  .footer-contact-info {
    text-align: center;
  }

  .footer-contact-info p {
    justify-content: center;
  }

  .footer-links {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 10px;
  }

  .footer-cta {
    text-align: center;
  }

  /* Center ventas content and contact button */
  .col-lg-4.col-md-12 {
    text-align: center;
  }

  .col-lg-4.col-md-12 p {
    margin-left: auto;
    margin-right: auto;
    max-width: 280px;
  }

  .btn-contactar {
    margin: 15px auto;
    display: inline-block;
  }
}

@media (max-width: 576px) {
  .footer-main {
    padding: 30px 0 15px;
  }

  .footer-logo {
    height: 85px;
  }

  .footer-social-links {
    justify-content: center;
  }

  .footer-contact-info p {
    font-size: 0.9rem;
  }

  .footer-links li {
    margin-bottom: 12px;
  }
}
