/* Footer Styles - Two Perfect Squares Design */
#footer {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  padding: 0;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1) 0%,
    rgba(255, 0, 212, 0.05) 50%,
    rgba(0, 255, 136, 0.1) 100%
  );
  z-index: 0;
}

.footer-container {
  max-width: 100vw;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  display: flex;
  height: 45vh;
  min-height: 450px;
}

.footer-content {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Side - Contact Info (Perfect Square) */
.footer-left {
  flex: 1;
  width: 50%;
  height: 100%;
  padding: 60px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  width: 192px;
  height: 49px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 25px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 45px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
    var(--gradient-accent) border-box;
}

.social-link:hover {
  background: var(--accent-cyan);
  color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.social-link.instagram {
  background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
    linear-gradient(135deg, #00ff88 0%, #00d9ff 100%) border-box;
}

.social-link.facebook {
  background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
    linear-gradient(135deg, #ff00d4 0%, #00d9ff 100%) border-box;
}

.social-link.linkedin {
  background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
    linear-gradient(135deg, #ff00d4 0%, #00d9ff 100%) border-box;
}

.footer-location {
  margin-bottom: 30px;
}

.footer-location h4 {
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.footer-location p {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

.footer-contact {
  margin-bottom: 30px;
}

.footer-contact h4 {
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.footer-contact p {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(
      90deg,
      var(--accent-pink) 0%,
      var(--accent-cyan) 100%
    )
    1;
  max-width: 1000%;
}

.footer-nav a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.nav-separator {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
}

.footer-copyright {
  margin-top: auto;
}

.footer-copyright p {
  color: var(--text-white);
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

/* Right Side - Image (Perfect Square) */
.footer-right {
  flex: 1;
  width: 50%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0;
  border-radius: 0 !important;
  border: none;
  overflow: hidden;
}

.footer-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  border-radius: 0 !important;
  border: none;
}

.footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  border: none;
  outline: none;
  clip-path: none;
}

/* Regla específica para asegurar que la imagen del footer sea cuadrada */
#footer .footer-right .footer-image img {
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  clip-path: none !important;
  shape-outside: none !important;
}

/* Square Logo Overlay - Bottom Right */
.footer-logo {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 2;
}

.square-logo {
  width: 80px;
  height: 80px;
  background: rgba(0, 217, 255, 0.9);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.square-logo:hover {
  background: var(--accent-cyan);
  transform: scale(1.05);
}

.square-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-container {
    height: 45vh;
    min-height: 450px;
  }

  .footer-left {
    padding: 50px 40px;
  }

  .footer-address p,
  .footer-contact p {
    font-size: 28px;
  }

  .square-logo {
    width: 70px;
    height: 70px;
  }

  .square-logo img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    height: auto;
    min-height: 40vh;
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    height: 100%;
  }

  .footer-left {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    order: 1;
    padding: 40px 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    display: none;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    width: 160px;
    height: 40px;
    padding: 0;
    font-size: 12px;
    line-height: 36px;
  }

  .footer-location {
    text-align: center;
    margin-bottom: 25px;
  }

  .footer-location p,
  .footer-contact p {
    font-size: 14px;
    text-align: center;
  }

  .footer-location h3,
  .footer-contact h4 {
    font-size: 14px;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
    margin-bottom: 25px;
  }

  .footer-nav {
    max-width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-copyright p {
    text-align: center;
  }

  .footer-nav a {
    font-size: 15px;
  }

  .footer-logo {
    bottom: 20px;
    right: 20px;
  }

  .square-logo {
    width: 60px;
    height: 60px;
  }

  .square-logo img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .footer-left {
    padding: 30px 20px;
    height: 50vh;
    min-height: 250px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    display: none;
  }

  .social-links {
    gap: 8px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .social-link {
    width: 140px;
    height: 35px;
    padding: 0;
    font-size: 11px;
    line-height: 31px;
  }

  .footer-location {
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-location h4,
  .footer-contact h4 {
    font-size: 15px;
    text-align: center;
  }

  .footer-location p,
  .footer-contact p {
    font-size: 14px;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-nav {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-copyright p {
    text-align: center;
  }

  .footer-nav {
    gap: 3px;
  }

  .footer-nav a {
    font-size: 14px;
  }

  .footer-copyright {
    font-size: 14px;
  }

  .footer-logo {
    bottom: 15px;
    right: 15px;
  }

  .square-logo {
    width: 50px;
    height: 50px;
  }

  .square-logo img {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 360px) {
  .footer-left {
    padding: 25px 15px;
    height: 50vh;
    min-height: 220px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    height: 50vh;
    min-height: 220px;
  }

  .social-links {
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .social-link {
    width: 120px;
    height: 30px;
    padding: 0;
    font-size: 10px;
    line-height: 26px;
  }

  .footer-location {
    text-align: center;
    margin-bottom: 15px;
  }

  .footer-location p,
  .footer-contact p {
    font-size: 12px;
    text-align: center;
  }

  .footer-location h4,
  .footer-contact h4 {
    font-size: 14px;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
    margin-bottom: 15px;
  }

  .footer-nav {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-copyright p {
    text-align: center;
  }

  .footer-nav a {
    font-size: 14px;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .square-logo {
    width: 45px;
    height: 45px;
  }

  .square-logo img {
    width: 30px;
    height: 30px;
  }
}
