/* =========================================================================
   SCW — Banner de consentimiento de cookies (RGPD / LSSI)
   =========================================================================
   Independiente del CSS de Webflow. Para desactivarlo: quitar el <link> a
   esta hoja y el <script> js/scw-cookies.js de las páginas.
   ========================================================================= */

.scw-cc,
.scw-cc * { box-sizing: border-box; }

/* ---------- Banner ---------- */

.scw-cc {
  position: fixed;
  z-index: 2147483000;            /* por encima del modal de testimonios */
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  width: min(1100px, calc(100vw - 32px));
  padding: 20px 22px;
  border-radius: 16px;
  background: #141317;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-family: 'Inter', 'Manrope', sans-serif;
  font-size: .94rem;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, visibility .35s;
}

.scw-cc.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.scw-cc__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.scw-cc__text { flex: 1 1 auto; margin: 0; }
.scw-cc__title {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.scw-cc__text a { color: #ec1a46; text-decoration: underline; }
.scw-cc__text a:hover { color: #ff7d97; }

/* ---------- Botones ----------
   Aceptar y Rechazar tienen el mismo tamaño y peso visual: la AEPD exige
   que rechazar sea tan fácil como aceptar. */

.scw-cc__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scw-cc__btn {
  appearance: none;
  min-width: 132px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background-color .18s ease;
}
.scw-cc__btn:hover { transform: translateY(-1px); }
.scw-cc__btn:focus-visible { outline: 2px solid #ff7d97; outline-offset: 3px; }

.scw-cc__btn--accept {
  background-image: linear-gradient(135deg, #ff2d55, #ec1a46 55%, #c81038);
  color: #fff;
}
.scw-cc__btn--accept:hover { filter: brightness(1.08); }

.scw-cc__btn--reject {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.scw-cc__btn--reject:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Enlace para cambiar la decisión después ---------- */

.scw-cc-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.scw-cc-link:hover { color: #ec1a46; text-decoration: underline; }

/* ---------- Móvil ---------- */

@media screen and (max-width: 767px) {
  .scw-cc {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    transform: translateY(140%);
    padding: 18px 18px 16px;
    font-size: .88rem;
  }
  .scw-cc.is-open { transform: translateY(0); }

  .scw-cc__inner { flex-direction: column; align-items: stretch; gap: 14px; }

  /* los dos botones en fila: apilarlos hacía el banner demasiado alto
     y tapaba casi la mitad de la pantalla */
  .scw-cc__actions { gap: 8px; }
  .scw-cc__btn { flex: 1 1 0; width: auto; min-width: 0; padding: 13px 12px; }

  .scw-cc__title { font-size: .96rem; }
}

/* pantallas muy estrechas: aún más compacto */
@media screen and (max-width: 400px) {
  .scw-cc { font-size: .82rem; line-height: 1.5; padding: 16px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .scw-cc { transition: opacity .2s ease, visibility .2s; transform: translateX(-50%); }
  .scw-cc.is-open { transform: translateX(-50%); }
  .scw-cc__btn:hover { transform: none; }
  @media screen and (max-width: 767px) {
    .scw-cc, .scw-cc.is-open { transform: none; }
  }
}
