/* NEXAUTIA — CONSENTIMIENTO DE COOKIES Y PÁGINAS LEGALES */
.nx-cookie-banner,
.nx-cookie-settings-overlay,
.nx-cookie-media-placeholder,
.nx-cookie-footer-controls {
  font-family: Inter, Arial, sans-serif;
}

.nx-cookie-banner {
  z-index: 5000;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .22s ease, transform .22s ease;
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  pointer-events: none;
}

.nx-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nx-cookie-banner__content {
  width: min(1180px, 100%);
  color: #e2e8f0;
  background: rgba(7, 17, 31, .98);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(14px);
}

.nx-cookie-banner__title {
  color: #fff;
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.nx-cookie-banner__copy p {
  color: #cbd5e1;
  max-width: 76ch;
  margin: 0;
  font-size: .94rem;
  line-height: 1.55;
}

.nx-cookie-banner a,
.nx-cookie-settings a,
.nx-cookie-footer-controls a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nx-cookie-banner__actions,
.nx-cookie-settings__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.nx-cookie-button {
  min-height: 46px;
  cursor: pointer;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
}

.nx-cookie-button--accept {
  color: #fff;
  background: #2563eb;
  border: 1px solid #3b82f6;
}

.nx-cookie-button--reject {
  color: #fff;
  background: #334155;
  border: 1px solid #64748b;
}

.nx-cookie-button--settings {
  color: #e2e8f0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  grid-column: 1 / -1;
}

.nx-cookie-button:hover {
  filter: brightness(1.08);
}

.nx-cookie-settings-overlay {
  z-index: 5100;
  background: rgba(2, 6, 23, .76);
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px);
}

.nx-cookie-settings {
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  color: #172033;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .46);
}

.nx-cookie-settings h2 {
  color: #0f172a;
  letter-spacing: -.035em;
  margin: 0 44px 8px 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.nx-cookie-settings__intro {
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.55;
}

.nx-cookie-settings__close {
  color: #334155;
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 1.45rem;
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 20px;
}

.nx-cookie-category {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 18px;
  display: grid;
}

.nx-cookie-category strong {
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}

.nx-cookie-category p {
  color: #64748b;
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.nx-cookie-category__fixed {
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.nx-cookie-category--toggle {
  cursor: pointer;
}

.nx-cookie-category--toggle input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.nx-cookie-switch {
  background: #cbd5e1;
  border-radius: 999px;
  width: 48px;
  height: 28px;
  transition: background .18s ease;
  position: relative;
}

.nx-cookie-switch::after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  transition: transform .18s ease;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .24);
}

.nx-cookie-category--toggle input:checked + .nx-cookie-switch {
  background: #2563eb;
}

.nx-cookie-category--toggle input:checked + .nx-cookie-switch::after {
  transform: translateX(20px);
}

.nx-cookie-category--toggle input:focus-visible + .nx-cookie-switch {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 3px;
}

.nx-cookie-settings__policy {
  margin: 18px 0;
  display: inline-block;
  font-size: .92rem;
  font-weight: 750;
}

.nx-cookie-settings__actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-cookie-settings__actions .nx-cookie-button--settings {
  color: #334155;
  border-color: #94a3b8;
  grid-column: auto;
}

body.nx-cookie-modal-open {
  overflow: hidden;
}

.nx-cookie-media-parent {
  position: relative;
}

.nx-cookie-media-parent > iframe[data-cookie-src]:not(.nx-cookie-media-loaded) {
  visibility: hidden;
}

.nx-cookie-media-placeholder {
  color: #e2e8f0;
  text-align: center;
  background: radial-gradient(circle at 50% 0, rgba(37, 99, 235, .22), transparent 42%), #0f172a;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: inherit;
  place-items: center;
  padding: 24px;
  display: grid;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.nx-cookie-media-placeholder__content {
  max-width: 520px;
}

.nx-cookie-media-placeholder strong {
  color: #fff;
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.nx-cookie-media-placeholder p {
  color: #cbd5e1;
  margin: 0 0 16px;
  line-height: 1.5;
}

.nx-cookie-media-enable {
  min-height: 44px;
  color: #fff;
  cursor: pointer;
  background: #2563eb;
  border: 1px solid #60a5fa;
  border-radius: 12px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 800;
}

.nx-cookie-footer-controls {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
  display: flex;
  font-size: .86rem;
}

.nx-cookie-footer-controls button {
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nx-legal-main {
  background: #f8fafc;
  color: #172033;
  padding: 56px 0 72px;
}

.nx-legal-document {
  width: min(920px, 100% - 36px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .10);
}

.nx-legal-document h1 {
  color: #0f172a;
  letter-spacing: -.045em;
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.nx-legal-document h2 {
  color: #0f172a;
  margin: 32px 0 10px;
  font-size: 1.35rem;
}

.nx-legal-document p,
.nx-legal-document li {
  color: #475569;
  line-height: 1.7;
}

.nx-legal-document a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nx-legal-updated {
  color: #64748b;
  margin: 0 0 28px;
  font-size: .92rem;
}

.nx-legal-table-wrap {
  overflow-x: auto;
}

.nx-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: .92rem;
}

.nx-legal-table th,
.nx-legal-table td {
  text-align: left;
  border: 1px solid #e2e8f0;
  padding: 12px;
  vertical-align: top;
}

.nx-legal-table th {
  color: #0f172a;
  background: #eff6ff;
}

@media (max-width: 900px) {
  .nx-cookie-banner__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .nx-cookie-banner__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nx-cookie-button--settings {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .nx-cookie-banner {
    right: 10px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 10px;
  }

  .nx-cookie-banner__content {
    border-radius: 16px;
    gap: 16px;
    padding: 18px;
  }

  .nx-cookie-banner__actions,
  .nx-cookie-settings__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .nx-cookie-button--settings {
    grid-column: auto;
  }

  .nx-cookie-settings-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .nx-cookie-settings {
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .nx-cookie-category {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }

  .nx-cookie-category__fixed {
    max-width: 100px;
    text-align: center;
    white-space: normal;
  }

  .nx-cookie-media-placeholder {
    padding: 16px;
  }

  .nx-cookie-media-placeholder p {
    font-size: .88rem;
  }

  .nx-legal-main {
    padding: 32px 0 48px;
  }

  .nx-legal-document {
    width: min(100% - 24px, 920px);
    border-radius: 18px;
  }
}
