/* Faldón de cookies (consentimiento RGPD / LSSI) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #fff; color: #444;
  border-top: 4px solid #1a9c00;
  box-shadow: 0 -4px 18px rgba(0,0,0,.15);
  font-family: 'Fira Sans', system-ui, sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: 1140px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.cookie-banner__text { flex: 1 1 480px; }
.cookie-banner__title { margin: 0 0 4px; color: #222; font-size: 17px; font-weight: 500; }
.cookie-banner__text p { margin: 0; }
.cookie-banner a { color: #157d00; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn {
  font: inherit; font-weight: 400; cursor: pointer;
  border-radius: 999px; padding: 8px 22px;
  border: 2px solid #157d00; background: #1a9c00; color: #fff;
}
.cookie-btn:hover { background: #157d00; }
.cookie-btn--ghost { background: #fff; color: #157d00; }
.cookie-btn--ghost:hover { background: #eef6ea; }
.cookie-btn:focus-visible, .cookie-switch input:focus-visible { outline: 3px solid #222; outline-offset: 2px; }

.cookie-prefs { flex: 1 1 100%; border-top: 1px solid #e3e3e3; padding-top: 12px; }
.cookie-prefs[hidden] { display: none; }
.cookie-pref { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.cookie-pref + .cookie-pref { border-top: 1px dashed #e3e3e3; }
.cookie-pref strong { display: block; color: #222; font-weight: 500; }
.cookie-pref small { display: block; color: #6a6a6a; font-size: 14px; }
.cookie-switch input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #1a9c00; }

/* Vídeo bloqueado hasta tener consentimiento */
.video-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  padding: 20px; text-align: center; color: #fff; font-size: 15px;
  background: #2b2b2b;
}
.video-consent p { margin: 0; max-width: 420px; }
.video-consent a { color: #cfcfcf; }
.video.is-loaded .video-consent { display: none; }
.video iframe:not([src]) { display: none; }

/* Enlace "Configurar cookies" del pie, con aspecto de enlace */
.cookie-settings-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: #cfcfcf; line-height: inherit;
}
.cookie-settings-link:hover { color: #fff; }

@media (max-width: 600px) {
  .cookie-banner__inner { padding: 14px 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1 1 auto; }
}
.footer-legal { flex-wrap: wrap; }
