/* Banner de cookies. Los tres botones de elección comparten regla: mismo tamaño, color y peso. */
body { padding-bottom: var(--kv-consent-pad, 0px); }

.kv-consent {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.9rem 5.75rem 0.9rem 1rem;
  background: #fff;
  color: #0F1F33;
  border-top: 1px solid #E4EBF3;
  box-shadow: 0 -4px 20px rgba(27, 58, 92, 0.08);
}

.kv-consent__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.kv-consent__title {
  margin: 0 0 0.35rem;
  font: 700 1rem/1.3 Inter, system-ui, sans-serif;
  color: #1B3A5C;
}

.kv-consent__text {
  margin: 0 0 0.75rem;
  font: 400 0.92rem/1.45 Inter, system-ui, sans-serif;
}

.kv-consent__text a {
  color: #1B3A5C;
  font-weight: 600;
  text-decoration: underline;
}

.kv-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kv-consent__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kv-consent__btn {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 2px solid #1B3A5C;
  background: #1B3A5C;
  color: #fff;
  font: 600 0.95rem/1.2 Inter, system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
}

.kv-consent__btn:hover,
.kv-consent__btn:focus-visible {
  background: #14283F;
  border-color: #14283F;
  color: #fff;
}

.kv-consent__btn:focus-visible {
  outline: 3px solid #3FB8E0;
  outline-offset: 2px;
}

.kv-consent__panel {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.kv-consent__panel[hidden] {
  display: none !important;
}

.kv-consent__panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kv-consent__hint {
  margin: 0;
  flex: 1 1 auto;
  font: 400 0.85rem/1.4 Inter, system-ui, sans-serif;
  color: #3d5166;
}

.kv-consent__close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #E4EBF3;
  background: #fff;
  color: #1B3A5C;
  font: 600 1.25rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.kv-consent__close:hover,
.kv-consent__close:focus-visible {
  border-color: #1B3A5C;
}

.kv-consent__close:focus-visible {
  outline: 3px solid #3FB8E0;
  outline-offset: 2px;
}

.kv-consent__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kv-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font: 400 0.9rem/1.4 Inter, system-ui, sans-serif;
}

.kv-consent__option input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

html[data-consent="needed"] .kv-consent,
html[data-consent="open"] .kv-consent {
  display: block;
}

.kv-consent-reopen {
  display: none;
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 40;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #1B3A5C;
  background: #fff;
  color: #1B3A5C;
  font: 600 0.8rem/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}

html[data-consent="saved"] .kv-consent-reopen { display: inline-block; }

.kv-consent-reopen:focus-visible {
  outline: 3px solid #3FB8E0;
  outline-offset: 2px;
}

.footer-consent-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #1B3A5C;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.footer-consent-btn:hover { color: #2BA0C8; }

.site-footer .footer-consent-btn { color: rgba(255, 255, 255, 0.9); }
.site-footer .footer-consent-btn:hover { color: #3FB8E0; }

@media (max-width: 700px) {
  .kv-consent {
    padding: 0.85rem 4.75rem 0.85rem 0.85rem;
  }
  .kv-consent__choices {
    grid-template-columns: 1fr;
  }
}
