/* Footer legal */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #707070;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer__nav a {
  color: #b5b5b5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #00e5cc;
}

.site-footer__copy {
  font-size: 0.7rem;
}

/* Consent checkbox form */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 1rem;
  text-align: left;
  cursor: pointer;
}

.form-consent input {
  width: auto !important;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #00e5cc;
}

.form-consent span {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: #a8a8a8 !important;
  line-height: 1.45;
}

.form-consent a {
  color: #00e5cc;
  text-decoration: underline;
}

.cta-button--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Cookie banner — compacto */
.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.6rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 10, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.5rem 0.65rem;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.cookie-banner__text {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.68rem;
  color: #a0a0a0;
  line-height: 1.4;
}

.cookie-banner__text a {
  color: #00e5cc;
  white-space: nowrap;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #00e5cc, #7b61ff, #ff4da6);
  border: none;
  color: #121212;
}

.cookie-btn:hover {
  border-color: #00e5cc;
}

.cookie-btn--primary:hover {
  filter: brightness(1.08);
}

/* Panel personalizar */
.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-panel__dialog {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-panel__dialog h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-toggle:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.cookie-toggle__info strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.cookie-toggle__info p {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
}

.cookie-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00e5cc;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-panel__actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-panel__actions .cookie-btn {
  flex: 1;
}

body.page-landing {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.has-sticky-cta {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.cookie-banner-open.has-sticky-cta {
  padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 480px) {
  .cookie-banner__box {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
