/* MIBRAR® Cookie Consent — Modern Glass UI */
#mibrar-consent {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  font-family: "Roboto", sans-serif;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: rgba(12, 18, 61, 0.4);
  animation: mcFadeIn 0.3s ease;
}
#mibrar-consent.mc--visible { display: flex; }
@keyframes mcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mc__card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(145deg, #1a2055 0%, #0f1540 100%);
  color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(184, 155, 94, 0.25);
  padding: 22px 20px 18px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: mcSlideUp 0.35s ease;
  position: relative;
  overflow: hidden;
}
.mc__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at top right, rgba(184, 155, 94, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
@keyframes mcSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.mc__title {
  font-size: 18px;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}
.mc__title::before {
  content: '🍪';
  margin-right: 8px;
}
.mc__intro {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0 0 12px;
  position: relative;
}
.mc__link { color: #b89b5e; text-decoration: none; border-bottom: 1px solid rgba(184,155,94,0.3); transition: color 0.2s; }
.mc__link:hover { color: #e8c777; border-bottom-color: #e8c777; }
.mc__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  position: relative;
}
.mc__opt {
  font-size: 13px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 2px 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mc__opt:hover { background: rgba(184, 155, 94, 0.06); }
.mc__opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #b89b5e;
  cursor: pointer;
  grid-row: 1 / 3;
  align-self: center;
}
.mc__opt b { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.mc__opt small { color: rgba(255,255,255,0.55); font-size: 11px; line-height: 1.3; display: block; grid-column: 2; }
.mc__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: stretch;
  position: relative;
}
.mc__btn {
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  min-height: 44px;
}
.mc__btn:active { transform: scale(0.97); }
.mc__btn:focus-visible { outline: 2px solid #b89b5e; outline-offset: 2px; }
.mc__btn--primary {
  background: linear-gradient(135deg, #c4a55a 0%, #b89b5e 50%, #a68a4d 100%);
  color: #0c123d;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(184, 155, 94, 0.3);
}
.mc__btn--primary:hover { background: linear-gradient(135deg, #d4b46b 0%, #c4a55a 50%, #b89b5e 100%); box-shadow: 0 6px 20px rgba(184, 155, 94, 0.4); transform: translateY(-1px); }
.mc__btn--ghost {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(184,155,94,0.25);
}
.mc__btn--ghost:hover { background: rgba(184,155,94,0.1); border-color: rgba(184,155,94,0.4); }

/* RTL */
[dir="rtl"] .mc__title::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .mc__opt { grid-template-columns: 1fr 20px; }
[dir="rtl"] .mc__opt input[type="checkbox"] { grid-column: 2; }
[dir="rtl"] .mc__opt b, [dir="rtl"] .mc__opt small { grid-column: 1; grid-row: auto; }

/* Mobile */
@media (max-width: 480px) {
  #mibrar-consent { padding: 8px; }
  .mc__card { padding: 20px 16px 16px; border-radius: 16px; }
  .mc__actions { flex-direction: column; }
  .mc__btn { flex: unset; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mc__card { animation: none; }
  #mibrar-consent { animation: none; }
  .mc__btn { transition: none; }
}
