/**
 * Pie público unificado (.te-public-footer) — embudo y plataforma.
 * Única fuente de estilos: no duplicar en layout.php ni platform.css.
 */
.te-public-footer {
  background: #1a2b4c;
  color: #c5d0dc;
  padding: 32px 16px;
  margin-top: 48px;
  font-size: 13px;
  text-align: left;
  border-top: 0;
}

.te-public-footer--funnel {
  margin-top: 32px;
  border-top: 1px solid var(--te-border, var(--bd, #dce3ea));
  background: #f4f7fa;
  color: var(--te-muted, var(--m, #5c6b7e));
}

.te-public-footer-inner {
  max-width: var(--te-max, 960px);
  margin: 0 auto;
  padding: 0 16px;
}

.te-public-footer-nav {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .te-public-footer-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.te-public-footer-heading {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

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

.te-public-footer-links li {
  margin: 0;
}

.te-public-footer-links a {
  color: #e8eef4;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 13px;
}

.te-public-footer--funnel .te-public-footer-links a {
  color: var(--te-primary, var(--p, #005b96));
}

.te-public-footer-links a:hover {
  text-decoration: underline;
}

.te-public-footer-copy {
  margin: 0 0 8px;
  font-size: 12px;
  opacity: 0.95;
}

.te-public-footer-disc {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 52rem;
}

.te-public-footer-network {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.9;
}

.te-public-footer-network a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/**
 * Newsletter footer — layout canónico (compara10).
 * Columna: título → email+botón → consentimiento. Sin flex horizontal en el form.
 */
.site-footer-newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  margin: 0 0 20px;
}
.te-public-footer--funnel .site-footer-newsletter {
  border-color: rgba(0, 0, 0, 0.08);
}
.site-footer-newsletter-inner {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}
.site-footer-newsletter-form {
  display: block !important;
  width: 100% !important;
  flex: none !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
.site-footer-newsletter-label {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 10px !important;
  text-align: center !important;
  flex: none !important;
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.4;
}
.site-footer-newsletter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 520px) {
  .site-footer-newsletter-row {
    flex-direction: row;
    align-items: center;
    max-width: 420px;
  }
  .site-footer-newsletter-field {
    flex: 1 1 200px;
    min-width: 0;
  }
  .site-footer-newsletter-btn {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 8.5rem;
  }
}
.site-footer-newsletter-field {
  width: 100%;
  min-width: 0;
}
.site-footer-newsletter-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  box-sizing: border-box;
}
.te-public-footer--funnel .site-footer-newsletter-input {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}
.site-footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.te-public-footer--funnel .site-footer-newsletter-input::placeholder {
  color: #94a3b8;
}
.site-footer-newsletter-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}
.te-public-footer--funnel .site-footer-newsletter-btn {
  background: #005b96;
}
.site-footer-newsletter-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.site-footer-newsletter-consent {
  display: flex !important;
  flex: none !important;
  width: 100%;
  max-width: 28rem;
  margin: 10px auto 0 !important;
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.45;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.site-footer-newsletter-consent input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.site-footer-newsletter-consent a {
  color: inherit;
}
.site-footer-newsletter-hp {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}
.site-footer-newsletter-msg {
  margin-top: 10px;
  font-size: 12px;
  color: #86efac;
}
.te-public-footer--funnel .site-footer-newsletter-msg {
  color: #059669;
}
.site-footer-newsletter-msg--err {
  color: #fcd34d !important;
}
.site-footer-newsletter-form--done {
  display: none !important;
}
.site-footer-newsletter-thanks {
  padding: 8px 0 4px;
  text-align: center;
}
.site-footer-newsletter-thanks-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #86efac;
}
.te-public-footer--funnel .site-footer-newsletter-thanks-text {
  color: #059669;
}
.site-footer-newsletter--subscribed .site-footer-newsletter-label {
  display: none;
}
.site-footer-newsletter .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
