/* Cañas y Tapas — cabecera móvil de la home (≤767px).
   El escudo está SIEMPRE centrado; al hacer scroll se encoge y sube a la barra
   de forma continua, atado al scroll (el JS header-movil.js escribe --hp de 0 a 1).
   Solo se anima transform y opacity (GPU), por eso va fino. */
@media (max-width: 767px) {
  html body #header-sticky.tp-header-9-area {
    --hp: 0;
    position: fixed !important;
    top: 0 !important; left: 0; right: 0;
    margin: 0 !important;
    width: 100%;
    height: 58px;
    padding: 0 !important;
    z-index: 999;
    background: transparent !important;
    animation: none !important;
    transform: none !important;
  }
  /* fondo de la barra: aparece con el scroll */
  html body #header-sticky.tp-header-9-area::before {
    content: "";
    position: absolute; inset: 0;
    /* liquid glass: cristal translúcido con desenfoque, brillo y reflejo superior */
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.02) 100%),
      rgba(30, 24, 18, 0.9);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(255, 255, 255, 0.06),
      0 8px 24px rgba(0, 0, 0, 0.28);
    opacity: var(--hp);
    pointer-events: none;
  }
  html body #header-sticky.tp-header-9-area::after { display: none !important; }
  html body #header-sticky .container,
  html body #header-sticky .row,
  html body #header-sticky .row > div { position: static !important; }
  html body #header-sticky .tp-header-9-logo {
    position: absolute !important;
    left: 50%; top: 0;
    z-index: 3;
    width: 190px;
    margin: 0; padding: 0;
    transform-origin: 50% 0;
    transform: translate3d(-50%, calc(14px - 2.5px * var(--hp)), 0) scale(calc(1 - 0.41 * var(--hp)));
    will-change: transform;
  }
  html body #header-sticky .tp-header-9-logo a { display: block; }
  html body #header-sticky.tp-header-9-area .tp-header-9-logo img,
  html body #header-sticky.tp-header-9-area.header-sticky .tp-header-9-logo img {
    width: 190px !important;
    max-width: none;
    height: auto;
    margin: 0 auto;
    transition: none !important;
  }
}
