/* ============================================================
   Footer-01 Styles - Premium 4-Column Dark Corporate Footer
   ============================================================ */

.footer-corporate {
  padding: 90px 24px 45px 24px;
  background-color: var(--backgroundAlt, #f5f5f5); /* Fondo gris claro adaptativo */
  color: var(--text, #4a4a4a); /* Texto adaptativo */
  border-top: 1px solid var(--border, #e0e0e0);
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* Brand Column */
.brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.f-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* Control de visibilidad del logo positivo/negativo según el tema */
.footer-logo-img.logo-pos {
  display: block;
}
.footer-logo-img.logo-neg {
  display: none;
}

/* En contenedores tema2 (oscuros), ocultar positivo y mostrar negativo */
.tema2 .footer-logo-img.logo-pos {
  display: none;
}
.tema2 .footer-logo-img.logo-neg {
  display: block;
}

.f-logo-text {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary, #0d0d0d);
}

.f-desc {
  color: var(--text, #4a4a4a);
  line-height: 1.6;
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
}

/* Social Icon Buttons */
.f-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text, #4a4a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, #e0e0e0);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

/* En tema2, usar colores de fondo claros para contraste */
.tema2 .social-icon-btn {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-icon-btn:hover {
  background-color: var(--primary, #f21d56);
  color: var(--bg);
  border-color: var(--primary, #f21d56);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--primary, #f21d56) 30%, transparent);
}

/* General Footer Column */
.footer-col h4 {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--secondary, #0d0d0d); /* Títulos de columna adaptativos */
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary, #f21d56);
}

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

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

.footer-links a {
  text-decoration: none;
  color: var(--text, #4a4a4a);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary, #f21d56);
  padding-left: 4px;
}

/* Contact Column */
.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text, #4a4a4a);
}

.contact-icon {
  color: var(--primary, #f21d56);
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-contact-info a {
  color: var(--text, #4a4a4a);
  text-decoration: none;
  transition: color 0.25s ease;
  word-break: break-all;
}

.footer-contact-info a:hover {
  color: var(--primary, #f21d56);
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border, #e0e0e0);
  padding-top: 30px;
  text-align: center;
  color: var(--textSecondary, #9a9a9a);
  font-size: 0.85rem;
}

/* En tema2, ajustar los bordes y textos del fondo del footer */
.tema2.footer-corporate {
  border-top: 1px solid var(--border);
}
.tema2 .footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--textSecondary);
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .footer-cols {
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .footer-corporate {
    padding: 50px 20px 30px 20px;
  }
  .footer-cols {
    gap: 32px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .footer-corporate {
    padding: 40px 16px 24px 16px;
  }
  
  .footer-cols {
    gap: 24px;
    margin-bottom: 30px;
  }

  .footer-col h4 {
    margin-bottom: 14px;
  }

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

  .footer-contact-info li {
    margin-bottom: 10px;
  }

  .f-socials {
    margin-top: 16px;
  }
  
  .f-desc {
    max-width: 100%;
    margin-top: 10px;
  }
  
  .footer-bottom {
    padding-top: 20px;
  }
}