/* ========================================================================
   COOKIES — Banner, botón flotante, modal
   Cumple con Ley 1581 (Colombia) y GDPR.
   Z-indexes elevados para quedar encima de otros overlays del sitio.
   ======================================================================== */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 40px));
  background: #ffffff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 1500;
  animation: cookie-banner-in 0.35s cubic-bezier(0.17, 0.67, 0.21, 1.3);
  font-family: 'Oswald', sans-serif;
}

@keyframes cookie-banner-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner-inner {
  padding: 16px 18px;
}

.cookie-banner-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 6px;
}

.cookie-banner-text {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  font-weight: 300;
  margin: 0 0 12px;
}

.cookie-banner-text .cookie-policy-link {
  color: #004199;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  background: #ffd21c;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cookie-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.cookie-btn-ghost {
  background: transparent;
  color: #333;
  border: 2px solid rgba(0, 0, 0, 0.14);
}
.cookie-btn-ghost:hover { border-color: #000; background: #f7f7f7; }
.cookie-btn-primary { background: #ffd21c; color: #000; }

/* ------------ Preferences modal ------------ */
.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  padding: 20px;
  font-family: 'Oswald', sans-serif;
}
.cookie-modal.visible { display: flex; animation: cookie-modal-fade 0.25s; }
@keyframes cookie-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-modal-content {
  background: #ffffff;
  color: #111;
  border-radius: 16px;
  padding: 26px 24px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: cookie-modal-scale 0.3s cubic-bezier(0.17, 0.67, 0.21, 1.3);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes cookie-modal-scale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.cookie-modal-content h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.cookie-modal-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.45;
  font-weight: 300;
  margin: 0 0 18px;
}
.cookie-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.cookie-row:first-of-type { border-top: none; }
.cookie-row-text { flex: 1; }
.cookie-row-text strong {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.cookie-row-text span {
  display: block;
  font-size: 12px;
  color: #555;
  font-weight: 300;
  line-height: 1.4;
}
.cookie-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #cca100;
  cursor: pointer;
}
.cookie-row input[disabled] { opacity: 0.5; cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-foot {
  margin-top: 14px;
  font-size: 11px;
  color: #666;
  font-weight: 300;
  line-height: 1.5;
}
.cookie-modal-foot a {
  color: #004199;
  text-decoration: underline;
}

/* ------------ Policy modal (scrollable popup) ------------ */
.cookie-policy-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2100;
  padding: 20px;
  font-family: 'Oswald', sans-serif;
}
.cookie-policy-modal.visible { display: flex; animation: cookie-modal-fade 0.25s; }

.cookie-policy-modal-content {
  position: relative;
  background: #ffffff;
  color: #111;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: cookie-modal-scale 0.3s cubic-bezier(0.17, 0.67, 0.21, 1.3);
  overflow: hidden;
}

.cookie-policy-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #000;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.cookie-policy-close:hover { background: rgba(0, 0, 0, 0.12); }

.cookie-policy-body {
  padding: 32px 32px 24px;
  overflow-y: auto;
  flex: 1;
}
.cookie-policy-body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 44px 16px 0;
}
.cookie-policy-body h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 18px 0 6px;
  color: #111;
}
.cookie-policy-body p,
.cookie-policy-body ul {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 300;
  color: #333;
  margin-bottom: 8px;
}
.cookie-policy-body ul {
  list-style: disc;
  padding-left: 22px;
}
.cookie-policy-body code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
}
.cookie-policy-body a {
  color: #004199;
  text-decoration: underline;
}

.cookie-policy-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
}

@media (max-width: 520px) {
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .cookie-btn { flex: 1; min-width: 0; }
}
