/* ============================================================
 * PG Cookies - Estilos (marca Playgarden)
 * Verde lima #96be16 (primario) · Terracota #693a14 (acento)
 * Texto #191919 / #606060 · Tipografia Helvetica Neue / Arial
 * ============================================================ */

.pgck-banner,
.pgck-modal,
.pgck-float {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.pgck-banner *,
.pgck-modal * { box-sizing: border-box; }

/* ---------- Banner inferior ---------- */
.pgck-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: #ffffff;
  color: #191919;
  border-top: 4px solid #96be16;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.pgck-banner.pgck-show { transform: translateY(0); }

.pgck-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.pgck-text {
  flex: 1 1 380px;
  font-size: 14px;
  line-height: 1.55;
}
.pgck-text strong {
  color: #693a14;
  font-size: 16px;
}
.pgck-text a {
  color: #693a14;
  text-decoration: underline;
  font-weight: 600;
}
.pgck-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Botones ---------- */
.pgck-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  padding: 11px 20px;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.pgck-btn-pri {
  background: #96be16;
  color: #ffffff;
  border-color: #96be16;
}
.pgck-btn-pri:hover { background: #7a9c12; border-color: #7a9c12; }
.pgck-btn-sec {
  background: #ffffff;
  color: #191919;
  border-color: #c9c9c9;
}
.pgck-btn-sec:hover { border-color: #693a14; color: #693a14; }

/* ---------- Modal de preferencias ---------- */
.pgck-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(25, 25, 25, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pgck-overlay.pgck-show { display: flex; }

.pgck-modal {
  background: #ffffff;
  color: #191919;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.pgck-modal-head {
  position: relative;
  padding: 20px 24px;
  border-bottom: 2px solid #f0eff0;
}
.pgck-modal-head h2 {
  margin: 0;
  font-size: 19px;
  color: #693a14;
}
.pgck-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #808080;
}
.pgck-close:hover { color: #693a14; }

.pgck-modal-body { padding: 8px 24px; }
.pgck-cat {
  padding: 16px 0;
  border-bottom: 1px solid #f0eff0;
}
.pgck-cat:last-child { border-bottom: none; }
.pgck-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.pgck-cat-name {
  font-weight: 700;
  font-size: 15px;
}
.pgck-cat-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #737373;
  line-height: 1.5;
}

/* ---------- Switch ---------- */
.pgck-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}
.pgck-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.pgck-slider {
  position: absolute;
  inset: 0;
  background: #cecece;
  border-radius: 24px;
  transition: background 0.2s ease;
}
.pgck-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.pgck-switch input:checked + .pgck-slider { background: #96be16; }
.pgck-switch input:checked + .pgck-slider:before { transform: translateX(20px); }
.pgck-switch input:disabled + .pgck-slider { background: #693a14; opacity: 0.75; cursor: not-allowed; }

.pgck-modal-foot {
  padding: 16px 24px 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 2px solid #f0eff0;
}

/* ---------- Boton flotante para reabrir ---------- */
.pgck-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #96be16;
  background: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.pgck-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .pgck-inner { padding: 16px; gap: 14px; }
  .pgck-btns { width: 100%; }
  .pgck-btn { flex: 1 1 auto; text-align: center; }
  .pgck-float { width: 42px; height: 42px; font-size: 20px; }
}
