/* ══════════════════════════════════════════════════════════════════════
   ESECE · Aviso de cookies (compartido por todas las páginas)
   Va emparejado con esece-consent.js. Antes vivía solo en la home, que
   era también la única página con Analytics.
   ══════════════════════════════════════════════════════════════════════ */

.cookie-banner {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(22,20,18,0.97); color: rgba(255,255,255,0.88);
  padding: 0.7rem 5vw; flex-wrap: nowrap;
  align-items: center; justify-content: space-between; gap: 1.2rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.45s ease;
  will-change: transform, opacity;
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner p { font-size: 0.78rem; line-height: 1.45; font-weight: 300; max-width: 640px; }
.cookie-banner a { color: #e2c28a; text-decoration: underline; text-underline-offset: 2px; }
.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.65rem 1.2rem; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; border: none;
  font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
  min-height: 40px; white-space: nowrap;
}
.cookie-accept { background: #806329; color: #fff; }
.cookie-accept:hover { background: #1a3a2e; }
.cookie-reject { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); }
.cookie-reject:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* El botón flotante de WhatsApp sube mientras el aviso está visible, para
   que no queden uno encima del otro. */
body.cookies-visibles .wa { bottom: calc(2rem + var(--cookie-h, 96px)); }
.wa { transition: transform 0.3s, box-shadow 0.3s, bottom 0.45s cubic-bezier(.2,.8,.2,1); }

/* En móvil, dos filas (texto arriba, los dos botones en línea abajo) en
   lugar de cuatro, que ocupaban un cuarto de la pantalla. */
@media (max-width: 700px) {
  .cookie-banner { flex-wrap: wrap; gap: 0.55rem; padding: 0.65rem 5vw 0.75rem; }
  .cookie-banner p { flex: 1 1 100%; font-size: 0.72rem; line-height: 1.4; max-width: none; }
  .cookie-btns { width: 100%; gap: 0.5rem; }
  .cookie-btn { flex: 1; text-align: center; padding: 0.6rem 0.5rem; font-size: 0.68rem; }
}

@media print { .cookie-banner { display: none !important; } }
