/* La Casita de Simba — banner y panel de cookies + contenido bloqueado.
   Aceptar y Rechazar comparten exactamente el mismo estilo (criterio AEPD). */
.cc-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 10000;
  max-width: 980px; margin: 0 auto;
  background: #fff; color: #3D3D3D;
  border: 1px solid rgba(240,138,124,.35); border-radius: 20px;
  box-shadow: 0 18px 50px rgba(44,62,80,.22);
  font-family: 'Nunito', system-ui, sans-serif;
  animation: cc-rise .35s cubic-bezier(.22,1,.36,1);
}
.cc-banner-inner { display: flex; gap: 1.4rem; align-items: center; padding: 1.2rem 1.4rem; }
.cc-banner-text { flex: 1; min-width: 0; }
.cc-banner p { margin: 0; font-size: .88rem; line-height: 1.6; }
.cc-banner .cc-title { font-weight: 900; color: #2C3E50; font-size: 1rem; margin-bottom: .3rem; }
.cc-banner a, .cc-panel a { color: #B4493C; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; flex-direction: column; gap: .55rem; flex-shrink: 0; min-width: 210px; }
.cc-btn {
  appearance: none; border: 2px solid #2C3E50; background: #2C3E50; color: #fff;
  font: 800 .9rem/1.2 'Nunito', system-ui, sans-serif; letter-spacing: .01em;
  padding: .72rem 1.2rem; border-radius: 50px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cc-btn:hover { background: #1f2d3a; border-color: #1f2d3a; box-shadow: 0 6px 16px rgba(44,62,80,.25); }
.cc-btn:active { transform: scale(.97); }
.cc-btn-ghost { background: #fff; color: #2C3E50; }
.cc-btn-ghost:hover { background: #FFF0EE; color: #2C3E50; border-color: #2C3E50; }
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-switch input:focus-visible + span,
.consent-placeholder button:focus-visible, .cc-footer-btn:focus-visible {
  outline: 3px solid #F08A7C; outline-offset: 3px;
}

/* Panel de configuración */
.cc-overlay {
  position: fixed; inset: 0; z-index: 10001; background: rgba(44,62,80,.55);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  font-family: 'Nunito', system-ui, sans-serif;
}
.cc-panel {
  position: relative; background: #fff; color: #3D3D3D; width: 100%; max-width: 560px;
  max-height: calc(100vh - 2rem); overflow-y: auto; border-radius: 22px;
  padding: 1.8rem 1.6rem 1.4rem; box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: cc-rise .3s cubic-bezier(.22,1,.36,1);
}
.cc-panel h2 { font-family: 'Pacifico', cursive; font-weight: 400; color: #D9695B; font-size: 1.5rem; margin: 0 0 .4rem; }
.cc-intro { font-size: .88rem; line-height: 1.6; margin: 0 0 1rem; }
.cc-close {
  position: absolute; top: .9rem; right: .9rem; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: #f4f4f4; color: #555; font-size: 1rem; cursor: pointer;
}
.cc-close:hover { background: #ececec; color: #222; }
.cc-cat { border: 1px solid #f0e2df; border-radius: 14px; padding: .85rem 1rem; margin-bottom: .7rem; background: #fffaf9; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-cat-name { font-weight: 800; color: #2C3E50; font-size: .95rem; cursor: pointer; }
.cc-cat p { margin: .35rem 0 0; font-size: .82rem; line-height: 1.55; color: #555; }
.cc-always { font-size: .75rem; font-weight: 800; color: #3E7F60; background: #EFF7F2; padding: .25rem .65rem; border-radius: 20px; white-space: nowrap; }
.cc-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 28px; background: #c9c9c9; transition: background .2s; }
.cc-switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.cc-switch input:checked + span { background: #3E7F60; }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-actions-panel { flex-direction: row; flex-wrap: wrap; margin-top: 1.1rem; min-width: 0; }
.cc-actions-panel .cc-btn { flex: 1 1 140px; }
.cc-actions-panel .cc-btn-ghost { flex-basis: 100%; }

/* Contenido externo bloqueado hasta el consentimiento (p. ej. mapa) */
.consent-placeholder {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.2rem; text-align: center; color: #2C3E50;
  background:
    radial-gradient(circle at 20% 25%, rgba(126,200,164,.35) 0 18%, transparent 19%),
    radial-gradient(circle at 78% 70%, rgba(240,138,124,.30) 0 16%, transparent 17%),
    linear-gradient(135deg, #EFF7F2, #FFF0EE);
  font-family: 'Nunito', system-ui, sans-serif;
}
.consent-placeholder[hidden] { display: none; }
.consent-placeholder .cp-ico { font-size: 2rem; line-height: 1; }
.consent-placeholder p { margin: 0; font-size: .84rem; line-height: 1.5; max-width: 340px; }
.consent-placeholder strong { font-size: .95rem; }
.consent-placeholder .cp-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.consent-placeholder button, .consent-placeholder a.cp-link {
  font: 800 .82rem/1.2 'Nunito', system-ui, sans-serif; padding: .6rem 1rem; border-radius: 50px; cursor: pointer;
  border: 2px solid #2C3E50; background: #2C3E50; color: #fff; text-decoration: none;
}
.consent-placeholder a.cp-link { background: #fff; color: #2C3E50; }

/* Botón "Configurar cookies" del pie */
.cc-footer-btn {
  appearance: none; background: none; border: none; padding: 0; cursor: pointer;
  color: rgba(255,255,255,.75); font: inherit; font-size: .78rem; text-decoration: none;
  transition: color .2s;
}
.cc-footer-btn:hover { color: #fff; }

@keyframes cc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .cc-banner { left: .6rem; right: .6rem; bottom: .6rem; border-radius: 18px; }
  .cc-banner-inner { flex-direction: column; align-items: stretch; gap: .9rem; padding: 1rem 1rem 1.05rem; }
  .cc-banner p { font-size: .82rem; }
  .cc-actions { min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .cc-actions .cc-btn { flex: 1 1 calc(50% - .3rem); padding: .7rem .6rem; font-size: .86rem; }
  .cc-actions .cc-btn-ghost { flex-basis: 100%; }
  .cc-banner .cc-title { font-size: .95rem; }
  .cc-panel { padding: 1.5rem 1.1rem 1.1rem; border-radius: 18px; }
  /* Evita que el botón flotante de WhatsApp tape el banner en móvil */
  .cc-banner-open .wa-float, .cc-banner-open .wa-bubble { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-panel { animation: none; }
  .cc-switch span, .cc-switch span::after, .cc-btn { transition: none; }
}
