/* Banner compacto de consentimiento analítico. No altera el diseño comercial. */
#cttl-cookie-consent {
  position: fixed;
  left: 10px;
  bottom: 10px;
  right: auto;
  z-index: 1030; /* por debajo de flotantes (9999) y modales (2000+) */
  width: min(340px, calc(100vw - 96px)); /* deja hueco a la derecha para WA/llamar */
  max-width: 340px;
  padding: 10px 12px;
  background: #111;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  pointer-events: auto;
}

#cttl-cookie-consent[hidden] {
  display: none !important;
}

#cttl-cookie-consent p {
  margin: 0 0 8px;
}

#cttl-cookie-consent a {
  color: #ff6b6b;
  text-decoration: underline;
}

.cttl-cookie-consent__actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.cttl-cookie-consent__actions button {
  appearance: none;
  border: 0;
  border-radius: 5px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 auto;
}

#cttl-consent-accept {
  background: #c8102e;
  color: #fff;
}

#cttl-consent-reject {
  background: transparent;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 640px) {
  #cttl-cookie-consent {
    left: 8px;
    bottom: 8px;
    width: min(260px, calc(100vw - 88px));
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .cttl-cookie-consent__actions button {
    padding: 5px 8px;
  }
}
