/* ==========================================================================
   SEMIÓTICA | Learning Experience Design
   Estilos aislados exclusivos del Pie de Página (footer.css)
   ========================================================================== */

#global-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-block: 3rem 2rem;
  color: var(--ink-secondary);
}

/* Grilla de 3 columnas equilibradas */
#global-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 860px) {
  #global-footer .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Columna 1: Marca y síntesis institucional */
#global-footer .footer-brand-link,
#global-footer .footer-brand-link:visited {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none !important;
  margin-bottom: 0.85rem;
}

#global-footer .footer-brand-desc {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-secondary);
  text-align: left;
  hyphens: none;
  max-width: 38ch;
  margin: 0;
}

/* Títulos de columna */
#global-footer .footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  margin-top: 0;
  margin-bottom: 0.9rem;
}

/* Columna 2: Navegación limpia sin subrayados ni colores por defecto */
#global-footer .footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#global-footer .footer-nav-list a,
#global-footer .footer-nav-list a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-secondary);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

#global-footer .footer-nav-list a:hover,
#global-footer .footer-nav-list a:focus-visible {
  color: var(--accent-primary);
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Columna 3: Botón principal "Solicitar asesoramiento" */
#global-footer .footer-cta-btn,
#global-footer .footer-cta-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
  min-height: 46px;
  padding: 0.65rem 1rem;
  background-color: var(--tint-primary);
  border: 1.5px solid var(--accent-primary);
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--accent-primary);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#global-footer .footer-cta-btn:hover,
#global-footer .footer-cta-btn:focus-visible {
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  text-decoration: none !important;
}

/* Ubicación */
#global-footer .footer-location {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  text-align: left;
  hyphens: none;
  margin-top: 0.9rem;
  margin-bottom: 0.85rem;
}

/* Ficha institucional "Socio tecnológico: Aula Nexo" */
#global-footer .footer-partner-card,
#global-footer .footer-partner-card:visited {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
  padding: 0.6rem 0.95rem;
  background-color: var(--bg-subtle);
  border: 1px solid #E0E4E8;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#global-footer .footer-partner-card:hover,
#global-footer .footer-partner-card:focus-visible {
  background-color: var(--bg-surface);
  border-color: var(--accent-primary);
  text-decoration: none !important;
}

#global-footer .footer-partner-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

#global-footer .footer-partner-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

#global-footer .footer-partner-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 0.15rem;
}

/* Íconos de acción (flecha derecha y enlace externo) */
#global-footer .footer-action-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.15s ease;
}

#global-footer .footer-action-icon--arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

#global-footer .footer-cta-btn:hover .footer-action-icon--arrow,
#global-footer .footer-cta-btn:focus-visible .footer-action-icon--arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  transform: translateX(3px);
}

#global-footer .footer-action-icon--external {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

#global-footer .footer-partner-card:hover .footer-action-icon--external {
  transform: translate(2px, -2px);
}

/* Fila de 4 redes sociales (WhatsApp, LinkedIn, Instagram, YouTube) */
#global-footer .footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

#global-footer .footer-social-btn,
#global-footer .footer-social-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--bg-surface);
  border: 1px solid #E0E4E8;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#global-footer .footer-social-btn:hover,
#global-footer .footer-social-btn:focus-visible {
  background-color: var(--tint-primary);
  border-color: var(--accent-primary);
  text-decoration: none !important;
  transform: translateY(-1px);
}

#global-footer .footer-social-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#global-footer .footer-social-icon--whatsapp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3Cpath d='M9.5 9.5c.4 1.6 1.9 3.1 3.5 3.5l1.1-1.1c.3-.3.7-.3 1-.1l1.4.8c.4.2.5.7.3 1.1-.4.7-1.2 1.2-2 1.1-3-.3-5.8-3.1-6.1-6.1-.1-.8.4-1.6 1.1-2 .4-.2.9-.1 1.1.3l.8 1.4c.2.3.2.7-.1 1l-1.1 1.1z'/%3E%3C/svg%3E");
}

#global-footer .footer-social-icon--linkedin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

#global-footer .footer-social-icon--instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

#global-footer .footer-social-icon--youtube {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='4' ry='4'/%3E%3Cpolygon points='10 9 15 12 10 15 10 9'/%3E%3C/svg%3E");
}

/* Cierre legal y accesibilidad */
#global-footer .footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}