/* ==========================================================================
   Vinxey — Cookie Consent Banner
   ========================================================================== */

#vx-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

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

#vx-cookie-banner.vx-cookie--hidden {
  transform: translateY(110%);
  pointer-events: none;
  visibility: hidden;
}

.vx-cookie__inner {
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), 0 -1px 0 rgba(220, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* Línea roja superior — misma firma visual que el footer */
.vx-cookie__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #DC0000 30%, #DC0000 70%, transparent 100%);
}

.vx-cookie__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Ícono */
.vx-cookie__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(220, 0, 0, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Texto */
.vx-cookie__text {
  flex: 1;
  min-width: 0;
}

.vx-cookie__title {
  font-family: var(--vx-font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.vx-cookie__desc {
  font-family: var(--vx-font-body, 'Inter', sans-serif);
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.55;
}

.vx-cookie__desc a {
  color: var(--vx-primary-on-dark, #FF6B6B) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 0, 0, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.vx-cookie__desc a:hover {
  color: #FF8A8A !important;
  border-bottom-color: #FF8A8A;
}

/* Botones */
.vx-cookie__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vx-cookie__btn {
  font-family: var(--vx-font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1;
}

.vx-cookie__btn--reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vx-cookie__btn--reject:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.vx-cookie__btn--accept {
  background: #DC0000;
  color: #ffffff;
  border: 1px solid #DC0000;
  box-shadow: 0 4px 14px rgba(220, 0, 0, 0.3);
}

.vx-cookie__btn--accept:hover {
  background: #B30000;
  border-color: #B30000;
  box-shadow: 0 6px 20px rgba(220, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* Cerrar (X) */
.vx-cookie__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  padding: 0;
  margin-left: 4px;
}

.vx-cookie__close:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
}

.vx-cookie__close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .vx-cookie__wrap {
    flex-wrap: wrap;
    padding: 18px 20px 16px;
    gap: 14px;
  }

  .vx-cookie__icon {
    display: none;
  }

  .vx-cookie__text {
    flex-basis: 100%;
  }

  .vx-cookie__actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .vx-cookie__close {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
  }
}

@media (max-width: 400px) {
  .vx-cookie__btn {
    font-size: 0.75rem;
    padding: 9px 14px;
  }
}
