/* Banner de cookies - Ley 21.719 */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #e4e4e7;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #3f3f46;
}

.cookie-banner__text a {
  color: #4caf50;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-banner__btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: #4caf50;
  color: #ffffff;
  border-color: #4caf50;
}

.cookie-banner__btn--accept:hover {
  background: #388e3c;
  border-color: #388e3c;
}

.cookie-banner__btn--reject {
  background: transparent;
  color: #52525b;
  border-color: #d4d4d8;
}

.cookie-banner__btn--reject:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
}

.cookie-banner__btn--settings {
  background: transparent;
  color: #52525b;
  border-color: transparent;
  text-decoration: underline;
  padding: 0.5rem 0.5rem;
}

.cookie-banner__btn--settings:hover {
  color: #4caf50;
}

.cookie-settings {
  width: 100%;
  background: #fafafa;
  border-top: 1px solid #f4f4f5;
}

.cookie-settings.hidden {
  display: none;
}

/* Aquí está la magia para que el panel se vea bien */
.cookie-settings .cookie-banner__inner {
  flex-direction: column;
  align-items: stretch;
  padding: 1.5rem 1rem;
  gap: 0.5rem;
}

.cookie-settings__option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: #3f3f46;
  border-bottom: 1px solid #e4e4e7;
}

.cookie-settings__option:last-of-type {
  border-bottom: none;
}

.cookie-settings__option input {
  margin-top: 0.25rem;
  accent-color: #4caf50;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-settings__option-label {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cookie-settings__option-label strong {
  font-weight: 700;
  color: #18181b;
}

.cookie-settings__option-label small {
  color: #71717a;
  font-size: 0.75rem;
}

.cookie-settings__save {
  margin-top: 1rem;
  align-self: flex-start;
}