/* ========= ELIAS GRUP — Logo Redimensionado (+100%) ========= */
.header .container { height: 96px; }
.header-logo img { height: 104px; width: auto; }

/* ========= COOKIE CONSENT BANNER ========= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid var(--navy);
  box-shadow: 0 -8px 40px rgba(12, 60, 90, .15);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
#cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.cookie-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--gray-200);
}
.cookie-logo-wrap img { height: 48px; width: auto; }
.cookie-logo-wrap .brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.cookie-text-wrap {}
.cookie-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.cookie-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.cookie-text-wrap h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}
.cookie-text-wrap p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 640px;
}
.cookie-text-wrap p a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text-wrap p a:hover { color: var(--navy); }

/* Toggle row */
.cookie-toggles {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
}
.cookie-toggle-item.disabled { opacity: .55; cursor: not-allowed; }
/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; bottom: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--cyan); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }
.toggle-switch input:disabled + .toggle-slider { cursor: not-allowed; background: var(--navy); }
.toggle-switch input:disabled + .toggle-slider::before { transform: translateX(16px); }

/* Buttons */
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.cookie-btn-accept { background: var(--navy); color: #fff; }
.cookie-btn-accept:hover { background: var(--cyan); }
.cookie-btn-reject { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-600); }
.cookie-btn-reject:hover { border-color: var(--navy); color: var(--navy); }
.cookie-btn-config { background: transparent; border: 1.5px solid var(--cyan); color: var(--cyan); font-size: 10px; }
.cookie-btn-config:hover { background: var(--cyan); color: #fff; }

/* ======= COOKIE PREFERENCES MODAL ======= */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 60, 90, .5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#cookie-modal.open { display: flex; }

.cookie-modal-box {
  background: #fff;
  border-radius: 2px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  overflow: hidden;
}
.cookie-modal-head {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal-head h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.cookie-modal-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  cursor: pointer;
  border-radius: 2px;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cookie-modal-close:hover { background: rgba(255,255,255,.2); }
.cookie-modal-body { padding: 24px; }
.cookie-modal-category {
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  padding: 16px;
  margin-bottom: 12px;
}
.cookie-modal-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-modal-category-head span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.cookie-modal-category p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}
.cookie-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 900px) {
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 16px; }
  .cookie-logo-wrap { border-right: none; border-bottom: 1px solid var(--gray-200); padding-right: 0; padding-bottom: 16px; }
  .cookie-actions { flex-direction: row; flex-wrap: wrap; min-width: unset; }
  .cookie-btn { flex: 1 1 calc(50% - 4px); }
}
@media (max-width: 480px) {
  .cookie-btn { flex: 1 1 100%; }
  .cookie-toggles { gap: 12px; }
}
