/* Pie de página común del módulo ticket (html_ev_footer): organizador a la izquierda y enlaces legales a la derecha.
   Fondo: azul de la cabecera con las diagonales de img/patterns/diagonales.svg casi imperceptibles (3–5 %). */
.ev-footer {
  position: relative;
  flex-shrink: 0;   /* el body es una columna flex de 100 % de alto: sin esto el pie se encoge a 0 en páginas largas */
  background-color: var(--ev-cab-primary-dark, var(--ev-primary-dark, #102A50));
  color: #fff;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
/* Diagonales: visibles pero discretas (la cabecera las pinta al 100 %; aquí al 55 % para no competir con el texto) */
.ev-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--ev-diag, url('../img/patterns/diagonales.svg')) center / cover no-repeat;
  opacity: .55;
}
.ev-footer__inner {
  position: relative;
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.25rem;
}
.ev-footer__marca { display: flex; flex-direction: column; min-width: 0; }
.ev-footer__lbl { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ev-footer__org { font-size: 1.1rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Enlaces con separadores verticales discretos */
.ev-footer__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.ev-footer__links a {
  position: relative; padding: .3rem 1.1rem;
  font-size: .95rem; font-weight: 500; color: #E1E9F5; text-decoration: none;
  transition: color .15s;
}
.ev-footer__links a:last-child { padding-right: 0; }
.ev-footer__links a + a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 1em; transform: translateY(-50%);
  background: rgba(255,255,255,.3);
}
.ev-footer__links a::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--ev-accent, #FF9800); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.ev-footer__links a:last-child::after { right: 0; }
.ev-footer__links a:hover, .ev-footer__links a:focus-visible { color: #fff; text-decoration: none; }
.ev-footer__links a:hover::after, .ev-footer__links a:focus-visible::after { transform: scaleX(1); }
.ev-footer__links a:focus-visible, .ev-footer__bm:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 3px; border-radius: 4px; }
.ev-footer__bm { display: inline-flex; align-items: center; justify-content: flex-end; gap: .55rem; font-size: .72rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.ev-footer__bm img { height: 22px; width: auto; display: block; opacity: .9; transition: opacity .15s; }
.ev-footer__bm:hover { color: rgba(255,255,255,.8); text-decoration: none; }
.ev-footer__bm:hover img { opacity: 1; }

/* Móvil: organizador centrado y enlaces centrados debajo (sin altura fija) */
@media (max-width: 767px) {
  .ev-footer { margin-top: 1rem; }
  .ev-footer__inner { min-height: 0; flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  .ev-footer__marca { align-items: center; max-width: 100%; }
  .ev-footer__links { justify-content: center; }
  .ev-footer__links a { padding: .6rem .8rem; min-height: 44px; display: inline-flex; align-items: center; }
  .ev-footer__links a:last-child { padding-right: .8rem; }
  .ev-footer__links a::after { left: .8rem; right: .8rem; }
  .ev-footer__links a:last-child::after { right: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .ev-footer__links a::after, .ev-footer__bm img { transition: none; } }
