/* ══════════════════════════════════════════════════════════
   Banner y panel de cookies — FotoHook
   Hereda tipografía del documento y usa el acento lima del proyecto.
   Sin dependencias: no necesita Bootstrap ni ninguna librería.
   ══════════════════════════════════════════════════════════ */

.fh-ck {
  --fh-ck-bg:      #14161c;
  --fh-ck-panel:   #1b1e26;
  --fh-ck-border:  rgba(255, 255, 255, .12);
  --fh-ck-text:    #e8eaf0;
  --fh-ck-muted:   #9aa3b2;
  --fh-ck-accent:  #c8ff00;
  --fh-ck-accent-t:#101208;
  --fh-ck-radius:  14px;
  font-family: inherit;
  color: var(--fh-ck-text);
  box-sizing: border-box;
}
.fh-ck *, .fh-ck *::before, .fh-ck *::after { box-sizing: inherit; }

/* ── Primera capa ───────────────────────────────────────── */
.fh-ck-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 2147483000;
  max-width: 760px;
  margin: 0 auto;
  background: var(--fh-ck-bg);
  border: 1px solid var(--fh-ck-border);
  border-radius: var(--fh-ck-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  padding: 22px;
  animation: fh-ck-up .25s ease-out;
}
@keyframes fh-ck-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fh-ck-banner { animation: none; } }

.fh-ck-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.fh-ck-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fh-ck-muted);
  margin: 0 0 18px;
}
.fh-ck-text a { color: var(--fh-ck-accent); text-decoration: underline; }

/* Tres botones al mismo nivel visual: mismo tamaño, peso y jerarquía */
.fh-ck-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fh-ck-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--fh-ck-border);
  background: transparent;
  color: var(--fh-ck-text);
  cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.fh-ck-btn:hover { background: rgba(255, 255, 255, .07); }
.fh-ck-btn:focus-visible { outline: 3px solid var(--fh-ck-accent); outline-offset: 2px; }
.fh-ck-btn--accent {
  background: var(--fh-ck-accent);
  border-color: var(--fh-ck-accent);
  color: var(--fh-ck-accent-t);
}
.fh-ck-btn--accent:hover { background: #d6ff3d; }

@media (max-width: 560px) {
  .fh-ck-actions { grid-template-columns: 1fr; }
  .fh-ck-banner  { padding: 18px; inset: auto 10px 10px 10px; }
}

/* ── Panel de configuración ─────────────────────────────── */
.fh-ck-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fh-ck-panel {
  background: var(--fh-ck-panel);
  border: 1px solid var(--fh-ck-border);
  border-radius: var(--fh-ck-radius);
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.fh-ck-panel-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--fh-ck-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fh-ck-panel-head h2 { font-size: 17px; font-weight: 700; margin: 0; }
.fh-ck-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--fh-ck-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.fh-ck-close:hover { color: var(--fh-ck-text); }
.fh-ck-close:focus-visible { outline: 3px solid var(--fh-ck-accent); outline-offset: 2px; }

.fh-ck-panel-body { padding: 8px 22px 16px; overflow-y: auto; }
.fh-ck-panel-foot {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--fh-ck-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 560px) { .fh-ck-panel-foot { grid-template-columns: 1fr; } }

/* ── Categorías ─────────────────────────────────────────── */
.fh-ck-cat { padding: 16px 0; border-bottom: 1px solid var(--fh-ck-border); }
.fh-ck-cat:last-child { border-bottom: 0; }
.fh-ck-cat-head { display: flex; align-items: center; gap: 12px; }
.fh-ck-cat-name { font-size: 15px; font-weight: 600; margin: 0; flex: 1; }
.fh-ck-cat-desc { font-size: 13px; line-height: 1.6; color: var(--fh-ck-muted); margin: 8px 0 0; }
.fh-ck-always {
  font-size: 12px;
  font-weight: 600;
  color: var(--fh-ck-muted);
  border: 1px solid var(--fh-ck-border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Interruptor accesible: es un checkbox real */
.fh-ck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.fh-ck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fh-ck-slider {
  position: absolute; inset: 0;
  background: #3a3f4b;
  border-radius: 999px;
  transition: background .15s;
  pointer-events: none;
}
.fh-ck-slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.fh-ck-switch input:checked + .fh-ck-slider { background: var(--fh-ck-accent); }
.fh-ck-switch input:checked + .fh-ck-slider::before { transform: translateX(20px); }
.fh-ck-switch input:focus-visible + .fh-ck-slider { outline: 3px solid var(--fh-ck-accent); outline-offset: 2px; }

/* Detalle de cookies */
.fh-ck-details { margin-top: 10px; }
.fh-ck-details summary {
  font-size: 13px;
  color: var(--fh-ck-accent);
  cursor: pointer;
  padding: 4px 0;
}
.fh-ck-details summary:focus-visible { outline: 3px solid var(--fh-ck-accent); outline-offset: 2px; }
.fh-ck-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.fh-ck-table th, .fh-ck-table td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--fh-ck-border);
  vertical-align: top;
  color: var(--fh-ck-muted);
}
.fh-ck-table th { color: var(--fh-ck-text); font-weight: 600; }
.fh-ck-table code { color: var(--fh-ck-text); font-size: 12px; }
.fh-ck-empty { font-size: 13px; color: var(--fh-ck-muted); font-style: italic; margin: 8px 0 0; }

.fh-ck-legal { font-size: 12px; color: var(--fh-ck-muted); margin: 14px 0 0; line-height: 1.6; }
.fh-ck-legal a { color: var(--fh-ck-accent); }

/* ── Marcador de contenido externo bloqueado ────────────── */
.fh-ck-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 28px 22px;
  min-height: 200px;
  background: rgba(255, 255, 255, .04);
  border: 1px dashed var(--fh-ck-border, rgba(255, 255, 255, .18));
  border-radius: 12px;
  color: #9aa3b2;
  font-size: 13px;
  line-height: 1.6;
}
.fh-ck-ph strong { color: #e8eaf0; display: block; font-size: 14px; }
