/* ==========================================================
   COOKIE BANNER
   ========================================================== */

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 10000 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .28s ease,
    visibility .28s ease;
}

.cookie-banner--visible{
  opacity:1;
  visibility:visible;
}

.cookie-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .30);
  backdrop-filter: blur(3px);
  opacity:0;
  transition:opacity .30s ease;
}

.cookie-banner--visible .cookie-banner__backdrop{
  opacity:1;
}

.cookie-banner__container {
  position: absolute;
  width: min(560px, calc(100% - 40px));
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .20);
  padding: 22px 28px;
  transform:translateY(20px) scale(.96);
  transition:
    transform .30s cubic-bezier(.22,1,.36,1),
    opacity .30s ease;
  opacity:0;
}

.cookie-banner--visible .cookie-banner__container{
  transform:translateY(0) scale(1);
  opacity:1;
}

.cookie-banner__header{
  display:flex;
  align-items:flex-start;
  gap:18px;
}

.cookie-banner__title-group{
  flex:1;
}

.cookie-banner__title{
  margin:0;
  font-size:1.8rem;
  font-weight:700;
  color:#1f1f1f;
}

.cookie-banner__subtitle{
  margin-top:10px;
  max-width:560px;
  line-height:1.6;
  color:#666;
}

.cookie-banner__body{
  min-height:15px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:10px;
}

.cookie-banner__actions{
  margin-top:24px;
  display:flex;
  align-items: center;
  justify-content:center;
  gap:14px;
  flex-wrap: wrap;
}

.cookie-banner__links{
  margin-top:18px;
  text-align:center;
  padding-top:14px;
  border-top:1px solid #ececec;
  font-size:.9rem;
  opacity:.75;
}

.cookie-banner__icon{
  width:64px;
  height:64px;
  border-radius:50%;
  background:#ffe75c;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  flex-shrink:0;
}

.cookie-banner__icon img{
  width:40px;
  height:40px;
  display:block;
  margin-top:4px;
}

.cookie-banner__chicken{
  position:absolute;
  left:50%;
  transition:
    left .35s cubic-bezier(.22,1,.36,1),
    top .35s cubic-bezier(.22,1,.36,1),
    transform .35s cubic-bezier(.22,1,.36,1);
}

.cookie-banner__chicken img{
  width:40px;
  height:40px;
  display:block;
}

/* Móvil: sin gallina porque los botones están en columna */
@media (max-width:768px){
  .cookie-banner__chicken {
    display:none;
  }
}

.cookie-banner__button {
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color .25s ease,
    color .25s ease,
    transform .2s ease,
    box-shadow .25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.cookie-banner__button--reject {
  background: #f4f4f4;
  color: #222;
}

.cookie-banner__button--reject:hover {
  background: #e7e7e7;
  transform: translateY(-2px);
}

.cookie-banner__button--necessary {
  background: white;
  color: #222;
  border: 2px solid #e5e5e5;
}

.cookie-banner__button--necessary:hover {
  border-color: #cfcfcf;
  transform: translateY(-2px);
}

.cookie-banner__button--accept {
  background: #F7E721;
  color: #111;
}

.cookie-banner__button--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

@media (max-width:768px){

  .cookie-banner__container{
    width:calc(100vw - 24px);
    padding:20px;
  }

  .cookie-banner__header{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .cookie-banner__subtitle{
    max-width:100%;
  }

  .cookie-banner__actions{
    flex-direction:column;
  }

  .cookie-banner__button{
    width:100%;
  }

}

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

.cookie-settings-button,
.onboarding__cookie-btn {
  position: fixed;
  left: 32px;
  bottom: 80px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
  z-index: 9998;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,.2);
}

.cookie-settings-button:hover,
.onboarding__cookie-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 0 5px rgba(0,0,0,.2) !important;
  background: rgba(255,255,255,1) !important;
}

.cookie-settings-button img,
.onboarding__cookie-btn img {
  width: 35px;
  height: 35px;
  display: block;
}

@media (max-width: 768px) {
  .cookie-settings-button,
  .onboarding__cookie-btn {
    left: 16px;
    bottom: 16px;
    width: 45px;
    height: 45px;
  }
  .cookie-settings-button img,
  .onboarding__cookie-btn img {
    width: 30px;
    height: 30px;
  }
}

.cookie-banner__button--selected{
  outline:3px solid #F7E721;
  box-shadow:
    0 0 0 4px rgba(247,231,33,.25),
    0 8px 18px rgba(0,0,0,.15);
}

.cookie-banner__button--accept.cookie-banner__button--selected{
  outline:3px solid #111;
  box-shadow:
    0 0 0 4px rgba(0,0,0,.18),
    0 8px 18px rgba(0,0,0,.18);
}

.cookie-banner__close{
  position:absolute;
  top:18px;
  right:18px;
  width:34px;
  height:34px;
  border:none;
  border-radius:50%;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  transition:.25s;
}

.cookie-banner__close:hover{
  background:rgba(0,0,0,.08);
}