/* ============================================================
   BANNER DE COOKIES — R Y M
   CSS propio, sin dependencia de Tailwind, para que el banner
   se vea igual en index.html y en las tres páginas legales.
   ============================================================ */

#cookieBanner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  width: min(920px, calc(100vw - 32px));
  z-index: 90;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .28);
  padding: 26px 26px 24px;
  font-family: 'Inter', system-ui, sans-serif;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
  opacity: 0;
  visibility: hidden;
}

#cookieBanner.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

#cookieBanner .ck-titulo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

#cookieBanner .ck-texto {
  font-size: 13.5px;
  line-height: 1.75;
  font-weight: 300;
  color: #64748b;
  margin: 0;
  max-width: 62ch;
}

#cookieBanner .ck-texto a {
  color: #A3704C;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 112, 76, .4);
  transition: border-color .3s ease;
}
#cookieBanner .ck-texto a:hover { border-bottom-color: #A3704C; }

#cookieBanner .ck-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}

/* --------------------------------------------------------------
   AEPD: "Aceptar" y "Rechazar" DEBEN tener el mismo peso visual.
   Ambos comparten exactamente la clase .ck-btn: mismo tamaño,
   mismo color, misma tipografía, mismo borde. No tocar por
   separado ni añadir un modificador "primario" a uno de los dos.
   -------------------------------------------------------------- */
#cookieBanner .ck-btn {
  flex: 1 1 200px;
  min-width: 180px;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 22px;
  border-radius: 9999px;
  border: 1px solid #A3704C;
  background: #A3704C;
  color: #ffffff;
  text-align: center;
  transition: background-color .3s ease, border-color .3s ease;
}

#cookieBanner .ck-btn:hover { background: #8A5C3C; border-color: #8A5C3C; }
#cookieBanner .ck-btn:focus-visible { outline: 2px solid #0f172a; outline-offset: 3px; }

/* Enlace secundario: NO es un botón de decisión, solo lleva a la política. */
#cookieBanner .ck-enlace {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  padding: 16px 4px;
  transition: color .3s ease;
}
#cookieBanner .ck-enlace:hover { color: #0f172a; }

@media (max-width: 560px) {
  #cookieBanner { bottom: 12px; padding: 22px 20px; border-radius: 18px; }
  #cookieBanner .ck-titulo { font-size: 23px; }
  #cookieBanner .ck-btn { flex: 1 1 100%; }
  #cookieBanner .ck-enlace { width: 100%; text-align: center; padding: 6px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  #cookieBanner { transition: opacity .2s ease; transform: translate(-50%, 0); }
}

/* ---------- Marcador de contenido bloqueado (mapa de Google) ---------- */
.ck-bloqueado {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 34px 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  min-height: 280px;
  font-family: 'Inter', system-ui, sans-serif;
}

.ck-bloqueado p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  color: #64748b;
  max-width: 44ch;
}

.ck-bloqueado button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 9999px;
  border: 1px solid #A3704C;
  background: transparent;
  color: #A3704C;
  transition: background-color .3s ease, color .3s ease;
}
.ck-bloqueado button:hover { background: #A3704C; color: #fff; }
