/* ============================================
   Cookie Consent — banner y panel propios
   Estética: design system v2 (glass oscuro + acentos)
   ============================================ */

/* ---- Banner ---- */
.rjc-consent {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 99990;
  max-width: 430px;
  width: calc(100% - 2.5rem);
  font-family: var(--font-body, Inter, sans-serif);
}

.rjc-consent__card {
  background: rgba(10, 15, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.rjc-consent__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.rjc-consent__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.rjc-consent__link {
  color: #5eead4;
  text-decoration: underline;
}

.rjc-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.rjc-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.rjc-consent__btn:hover {
  transform: translateY(-1px);
}

.rjc-consent__btn--primary {
  background: linear-gradient(135deg, #385D98, #2DD4BF);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(56, 93, 152, 0.3);
}

.rjc-consent__btn--outline {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.3);
}

.rjc-consent__btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.rjc-consent__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.rjc-consent__btn--ghost:hover {
  color: #e2e8f0;
}

/* ---- Panel de configuración (modal) ---- */
.rjc-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--font-body, Inter, sans-serif);
}

.rjc-consent-panel__card {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.5rem;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.rjc-consent-panel__title {
  margin: 0;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.rjc-consent-panel__sub {
  margin: 0.5rem 0 1rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #64748b;
}

.rjc-consent-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-top: 1px solid #e2e8f0;
  cursor: pointer;
}

.rjc-consent-panel__row input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: #385D98;
  flex-shrink: 0;
}

.rjc-consent-panel__row-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rjc-consent-panel__row-text strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.rjc-consent-panel__row-text small {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
}

.rjc-consent-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.rjc-consent-panel__actions .rjc-consent__btn--outline {
  color: #334155;
  border-color: #cbd5e1;
}

.rjc-consent-panel__actions .rjc-consent__btn--outline:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #f8fafc;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .rjc-consent {
    left: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .rjc-consent__actions {
    flex-direction: column;
  }

  .rjc-consent__btn {
    width: 100%;
  }

  .rjc-consent__btn--primary {
    order: -1; /* Aceptar primero en móvil */
  }

  .rjc-consent__btn--ghost {
    order: 2;
  }
}
