/* Enhanced Compact Footer Styles
   ================================================== */

/* CSS Variables for Theme Support */
:root {
  --footer-bg-dark: linear-gradient(135deg, #0a0e13 0%, #1a1f2e 100%);
  --footer-bg-light: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --footer-text-dark: #ffffff;
  --footer-text-light: #1a1a1a;
  --footer-text-muted-dark: rgba(255, 255, 255, 0.7);
  --footer-text-muted-light: rgba(26, 26, 26, 0.7);
  --footer-text-accent-dark: rgba(184, 1, 1, 0.9);
  --footer-text-accent-light: rgba(184, 1, 1, 0.8);
  --footer-border-dark: rgba(255, 255, 255, 0.1);
  --footer-border-light: rgba(0, 0, 0, 0.1);
  --footer-card-bg-dark: rgba(255, 255, 255, 0.05);
  --footer-card-bg-light: rgba(255, 255, 255, 0.8);
  --footer-shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.4);
  --footer-shadow-light: 0 15px 35px rgba(0, 0, 0, 0.15);
  --footer-accent-bg: rgba(184, 1, 1, 0.1);
  --footer-accent-border: rgba(184, 1, 1, 0.2);
  --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Footer Container */
.enhanced-footer {
  position: relative;
  background: var(--footer-bg-dark);
  color: var(--footer-text-dark);
  overflow: hidden;
  margin-top: 80px;
}

.light-theme .enhanced-footer {
  background: var(--footer-bg-light);
  color: var(--footer-text-light);
}

/* Footer Main Content */
.footer-main {
  padding: 40px 0 25px;
  position: relative;
}

.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--footer-border-dark), transparent);
}

.light-theme .footer-main::before {
  background: linear-gradient(90deg, transparent, var(--footer-border-light), transparent);
}

/* Footer Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1.5fr 1.5fr;
  gap: 30px;
  align-items: start;
}

/* Brand Section */
.footer-brand-section {
  max-width: 250px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.brand-logo {
  position: relative;
  flex-shrink: 0;
}

.logo-image {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(184, 1, 1, 0.3));
  transition: var(--footer-transition);
  border-radius: 8px;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  background: radial-gradient(circle, rgba(184, 1, 1, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: var(--footer-transition);
  pointer-events: none;
}

.brand-logo:hover .logo-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.brand-logo:hover .logo-image {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 20px rgba(184, 1, 1, 0.5));
}

.brand-info {
  flex: 1;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--footer-text-dark);
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light-theme .brand-title {
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--footer-text-accent-dark);
  margin: 0;
  font-weight: 500;
}

.light-theme .brand-tagline {
  color: var(--footer-text-accent-light);
}

.footer-description {
  margin-top: 10px;
}

.footer-description p {
  color: var(--footer-text-muted-dark);
  line-height: 1.4;
  margin: 0;
  font-size: 0.75rem;
}

.light-theme .footer-description p {
  color: var(--footer-text-muted-light);
}

/* Maps Section */
.footer-maps-section {
  min-width: 220px;
}

.maps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.map-item {
  background: var(--footer-card-bg-dark);
  border: 1px solid var(--footer-border-dark);
  border-radius: 8px;
  padding: 12px;
  transition: var(--footer-transition);
}

.map-item:hover {
  background: var(--footer-accent-bg);
  border-color: var(--footer-accent-border);
  transform: translateY(-2px);
}

.light-theme .map-item {
  background: var(--footer-card-bg-light);
  border-color: var(--footer-border-light);
}

.light-theme .map-item:hover {
  background: rgba(184, 1, 1, 0.05);
}

.map-location {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--footer-text-accent-dark);
  margin: 0 0 8px 0;
  text-align: center;
}

.light-theme .map-location {
  color: var(--footer-text-accent-light);
}

.map-item iframe {
  border-radius: 8px;
  transition: var(--footer-transition);
}

.map-item:hover iframe {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--footer-text-dark);
  margin: 0 0 18px 0;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--elkably-primary), transparent);
  border-radius: 1px;
}

.light-theme .section-title {
  color: var(--footer-text-light);
}

/* Links Section */
.footer-links-section {
  min-width: 180px;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.link-group {
  display: flex;
  flex-direction: column;
}

.group-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--footer-text-accent-dark);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.light-theme .group-title {
  color: var(--footer-text-accent-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--footer-text-muted-dark);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--footer-transition);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--elkably-primary);
  transition: var(--footer-transition);
}

.footer-links a:hover {
  color: var(--elkably-primary);
  padding-left: 15px;
}

.footer-links a:hover::before {
  width: 8px;
}

.light-theme .footer-links a {
  color: var(--footer-text-muted-light);
}

/* Contact Section */
.footer-contact-section {
  min-width: 200px;
  margin-left: -30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.1), rgba(184, 1, 1, 0.05));
  border-color: rgba(184, 1, 1, 0.3);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.2);
}

.light-theme .contact-item {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
  border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .contact-item:hover {
  background: linear-gradient(135deg, rgba(184, 1, 1, 0.08), rgba(184, 1, 1, 0.03));
  border-color: rgba(184, 1, 1, 0.2);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.15);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--elkably-primary), #d63384);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(184, 1, 1, 0.3);
  position: relative;
  z-index: 2;
}

.contact-icon i {
  color: white;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(184, 1, 1, 0.4);
}

.contact-item:hover .contact-icon i {
  transform: scale(1.1);
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--footer-text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-value {
  color: var(--footer-text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
}

.contact-value:hover {
  color: var(--elkably-primary);
  text-decoration: none;
  transform: translateX(4px);
}

.contact-item:hover .contact-label {
  opacity: 1;
  color: var(--elkably-primary);
}

.light-theme .contact-label {
  color: var(--footer-text-muted-light);
}

.light-theme .contact-value {
  color: var(--footer-text-light);
}

.light-theme .contact-item:hover .contact-label {
  color: var(--elkably-primary);
}

/* Social Section */
.footer-social-section {
  min-width: 180px;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--footer-transition);
}

.social-link:hover::before {
  left: 100%;
}

.social-link i {
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

.social-link.facebook {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
  color: white;
  border: 1px solid rgba(24, 119, 242, 0.3);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

.social-link.facebook i {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-link.instagram {
  background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045);
  color: white;
  border: 1px solid rgba(228, 64, 95, 0.3);
  box-shadow: 0 2px 8px rgba(228, 64, 95, 0.2);
}

.social-link.instagram i {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-link.linkedin {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
  color: white;
  border: 1px solid rgba(0, 119, 181, 0.3);
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
}

.social-link.linkedin i {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-link.youtube {
  background: linear-gradient(135deg, #ff0000, #ff4444);
  color: white;
  border: 1px solid rgba(255, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.social-link.youtube i {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-link.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: 1px solid rgba(37, 211, 102, 0.3);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.social-link.whatsapp i {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-link.snapchat {
  background: linear-gradient(135deg, #fffb00e6, #ffd900e2);
  color: #ffffff;
  border: 1px solid rgba(255, 252, 0, 0.3);
  box-shadow: 0 2px 8px rgba(255, 252, 0, 0.2);
}

.social-link.snapchat i {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link.facebook:hover {
  background: linear-gradient(135deg, #166fe5, #3b82f6);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #d63384, #e91e63, #ff9800);
  box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-link.linkedin:hover {
  background: linear-gradient(135deg, #005885, #0077b5);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-link.youtube:hover {
  background: linear-gradient(135deg, #cc0000, #ff0000);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-link.whatsapp:hover {
  background: linear-gradient(135deg, #1ea851, #25d366);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-link.snapchat:hover {
  background: linear-gradient(135deg, #fff700, #ffcc00);
  box-shadow: 0 8px 25px rgba(255, 252, 0, 0.4);
}

.social-link:hover i {
  transform: scale(1.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Newsletter Signup */
.newsletter-signup {
  background: var(--footer-card-bg-dark);
  border: 1px solid var(--footer-border-dark);
  border-radius: 12px;
  padding: 18px;
  transition: var(--footer-transition);
}

.newsletter-signup:hover {
  background: var(--footer-accent-bg);
  border-color: var(--footer-accent-border);
}

.light-theme .newsletter-signup {
  background: var(--footer-card-bg-light);
  border-color: var(--footer-border-light);
}

.light-theme .newsletter-signup:hover {
  background: rgba(184, 1, 1, 0.05);
}

.newsletter-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--footer-text-dark);
  margin: 0 0 12px 0;
}

.light-theme .newsletter-title {
  color: var(--footer-text-light);
}

.newsletter-form .input-group {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--footer-card-bg-dark);
  border: 1px solid var(--footer-border-dark);
}

.light-theme .newsletter-form .input-group {
  background: white;
  border-color: var(--footer-border-light);
}

.newsletter-form .form-control {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--footer-text-dark);
  padding: 10px 12px;
  font-size: 0.8rem;
  outline: none;
}

.newsletter-form .form-control::placeholder {
  color: var(--footer-text-muted-dark);
}

.light-theme .newsletter-form .form-control {
  color: var(--footer-text-light);
}

.light-theme .newsletter-form .form-control::placeholder {
  color: var(--footer-text-muted-light);
}

.btn-newsletter {
  background: linear-gradient(135deg, var(--elkably-primary), #d63384);
  border: none;
  color: white;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--footer-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-newsletter:hover {
  background: linear-gradient(135deg, #a00101, #b02a5b);
  transform: scale(1.05);
}

.btn-newsletter i {
  font-size: 0.8rem;
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--footer-border-dark);
  padding: 18px 0;
}

.light-theme .footer-bottom {
  background: rgba(0, 0, 0, 0.05);
  border-top-color: var(--footer-border-light);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright p {
  color: var(--footer-text-muted-dark);
  margin: 0;
  font-size: 0.8rem;
}

.light-theme .copyright p {
  color: var(--footer-text-muted-light);
}

.footer-legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-legal a {
  color: var(--footer-text-muted-dark);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--footer-transition);
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--elkably-primary);
  transition: var(--footer-transition);
}

.footer-legal a:hover {
  color: var(--elkably-primary);
}

.footer-legal a:hover::after {
  width: 100%;
}

.light-theme .footer-legal a {
  color: var(--footer-text-muted-light);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--elkably-primary), #d63384);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
  transition: var(--footer-transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 35px rgba(184, 1, 1, 0.4);
}

.back-to-top i {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.back-to-top-text {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer-main {
    padding: 50px 0 35px;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-brand-section {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-maps-section {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .maps-container {
    grid-template-columns: 1fr 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-main {
    padding: 45px 0 30px;
  }
}

@media (max-width: 768px) {
  .enhanced-footer {
    margin-top: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-main {
    padding: 40px 0 25px;
  }

  .footer-brand-section {
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .brand-title {
    font-size: 1.6rem;
  }

  .links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .contact-info {
    align-items: center;
  }

  .contact-item {
    max-width: 300px;
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 30px 0 15px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .logo-image {
    width: 35px;
    height: 35px;
  }

  .maps-container {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 280px;
  }

  .map-item {
    padding: 12px;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-item {
    padding: 12px;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .newsletter-signup {
    padding: 20px;
  }

  .footer-legal {
    gap: 15px;
  }

  .footer-legal a {
    font-size: 0.8rem;
  }
}

/* Animation Keyframes */
@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enhanced-footer {
  animation: footerFadeIn 0.8s ease-out;
}

/* Focus States for Accessibility */
.footer-links a:focus,
.contact-value:focus,
.footer-legal a:focus,
.social-link:focus,
.btn-newsletter:focus,
.back-to-top:focus {
  outline: 2px solid var(--elkably-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .enhanced-footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .back-to-top {
    display: none !important;
  }

  .social-links {
    display: none !important;
  }

  .newsletter-signup {
    display: none !important;
  }
}