/* ==========================================================================
   COOKIES CENTRALIZADO - PARISDISNEYHOTELS (VERSIÓN FINAL BLINDADA)
   ========================================================================== */

/* 1. ANIMACIÓN DE ENTRADA SUAVE */
@keyframes slideUpFade {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 2. CONTENEDOR PRINCIPAL (BARRA FIJA) */
#cookiePopup {
  display: none; /* JS controla si se ve o no */
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;

  /* Fondo Premium Glassmorphism */
  background-color: rgba(10, 10, 10, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;

  /* Decoración */
  border-top: 2px solid #cf2223 !important;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.7) !important;

  color: #ffffff !important;
  padding: 30px 20px !important; /* Padding de seguridad */
  z-index: 2147483647 !important; /* Capa máxima */
  font-family: "Poppins", sans-serif !important;
  box-sizing: border-box !important;

  /* Ejecutar animación al aparecer */
  animation: slideUpFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;

  /* Reset de posición */
  margin: 0 !important;
  right: 0 !important;
}

/* 3. LAYOUT INTERNO (EL SECRETO DEL CENTRADO) */
.containerck {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important; /* Centra el bloque en pantalla */

  display: flex !important;
  flex-direction: column !important; /* Móvil: Columna */
  justify-content: center !important; /* Centrado vertical */
  align-items: center !important; /* Centrado horizontal */

  gap: 30px !important;
  box-sizing: border-box !important;
}

/* ESCRITORIO: Fila centrada */
@media (min-width: 992px) {
  .containerck {
    flex-direction: row !important;
    justify-content: center !important; /* TODO AL CENTRO */
    gap: 60px !important; /* Separación elegante */
  }
}

/* 4. TEXTOS (SIEMPRE CENTRADOS) */
.text {
  flex: 0 1 auto !important;
  max-width: 800px !important; /* Evita líneas infinitas */
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #f0f0f0 !important;
  margin: 0 !important;
  font-weight: 300 !important;
  text-align: center !important; /* Texto centrado siempre */
}

.text a {
  color: #ffcc00 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(255, 204, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.text a:hover {
  color: #fff !important;
  border-bottom-color: #fff !important;
}

/* 5. BOTONERA (SIEMPRE CENTRADA) */
.buttons {
  display: flex !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Estilos de botones */
#cookiePopup button {
  padding: 14px 30px !important;
  border-radius: 50px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s !important;
  white-space: nowrap !important;
}

/* Botón Aceptar */
.acepto {
  background-color: #cf2223 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(207, 34, 35, 0.4) !important;
}

.acepto:hover {
  background-color: #e02e2f !important;
  transform: scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(207, 34, 35, 0.6) !important;
}

/* Botones Secundarios */
.rechazo,
.info {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.rechazo:hover,
.info:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: #ffffff !important;
}

/* 6. PANEL DE CONFIGURACIÓN */
/* Nota: JS controla el display (block/none). Aquí solo damos estilo */
#cookieSettingsView {
  width: 100% !important;
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-align: center !important; /* Centra el contenido */
}

/* Tarjetas de opciones */
.setting-item {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 12px 20px !important;
  border-radius: 40px !important;
  color: #fff !important;
  font-size: 14px !important;

  /* Centrado automático de las tarjetas */
  width: fit-content !important;
  margin: 10px auto !important;

  transition: background 0.3s !important;
  border: 1px solid transparent !important;
}

.setting-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Checkbox personalizado (Estilo Disney) */
.setting-item input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 4px !important;
  background: transparent !important;
  cursor: pointer !important;
  display: grid !important;
  place-content: center !important;
}

.setting-item input[type="checkbox"]:checked {
  background-color: #cf2223 !important;
  border-color: #cf2223 !important;
}

.setting-item input[type="checkbox"]:checked::before {
  content: "✔" !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

/* 7. RESPONSIVE MÓVIL */
@media (max-width: 768px) {
  #cookiePopup {
    padding: 25px 20px !important;
  }
  .containerck {
    gap: 20px !important;
  }

  .buttons {
    flex-direction: column !important;
    width: 100% !important;
  }

  #cookiePopup button {
    width: 100% !important;
    padding: 16px !important; 
  }
}
