/* ==========================================================================
   SEMIÓTICA | Learning Experience Design
   Estilos aislados exclusivos del Pie de Página — Zócalo Profundo (footer.css)
   ========================================================================== */

#global-footer {
  position: relative;
  z-index: 20;
  background-color: var(--accent-primary);
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px 18px 0 0;
  box-shadow:
    0 -12px 24px -10px rgba(19, 66, 58, 0.24),
    0 -4px 10px -4px rgba(19, 66, 58, 0.12);
  padding-block: 2.25rem 1.35rem;
  color: rgba(255, 255, 255, 0.88);
}

#global-footer :focus-visible {
  outline: 3px solid var(--bg-surface);
  outline-offset: 3px;
  box-shadow: none;
}

/* Grilla principal compacta de 3 columnas */
#global-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-bottom: 1.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 860px) {
  #global-footer .footer-grid {
    grid-template-columns: 1.35fr 0.75fr 1.05fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Columna 1: Marca e identidad invertida */
#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.65rem;
}

#global-footer .brand-link__name {
  color: var(--bg-surface);
}

#global-footer .brand-accent {
  color: #F5CCD4;
}

#global-footer .brand-link__descriptor {
  color: var(--tint-primary);
}

#global-footer .footer-brand-desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  hyphens: none;
  max-width: 40ch;
  margin: 0;
}

/* Títulos de columna */
#global-footer .footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-surface);
  margin-top: 0;
  margin-bottom: 0.7rem;
}

/* Columna 2: Navegación compacta */
#global-footer .footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#global-footer .footer-nav-list a,
#global-footer .footer-nav-list a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  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(--bg-surface);
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Columna 3: Acciones apiladas hermanadas */
#global-footer .footer-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 280px;
}

/* Botón primario invertido: Blanco sólido con texto Verde Abeto */
#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%;
  min-height: 46px;
  padding: 0.6rem 1rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--bg-surface);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--accent-primary);
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#global-footer .footer-cta-btn:hover,
#global-footer .footer-cta-btn:focus-visible {
  background-color: var(--tint-primary);
  border-color: var(--tint-primary);
  color: var(--accent-primary-hover);
  text-decoration: none !important;
}

/* Botón secundario hermano: Aula Nexo (misma geometría, peso y tipografía) */
#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%;
  min-height: 46px;
  padding: 0.6rem 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--bg-surface);
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, 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(--bg-surface);
  color: var(--accent-primary);
  text-decoration: none !important;
}

/* Íconos direccionales de acción (trazo unificado de 2px) */
#global-footer .footer-action-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}

#global-footer .footer-cta-btn:hover .footer-action-icon--arrow {
  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='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
}

#global-footer .footer-partner-card:hover .footer-action-icon--external,
#global-footer .footer-partner-card:focus-visible .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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
  transform: translate(2px, -2px);
}

/* Fila compacta de 4 redes sociales con geometría unificada */
#global-footer .footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

#global-footer .footer-social-btn,
#global-footer .footer-social-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  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(--bg-surface);
  border-color: var(--bg-surface);
  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='%23FFFFFF' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.65-3.8a9 9 0 1 1 3.4 2.9L3 21'/%3E%3Cpath d='M9 10a.5.5 0 0 0 1 0V9a.5.5 0 0 0-1 0v1a5 5 0 0 0 5 5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1'/%3E%3C/svg%3E");
}

#global-footer .footer-social-btn:hover .footer-social-icon--whatsapp,
#global-footer .footer-social-btn:focus-visible .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='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.65-3.8a9 9 0 1 1 3.4 2.9L3 21'/%3E%3Cpath d='M9 10a.5.5 0 0 0 1 0V9a.5.5 0 0 0-1 0v1a5 5 0 0 0 5 5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1'/%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='%23FFFFFF' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cline x1='8' y1='11' x2='8' y2='16'/%3E%3Cline x1='8' y1='8' x2='8' y2='8.01'/%3E%3Cpath d='M12 16v-5'/%3E%3Cpath d='M16 16v-3a2 2 0 1 0-4 0'/%3E%3C/svg%3E");
}

#global-footer .footer-social-btn:hover .footer-social-icon--linkedin,
#global-footer .footer-social-btn:focus-visible .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='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cline x1='8' y1='11' x2='8' y2='16'/%3E%3Cline x1='8' y1='8' x2='8' y2='8.01'/%3E%3Cpath d='M12 16v-5'/%3E%3Cpath d='M16 16v-3a2 2 0 1 0-4 0'/%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='%23FFFFFF' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cline x1='16.5' y1='7.5' x2='16.51' y2='7.5'/%3E%3C/svg%3E");
}

#global-footer .footer-social-btn:hover .footer-social-icon--instagram,
#global-footer .footer-social-btn:focus-visible .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='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cline x1='16.5' y1='7.5' x2='16.51' y2='7.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='%23FFFFFF' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='4'/%3E%3Cpolygon points='10 9.5 15 12 10 14.5 10 9.5'/%3E%3C/svg%3E");
}

#global-footer .footer-social-btn:hover .footer-social-icon--youtube,
#global-footer .footer-social-btn:focus-visible .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='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='4'/%3E%3Cpolygon points='10 9.5 15 12 10 14.5 10 9.5'/%3E%3C/svg%3E");
}

/* Cierre legal en una sola línea */
#global-footer .footer-bottom {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

#global-footer .footer-bottom p {
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  hyphens: none;
  max-width: none;
  margin: 0;
}