/* Noches de Pelucheo — banner y panel de consentimiento */

.ndp-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.ndp-consent__inner {
  pointer-events: auto;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 173, 24, 0.35);
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  color: #f5efe0;
}

.ndp-consent__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f5efe0;
}

.ndp-consent__text {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245, 239, 224, 0.9);
}

.ndp-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ndp-consent__btn {
  flex: 1 1 auto;
  min-height: 2.75rem;
  min-width: 8.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ndp-consent__btn--primary {
  border: 1px solid #f5c800;
  background: #f5c800;
  color: #0a0f1e;
}

.ndp-consent__btn--primary:hover,
.ndp-consent__btn--primary:focus-visible {
  background: #fbad18;
  border-color: #fbad18;
}

.ndp-consent__btn--secondary {
  border: 1px solid rgba(245, 239, 224, 0.55);
  background: transparent;
  color: #f5efe0;
}

.ndp-consent__btn--secondary:hover,
.ndp-consent__btn--secondary:focus-visible {
  border-color: #f5efe0;
  background: rgba(245, 239, 224, 0.08);
}

.ndp-consent__btn--ghost {
  border: 1px solid transparent;
  background: transparent;
  color: #fbad18;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ndp-consent__btn:focus-visible {
  outline: 2px solid #fbad18;
  outline-offset: 2px;
}

.ndp-consent__link {
  display: inline-block;
  font-size: 0.82rem;
  color: #fbad18;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ndp-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 0.75rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.55);
}

.ndp-consent-panel[hidden] {
  display: none !important;
}

.ndp-consent-panel__dialog {
  width: min(100%, 32rem);
  max-height: min(85vh, 34rem);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 173, 24, 0.35);
  background: #0a0f1e;
  color: #f5efe0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.ndp-consent-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.ndp-consent-panel__intro {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(245, 239, 224, 0.88);
}

.ndp-consent-panel__category {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ndp-consent-panel__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ndp-consent-panel__category-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.ndp-consent-panel__category-text {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(245, 239, 224, 0.82);
}

.ndp-consent-panel__category-status {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbad18;
}

.ndp-consent-panel__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
}

.ndp-consent-panel__switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ndp-consent-panel__switch-ui {
  width: 2.2rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  flex-shrink: 0;
}

.ndp-consent-panel__switch-ui::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #f5efe0;
  transition: transform 0.15s ease;
}

.ndp-consent-panel__switch-input:checked + .ndp-consent-panel__switch-ui {
  background: #f5c800;
}

.ndp-consent-panel__switch-input:checked + .ndp-consent-panel__switch-ui::after {
  transform: translateX(0.95rem);
}

.ndp-consent-panel__switch-input:focus-visible + .ndp-consent-panel__switch-ui {
  outline: 2px solid #fbad18;
  outline-offset: 2px;
}

.ndp-consent-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ndp-consent-embed-block {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(251, 173, 24, 0.3);
  border-radius: inherit;
}

.ndp-consent-embed-block__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(245, 239, 224, 0.9);
  max-width: 16rem;
}

.ndp-consent-embed-block__btn {
  min-width: auto;
  flex: 0 1 auto;
}

body.ndp-mini-player-visible .ndp-consent {
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 700px) {
  .ndp-consent-panel {
    align-items: center;
  }

  .ndp-consent__inner {
    max-width: 52rem;
    padding: 1.1rem 1.25rem;
  }

  .ndp-consent__actions {
    flex-wrap: nowrap;
  }

  .ndp-consent__btn {
    flex: 1 1 0;
  }
}

.ndp-footer-cookies-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ndp-yellow, #fbad18);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ndp-footer-cookies-btn:hover,
.ndp-footer-cookies-btn:focus-visible {
  color: var(--ndp-cream, #f5efe0);
}

.ndp-footer-cookies-btn:focus-visible {
  outline: 2px solid #fbad18;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ndp-consent__btn,
  .ndp-consent-panel__switch-ui::after {
    transition: none;
  }
}
