/* Cookie CMP + páginas legales — estética Gabriel Jefferies */

.gj-cookie[hidden],
.gj-cookie__banner[hidden],
.gj-cookie__panel[hidden],
.gj-cookie__backdrop[hidden] {
  display: none !important;
}

.gj-cookie__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(30, 30, 30, 0.55);
}

.gj-cookie__banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 16px;
  pointer-events: none;
}

.gj-cookie__banner-inner {
  pointer-events: auto;
  max-width: var(--gj-max, 1440px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--gj-black, #1e1e1e);
  color: var(--gj-white, #fff);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .gj-cookie__banner {
    padding: 24px;
  }

  .gj-cookie__banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 28px;
  }
}

.gj-cookie__title {
  margin: 0 0 8px;
  font-family: var(--gj-font, "Poppins", sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--gj-white, #fff);
}

.gj-cookie__text {
  margin: 0;
  font-family: var(--gj-font, "Poppins", sans-serif);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  max-width: 62ch;
}

.gj-cookie__policy {
  display: inline;
  margin-left: 4px;
  color: var(--gj-blue-3, #4747ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gj-cookie__policy:hover,
.gj-cookie__policy:focus-visible {
  color: var(--gj-white, #fff);
}

.gj-cookie__actions,
.gj-cookie__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.gj-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 200px;
  border: 2px solid transparent;
  font-family: var(--gj-font, "Poppins", sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.gj-cookie__btn:focus-visible {
  outline: 2px solid var(--gj-blue-3, #4747ff);
  outline-offset: 3px;
}

.gj-cookie__btn--solid {
  background: var(--gj-blue, #1010d6);
  color: var(--gj-white, #fff);
  border-color: var(--gj-blue, #1010d6);
}

.gj-cookie__btn--solid:hover,
.gj-cookie__btn--solid:focus-visible {
  background: var(--gj-blue-2, #2222fd);
  border-color: var(--gj-blue-2, #2222fd);
}

.gj-cookie__btn--ghost {
  background: transparent;
  color: var(--gj-white, #fff);
  border-color: rgba(255, 255, 255, 0.55);
}

.gj-cookie__btn--ghost:hover,
.gj-cookie__btn--ghost:focus-visible {
  background: var(--gj-white, #fff);
  color: var(--gj-black, #1e1e1e);
  border-color: var(--gj-white, #fff);
}

.gj-cookie__btn--outline {
  background: transparent;
  color: var(--gj-white, #fff);
  border-color: var(--gj-white, #fff);
}

.gj-cookie__btn--outline:hover,
.gj-cookie__btn--outline:focus-visible {
  background: var(--gj-white, #fff);
  color: var(--gj-black, #1e1e1e);
}

.gj-cookie__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  max-height: min(90vh, 640px);
  overflow: auto;
}

.gj-cookie__panel-inner {
  background: var(--gj-cream, #f4f1eb);
  color: var(--gj-black, #1e1e1e);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .gj-cookie__panel-inner {
    padding: 28px;
  }
}

.gj-cookie__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.gj-cookie__panel-title {
  margin: 0;
  font-family: var(--gj-font, "Poppins", sans-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.gj-cookie__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(30, 30, 30, 0.15);
  background: transparent;
  color: var(--gj-black, #1e1e1e);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gj-cookie__close:hover,
.gj-cookie__close:focus-visible {
  background: rgba(30, 30, 30, 0.06);
}

.gj-cookie__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gj-cookie__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.1);
}

.gj-cookie__cat:last-child {
  border-bottom: 0;
}

.gj-cookie__cat-name {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 15px;
}

.gj-cookie__cat-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(30, 30, 30, 0.65);
}

.gj-cookie__switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.gj-cookie__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.gj-cookie__switch-ui {
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.2);
  transition: background-color 0.2s ease;
}

.gj-cookie__switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gj-white, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.gj-cookie__switch input:checked + .gj-cookie__switch-ui {
  background: var(--gj-black, #1e1e1e);
}

.gj-cookie__switch input:checked + .gj-cookie__switch-ui::after {
  transform: translateX(20px);
}

.gj-cookie__switch--locked {
  cursor: default;
  opacity: 0.85;
}

.gj-cookie__switch--locked .gj-cookie__switch-ui {
  background: var(--gj-blue-3, #4747ff);
}

.gj-cookie__switch input:focus-visible + .gj-cookie__switch-ui {
  outline: 2px solid var(--gj-blue-3, #4747ff);
  outline-offset: 3px;
}

.gj-cookie__panel-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(30, 30, 30, 0.6);
}

.gj-cookie__panel-note a {
  color: var(--gj-blue, #1010d6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gj-cookie__panel-actions {
  margin-top: 22px;
  justify-content: flex-end;
}

.gj-cookie__panel-actions .gj-cookie__btn--ghost {
  color: var(--gj-black, #1e1e1e);
  border-color: rgba(30, 30, 30, 0.35);
}

.gj-cookie__panel-actions .gj-cookie__btn--ghost:hover,
.gj-cookie__panel-actions .gj-cookie__btn--ghost:focus-visible {
  background: var(--gj-black, #1e1e1e);
  color: var(--gj-cream, #f4f1eb);
  border-color: var(--gj-black, #1e1e1e);
}

body.gj-cookie-panel-open {
  overflow: hidden;
}

/* Página legal */
.legal-page {
  background: var(--gj-cream, #f4f1eb);
  color: var(--gj-black, #1e1e1e);
  padding: 48px 0 64px;
}

@media (min-width: 1024px) {
  .legal-page {
    padding: 72px 0 96px;
  }
}

.legal-page__inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 var(--gj-pad-m, 24px);
}

@media (min-width: 1024px) {
  .legal-page__inner {
    padding: 0 var(--gj-pad, 96px);
  }
}

.legal-page__title {
  margin: 0 0 24px;
  font-family: var(--gj-font, "Poppins", sans-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  color: var(--gj-black, #1e1e1e);
}

@media (min-width: 1024px) {
  .legal-page__title {
    font-size: 48px;
    margin-bottom: 32px;
  }
}

.legal-page__content {
  font-family: var(--gj-font, "Poppins", sans-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(30, 30, 30, 0.85);
}

.legal-page__content h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gj-black, #1e1e1e);
}

.legal-page__content p,
.legal-page__content ul {
  margin: 0 0 14px;
}

.legal-page__content ul {
  padding-left: 1.25em;
  list-style: disc;
}

.legal-page__content li {
  margin-bottom: 6px;
}

.legal-page__content a {
  color: var(--gj-blue, #1010d6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__content em {
  color: rgba(30, 30, 30, 0.55);
}
