/* Banner y preferencias de cookies (RGPD / ePrivacy y marcos latinoamericanos) */
html.volta-cookie--done #volta-cookie-banner {
  display: none !important;
}

.volta-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.volta-cookie__inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .volta-cookie__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
  }
}

.volta-cookie__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: #cbd5e1;
}

.volta-cookie__text a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: underline;
}

.volta-cookie__text a:hover {
  color: #bfdbfe;
}

.volta-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.volta-cookie__btn {
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  padding: 11px 16px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.volta-cookie__btn:active {
  transform: scale(0.98);
}

.volta-cookie__btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.volta-cookie__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.volta-cookie__btn--primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
}

.volta-cookie__btn--accent {
  background: #f8fafc;
  color: #0f172a;
}

.volta-cookie-modal[hidden] {
  display: none !important;
}

.volta-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 20px;
}

.volta-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.volta-cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #fff;
  color: #1e293b;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.volta-cookie-modal__panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

.volta-cookie-modal__lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.volta-cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.volta-cookie-row:last-of-type {
  border-bottom: 0;
}

.volta-cookie-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.volta-cookie-row p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.volta-cookie-switch {
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.volta-cookie-switch[aria-checked="true"] {
  background: #2563eb;
}

.volta-cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.volta-cookie-switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.volta-cookie-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.volta-cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.volta-cookie-modal__btn {
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
  border: 0;
}

.volta-cookie-modal__btn--secondary {
  background: #f1f5f9;
  color: #334155;
}

.volta-cookie-modal__btn--primary {
  background: #2563eb;
  color: #fff;
}

/* Pie Volta / auth: botón “Preferencias de cookies” */
.footer .footer-linklike {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.footer .footer-linklike:hover {
  color: rgba(255, 255, 255, 0.92);
}
