.cookie-tab{
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(25, 0, 45, 0.92);
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  user-select: none;
}

.cookie-tab:focus{
  outline: 2px solid rgba(255, 215, 0, 0.8);
  outline-offset: 2px;
}

.cookie-tab-logo{
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cookie-tab-text{
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
}

.cookie-panel{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 92%);
  background: rgba(25, 0, 45, 0.98);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  z-index: 10000;
  overflow: hidden;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.cookie-panel.is-open{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.cookie-panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.cookie-panel-logo{
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}

.cookie-close{
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
}
.cookie-close:hover{ background: rgba(255,255,255,0.08); }

.cookie-panel-body{
  padding: 14px;
}

.cookie-title{
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.cookie-desc{
  font-size: 13px;
  margin: 0 0 14px 0;
  opacity: 0.92;
}
.cookie-desc a{
  color: #ffd700;
  text-decoration: none;
}
.cookie-desc a:hover{ text-decoration: underline; }

.cookie-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn{
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.cookie-btn-ghost{
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.cookie-btn-ghost:hover{ background: rgba(255,255,255,0.16); }

.cookie-btn-solid{
  background: linear-gradient(45deg, #9c27b0, #ff5722);
  color: #fff;
}
.cookie-btn-solid:hover{ opacity: 0.9; }

.cookie-hidden{ display: none !important; }

/* Fondo oscuro detrás del panel */
.cookie-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 9998;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.cookie-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px){

  /* Panel estable abajo, SIN animar transform */
  .cookie-panel{
    top: auto !important;
    left: 50% !important;
    bottom: 16px !important;

    /* mismo transform siempre */
    transform: translateX(-50%) !important;

    width: calc(100% - 24px) !important;
    max-width: 520px !important;
    border-radius: 18px !important;

    /* en móvil solo animamos opacity */
    transition: opacity .25s ease !important;
  }

  .cookie-panel.is-open{
    transform: translateX(-50%) !important; /* igual que cerrado */
  }

  /* overlay sin blur (evita “saltos”/re-render) */
  .cookie-overlay{
    backdrop-filter: none !important;
  }

  /* botones responsivos */
  .cookie-actions{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .cookie-btn{
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  /* logo grande pero controlado */
  .cookie-panel-logo{
    width: 84px !important;
    height: 84px !important;
  }
}