/* CARTA EXPRESS — Cookie consent banner */
.cookie-banner {
  position: fixed; bottom: 22px; left: 22px; right: 22px; max-width: 510px;
  background: #fff; border: 1.5px solid #E8E3DA; border-radius: 16px;
  padding: 26px 28px; box-shadow: 0 24px 60px rgba(12,35,64,.18);
  z-index: 1000; font-family: 'DM Sans', sans-serif; color: #141B2D;
  transform: translateY(120%); opacity: 0;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2), opacity .3s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: #0C2340; margin-bottom: 8px; }
.cookie-banner p { font-size: .88rem; line-height: 1.62; color: #6B7A99; margin-bottom: 18px; }
.cookie-banner p a { color: #0C2340; text-decoration: underline; text-decoration-color: #C84B2A; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  flex: 1; min-width: 130px; padding: 11px 16px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .88rem;
  cursor: pointer; border: 2px solid transparent; transition: all .2s; white-space: nowrap;
}
.cookie-btn-primary { background: #C84B2A; color: #fff; box-shadow: 0 4px 14px rgba(200,75,42,.3); }
.cookie-btn-primary:hover { background: #E06642; }
.cookie-btn-ghost { background: transparent; color: #0C2340; border-color: #E8E3DA; }
.cookie-btn-ghost:hover { border-color: #0C2340; }
.cookie-btn-link { background: transparent; color: #6B7A99; padding: 11px 8px; flex: 0 1 auto; min-width: auto; text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn-link:hover { color: #0C2340; }

.cookie-modal-backdrop {
  position: fixed; inset: 0; background: rgba(12,35,64,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 1001; display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .25s;
}
.cookie-modal-backdrop.show { display: flex; opacity: 1; }
.cookie-modal {
  background: #fff; border-radius: 20px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; font-family: 'DM Sans', sans-serif;
  transform: translateY(20px); transition: transform .3s;
}
.cookie-modal-backdrop.show .cookie-modal { transform: translateY(0); }
.cookie-modal-head { padding: 26px 30px 16px; border-bottom: 1px solid #E8E3DA; }
.cookie-modal-head h3 { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 700; color: #0C2340; }
.cookie-modal-head p { font-size: .88rem; color: #6B7A99; margin-top: 6px; }
.cookie-modal-body { padding: 20px 30px; }
.cookie-cat { border: 1.5px solid #E8E3DA; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; transition: border-color .2s; }
.cookie-cat:has(input:checked) { border-color: rgba(200,75,42,.45); }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cookie-cat h4 { font-size: .96rem; font-weight: 600; color: #0C2340; }
.cookie-cat .badge { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: #FBF7F0; color: #6B7A99; padding: 3px 10px; border-radius: 999px; margin-left: 8px; }
.cookie-cat .desc { font-size: .83rem; color: #6B7A99; margin-top: 8px; line-height: 1.55; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle .slider { position: absolute; inset: 0; background: #D1D5DB; border-radius: 999px; cursor: pointer; transition: .25s; }
.toggle .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: .25s; }
.toggle input:checked + .slider { background: #C84B2A; }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:disabled + .slider { background: #0C2340; opacity: .5; cursor: not-allowed; }
.toggle input:disabled + .slider::before { transform: translateX(20px); }
.cookie-modal-foot { padding: 16px 30px 26px; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid #E8E3DA; }
.cookie-modal-foot .cookie-btn { flex: 1; min-width: 130px; }
@media (max-width: 720px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-modal-head, .cookie-modal-body, .cookie-modal-foot { padding-left: 22px; padding-right: 22px; }
  .cookie-actions, .cookie-modal-foot { flex-direction: column; }
  .cookie-actions .cookie-btn, .cookie-modal-foot .cookie-btn { width: 100%; flex: none; }
}
