/* Modal de cookies con estética arcade pixel-art para social&games y subdominios */
.cookie-modal-arcade {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-modal-arcade.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal-arcade__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 28, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal-arcade__caja {
  position: relative;
  background: #1e1e2a;
  color: #f1eff8;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-sizing: border-box;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  border: 4px solid #2e2e40;
  box-shadow:
    0 -4px 0 #14141c, 0 4px 0 #14141c, -4px 0 0 #14141c, 4px 0 0 #14141c,
    0 0 30px rgba(234, 42, 112, 0.25);
  transform: translateY(15px);
  transition: transform 0.25s ease;
}

.cookie-modal-arcade.is-open .cookie-modal-arcade__caja {
  transform: translateY(0);
}

.cookie-modal-arcade__etiqueta {
  display: inline-block;
  font: 9px/1.4 'Press Start 2P', monospace;
  color: #ffd23f;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.cookie-modal-arcade__titulo {
  font: 13px/1.6 'Press Start 2P', monospace;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.cookie-modal-arcade__titulo span {
  color: #ea2a70;
}

.cookie-modal-arcade__texto {
  font-size: 14px;
  line-height: 1.6;
  color: #aeacc2;
  margin-bottom: 20px;
}

.cookie-modal-arcade__texto strong {
  color: #fff;
}

/* Panel de personalización */
.cookie-modal-arcade__opciones {
  background: #14141c;
  border: 2px solid #2e2e40;
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-arcade-opcion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-arcade-opcion:not(:last-child) {
  padding-bottom: 12px;
  border-bottom: 1px solid #2e2e40;
}

.cookie-arcade-opcion strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 3px;
}

.cookie-arcade-opcion p {
  font-size: 11px;
  line-height: 1.4;
  color: #aeacc2;
  margin: 0;
}

.cookie-badge-retro {
  font: 9px/1 'Press Start 2P', monospace;
  color: #ffd23f;
  background: rgba(255, 210, 63, 0.12);
  border: 1px solid #ffd23f;
  padding: 4px 8px;
  white-space: nowrap;
}

/* Switch retro */
.cookie-switch-retro {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-switch-retro input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-retro__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #2e2e40;
  border: 2px solid #55546a;
  transition: .2s;
}

.cookie-switch-retro__slider::before {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: 2px;
  bottom: 2px;
  background: #aeacc2;
  transition: .2s;
}

.cookie-switch-retro input:checked + .cookie-switch-retro__slider {
  background: #ea2a70;
  border-color: #fff;
}

.cookie-switch-retro input:checked + .cookie-switch-retro__slider::before {
  transform: translateX(18px);
  background: #fff;
}

/* Botones arcade 100% autónomos */
.cookie-modal-arcade__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cookie-modal-arcade .boton {
  display: inline-block;
  padding: 12px 14px 10px;
  border: 0;
  background: #ffd23f;
  color: #14141c;
  font: 10px/1.3 'Press Start 2P', monospace;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 -4px 0 #14141c, 0 4px 0 #14141c,
    -4px 0 0 #14141c, 4px 0 0 #14141c,
    4px 8px 0 #ea2a70, 8px 4px 0 #ea2a70;
  transition: transform .08s, box-shadow .08s;
}

.cookie-modal-arcade .boton:hover {
  background: #ffe07a;
}

.cookie-modal-arcade .boton:active {
  transform: translate(4px, 4px);
  box-shadow:
    0 -4px 0 #14141c, 0 4px 0 #14141c,
    -4px 0 0 #14141c, 4px 0 0 #14141c;
}

.cookie-modal-arcade .boton--hueco {
  background: #1e1e2a;
  color: #f1eff8;
  box-shadow:
    0 -4px 0 #14141c, 0 4px 0 #14141c,
    -4px 0 0 #14141c, 4px 0 0 #14141c,
    4px 8px 0 #2e2e40, 8px 4px 0 #2e2e40;
}

.cookie-modal-arcade .boton--hueco:hover {
  background: #2e2e40;
}

.cookie-arcade-link {
  font: 9px/1.4 'Press Start 2P', monospace;
  color: #aeacc2;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: auto;
  transition: color 0.15s;
}

.cookie-arcade-link:hover {
  color: #ffd23f;
}

.pie__cookies {
  font: 10px/1.6 'Press Start 2P', monospace;
  color: #aeacc2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.pie__cookies:hover {
  color: #ffd23f;
}

@media (max-width: 600px) {
  .cookie-modal-arcade__caja {
    padding: 22px 18px;
  }
  .cookie-modal-arcade__acciones {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-modal-arcade__acciones .boton {
    text-align: center;
  }
  .cookie-arcade-link {
    margin-left: 0;
    text-align: center;
    padding-top: 6px;
  }
}
