/* ─────────────────────────────────────────────────────────────
   PTL Footer · Single-row brand + links, optional stacked row
   Requiere: ptl-tokens.css cargado antes.
   Markup esperado:
     <footer class="ptl-footer">
       <div class="ptl-footer-inner">
         <div class="ptl-footer-lead">
           <div class="ptl-footer-brand">BRAND <span class="dot"></span></div>
           <div class="ptl-footer-meta">Punky Tiger Labs, Inc. · Burbank, CA · 91+ Patents</div>
         </div>
         <nav class="ptl-footer-links">
           <a href="/about">About</a>
           <a href="/technology">Technology</a>
           <a href="mailto:rodney@punkytigerlabs.com">Contact</a>
         </nav>
       </div>
       <!-- opcional fila inferior (legal / i18n) -->
       <div class="ptl-footer-base">
         <span>© 2026 Punky Tiger Labs, Inc.</span>
         <span class="ptl-footer-lang">
           <a href="/" aria-current="true">EN</a>
           <a href="/es/">ES</a>
           <a href="/zh/">中文</a>
         </span>
       </div>
     </footer>
   Build: 2026-04-16-ptl-footer-v1
   ───────────────────────────────────────────────────────────── */

.ptl-footer {
  background: var(--ptl-surface-alt);
  border-top: 1px solid var(--ptl-border);
  padding: 2.5rem 0 2rem;
  color: var(--ptl-muted);
}

.ptl-footer-inner {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ─── Brand + meta (izquierda) ─── */
.ptl-footer-lead {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ptl-footer-brand {
  font-weight: 700;
  color: var(--ptl-text);
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ptl-footer-brand .dot {
  width: 6px;
  height: 6px;
  background: var(--ptl-orange);
  border-radius: 50%;
  display: inline-block;
}

.ptl-footer-meta {
  font-size: 12px;
  color: var(--ptl-muted);
  line-height: 1.55;
}

/* ─── Nav-links (derecha) ─── */
.ptl-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.ptl-footer-links a {
  font-size: 13px;
  color: var(--ptl-muted);
  text-decoration: none;
  transition: color var(--ptl-t-fast);
  white-space: nowrap;
}
.ptl-footer-links a:hover,
.ptl-footer-links a:focus-visible {
  color: var(--ptl-text);
}
.ptl-footer-links a.ptl-footer-ext::after {
  content: ' →';
  opacity: 0.55;
}

/* ─── Fila inferior opcional (legal / i18n) ─── */
.ptl-footer-base {
  max-width: var(--ptl-max);
  margin: 1.5rem auto 0;
  padding: 1.25rem var(--ptl-pad-x) 0;
  border-top: 1px solid var(--ptl-border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
  color: var(--ptl-muted);
}
.ptl-footer-base a {
  color: var(--ptl-muted);
  text-decoration: none;
  transition: color var(--ptl-t-fast);
}
.ptl-footer-base a:hover,
.ptl-footer-base a:focus-visible {
  color: var(--ptl-text);
}

.ptl-footer-lang {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}
.ptl-footer-lang a {
  padding: 2px 8px;
  border-radius: var(--ptl-r-badge);
  transition: background var(--ptl-t-fast), color var(--ptl-t-fast);
}
.ptl-footer-lang a[aria-current="true"] {
  color: var(--ptl-text);
  background: var(--ptl-surface);
}

/* ─── Columnas tipo sitemap (variante opcional para footers grandes) ─── */
.ptl-footer-cols {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x) 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.ptl-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ptl-text);
  margin: 0 0 0.85rem;
}
.ptl-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ptl-footer-col > a {
  display: block;
  font-size: 13px;
  color: var(--ptl-muted);
  text-decoration: none;
  transition: color var(--ptl-t-fast);
  padding: 2px 0;
}
.ptl-footer-col a {
  font-size: 13px;
  color: var(--ptl-muted);
  text-decoration: none;
  transition: color var(--ptl-t-fast);
}
.ptl-footer-col a:hover,
.ptl-footer-col a:focus-visible {
  color: var(--ptl-text);
}

/* ─── Brand block para variante cols ─── */
.ptl-footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 20rem;
}
.ptl-footer-brand-block .ptl-footer-brand {
  font-weight: 700;
  color: var(--ptl-text);
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.ptl-footer-brand-block .ptl-footer-brand .dot {
  width: 6px;
  height: 6px;
  background: var(--ptl-orange);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .ptl-footer {
    padding: 2rem 0 1.5rem;
  }
  .ptl-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .ptl-footer-links {
    gap: 0.75rem 1.25rem;
  }
  .ptl-footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
  }
  .ptl-footer-lang a {
    padding: 8px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .ptl-footer-meta {
    font-size: 13px;
  }
  .ptl-footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .ptl-footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ptl-footer-cols {
    grid-template-columns: 1fr;
  }
}
