/* Avisos de cookies en móvil (19/11/2026): hoja inferior compacta en lugar de pantalla completa,
   botones a todo el ancho y sin que los tapen el botón del plugin ni el de WhatsApp. */
@media only screen and (max-width: 767px) {
  .cookies-container-cookie-modal {
    top: auto; bottom: 0; left: 0; transform: none;
    width: 100%; height: auto; max-height: 90vh; max-height: 90dvh;
    border-radius: 16px 16px 0 0; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .cookies-container_over { height: auto; max-height: 90vh; max-height: 90dvh; overflow: hidden; display: flex; flex-direction: column; }
  .cookies-container-header { height: auto; padding: 18px 20px 0; flex: 0 0 auto; }
  .cookies-container-cookie-modal-logo { height: auto; font-size: 1.2rem; padding-bottom: 10px; }
  .cookies-wrapper {
    position: static; margin-top: 0; flex: 1 1 auto; min-height: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .cookies-container-body { margin: 12px 0; padding-left: 20px; padding-right: 20px; }
  .cookies-container-body-img { width: 84px; height: 84px; min-height: 84px; margin: 0 auto 8px; }
  .cookies-container-cookie-modal-description p,
  .cookies-container-cookie-modal-description li { font-size: .9375rem; line-height: 1.5; }
  .cookies-container-cookie-modal-description p { margin-bottom: 12px; }
  .cookies-container-footer {
    position: static; height: auto; flex: 0 0 auto;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0, 43, 69, .08);
  }
  .cookies-container-cookie-modal-footer { flex-direction: column-reverse; gap: 4px; padding: 0; }
  .cookies-container-cookie-modal-footer .pull-right,
  .cookies-container-cookie-modal-footer .btn { width: 100%; float: none; }
  .cookies-container-cookie-modal-footer .btn-lila { min-height: 48px; }
  #abrirMenuCookies, #cerrarMenuCookies { margin-top: 0; min-height: 44px; }

  /* Mientras se ve el aviso: fuera el botón de WhatsApp y el del plugin sube arriba para no tapar los botones */
  body:has(#modal-cookies.show) .boton-chat,
  body:has(#modal-configurar-cookies.show) .boton-chat { display: none !important; }
  body:has(#modal-cookies.show) #cdlpr-wba11y-open,
  body:has(#modal-configurar-cookies.show) #cdlpr-wba11y-open { top: 12px !important; bottom: auto !important; }

  .cookies-container-footer .btn + .btn,
  .cookies-container-footer .btn + div,
  .cookies-container-footer div + .btn { margin-top: 8px; }

  /* Enlaces «Saltar a»: ocultos hasta recibir el foco (la hoja simplificada no los tenía) */
  .navegacion-saltar-a { z-index: 1; position: absolute; top: -30px; width: 100%; }
  .navegacion-saltar-a ul { padding: 0; margin: 0; }
  .navegacion-saltar-a ul li { list-style: none; }
  .navegacion-saltar-a a { position: absolute; top: -200px; background: #f1f3f4; padding: 10px 15px; border: 1px solid #ddd; width: 100%; }
  .navegacion-saltar-a a:focus { top: 100px; }
}
